Implement a flag -fext-numeric-literals that allows control of whether GNU
[official-gcc.git] / libgo / configure
blob04fa89d687919caeacadf5be387fcd85459bda9c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 MATH_FLAG
608 STRINGOPS_FLAG
609 HAVE_WAIT4_FALSE
610 HAVE_WAIT4_TRUE
611 HAVE_STRERROR_R_FALSE
612 HAVE_STRERROR_R_TRUE
613 HAVE_SYS_MMAN_H_FALSE
614 HAVE_SYS_MMAN_H_TRUE
615 PTHREAD_LIBS
616 PTHREAD_CFLAGS
617 NET_LIBS
618 MATH_LIBS
619 USING_SPLIT_STACK_FALSE
620 USING_SPLIT_STACK_TRUE
621 SPLIT_STACK
622 OSCFLAGS
623 GO_SYSCALL_OS_ARCH_FILE
624 GO_SYSCALL_OS_FILE
625 GO_LIBCALL_OS_ARCH_FILE
626 GO_LIBCALL_OS_FILE
627 GOARCH
628 LIBGO_IS_X86_64_FALSE
629 LIBGO_IS_X86_64_TRUE
630 LIBGO_IS_SPARC64_FALSE
631 LIBGO_IS_SPARC64_TRUE
632 LIBGO_IS_SPARC_FALSE
633 LIBGO_IS_SPARC_TRUE
634 LIBGO_IS_PPC64_FALSE
635 LIBGO_IS_PPC64_TRUE
636 LIBGO_IS_PPC_FALSE
637 LIBGO_IS_PPC_TRUE
638 LIBGO_IS_MIPSO64_FALSE
639 LIBGO_IS_MIPSO64_TRUE
640 LIBGO_IS_MIPSN64_FALSE
641 LIBGO_IS_MIPSN64_TRUE
642 LIBGO_IS_MIPSN32_FALSE
643 LIBGO_IS_MIPSN32_TRUE
644 LIBGO_IS_MIPSO32_FALSE
645 LIBGO_IS_MIPSO32_TRUE
646 LIBGO_IS_MIPS_FALSE
647 LIBGO_IS_MIPS_TRUE
648 LIBGO_IS_M68K_FALSE
649 LIBGO_IS_M68K_TRUE
650 LIBGO_IS_ARM_FALSE
651 LIBGO_IS_ARM_TRUE
652 LIBGO_IS_ALPHA_FALSE
653 LIBGO_IS_ALPHA_TRUE
654 LIBGO_IS_386_FALSE
655 LIBGO_IS_386_TRUE
656 GOOS
657 LIBGO_IS_SOLARIS_FALSE
658 LIBGO_IS_SOLARIS_TRUE
659 LIBGO_IS_RTEMS_FALSE
660 LIBGO_IS_RTEMS_TRUE
661 LIBGO_IS_OPENBSD_FALSE
662 LIBGO_IS_OPENBSD_TRUE
663 LIBGO_IS_NETBSD_FALSE
664 LIBGO_IS_NETBSD_TRUE
665 LIBGO_IS_LINUX_FALSE
666 LIBGO_IS_LINUX_TRUE
667 LIBGO_IS_IRIX_FALSE
668 LIBGO_IS_IRIX_TRUE
669 LIBGO_IS_FREEBSD_FALSE
670 LIBGO_IS_FREEBSD_TRUE
671 LIBGO_IS_DARWIN_FALSE
672 LIBGO_IS_DARWIN_TRUE
673 go_include
674 LIBFFIINCS
675 LIBFFI
676 nover_glibgo_toolexeclibdir
677 glibgo_toolexeclibdir
678 glibgo_toolexecdir
679 WERROR
680 WARN_FLAGS
681 CC_FOR_BUILD
682 enable_static
683 enable_shared
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
691 OBJDUMP
692 LN_S
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LIBTOOL
697 OBJCOPY
698 RANLIB
700 FGREP
701 EGREP
702 GREP
704 MAINT
705 MAINTAINER_MODE_FALSE
706 MAINTAINER_MODE_TRUE
707 GOCFLAGS
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 multi_basedir
761 libtool_VERSION
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_multilib
804 enable_dependency_tracking
805 enable_maintainer_mode
806 with_gnu_ld
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 enable_libtool_lock
812 enable_version_specific_runtime_libs
813 with_libffi
814 with_system_libunwind
815 enable_sjlj_exceptions
817 ac_precious_vars='build_alias
818 host_alias
819 target_alias
821 CPPFLAGS'
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
872 ac_prev=
873 ac_dashdash=
874 for ac_option
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
879 ac_prev=
880 continue
883 case $ac_option in
884 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 *) ac_optarg=yes ;;
886 esac
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
892 ac_dashdash=yes ;;
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
911 --config-cache | -C)
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) as_fn_error "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information."
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228 esac
1229 done
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error "missing argument to $ac_option"
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1277 If a cross compiler is detected then cross compile mode will be used." >&2
1278 elif test "x$build_alias" != "x$host_alias"; then
1279 cross_compiling=yes
1283 ac_tool_prefix=
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286 test "$silent" = yes && exec 6>/dev/null
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error "pwd does not report name of working directory"
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308 s//\1/
1311 /^X\(\/\/\)[^/].*/{
1312 s//\1/
1315 /^X\(\/\/\)$/{
1316 s//\1/
1319 /^X\(\/\).*/{
1320 s//\1/
1323 s/.*/./; q'`
1324 srcdir=$ac_confdir
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 srcdir=..
1328 else
1329 ac_srcdir_defaulted=no
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 ac_abs_confdir=`(
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1338 pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 srcdir=.
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1362 cat <<_ACEOF
1363 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1372 Configuration:
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 [PREFIX]
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1418 cat <<\_ACEOF
1420 Program names:
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425 System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 --target=TARGET configure for building compilers for TARGET [HOST]
1429 _ACEOF
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of package-unused version-unused:";;
1435 esac
1436 cat <<\_ACEOF
1438 Optional Features:
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-multilib build many library versions (default)
1443 --disable-dependency-tracking speeds up one-time build
1444 --enable-dependency-tracking do not reject slow dependency extractors
1445 --enable-maintainer-mode enable make rules and dependencies not useful
1446 (and sometimes confusing) to the casual installer
1447 --enable-shared[=PKGS] build shared libraries [default=yes]
1448 --enable-static[=PKGS] build static libraries [default=yes]
1449 --enable-fast-install[=PKGS]
1450 optimize for fast installation [default=yes]
1451 --disable-libtool-lock avoid locking (might break parallel builds)
1452 --enable-version-specific-runtime-libs
1453 Specify that runtime libraries should be installed
1454 in a compiler-specific directory
1455 --enable-sjlj-exceptions
1456 force use of builtin_setjmp for exceptions
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --without-libffi don't use libffi
1465 --with-system-libunwind use installed libunwind
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 LIBS libraries to pass to the linker, e.g. -l<library>
1473 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1474 you have headers in a nonstandard directory <include dir>
1475 GOC Go compiler command
1476 GOCFLAGS Go compiler flags
1477 CPP C preprocessor
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1482 Report bugs to the package provider.
1483 _ACEOF
1484 ac_status=$?
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" ||
1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 continue
1493 ac_builddir=.
1495 case "$ac_dir" in
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 esac ;;
1505 esac
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1511 case $srcdir in
1512 .) # We are building in place.
1513 ac_srcdir=.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1520 *) # Relative name.
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 esac
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1535 else
1536 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 fi || ac_status=$?
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1539 done
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1544 cat <<\_ACEOF
1545 package-unused configure version-unused
1546 generated by GNU Autoconf 2.64
1548 Copyright (C) 2009 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1551 _ACEOF
1552 exit
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1595 } # ac_fn_c_try_compile
1597 # ac_fn_c_try_link LINENO
1598 # -----------------------
1599 # Try to link conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_link ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext conftest$ac_exeext
1604 if { { ac_try="$ac_link"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest$ac_exeext && {
1623 test "$cross_compiling" = yes ||
1624 $as_test_x conftest$ac_exeext
1625 }; then :
1626 ac_retval=0
1627 else
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1631 ac_retval=1
1633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1635 # interfere with the next link command; also delete a directory that is
1636 # left behind by Apple's compiler. We do this before executing the actions.
1637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1639 return $ac_retval
1641 } # ac_fn_c_try_link
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1653 $as_echo_n "(cached) " >&6
1654 else
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 eval "$3=yes"
1662 else
1663 eval "$3=no"
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 } # ac_fn_c_check_header_compile
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } >/dev/null && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1709 } # ac_fn_c_try_cpp
1711 # ac_fn_c_try_run LINENO
1712 # ----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1714 # that executables *can* be run.
1715 ac_fn_c_try_run ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { { ac_try="$ac_link"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1729 { { case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_try") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; }; }; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: program exited with status $ac_status" >&5
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1745 ac_retval=$ac_status
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749 return $ac_retval
1751 } # ac_fn_c_try_run
1753 # ac_fn_c_check_func LINENO FUNC VAR
1754 # ----------------------------------
1755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1756 ac_fn_c_check_func ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1768 #define $2 innocuous_$2
1770 /* System header to define __stub macros and hopefully few prototypes,
1771 which can conflict with char $2 (); below.
1772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1773 <limits.h> exists even on freestanding compilers. */
1775 #ifdef __STDC__
1776 # include <limits.h>
1777 #else
1778 # include <assert.h>
1779 #endif
1781 #undef $2
1783 /* Override any GCC internal prototype to avoid an error.
1784 Use char because int might match the return type of a GCC
1785 builtin and then its argument prototype would still apply. */
1786 #ifdef __cplusplus
1787 extern "C"
1788 #endif
1789 char $2 ();
1790 /* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793 #if defined __stub_$2 || defined __stub___$2
1794 choke me
1795 #endif
1798 main ()
1800 return $2 ();
1802 return 0;
1804 _ACEOF
1805 if ac_fn_c_try_link "$LINENO"; then :
1806 eval "$3=yes"
1807 else
1808 eval "$3=no"
1810 rm -f core conftest.err conftest.$ac_objext \
1811 conftest$ac_exeext conftest.$ac_ext
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 } # ac_fn_c_check_func
1820 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1821 # -------------------------------------------------------
1822 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1823 # the include files in INCLUDES and setting the cache variable VAR
1824 # accordingly.
1825 ac_fn_c_check_header_mongrel ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832 $as_echo_n "(cached) " >&6
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 else
1838 # Is the header compilable?
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1840 $as_echo_n "checking $2 usability... " >&6; }
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 ac_header_compiler=yes
1848 else
1849 ac_header_compiler=no
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1853 $as_echo "$ac_header_compiler" >&6; }
1855 # Is the header present?
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1857 $as_echo_n "checking $2 presence... " >&6; }
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 #include <$2>
1861 _ACEOF
1862 if ac_fn_c_try_cpp "$LINENO"; then :
1863 ac_header_preproc=yes
1864 else
1865 ac_header_preproc=no
1867 rm -f conftest.err conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1869 $as_echo "$ac_header_preproc" >&6; }
1871 # So? What about this header?
1872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1873 yes:no: )
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1875 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 no:yes:* )
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1881 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1883 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1885 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1887 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1891 esac
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 $as_echo_n "(cached) " >&6
1896 else
1897 eval "$3=\$ac_header_compiler"
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 } # ac_fn_c_check_header_mongrel
1907 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1908 # -------------------------------------------
1909 # Tests whether TYPE exists after having included INCLUDES, setting cache
1910 # variable VAR accordingly.
1911 ac_fn_c_check_type ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 $as_echo_n "(cached) " >&6
1918 else
1919 eval "$3=no"
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1924 main ()
1926 if (sizeof ($2))
1927 return 0;
1929 return 0;
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1937 main ()
1939 if (sizeof (($2)))
1940 return 0;
1942 return 0;
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1947 else
1948 eval "$3=yes"
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_type
1961 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1962 # --------------------------------------------
1963 # Tries to find the compile-time value of EXPR in a program that includes
1964 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1965 # computed
1966 ac_fn_c_compute_int ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if test "$cross_compiling" = yes; then
1970 # Depending upon the size, compute the lo and hi bounds.
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1975 main ()
1977 static int test_array [1 - 2 * !(($2) >= 0)];
1978 test_array [0] = 0
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 ac_lo=0 ac_mid=0
1986 while :; do
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 main ()
1993 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1994 test_array [0] = 0
1997 return 0;
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_hi=$ac_mid; break
2002 else
2003 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2004 if test $ac_lo -le $ac_mid; then
2005 ac_lo= ac_hi=
2006 break
2008 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 done
2012 else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2017 main ()
2019 static int test_array [1 - 2 * !(($2) < 0)];
2020 test_array [0] = 0
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_hi=-1 ac_mid=-1
2028 while :; do
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2033 main ()
2035 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2036 test_array [0] = 0
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_lo=$ac_mid; break
2044 else
2045 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2046 if test $ac_mid -le $ac_hi; then
2047 ac_lo= ac_hi=
2048 break
2050 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 done
2054 else
2055 ac_lo= ac_hi=
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 # Binary search between lo and hi bounds.
2061 while test "x$ac_lo" != "x$ac_hi"; do
2062 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2067 main ()
2069 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070 test_array [0] = 0
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 ac_hi=$ac_mid
2078 else
2079 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 done
2083 case $ac_lo in #((
2084 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2085 '') ac_retval=1 ;;
2086 esac
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2091 static long int longval () { return $2; }
2092 static unsigned long int ulongval () { return $2; }
2093 #include <stdio.h>
2094 #include <stdlib.h>
2096 main ()
2099 FILE *f = fopen ("conftest.val", "w");
2100 if (! f)
2101 return 1;
2102 if (($2) < 0)
2104 long int i = longval ();
2105 if (i != ($2))
2106 return 1;
2107 fprintf (f, "%ld", i);
2109 else
2111 unsigned long int i = ulongval ();
2112 if (i != ($2))
2113 return 1;
2114 fprintf (f, "%lu", i);
2116 /* Do not output a trailing newline, as this causes \r\n confusion
2117 on some platforms. */
2118 return ferror (f) || fclose (f) != 0;
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_run "$LINENO"; then :
2125 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2126 else
2127 ac_retval=1
2129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2130 conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 rm -f conftest.val
2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135 return $ac_retval
2137 } # ac_fn_c_compute_int
2138 cat >config.log <<_ACEOF
2139 This file contains any messages produced by compilers while
2140 running configure, to aid debugging if configure makes a mistake.
2142 It was created by package-unused $as_me version-unused, which was
2143 generated by GNU Autoconf 2.64. Invocation command line was
2145 $ $0 $@
2147 _ACEOF
2148 exec 5>>config.log
2150 cat <<_ASUNAME
2151 ## --------- ##
2152 ## Platform. ##
2153 ## --------- ##
2155 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2156 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2157 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2158 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2159 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2161 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2162 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2164 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2165 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2166 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2167 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2168 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2169 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2170 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2172 _ASUNAME
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 $as_echo "PATH: $as_dir"
2180 done
2181 IFS=$as_save_IFS
2183 } >&5
2185 cat >&5 <<_ACEOF
2188 ## ----------- ##
2189 ## Core tests. ##
2190 ## ----------- ##
2192 _ACEOF
2195 # Keep a trace of the command line.
2196 # Strip out --no-create and --no-recursion so they do not pile up.
2197 # Strip out --silent because we don't want to record it for future runs.
2198 # Also quote any args containing shell meta-characters.
2199 # Make two passes to allow for proper duplicate-argument suppression.
2200 ac_configure_args=
2201 ac_configure_args0=
2202 ac_configure_args1=
2203 ac_must_keep_next=false
2204 for ac_pass in 1 2
2206 for ac_arg
2208 case $ac_arg in
2209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2211 | -silent | --silent | --silen | --sile | --sil)
2212 continue ;;
2213 *\'*)
2214 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2215 esac
2216 case $ac_pass in
2217 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2219 as_fn_append ac_configure_args1 " '$ac_arg'"
2220 if test $ac_must_keep_next = true; then
2221 ac_must_keep_next=false # Got value, back to normal.
2222 else
2223 case $ac_arg in
2224 *=* | --config-cache | -C | -disable-* | --disable-* \
2225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2227 | -with-* | --with-* | -without-* | --without-* | --x)
2228 case "$ac_configure_args0 " in
2229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2230 esac
2232 -* ) ac_must_keep_next=true ;;
2233 esac
2235 as_fn_append ac_configure_args " '$ac_arg'"
2237 esac
2238 done
2239 done
2240 { ac_configure_args0=; unset ac_configure_args0;}
2241 { ac_configure_args1=; unset ac_configure_args1;}
2243 # When interrupted or exit'd, cleanup temporary files, and complete
2244 # config.log. We remove comments because anyway the quotes in there
2245 # would cause problems or look ugly.
2246 # WARNING: Use '\'' to represent an apostrophe within the trap.
2247 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2248 trap 'exit_status=$?
2249 # Save into config.log some information that might help in debugging.
2251 echo
2253 cat <<\_ASBOX
2254 ## ---------------- ##
2255 ## Cache variables. ##
2256 ## ---------------- ##
2257 _ASBOX
2258 echo
2259 # The following way of writing the cache mishandles newlines in values,
2261 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2262 eval ac_val=\$$ac_var
2263 case $ac_val in #(
2264 *${as_nl}*)
2265 case $ac_var in #(
2266 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2267 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2268 esac
2269 case $ac_var in #(
2270 _ | IFS | as_nl) ;; #(
2271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2272 *) { eval $ac_var=; unset $ac_var;} ;;
2273 esac ;;
2274 esac
2275 done
2276 (set) 2>&1 |
2277 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2278 *${as_nl}ac_space=\ *)
2279 sed -n \
2280 "s/'\''/'\''\\\\'\'''\''/g;
2281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2282 ;; #(
2284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286 esac |
2287 sort
2289 echo
2291 cat <<\_ASBOX
2292 ## ----------------- ##
2293 ## Output variables. ##
2294 ## ----------------- ##
2295 _ASBOX
2296 echo
2297 for ac_var in $ac_subst_vars
2299 eval ac_val=\$$ac_var
2300 case $ac_val in
2301 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2302 esac
2303 $as_echo "$ac_var='\''$ac_val'\''"
2304 done | sort
2305 echo
2307 if test -n "$ac_subst_files"; then
2308 cat <<\_ASBOX
2309 ## ------------------- ##
2310 ## File substitutions. ##
2311 ## ------------------- ##
2312 _ASBOX
2313 echo
2314 for ac_var in $ac_subst_files
2316 eval ac_val=\$$ac_var
2317 case $ac_val in
2318 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319 esac
2320 $as_echo "$ac_var='\''$ac_val'\''"
2321 done | sort
2322 echo
2325 if test -s confdefs.h; then
2326 cat <<\_ASBOX
2327 ## ----------- ##
2328 ## confdefs.h. ##
2329 ## ----------- ##
2330 _ASBOX
2331 echo
2332 cat confdefs.h
2333 echo
2335 test "$ac_signal" != 0 &&
2336 $as_echo "$as_me: caught signal $ac_signal"
2337 $as_echo "$as_me: exit $exit_status"
2338 } >&5
2339 rm -f core *.core core.conftest.* &&
2340 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2341 exit $exit_status
2343 for ac_signal in 1 2 13 15; do
2344 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2345 done
2346 ac_signal=0
2348 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2349 rm -f -r conftest* confdefs.h
2351 $as_echo "/* confdefs.h */" > confdefs.h
2353 # Predefined preprocessor variables.
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_NAME "$PACKAGE_NAME"
2357 _ACEOF
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2361 _ACEOF
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2365 _ACEOF
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_STRING "$PACKAGE_STRING"
2369 _ACEOF
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2373 _ACEOF
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_URL "$PACKAGE_URL"
2377 _ACEOF
2380 # Let the site file select an alternate cache file if it wants to.
2381 # Prefer an explicitly selected file to automatically selected ones.
2382 ac_site_file1=NONE
2383 ac_site_file2=NONE
2384 if test -n "$CONFIG_SITE"; then
2385 ac_site_file1=$CONFIG_SITE
2386 elif test "x$prefix" != xNONE; then
2387 ac_site_file1=$prefix/share/config.site
2388 ac_site_file2=$prefix/etc/config.site
2389 else
2390 ac_site_file1=$ac_default_prefix/share/config.site
2391 ac_site_file2=$ac_default_prefix/etc/config.site
2393 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2395 test "x$ac_site_file" = xNONE && continue
2396 if test -r "$ac_site_file"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2398 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2399 sed 's/^/| /' "$ac_site_file" >&5
2400 . "$ac_site_file"
2402 done
2404 if test -r "$cache_file"; then
2405 # Some versions of bash will fail to source /dev/null (special
2406 # files actually), so we avoid doing that.
2407 if test -f "$cache_file"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2409 $as_echo "$as_me: loading cache $cache_file" >&6;}
2410 case $cache_file in
2411 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2412 *) . "./$cache_file";;
2413 esac
2415 else
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2417 $as_echo "$as_me: creating cache $cache_file" >&6;}
2418 >$cache_file
2421 # Check that the precious variables saved in the cache have kept the same
2422 # value.
2423 ac_cache_corrupted=false
2424 for ac_var in $ac_precious_vars; do
2425 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2426 eval ac_new_set=\$ac_env_${ac_var}_set
2427 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2428 eval ac_new_val=\$ac_env_${ac_var}_value
2429 case $ac_old_set,$ac_new_set in
2430 set,)
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2432 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2433 ac_cache_corrupted=: ;;
2434 ,set)
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2436 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2437 ac_cache_corrupted=: ;;
2438 ,);;
2440 if test "x$ac_old_val" != "x$ac_new_val"; then
2441 # differences in whitespace do not lead to failure.
2442 ac_old_val_w=`echo x $ac_old_val`
2443 ac_new_val_w=`echo x $ac_new_val`
2444 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2446 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2447 ac_cache_corrupted=:
2448 else
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2450 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2451 eval $ac_var=\$ac_old_val
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2454 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2456 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2457 fi;;
2458 esac
2459 # Pass precious variables to config.status.
2460 if test "$ac_new_set" = set; then
2461 case $ac_new_val in
2462 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2463 *) ac_arg=$ac_var=$ac_new_val ;;
2464 esac
2465 case " $ac_configure_args " in
2466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2467 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2468 esac
2470 done
2471 if $ac_cache_corrupted; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2475 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2476 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2478 ## -------------------- ##
2479 ## Main body of script. ##
2480 ## -------------------- ##
2482 ac_ext=c
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493 ac_config_headers="$ac_config_headers config.h"
2496 libtool_VERSION=3:1:0
2499 # Default to --enable-multilib
2500 # Check whether --enable-multilib was given.
2501 if test "${enable_multilib+set}" = set; then :
2502 enableval=$enable_multilib; case "$enableval" in
2503 yes) multilib=yes ;;
2504 no) multilib=no ;;
2505 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2506 esac
2507 else
2508 multilib=yes
2512 # We may get other options which we leave undocumented:
2513 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2514 # See config-ml.in if you want the gory details.
2516 if test "$srcdir" = "."; then
2517 if test "$with_target_subdir" != "."; then
2518 multi_basedir="$srcdir/$with_multisrctop../.."
2519 else
2520 multi_basedir="$srcdir/$with_multisrctop.."
2522 else
2523 multi_basedir="$srcdir/.."
2527 # Even if the default multilib is not a cross compilation,
2528 # it may be that some of the other multilibs are.
2529 if test $cross_compiling = no && test $multilib = yes \
2530 && test "x${with_multisubdir}" != x ; then
2531 cross_compiling=maybe
2534 ac_config_commands="$ac_config_commands default-1"
2537 ac_aux_dir=
2538 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2539 for ac_t in install-sh install.sh shtool; do
2540 if test -f "$ac_dir/$ac_t"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/$ac_t -c"
2543 break 2
2545 done
2546 done
2547 if test -z "$ac_aux_dir"; then
2548 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2551 # These three variables are undocumented and unsupported,
2552 # and are intended to be withdrawn in a future Autoconf release.
2553 # They can cause serious problems if a builder's source tree is in a directory
2554 # whose full name contains unusual characters.
2555 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2556 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2557 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2560 # Make sure we can run config.sub.
2561 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2562 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2565 $as_echo_n "checking build system type... " >&6; }
2566 if test "${ac_cv_build+set}" = set; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 ac_build_alias=$build_alias
2570 test "x$ac_build_alias" = x &&
2571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2572 test "x$ac_build_alias" = x &&
2573 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2574 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2575 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2579 $as_echo "$ac_cv_build" >&6; }
2580 case $ac_cv_build in
2581 *-*-*) ;;
2582 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2583 esac
2584 build=$ac_cv_build
2585 ac_save_IFS=$IFS; IFS='-'
2586 set x $ac_cv_build
2587 shift
2588 build_cpu=$1
2589 build_vendor=$2
2590 shift; shift
2591 # Remember, the first character of IFS is used to create $*,
2592 # except with old shells:
2593 build_os=$*
2594 IFS=$ac_save_IFS
2595 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2599 $as_echo_n "checking host system type... " >&6; }
2600 if test "${ac_cv_host+set}" = set; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test "x$host_alias" = x; then
2604 ac_cv_host=$ac_cv_build
2605 else
2606 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2607 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2612 $as_echo "$ac_cv_host" >&6; }
2613 case $ac_cv_host in
2614 *-*-*) ;;
2615 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2616 esac
2617 host=$ac_cv_host
2618 ac_save_IFS=$IFS; IFS='-'
2619 set x $ac_cv_host
2620 shift
2621 host_cpu=$1
2622 host_vendor=$2
2623 shift; shift
2624 # Remember, the first character of IFS is used to create $*,
2625 # except with old shells:
2626 host_os=$*
2627 IFS=$ac_save_IFS
2628 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2632 $as_echo_n "checking target system type... " >&6; }
2633 if test "${ac_cv_target+set}" = set; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 if test "x$target_alias" = x; then
2637 ac_cv_target=$ac_cv_host
2638 else
2639 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2640 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2645 $as_echo "$ac_cv_target" >&6; }
2646 case $ac_cv_target in
2647 *-*-*) ;;
2648 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2649 esac
2650 target=$ac_cv_target
2651 ac_save_IFS=$IFS; IFS='-'
2652 set x $ac_cv_target
2653 shift
2654 target_cpu=$1
2655 target_vendor=$2
2656 shift; shift
2657 # Remember, the first character of IFS is used to create $*,
2658 # except with old shells:
2659 target_os=$*
2660 IFS=$ac_save_IFS
2661 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2664 # The aliases save the names the user supplied, while $host etc.
2665 # will get canonicalized.
2666 test -n "$target_alias" &&
2667 test "$program_prefix$program_suffix$program_transform_name" = \
2668 NONENONEs,x,x, &&
2669 program_prefix=${target_alias}-
2671 target_alias=${target_alias-$host_alias}
2673 am__api_version='1.11'
2675 # Find a good install program. We prefer a C program (faster),
2676 # so one script is as good as another. But avoid the broken or
2677 # incompatible versions:
2678 # SysV /etc/install, /usr/sbin/install
2679 # SunOS /usr/etc/install
2680 # IRIX /sbin/install
2681 # AIX /bin/install
2682 # AmigaOS /C/install, which installs bootblocks on floppy discs
2683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2686 # OS/2's system install, which has a completely different semantic
2687 # ./install, which can be erroneously created by make from ./install.sh.
2688 # Reject install programs that cannot install multiple files.
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2690 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2691 if test -z "$INSTALL"; then
2692 if test "${ac_cv_path_install+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 # Account for people who put trailing slashes in PATH elements.
2701 case $as_dir/ in #((
2702 ./ | .// | /[cC]/* | \
2703 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2704 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2705 /usr/ucb/* ) ;;
2707 # OSF1 and SCO ODT 3.0 have their own names for install.
2708 # Don't use installbsd from OSF since it installs stuff as root
2709 # by default.
2710 for ac_prog in ginstall scoinst install; do
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2713 if test $ac_prog = install &&
2714 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # AIX install. It has an incompatible calling convention.
2717 elif test $ac_prog = install &&
2718 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2719 # program-specific install script used by HP pwplus--don't use.
2721 else
2722 rm -rf conftest.one conftest.two conftest.dir
2723 echo one > conftest.one
2724 echo two > conftest.two
2725 mkdir conftest.dir
2726 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2727 test -s conftest.one && test -s conftest.two &&
2728 test -s conftest.dir/conftest.one &&
2729 test -s conftest.dir/conftest.two
2730 then
2731 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2732 break 3
2736 done
2737 done
2739 esac
2741 done
2742 IFS=$as_save_IFS
2744 rm -rf conftest.one conftest.two conftest.dir
2747 if test "${ac_cv_path_install+set}" = set; then
2748 INSTALL=$ac_cv_path_install
2749 else
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
2752 # break other packages using the cache if that directory is
2753 # removed, or if the value is a relative name.
2754 INSTALL=$ac_install_sh
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2758 $as_echo "$INSTALL" >&6; }
2760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761 # It thinks the first close brace ends the variable substitution.
2762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2769 $as_echo_n "checking whether build environment is sane... " >&6; }
2770 # Just in case
2771 sleep 1
2772 echo timestamp > conftest.file
2773 # Reject unsafe characters in $srcdir or the absolute working directory
2774 # name. Accept space and tab only in the latter.
2775 am_lf='
2777 case `pwd` in
2778 *[\\\"\#\$\&\'\`$am_lf]*)
2779 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2780 esac
2781 case $srcdir in
2782 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2783 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2784 esac
2786 # Do `set' in a subshell so we don't clobber the current shell's
2787 # arguments. Must try -L first in case configure is actually a
2788 # symlink; some systems play weird games with the mod time of symlinks
2789 # (eg FreeBSD returns the mod time of the symlink's containing
2790 # directory).
2791 if (
2792 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2793 if test "$*" = "X"; then
2794 # -L didn't work.
2795 set X `ls -t "$srcdir/configure" conftest.file`
2797 rm -f conftest.file
2798 if test "$*" != "X $srcdir/configure conftest.file" \
2799 && test "$*" != "X conftest.file $srcdir/configure"; then
2801 # If neither matched, then we have a broken ls. This can happen
2802 # if, for instance, CONFIG_SHELL is bash and it inherits a
2803 # broken ls alias from the environment. This has actually
2804 # happened. Such a system could not be considered "sane".
2805 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2806 alias in your environment" "$LINENO" 5
2809 test "$2" = conftest.file
2811 then
2812 # Ok.
2814 else
2815 as_fn_error "newly created file is older than distributed files!
2816 Check your system clock" "$LINENO" 5
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819 $as_echo "yes" >&6; }
2820 test "$program_prefix" != NONE &&
2821 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2822 # Use a double $ so make ignores it.
2823 test "$program_suffix" != NONE &&
2824 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2825 # Double any \ or $.
2826 # By default was `s,x,x', remove it if useless.
2827 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2828 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2830 # expand $ac_aux_dir to an absolute path
2831 am_aux_dir=`cd $ac_aux_dir && pwd`
2833 if test x"${MISSING+set}" != xset; then
2834 case $am_aux_dir in
2835 *\ * | *\ *)
2836 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2838 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2839 esac
2841 # Use eval to expand $SHELL
2842 if eval "$MISSING --run true"; then
2843 am_missing_run="$MISSING --run "
2844 else
2845 am_missing_run=
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2847 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2850 if test x"${install_sh}" != xset; then
2851 case $am_aux_dir in
2852 *\ * | *\ *)
2853 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2855 install_sh="\${SHELL} $am_aux_dir/install-sh"
2856 esac
2859 # Installed binaries are usually stripped using `strip' when the user
2860 # run `make install-strip'. However `strip' might not be the right
2861 # tool to use in cross-compilation environments, therefore Automake
2862 # will honor the `STRIP' environment variable to overrule this program.
2863 if test "$cross_compiling" != no; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}strip; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_STRIP+set}" = set; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test -n "$STRIP"; then
2873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2888 IFS=$as_save_IFS
2892 STRIP=$ac_cv_prog_STRIP
2893 if test -n "$STRIP"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2895 $as_echo "$STRIP" >&6; }
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2903 if test -z "$ac_cv_prog_STRIP"; then
2904 ac_ct_STRIP=$STRIP
2905 # Extract the first word of "strip", so it can be a program name with args.
2906 set dummy strip; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 if test -n "$ac_ct_STRIP"; then
2913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_ac_ct_STRIP="strip"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2926 done
2927 done
2928 IFS=$as_save_IFS
2932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2933 if test -n "$ac_ct_STRIP"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2935 $as_echo "$ac_ct_STRIP" >&6; }
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2941 if test "x$ac_ct_STRIP" = x; then
2942 STRIP=":"
2943 else
2944 case $cross_compiling:$ac_tool_warned in
2945 yes:)
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2948 ac_tool_warned=yes ;;
2949 esac
2950 STRIP=$ac_ct_STRIP
2952 else
2953 STRIP="$ac_cv_prog_STRIP"
2957 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2960 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2961 if test -z "$MKDIR_P"; then
2962 if test "${ac_cv_path_mkdir+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_prog in mkdir gmkdir; do
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2973 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2974 'mkdir (GNU coreutils) '* | \
2975 'mkdir (coreutils) '* | \
2976 'mkdir (fileutils) '4.1*)
2977 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2978 break 3;;
2979 esac
2980 done
2981 done
2982 done
2983 IFS=$as_save_IFS
2987 if test "${ac_cv_path_mkdir+set}" = set; then
2988 MKDIR_P="$ac_cv_path_mkdir -p"
2989 else
2990 # As a last resort, use the slow shell script. Don't cache a
2991 # value for MKDIR_P within a source directory, because that will
2992 # break other packages using the cache if that directory is
2993 # removed, or if the value is a relative name.
2994 test -d ./--version && rmdir ./--version
2995 MKDIR_P="$ac_install_sh -d"
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2999 $as_echo "$MKDIR_P" >&6; }
3001 mkdir_p="$MKDIR_P"
3002 case $mkdir_p in
3003 [\\/$]* | ?:[\\/]*) ;;
3004 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3005 esac
3007 for ac_prog in gawk mawk nawk awk
3009 # Extract the first word of "$ac_prog", so it can be a program name with args.
3010 set dummy $ac_prog; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if test "${ac_cv_prog_AWK+set}" = set; then :
3014 $as_echo_n "(cached) " >&6
3015 else
3016 if test -n "$AWK"; then
3017 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_AWK="$ac_prog"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3030 done
3031 done
3032 IFS=$as_save_IFS
3036 AWK=$ac_cv_prog_AWK
3037 if test -n "$AWK"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3039 $as_echo "$AWK" >&6; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3046 test -n "$AWK" && break
3047 done
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3050 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3051 set x ${MAKE-make}
3052 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3053 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 cat >conftest.make <<\_ACEOF
3057 SHELL = /bin/sh
3058 all:
3059 @echo '@@@%%%=$(MAKE)=@@@%%%'
3060 _ACEOF
3061 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3062 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3063 *@@@%%%=?*=@@@%%%*)
3064 eval ac_cv_prog_make_${ac_make}_set=yes;;
3066 eval ac_cv_prog_make_${ac_make}_set=no;;
3067 esac
3068 rm -f conftest.make
3070 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072 $as_echo "yes" >&6; }
3073 SET_MAKE=
3074 else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 SET_MAKE="MAKE=${MAKE-make}"
3080 rm -rf .tst 2>/dev/null
3081 mkdir .tst 2>/dev/null
3082 if test -d .tst; then
3083 am__leading_dot=.
3084 else
3085 am__leading_dot=_
3087 rmdir .tst 2>/dev/null
3089 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3090 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3091 # is not polluted with repeated "-I."
3092 am__isrc=' -I$(srcdir)'
3093 # test to see if srcdir already configured
3094 if test -f $srcdir/config.status; then
3095 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3099 # test whether we have cygpath
3100 if test -z "$CYGPATH_W"; then
3101 if (cygpath --version) >/dev/null 2>/dev/null; then
3102 CYGPATH_W='cygpath -w'
3103 else
3104 CYGPATH_W=echo
3109 # Define the identity of the package.
3110 PACKAGE='libgo'
3111 VERSION='version-unused'
3114 # Some tools Automake needs.
3116 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3119 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3122 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3125 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3128 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3130 # We need awk for the "check" target. The system "awk" is bad on
3131 # some platforms.
3132 # Always define AMTAR for backward compatibility.
3134 AMTAR=${AMTAR-"${am_missing_run}tar"}
3136 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3147 ac_ext=c
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 if test -n "$ac_tool_prefix"; then
3153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3154 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if test "${ac_cv_prog_CC+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3174 done
3175 done
3176 IFS=$as_save_IFS
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3191 if test -z "$ac_cv_prog_CC"; then
3192 ac_ct_CC=$CC
3193 # Extract the first word of "gcc", so it can be a program name with args.
3194 set dummy gcc; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 if test -n "$ac_ct_CC"; then
3201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_ac_ct_CC="gcc"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3214 done
3215 done
3216 IFS=$as_save_IFS
3220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221 if test -n "$ac_ct_CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3223 $as_echo "$ac_ct_CC" >&6; }
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3229 if test "x$ac_ct_CC" = x; then
3230 CC=""
3231 else
3232 case $cross_compiling:$ac_tool_warned in
3233 yes:)
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3236 ac_tool_warned=yes ;;
3237 esac
3238 CC=$ac_ct_CC
3240 else
3241 CC="$ac_cv_prog_CC"
3244 if test -z "$CC"; then
3245 if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3247 set dummy ${ac_tool_prefix}cc; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if test "${ac_cv_prog_CC+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263 ac_cv_prog_CC="${ac_tool_prefix}cc"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3267 done
3268 done
3269 IFS=$as_save_IFS
3273 CC=$ac_cv_prog_CC
3274 if test -n "$CC"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276 $as_echo "$CC" >&6; }
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3285 if test -z "$CC"; then
3286 # Extract the first word of "cc", so it can be a program name with args.
3287 set dummy cc; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if test "${ac_cv_prog_CC+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 ac_prog_rejected=no
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3305 ac_prog_rejected=yes
3306 continue
3308 ac_cv_prog_CC="cc"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 break 2
3312 done
3313 done
3314 IFS=$as_save_IFS
3316 if test $ac_prog_rejected = yes; then
3317 # We found a bogon in the path, so make sure we never use it.
3318 set dummy $ac_cv_prog_CC
3319 shift
3320 if test $# != 0; then
3321 # We chose a different compiler from the bogus one.
3322 # However, it has the same basename, so the bogon will be chosen
3323 # first if we set CC to just the basename; use the full file name.
3324 shift
3325 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3330 CC=$ac_cv_prog_CC
3331 if test -n "$CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3341 if test -z "$CC"; then
3342 if test -n "$ac_tool_prefix"; then
3343 for ac_prog in cl.exe
3345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if test "${ac_cv_prog_CC+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 if test -n "$CC"; then
3353 ac_cv_prog_CC="$CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3366 done
3367 done
3368 IFS=$as_save_IFS
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3382 test -n "$CC" && break
3383 done
3385 if test -z "$CC"; then
3386 ac_ct_CC=$CC
3387 for ac_prog in cl.exe
3389 # Extract the first word of "$ac_prog", so it can be a program name with args.
3390 set dummy $ac_prog; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_ac_ct_CC="$ac_prog"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3410 done
3411 done
3412 IFS=$as_save_IFS
3416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417 if test -n "$ac_ct_CC"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3419 $as_echo "$ac_ct_CC" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3426 test -n "$ac_ct_CC" && break
3427 done
3429 if test "x$ac_ct_CC" = x; then
3430 CC=""
3431 else
3432 case $cross_compiling:$ac_tool_warned in
3433 yes:)
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3436 ac_tool_warned=yes ;;
3437 esac
3438 CC=$ac_ct_CC
3445 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error "no acceptable C compiler found in \$PATH
3448 See \`config.log' for more details." "$LINENO" 5; }
3450 # Provide some information about the compiler.
3451 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3452 set X $ac_compile
3453 ac_compiler=$2
3454 for ac_option in --version -v -V -qversion; do
3455 { { ac_try="$ac_compiler $ac_option >&5"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3463 ac_status=$?
3464 if test -s conftest.err; then
3465 sed '10a\
3466 ... rest of stderr output deleted ...
3467 10q' conftest.err >conftest.er1
3468 cat conftest.er1 >&5
3469 rm -f conftest.er1 conftest.err
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }
3473 done
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3479 main ()
3483 return 0;
3485 _ACEOF
3486 ac_clean_files_save=$ac_clean_files
3487 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3488 # Try to create an executable without -o first, disregard a.out.
3489 # It will help us diagnose broken compilers, and finding out an intuition
3490 # of exeext.
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3492 $as_echo_n "checking for C compiler default output file name... " >&6; }
3493 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3495 # The possible output files:
3496 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3498 ac_rmfiles=
3499 for ac_file in $ac_files
3501 case $ac_file in
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3503 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3504 esac
3505 done
3506 rm -f $ac_rmfiles
3508 if { { ac_try="$ac_link_default"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514 $as_echo "$ac_try_echo"; } >&5
3515 (eval "$ac_link_default") 2>&5
3516 ac_status=$?
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }; then :
3519 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3520 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3521 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3522 # so that the user can short-circuit this test for compilers unknown to
3523 # Autoconf.
3524 for ac_file in $ac_files ''
3526 test -f "$ac_file" || continue
3527 case $ac_file in
3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3530 [ab].out )
3531 # We found the default executable, but exeext='' is most
3532 # certainly right.
3533 break;;
3534 *.* )
3535 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3536 then :; else
3537 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539 # We set ac_cv_exeext here because the later test for it is not
3540 # safe: cross compilers may not add the suffix if given an `-o'
3541 # argument, so we may need to know it at that point already.
3542 # Even if this section looks crufty: it has the advantage of
3543 # actually working.
3544 break;;
3546 break;;
3547 esac
3548 done
3549 test "$ac_cv_exeext" = no && ac_cv_exeext=
3551 else
3552 ac_file=''
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3555 $as_echo "$ac_file" >&6; }
3556 if test -z "$ac_file"; then :
3557 $as_echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562 { as_fn_set_status 77
3563 as_fn_error "C compiler cannot create executables
3564 See \`config.log' for more details." "$LINENO" 5; }; }
3566 ac_exeext=$ac_cv_exeext
3568 # Check that the compiler produces executables we can run. If not, either
3569 # the compiler is broken, or we cross compile.
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3571 $as_echo_n "checking whether the C compiler works... " >&6; }
3572 # If not cross compiling, check that we can run a simple program.
3573 if test "$cross_compiling" != yes; then
3574 if { ac_try='./$ac_file'
3575 { { case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_try") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; }; then
3585 cross_compiling=no
3586 else
3587 if test "$cross_compiling" = maybe; then
3588 cross_compiling=yes
3589 else
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error "cannot run C compiled programs.
3593 If you meant to cross compile, use \`--host'.
3594 See \`config.log' for more details." "$LINENO" 5; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3599 $as_echo "yes" >&6; }
3601 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3602 ac_clean_files=$ac_clean_files_save
3603 # Check that the compiler produces executables we can run. If not, either
3604 # the compiler is broken, or we cross compile.
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3606 $as_echo_n "checking whether we are cross compiling... " >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3608 $as_echo "$cross_compiling" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3611 $as_echo_n "checking for suffix of executables... " >&6; }
3612 if { { ac_try="$ac_link"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link") 2>&5
3620 ac_status=$?
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3624 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3625 # work properly (i.e., refer to `conftest.exe'), while it won't with
3626 # `rm'.
3627 for ac_file in conftest.exe conftest conftest.*; do
3628 test -f "$ac_file" || continue
3629 case $ac_file in
3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3631 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3632 break;;
3633 * ) break;;
3634 esac
3635 done
3636 else
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error "cannot compute suffix of executables: cannot compile and link
3640 See \`config.log' for more details." "$LINENO" 5; }
3642 rm -f conftest$ac_cv_exeext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3644 $as_echo "$ac_cv_exeext" >&6; }
3646 rm -f conftest.$ac_ext
3647 EXEEXT=$ac_cv_exeext
3648 ac_exeext=$EXEEXT
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3650 $as_echo_n "checking for suffix of object files... " >&6; }
3651 if test "${ac_cv_objext+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3658 main ()
3662 return 0;
3664 _ACEOF
3665 rm -f conftest.o conftest.obj
3666 if { { ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compile") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 for ac_file in conftest.o conftest.obj conftest.*; do
3678 test -f "$ac_file" || continue;
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682 break;;
3683 esac
3684 done
3685 else
3686 $as_echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error "cannot compute suffix of object files: cannot compile
3692 See \`config.log' for more details." "$LINENO" 5; }
3694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3697 $as_echo "$ac_cv_objext" >&6; }
3698 OBJEXT=$ac_cv_objext
3699 ac_objext=$OBJEXT
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3702 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3709 main ()
3711 #ifndef __GNUC__
3712 choke me
3713 #endif
3716 return 0;
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_compiler_gnu=yes
3721 else
3722 ac_compiler_gnu=no
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3729 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3730 if test $ac_compiler_gnu = yes; then
3731 GCC=yes
3732 else
3733 GCC=
3735 ac_test_CFLAGS=${CFLAGS+set}
3736 ac_save_CFLAGS=$CFLAGS
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3738 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3739 if test "${ac_cv_prog_cc_g+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 ac_save_c_werror_flag=$ac_c_werror_flag
3743 ac_c_werror_flag=yes
3744 ac_cv_prog_cc_g=no
3745 CFLAGS="-g"
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3750 main ()
3754 return 0;
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_cv_prog_cc_g=yes
3759 else
3760 CFLAGS=""
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3765 main ()
3769 return 0;
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3774 else
3775 ac_c_werror_flag=$ac_save_c_werror_flag
3776 CFLAGS="-g"
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3781 main ()
3785 return 0;
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_g=yes
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3799 $as_echo "$ac_cv_prog_cc_g" >&6; }
3800 if test "$ac_test_CFLAGS" = set; then
3801 CFLAGS=$ac_save_CFLAGS
3802 elif test $ac_cv_prog_cc_g = yes; then
3803 if test "$GCC" = yes; then
3804 CFLAGS="-g -O2"
3805 else
3806 CFLAGS="-g"
3808 else
3809 if test "$GCC" = yes; then
3810 CFLAGS="-O2"
3811 else
3812 CFLAGS=
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3817 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 ac_cv_prog_cc_c89=no
3821 ac_save_CC=$CC
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <stdarg.h>
3825 #include <stdio.h>
3826 #include <sys/types.h>
3827 #include <sys/stat.h>
3828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3829 struct buf { int x; };
3830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3831 static char *e (p, i)
3832 char **p;
3833 int i;
3835 return p[i];
3837 static char *f (char * (*g) (char **, int), char **p, ...)
3839 char *s;
3840 va_list v;
3841 va_start (v,p);
3842 s = g (p, va_arg (v,int));
3843 va_end (v);
3844 return s;
3847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3848 function prototypes and stuff, but not '\xHH' hex character constants.
3849 These don't provoke an error unfortunately, instead are silently treated
3850 as 'x'. The following induces an error, until -std is added to get
3851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3852 array size at least. It's necessary to write '\x00'==0 to get something
3853 that's true only with -std. */
3854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3857 inside strings and character constants. */
3858 #define FOO(x) 'x'
3859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3861 int test (int i, double x);
3862 struct s1 {int (*f) (int a);};
3863 struct s2 {int (*f) (double a);};
3864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3865 int argc;
3866 char **argv;
3868 main ()
3870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3872 return 0;
3874 _ACEOF
3875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3878 CC="$ac_save_CC $ac_arg"
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_prog_cc_c89=$ac_arg
3882 rm -f core conftest.err conftest.$ac_objext
3883 test "x$ac_cv_prog_cc_c89" != "xno" && break
3884 done
3885 rm -f conftest.$ac_ext
3886 CC=$ac_save_CC
3889 # AC_CACHE_VAL
3890 case "x$ac_cv_prog_cc_c89" in
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3893 $as_echo "none needed" >&6; } ;;
3894 xno)
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3896 $as_echo "unsupported" >&6; } ;;
3898 CC="$CC $ac_cv_prog_cc_c89"
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3901 esac
3902 if test "x$ac_cv_prog_cc_c89" != xno; then :
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 DEPDIR="${am__leading_dot}deps"
3913 ac_config_commands="$ac_config_commands depfiles"
3916 am_make=${MAKE-make}
3917 cat > confinc << 'END'
3918 am__doit:
3919 @echo this is the am__doit target
3920 .PHONY: am__doit
3922 # If we don't find an include directive, just comment out the code.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3924 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3925 am__include="#"
3926 am__quote=
3927 _am_result=none
3928 # First try GNU make style include.
3929 echo "include confinc" > confmf
3930 # Ignore all kinds of additional output from `make'.
3931 case `$am_make -s -f confmf 2> /dev/null` in #(
3932 *the\ am__doit\ target*)
3933 am__include=include
3934 am__quote=
3935 _am_result=GNU
3937 esac
3938 # Now try BSD make style include.
3939 if test "$am__include" = "#"; then
3940 echo '.include "confinc"' > confmf
3941 case `$am_make -s -f confmf 2> /dev/null` in #(
3942 *the\ am__doit\ target*)
3943 am__include=.include
3944 am__quote="\""
3945 _am_result=BSD
3947 esac
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3952 $as_echo "$_am_result" >&6; }
3953 rm -f confinc confmf
3955 # Check whether --enable-dependency-tracking was given.
3956 if test "${enable_dependency_tracking+set}" = set; then :
3957 enableval=$enable_dependency_tracking;
3960 if test "x$enable_dependency_tracking" != xno; then
3961 am_depcomp="$ac_aux_dir/depcomp"
3962 AMDEPBACKSLASH='\'
3964 if test "x$enable_dependency_tracking" != xno; then
3965 AMDEP_TRUE=
3966 AMDEP_FALSE='#'
3967 else
3968 AMDEP_TRUE='#'
3969 AMDEP_FALSE=
3974 depcc="$CC" am_compiler_list=
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3977 $as_echo_n "checking dependency style of $depcc... " >&6; }
3978 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3982 # We make a subdir and do the tests there. Otherwise we can end up
3983 # making bogus files that we don't know about and never remove. For
3984 # instance it was reported that on HP-UX the gcc test will end up
3985 # making a dummy file named `D' -- because `-MD' means `put the output
3986 # in D'.
3987 mkdir conftest.dir
3988 # Copy depcomp to subdir because otherwise we won't find it if we're
3989 # using a relative directory.
3990 cp "$am_depcomp" conftest.dir
3991 cd conftest.dir
3992 # We will build objects and dependencies in a subdirectory because
3993 # it helps to detect inapplicable dependency modes. For instance
3994 # both Tru64's cc and ICC support -MD to output dependencies as a
3995 # side effect of compilation, but ICC will put the dependencies in
3996 # the current directory while Tru64 will put them in the object
3997 # directory.
3998 mkdir sub
4000 am_cv_CC_dependencies_compiler_type=none
4001 if test "$am_compiler_list" = ""; then
4002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4004 am__universal=false
4005 case " $depcc " in #(
4006 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4007 esac
4009 for depmode in $am_compiler_list; do
4010 # Setup a source with many dependencies, because some compilers
4011 # like to wrap large dependency lists on column 80 (with \), and
4012 # we should not choose a depcomp mode which is confused by this.
4014 # We need to recreate these files for each test, as the compiler may
4015 # overwrite some of them when testing with obscure command lines.
4016 # This happens at least with the AIX C compiler.
4017 : > sub/conftest.c
4018 for i in 1 2 3 4 5 6; do
4019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4020 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4021 # Solaris 8's {/usr,}/bin/sh.
4022 touch sub/conftst$i.h
4023 done
4024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4027 # mode. It turns out that the SunPro C++ compiler does not properly
4028 # handle `-M -o', and we need to detect this. Also, some Intel
4029 # versions had trouble with output in subdirs
4030 am__obj=sub/conftest.${OBJEXT-o}
4031 am__minus_obj="-o $am__obj"
4032 case $depmode in
4033 gcc)
4034 # This depmode causes a compiler race in universal mode.
4035 test "$am__universal" = false || continue
4037 nosideeffect)
4038 # after this tag, mechanisms are not by side-effect, so they'll
4039 # only be used when explicitly requested
4040 if test "x$enable_dependency_tracking" = xyes; then
4041 continue
4042 else
4043 break
4046 msvisualcpp | msvcmsys)
4047 # This compiler won't grok `-c -o', but also, the minuso test has
4048 # not run yet. These depmodes are late enough in the game, and
4049 # so weak that their functioning should not be impacted.
4050 am__obj=conftest.${OBJEXT-o}
4051 am__minus_obj=
4053 none) break ;;
4054 esac
4055 if depmode=$depmode \
4056 source=sub/conftest.c object=$am__obj \
4057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4058 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4059 >/dev/null 2>conftest.err &&
4060 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4061 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4062 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4064 # icc doesn't choke on unknown options, it will just issue warnings
4065 # or remarks (even with -Werror). So we grep stderr for any message
4066 # that says an option was ignored or not supported.
4067 # When given -MP, icc 7.0 and 7.1 complain thusly:
4068 # icc: Command line warning: ignoring option '-M'; no argument required
4069 # The diagnosis changed in icc 8.0:
4070 # icc: Command line remark: option '-MP' not supported
4071 if (grep 'ignoring option' conftest.err ||
4072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4073 am_cv_CC_dependencies_compiler_type=$depmode
4074 break
4077 done
4079 cd ..
4080 rm -rf conftest.dir
4081 else
4082 am_cv_CC_dependencies_compiler_type=none
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4087 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4088 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4091 test "x$enable_dependency_tracking" != xno \
4092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4093 am__fastdepCC_TRUE=
4094 am__fastdepCC_FALSE='#'
4095 else
4096 am__fastdepCC_TRUE='#'
4097 am__fastdepCC_FALSE=
4101 ac_ext=go
4102 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4103 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compile_gnu=yes
4105 if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4107 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if test "${ac_cv_prog_GOC+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -n "$GOC"; then
4114 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4127 done
4128 done
4129 IFS=$as_save_IFS
4133 GOC=$ac_cv_prog_GOC
4134 if test -n "$GOC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4136 $as_echo "$GOC" >&6; }
4137 else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4144 if test -z "$ac_cv_prog_GOC"; then
4145 ac_ct_GOC=$GOC
4146 # Extract the first word of "gccgo", so it can be a program name with args.
4147 set dummy gccgo; ac_word=$2
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 $as_echo_n "checking for $ac_word... " >&6; }
4150 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 if test -n "$ac_ct_GOC"; then
4154 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163 ac_cv_prog_ac_ct_GOC="gccgo"
4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4169 IFS=$as_save_IFS
4173 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4174 if test -n "$ac_ct_GOC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4176 $as_echo "$ac_ct_GOC" >&6; }
4177 else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4182 if test "x$ac_ct_GOC" = x; then
4183 GOC=""
4184 else
4185 case $cross_compiling:$ac_tool_warned in
4186 yes:)
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4189 ac_tool_warned=yes ;;
4190 esac
4191 GOC=$ac_ct_GOC
4193 else
4194 GOC="$ac_cv_prog_GOC"
4197 if test -z "$GOC"; then
4198 if test -n "$ac_tool_prefix"; then
4199 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4200 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_GOC+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$GOC"; then
4207 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 GOC=$ac_cv_prog_GOC
4227 if test -n "$GOC"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4229 $as_echo "$GOC" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4238 if test -z "$GOC"; then
4239 # Extract the first word of "gccgo", so it can be a program name with args.
4240 set dummy gccgo; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if test "${ac_cv_prog_GOC+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$GOC"; then
4247 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4248 else
4249 ac_prog_rejected=no
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4258 ac_prog_rejected=yes
4259 continue
4261 ac_cv_prog_GOC="gccgo"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4267 IFS=$as_save_IFS
4269 if test $ac_prog_rejected = yes; then
4270 # We found a bogon in the path, so make sure we never use it.
4271 set dummy $ac_cv_prog_GOC
4272 shift
4273 if test $# != 0; then
4274 # We chose a different compiler from the bogus one.
4275 # However, it has the same basename, so the bogon will be chosen
4276 # first if we set GOC to just the basename; use the full file name.
4277 shift
4278 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4283 GOC=$ac_cv_prog_GOC
4284 if test -n "$GOC"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4286 $as_echo "$GOC" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4296 # Provide some information about the compiler.
4297 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4298 set X $ac_compile
4299 ac_compiler=$2
4300 { { ac_try="$ac_compiler --version >&5"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler --version >&5") 2>conftest.err
4308 ac_status=$?
4309 if test -s conftest.err; then
4310 sed '10a\
4311 ... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318 GOCFLAGS="-g -O2"
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4331 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4332 # Check whether --enable-maintainer-mode was given.
4333 if test "${enable_maintainer_mode+set}" = set; then :
4334 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4335 else
4336 USE_MAINTAINER_MODE=no
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4340 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4341 if test $USE_MAINTAINER_MODE = yes; then
4342 MAINTAINER_MODE_TRUE=
4343 MAINTAINER_MODE_FALSE='#'
4344 else
4345 MAINTAINER_MODE_TRUE='#'
4346 MAINTAINER_MODE_FALSE=
4349 MAINT=$MAINTAINER_MODE_TRUE
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4354 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4355 if test "${ac_cv_path_SED+set}" = set; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4359 for ac_i in 1 2 3 4 5 6 7; do
4360 ac_script="$ac_script$as_nl$ac_script"
4361 done
4362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4363 { ac_script=; unset ac_script;}
4364 if test -z "$SED"; then
4365 ac_path_SED_found=false
4366 # Loop through the user's path and test for each of PROGNAME-LIST
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_prog in sed gsed; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4375 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4376 # Check for GNU ac_path_SED and select it if it is found.
4377 # Check for GNU $ac_path_SED
4378 case `"$ac_path_SED" --version 2>&1` in
4379 *GNU*)
4380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4382 ac_count=0
4383 $as_echo_n 0123456789 >"conftest.in"
4384 while :
4386 cat "conftest.in" "conftest.in" >"conftest.tmp"
4387 mv "conftest.tmp" "conftest.in"
4388 cp "conftest.in" "conftest.nl"
4389 $as_echo '' >> "conftest.nl"
4390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4392 as_fn_arith $ac_count + 1 && ac_count=$as_val
4393 if test $ac_count -gt ${ac_path_SED_max-0}; then
4394 # Best one so far, save it but keep looking for a better one
4395 ac_cv_path_SED="$ac_path_SED"
4396 ac_path_SED_max=$ac_count
4398 # 10*(2^10) chars as input seems more than enough
4399 test $ac_count -gt 10 && break
4400 done
4401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402 esac
4404 $ac_path_SED_found && break 3
4405 done
4406 done
4407 done
4408 IFS=$as_save_IFS
4409 if test -z "$ac_cv_path_SED"; then
4410 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4412 else
4413 ac_cv_path_SED=$SED
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4418 $as_echo "$ac_cv_path_SED" >&6; }
4419 SED="$ac_cv_path_SED"
4420 rm -f conftest.sed
4422 test -z "$SED" && SED=sed
4423 Xsed="$SED -e 1s/^X//"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4436 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4437 if test "${ac_cv_path_GREP+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -z "$GREP"; then
4441 ac_path_GREP_found=false
4442 # Loop through the user's path and test for each of PROGNAME-LIST
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_prog in grep ggrep; do
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4451 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4452 # Check for GNU ac_path_GREP and select it if it is found.
4453 # Check for GNU $ac_path_GREP
4454 case `"$ac_path_GREP" --version 2>&1` in
4455 *GNU*)
4456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4458 ac_count=0
4459 $as_echo_n 0123456789 >"conftest.in"
4460 while :
4462 cat "conftest.in" "conftest.in" >"conftest.tmp"
4463 mv "conftest.tmp" "conftest.in"
4464 cp "conftest.in" "conftest.nl"
4465 $as_echo 'GREP' >> "conftest.nl"
4466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468 as_fn_arith $ac_count + 1 && ac_count=$as_val
4469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4470 # Best one so far, save it but keep looking for a better one
4471 ac_cv_path_GREP="$ac_path_GREP"
4472 ac_path_GREP_max=$ac_count
4474 # 10*(2^10) chars as input seems more than enough
4475 test $ac_count -gt 10 && break
4476 done
4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4478 esac
4480 $ac_path_GREP_found && break 3
4481 done
4482 done
4483 done
4484 IFS=$as_save_IFS
4485 if test -z "$ac_cv_path_GREP"; then
4486 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488 else
4489 ac_cv_path_GREP=$GREP
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4494 $as_echo "$ac_cv_path_GREP" >&6; }
4495 GREP="$ac_cv_path_GREP"
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4499 $as_echo_n "checking for egrep... " >&6; }
4500 if test "${ac_cv_path_EGREP+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504 then ac_cv_path_EGREP="$GREP -E"
4505 else
4506 if test -z "$EGREP"; then
4507 ac_path_EGREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in egrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4518 # Check for GNU ac_path_EGREP and select it if it is found.
4519 # Check for GNU $ac_path_EGREP
4520 case `"$ac_path_EGREP" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'EGREP' >> "conftest.nl"
4532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_EGREP="$ac_path_EGREP"
4538 ac_path_EGREP_max=$ac_count
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4546 $ac_path_EGREP_found && break 3
4547 done
4548 done
4549 done
4550 IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_EGREP"; then
4552 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4554 else
4555 ac_cv_path_EGREP=$EGREP
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4561 $as_echo "$ac_cv_path_EGREP" >&6; }
4562 EGREP="$ac_cv_path_EGREP"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4566 $as_echo_n "checking for fgrep... " >&6; }
4567 if test "${ac_cv_path_FGREP+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4571 then ac_cv_path_FGREP="$GREP -F"
4572 else
4573 if test -z "$FGREP"; then
4574 ac_path_FGREP_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in fgrep; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4584 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4585 # Check for GNU ac_path_FGREP and select it if it is found.
4586 # Check for GNU $ac_path_FGREP
4587 case `"$ac_path_FGREP" --version 2>&1` in
4588 *GNU*)
4589 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4591 ac_count=0
4592 $as_echo_n 0123456789 >"conftest.in"
4593 while :
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo 'FGREP' >> "conftest.nl"
4599 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
4602 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_FGREP="$ac_path_FGREP"
4605 ac_path_FGREP_max=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4609 done
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4613 $ac_path_FGREP_found && break 3
4614 done
4615 done
4616 done
4617 IFS=$as_save_IFS
4618 if test -z "$ac_cv_path_FGREP"; then
4619 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4621 else
4622 ac_cv_path_FGREP=$FGREP
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4628 $as_echo "$ac_cv_path_FGREP" >&6; }
4629 FGREP="$ac_cv_path_FGREP"
4632 test -z "$GREP" && GREP=grep
4650 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4651 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4652 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4655 $as_echo_n "checking how to print strings... " >&6; }
4656 # Test print first, because it will be a builtin if present.
4657 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4658 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4659 ECHO='print -r --'
4660 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4661 ECHO='printf %s\n'
4662 else
4663 # Use this function as a fallback that always works.
4664 func_fallback_echo ()
4666 eval 'cat <<_LTECHO_EOF
4668 _LTECHO_EOF'
4670 ECHO='func_fallback_echo'
4673 # func_echo_all arg...
4674 # Invoke $ECHO with all args, space-separated.
4675 func_echo_all ()
4677 $ECHO ""
4680 case "$ECHO" in
4681 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4682 $as_echo "printf" >&6; } ;;
4683 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4684 $as_echo "print -r" >&6; } ;;
4685 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4686 $as_echo "cat" >&6; } ;;
4687 esac
4704 # Check whether --with-gnu-ld was given.
4705 if test "${with_gnu_ld+set}" = set; then :
4706 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4707 else
4708 with_gnu_ld=no
4711 ac_prog=ld
4712 if test "$GCC" = yes; then
4713 # Check if gcc -print-prog-name=ld gives a path.
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4715 $as_echo_n "checking for ld used by $CC... " >&6; }
4716 case $host in
4717 *-*-mingw*)
4718 # gcc leaves a trailing carriage return which upsets mingw
4719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4722 esac
4723 case $ac_prog in
4724 # Accept absolute paths.
4725 [\\/]* | ?:[\\/]*)
4726 re_direlt='/[^/][^/]*/\.\./'
4727 # Canonicalize the pathname of ld
4728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4730 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4731 done
4732 test -z "$LD" && LD="$ac_prog"
4735 # If it fails, then pretend we aren't using GCC.
4736 ac_prog=ld
4739 # If it is relative, then search for the first ld in PATH.
4740 with_gnu_ld=unknown
4742 esac
4743 elif test "$with_gnu_ld" = yes; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4745 $as_echo_n "checking for GNU ld... " >&6; }
4746 else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4748 $as_echo_n "checking for non-GNU ld... " >&6; }
4750 if test "${lt_cv_path_LD+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if test -z "$LD"; then
4754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4755 for ac_dir in $PATH; do
4756 IFS="$lt_save_ifs"
4757 test -z "$ac_dir" && ac_dir=.
4758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4759 lt_cv_path_LD="$ac_dir/$ac_prog"
4760 # Check to see if the program is GNU ld. I'd rather use --version,
4761 # but apparently some variants of GNU ld only accept -v.
4762 # Break only if it was the GNU/non-GNU ld that we prefer.
4763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4764 *GNU* | *'with BFD'*)
4765 test "$with_gnu_ld" != no && break
4768 test "$with_gnu_ld" != yes && break
4770 esac
4772 done
4773 IFS="$lt_save_ifs"
4774 else
4775 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4779 LD="$lt_cv_path_LD"
4780 if test -n "$LD"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4782 $as_echo "$LD" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4787 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4789 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4790 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4794 case `$LD -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 lt_cv_prog_gnu_ld=yes
4799 lt_cv_prog_gnu_ld=no
4801 esac
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4804 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4805 with_gnu_ld=$lt_cv_prog_gnu_ld
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$RANLIB"; then
4824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4839 IFS=$as_save_IFS
4843 RANLIB=$ac_cv_prog_RANLIB
4844 if test -n "$RANLIB"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4846 $as_echo "$RANLIB" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4854 if test -z "$ac_cv_prog_RANLIB"; then
4855 ac_ct_RANLIB=$RANLIB
4856 # Extract the first word of "ranlib", so it can be a program name with args.
4857 set dummy ranlib; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$ac_ct_RANLIB"; then
4864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_RANLIB="ranlib"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4884 if test -n "$ac_ct_RANLIB"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4886 $as_echo "$ac_ct_RANLIB" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4892 if test "x$ac_ct_RANLIB" = x; then
4893 RANLIB=":"
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901 RANLIB=$ac_ct_RANLIB
4903 else
4904 RANLIB="$ac_cv_prog_RANLIB"
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$OBJCOPY"; then
4916 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4931 IFS=$as_save_IFS
4935 OBJCOPY=$ac_cv_prog_OBJCOPY
4936 if test -n "$OBJCOPY"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4938 $as_echo "$OBJCOPY" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4946 if test -z "$ac_cv_prog_OBJCOPY"; then
4947 ac_ct_OBJCOPY=$OBJCOPY
4948 # Extract the first word of "objcopy", so it can be a program name with args.
4949 set dummy objcopy; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -n "$ac_ct_OBJCOPY"; then
4956 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4969 done
4970 done
4971 IFS=$as_save_IFS
4975 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4976 if test -n "$ac_ct_OBJCOPY"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4978 $as_echo "$ac_ct_OBJCOPY" >&6; }
4979 else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4984 if test "x$ac_ct_OBJCOPY" = x; then
4985 OBJCOPY="missing-objcopy"
4986 else
4987 case $cross_compiling:$ac_tool_warned in
4988 yes:)
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991 ac_tool_warned=yes ;;
4992 esac
4993 OBJCOPY=$ac_ct_OBJCOPY
4995 else
4996 OBJCOPY="$ac_cv_prog_OBJCOPY"
5000 enable_dlopen=yes
5004 case `pwd` in
5005 *\ * | *\ *)
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5007 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5008 esac
5012 macro_version='2.2.7a'
5013 macro_revision='1.3134'
5027 ltmain="$ac_aux_dir/ltmain.sh"
5029 # Backslashify metacharacters that are still active within
5030 # double-quoted strings.
5031 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5033 # Same as above, but do not quote variable references.
5034 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5036 # Sed substitution to delay expansion of an escaped shell variable in a
5037 # double_quote_subst'ed string.
5038 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5040 # Sed substitution to delay expansion of an escaped single quote.
5041 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5043 # Sed substitution to avoid accidental globbing in evaled expressions
5044 no_glob_subst='s/\*/\\\*/g'
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5047 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5048 if test "${lt_cv_path_NM+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$NM"; then
5052 # Let the user override the test.
5053 lt_cv_path_NM="$NM"
5054 else
5055 lt_nm_to_check="${ac_tool_prefix}nm"
5056 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5057 lt_nm_to_check="$lt_nm_to_check nm"
5059 for lt_tmp_nm in $lt_nm_to_check; do
5060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5062 IFS="$lt_save_ifs"
5063 test -z "$ac_dir" && ac_dir=.
5064 tmp_nm="$ac_dir/$lt_tmp_nm"
5065 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5066 # Check to see if the nm accepts a BSD-compat flag.
5067 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5068 # nm: unknown option "B" ignored
5069 # Tru64's nm complains that /dev/null is an invalid object file
5070 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5071 */dev/null* | *'Invalid file or object type'*)
5072 lt_cv_path_NM="$tmp_nm -B"
5073 break
5076 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5077 */dev/null*)
5078 lt_cv_path_NM="$tmp_nm -p"
5079 break
5082 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5083 continue # so that we can try to find one that supports BSD flags
5085 esac
5087 esac
5089 done
5090 IFS="$lt_save_ifs"
5091 done
5092 : ${lt_cv_path_NM=no}
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5096 $as_echo "$lt_cv_path_NM" >&6; }
5097 if test "$lt_cv_path_NM" != "no"; then
5098 NM="$lt_cv_path_NM"
5099 else
5100 # Didn't find any BSD compatible name lister, look for dumpbin.
5101 if test -n "$DUMPBIN"; then :
5102 # Let the user override the test.
5103 else
5104 if test -n "$ac_tool_prefix"; then
5105 for ac_prog in dumpbin "link -dump"
5107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$DUMPBIN"; then
5115 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5128 done
5129 done
5130 IFS=$as_save_IFS
5134 DUMPBIN=$ac_cv_prog_DUMPBIN
5135 if test -n "$DUMPBIN"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5137 $as_echo "$DUMPBIN" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5144 test -n "$DUMPBIN" && break
5145 done
5147 if test -z "$DUMPBIN"; then
5148 ac_ct_DUMPBIN=$DUMPBIN
5149 for ac_prog in dumpbin "link -dump"
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$ac_ct_DUMPBIN"; then
5159 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5178 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5179 if test -n "$ac_ct_DUMPBIN"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5181 $as_echo "$ac_ct_DUMPBIN" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 test -n "$ac_ct_DUMPBIN" && break
5189 done
5191 if test "x$ac_ct_DUMPBIN" = x; then
5192 DUMPBIN=":"
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195 yes:)
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5199 esac
5200 DUMPBIN=$ac_ct_DUMPBIN
5204 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5205 *COFF*)
5206 DUMPBIN="$DUMPBIN -symbols"
5209 DUMPBIN=:
5211 esac
5214 if test "$DUMPBIN" != ":"; then
5215 NM="$DUMPBIN"
5218 test -z "$NM" && NM=nm
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5226 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5227 if test "${lt_cv_nm_interface+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 lt_cv_nm_interface="BSD nm"
5231 echo "int some_variable = 0;" > conftest.$ac_ext
5232 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5233 (eval "$ac_compile" 2>conftest.err)
5234 cat conftest.err >&5
5235 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5236 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5239 cat conftest.out >&5
5240 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5241 lt_cv_nm_interface="MS dumpbin"
5243 rm -f conftest*
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5246 $as_echo "$lt_cv_nm_interface" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5249 $as_echo_n "checking whether ln -s works... " >&6; }
5250 LN_S=$as_ln_s
5251 if test "$LN_S" = "ln -s"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5253 $as_echo "yes" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5256 $as_echo "no, using $LN_S" >&6; }
5259 # find the maximum length of command line arguments
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5261 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5262 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5266 teststring="ABCD"
5268 case $build_os in
5269 msdosdjgpp*)
5270 # On DJGPP, this test can blow up pretty badly due to problems in libc
5271 # (any single argument exceeding 2000 bytes causes a buffer overrun
5272 # during glob expansion). Even if it were fixed, the result of this
5273 # check would be larger than it should be.
5274 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5277 gnu*)
5278 # Under GNU Hurd, this test is not required because there is
5279 # no limit to the length of command line arguments.
5280 # Libtool will interpret -1 as no limit whatsoever
5281 lt_cv_sys_max_cmd_len=-1;
5284 cygwin* | mingw* | cegcc*)
5285 # On Win9x/ME, this test blows up -- it succeeds, but takes
5286 # about 5 minutes as the teststring grows exponentially.
5287 # Worse, since 9x/ME are not pre-emptively multitasking,
5288 # you end up with a "frozen" computer, even though with patience
5289 # the test eventually succeeds (with a max line length of 256k).
5290 # Instead, let's just punt: use the minimum linelength reported by
5291 # all of the supported platforms: 8192 (on NT/2K/XP).
5292 lt_cv_sys_max_cmd_len=8192;
5295 mint*)
5296 # On MiNT this can take a long time and run out of memory.
5297 lt_cv_sys_max_cmd_len=8192;
5300 amigaos*)
5301 # On AmigaOS with pdksh, this test takes hours, literally.
5302 # So we just punt and use a minimum line length of 8192.
5303 lt_cv_sys_max_cmd_len=8192;
5306 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5307 # This has been around since 386BSD, at least. Likely further.
5308 if test -x /sbin/sysctl; then
5309 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5310 elif test -x /usr/sbin/sysctl; then
5311 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5312 else
5313 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5315 # And add a safety zone
5316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5320 interix*)
5321 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5322 lt_cv_sys_max_cmd_len=196608
5325 osf*)
5326 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5327 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5328 # nice to cause kernel panics so lets avoid the loop below.
5329 # First set a reasonable default.
5330 lt_cv_sys_max_cmd_len=16384
5332 if test -x /sbin/sysconfig; then
5333 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5334 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5335 esac
5338 sco3.2v5*)
5339 lt_cv_sys_max_cmd_len=102400
5341 sysv5* | sco5v6* | sysv4.2uw2*)
5342 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5343 if test -n "$kargmax"; then
5344 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5345 else
5346 lt_cv_sys_max_cmd_len=32768
5350 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5351 if test -n "$lt_cv_sys_max_cmd_len"; then
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5354 else
5355 # Make teststring a little bigger before we do anything with it.
5356 # a 1K string should be a reasonable start.
5357 for i in 1 2 3 4 5 6 7 8 ; do
5358 teststring=$teststring$teststring
5359 done
5360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5361 # If test is not a shell built-in, we'll probably end up computing a
5362 # maximum length that is only half of the actual maximum length, but
5363 # we can't tell.
5364 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5365 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5366 test $i != 17 # 1/2 MB should be enough
5368 i=`expr $i + 1`
5369 teststring=$teststring$teststring
5370 done
5371 # Only check the string length outside the loop.
5372 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5373 teststring=
5374 # Add a significant safety factor because C++ compilers can tack on
5375 # massive amounts of additional arguments before passing them to the
5376 # linker. It appears as though 1/2 is a usable value.
5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5380 esac
5384 if test -n $lt_cv_sys_max_cmd_len ; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5386 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5389 $as_echo "none" >&6; }
5391 max_cmd_len=$lt_cv_sys_max_cmd_len
5398 : ${CP="cp -f"}
5399 : ${MV="mv -f"}
5400 : ${RM="rm -f"}
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5403 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5404 # Try some XSI features
5405 xsi_shell=no
5406 ( _lt_dummy="a/b/c"
5407 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5408 = c,a/b,, \
5409 && eval 'test $(( 1 + 1 )) -eq 2 \
5410 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5411 && xsi_shell=yes
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5413 $as_echo "$xsi_shell" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5417 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5418 lt_shell_append=no
5419 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5420 >/dev/null 2>&1 \
5421 && lt_shell_append=yes
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5423 $as_echo "$lt_shell_append" >&6; }
5426 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5427 lt_unset=unset
5428 else
5429 lt_unset=false
5436 # test EBCDIC or ASCII
5437 case `echo X|tr X '\101'` in
5438 A) # ASCII based system
5439 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5440 lt_SP2NL='tr \040 \012'
5441 lt_NL2SP='tr \015\012 \040\040'
5443 *) # EBCDIC based system
5444 lt_SP2NL='tr \100 \n'
5445 lt_NL2SP='tr \r\n \100\100'
5447 esac
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5458 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5459 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 lt_cv_ld_reload_flag='-r'
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5465 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5466 reload_flag=$lt_cv_ld_reload_flag
5467 case $reload_flag in
5468 "" | " "*) ;;
5469 *) reload_flag=" $reload_flag" ;;
5470 esac
5471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472 case $host_os in
5473 darwin*)
5474 if test "$GCC" = yes; then
5475 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5476 else
5477 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5480 esac
5490 if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$OBJDUMP"; then
5499 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5512 done
5513 done
5514 IFS=$as_save_IFS
5518 OBJDUMP=$ac_cv_prog_OBJDUMP
5519 if test -n "$OBJDUMP"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5521 $as_echo "$OBJDUMP" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5529 if test -z "$ac_cv_prog_OBJDUMP"; then
5530 ac_ct_OBJDUMP=$OBJDUMP
5531 # Extract the first word of "objdump", so it can be a program name with args.
5532 set dummy objdump; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$ac_ct_OBJDUMP"; then
5539 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5552 done
5553 done
5554 IFS=$as_save_IFS
5558 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5559 if test -n "$ac_ct_OBJDUMP"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5561 $as_echo "$ac_ct_OBJDUMP" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5567 if test "x$ac_ct_OBJDUMP" = x; then
5568 OBJDUMP="false"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571 yes:)
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574 ac_tool_warned=yes ;;
5575 esac
5576 OBJDUMP=$ac_ct_OBJDUMP
5578 else
5579 OBJDUMP="$ac_cv_prog_OBJDUMP"
5582 test -z "$OBJDUMP" && OBJDUMP=objdump
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5593 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5594 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 lt_cv_file_magic_cmd='$MAGIC_CMD'
5598 lt_cv_file_magic_test_file=
5599 lt_cv_deplibs_check_method='unknown'
5600 # Need to set the preceding variable on all platforms that support
5601 # interlibrary dependencies.
5602 # 'none' -- dependencies not supported.
5603 # `unknown' -- same as none, but documents that we really don't know.
5604 # 'pass_all' -- all dependencies passed with no checks.
5605 # 'test_compile' -- check by making test program.
5606 # 'file_magic [[regex]]' -- check by looking for files in library path
5607 # which responds to the $file_magic_cmd with a given extended regex.
5608 # If you have `file' or equivalent on your system and you're not sure
5609 # whether `pass_all' will *always* work, you probably want this one.
5611 case $host_os in
5612 aix[4-9]*)
5613 lt_cv_deplibs_check_method=pass_all
5616 beos*)
5617 lt_cv_deplibs_check_method=pass_all
5620 bsdi[45]*)
5621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5622 lt_cv_file_magic_cmd='/usr/bin/file -L'
5623 lt_cv_file_magic_test_file=/shlib/libc.so
5626 cygwin*)
5627 # func_win32_libid is a shell function defined in ltmain.sh
5628 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5629 lt_cv_file_magic_cmd='func_win32_libid'
5632 mingw* | pw32*)
5633 # Base MSYS/MinGW do not provide the 'file' command needed by
5634 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5635 # unless we find 'file', for example because we are cross-compiling.
5636 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5637 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5639 lt_cv_file_magic_cmd='func_win32_libid'
5640 else
5641 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5642 lt_cv_file_magic_cmd='$OBJDUMP -f'
5646 cegcc*)
5647 # use the weaker test based on 'objdump'. See mingw*.
5648 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5649 lt_cv_file_magic_cmd='$OBJDUMP -f'
5652 darwin* | rhapsody*)
5653 lt_cv_deplibs_check_method=pass_all
5656 freebsd* | dragonfly*)
5657 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5658 case $host_cpu in
5659 i*86 )
5660 # Not sure whether the presence of OpenBSD here was a mistake.
5661 # Let's accept both of them until this is cleared up.
5662 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5663 lt_cv_file_magic_cmd=/usr/bin/file
5664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5666 esac
5667 else
5668 lt_cv_deplibs_check_method=pass_all
5672 gnu*)
5673 lt_cv_deplibs_check_method=pass_all
5676 haiku*)
5677 lt_cv_deplibs_check_method=pass_all
5680 hpux10.20* | hpux11*)
5681 lt_cv_file_magic_cmd=/usr/bin/file
5682 case $host_cpu in
5683 ia64*)
5684 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5685 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5687 hppa*64*)
5688 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]'
5689 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5693 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5695 esac
5698 interix[3-9]*)
5699 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5703 irix5* | irix6* | nonstopux*)
5704 case $LD in
5705 *-32|*"-32 ") libmagic=32-bit;;
5706 *-n32|*"-n32 ") libmagic=N32;;
5707 *-64|*"-64 ") libmagic=64-bit;;
5708 *) libmagic=never-match;;
5709 esac
5710 lt_cv_deplibs_check_method=pass_all
5713 # This must be Linux ELF.
5714 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5715 lt_cv_deplibs_check_method=pass_all
5718 netbsd*)
5719 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5721 else
5722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5726 newos6*)
5727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5728 lt_cv_file_magic_cmd=/usr/bin/file
5729 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5732 *nto* | *qnx*)
5733 lt_cv_deplibs_check_method=pass_all
5736 openbsd*)
5737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5739 else
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5744 osf3* | osf4* | osf5*)
5745 lt_cv_deplibs_check_method=pass_all
5748 rdos*)
5749 lt_cv_deplibs_check_method=pass_all
5752 solaris*)
5753 lt_cv_deplibs_check_method=pass_all
5756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5757 lt_cv_deplibs_check_method=pass_all
5760 sysv4 | sysv4.3*)
5761 case $host_vendor in
5762 motorola)
5763 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]'
5764 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5766 ncr)
5767 lt_cv_deplibs_check_method=pass_all
5769 sequent)
5770 lt_cv_file_magic_cmd='/bin/file'
5771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5773 sni)
5774 lt_cv_file_magic_cmd='/bin/file'
5775 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5776 lt_cv_file_magic_test_file=/lib/libc.so
5778 siemens)
5779 lt_cv_deplibs_check_method=pass_all
5782 lt_cv_deplibs_check_method=pass_all
5784 esac
5787 tpf*)
5788 lt_cv_deplibs_check_method=pass_all
5790 esac
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5794 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5795 file_magic_cmd=$lt_cv_file_magic_cmd
5796 deplibs_check_method=$lt_cv_deplibs_check_method
5797 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ar; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_AR+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$AR"; then
5819 ac_cv_prog_AR="$AR" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_AR="${ac_tool_prefix}ar"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5832 done
5833 done
5834 IFS=$as_save_IFS
5838 AR=$ac_cv_prog_AR
5839 if test -n "$AR"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5841 $as_echo "$AR" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5849 if test -z "$ac_cv_prog_AR"; then
5850 ac_ct_AR=$AR
5851 # Extract the first word of "ar", so it can be a program name with args.
5852 set dummy ar; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_AR"; then
5859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_AR="ar"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5872 done
5873 done
5874 IFS=$as_save_IFS
5878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5879 if test -n "$ac_ct_AR"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5881 $as_echo "$ac_ct_AR" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5887 if test "x$ac_ct_AR" = x; then
5888 AR="false"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 AR=$ac_ct_AR
5898 else
5899 AR="$ac_cv_prog_AR"
5902 test -z "$AR" && AR=ar
5903 test -z "$AR_FLAGS" && AR_FLAGS=cru
5915 if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5917 set dummy ${ac_tool_prefix}strip; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if test "${ac_cv_prog_STRIP+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$STRIP"; then
5924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5937 done
5938 done
5939 IFS=$as_save_IFS
5943 STRIP=$ac_cv_prog_STRIP
5944 if test -n "$STRIP"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5946 $as_echo "$STRIP" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5954 if test -z "$ac_cv_prog_STRIP"; then
5955 ac_ct_STRIP=$STRIP
5956 # Extract the first word of "strip", so it can be a program name with args.
5957 set dummy strip; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$ac_ct_STRIP"; then
5964 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_ac_ct_STRIP="strip"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5977 done
5978 done
5979 IFS=$as_save_IFS
5983 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5984 if test -n "$ac_ct_STRIP"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5986 $as_echo "$ac_ct_STRIP" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5992 if test "x$ac_ct_STRIP" = x; then
5993 STRIP=":"
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996 yes:)
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999 ac_tool_warned=yes ;;
6000 esac
6001 STRIP=$ac_ct_STRIP
6003 else
6004 STRIP="$ac_cv_prog_STRIP"
6007 test -z "$STRIP" && STRIP=:
6014 if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$RANLIB"; then
6023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6036 done
6037 done
6038 IFS=$as_save_IFS
6042 RANLIB=$ac_cv_prog_RANLIB
6043 if test -n "$RANLIB"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6045 $as_echo "$RANLIB" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6053 if test -z "$ac_cv_prog_RANLIB"; then
6054 ac_ct_RANLIB=$RANLIB
6055 # Extract the first word of "ranlib", so it can be a program name with args.
6056 set dummy ranlib; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$ac_ct_RANLIB"; then
6063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_ac_ct_RANLIB="ranlib"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6076 done
6077 done
6078 IFS=$as_save_IFS
6082 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6083 if test -n "$ac_ct_RANLIB"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6085 $as_echo "$ac_ct_RANLIB" >&6; }
6086 else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6091 if test "x$ac_ct_RANLIB" = x; then
6092 RANLIB=":"
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100 RANLIB=$ac_ct_RANLIB
6102 else
6103 RANLIB="$ac_cv_prog_RANLIB"
6106 test -z "$RANLIB" && RANLIB=:
6113 # Determine commands to create old-style static archives.
6114 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6115 old_postinstall_cmds='chmod 644 $oldlib'
6116 old_postuninstall_cmds=
6118 if test -n "$RANLIB"; then
6119 case $host_os in
6120 openbsd*)
6121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6126 esac
6127 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6130 case $host_os in
6131 darwin*)
6132 lock_old_archive_extraction=yes ;;
6134 lock_old_archive_extraction=no ;;
6135 esac
6175 # If no C compiler was specified, use CC.
6176 LTCC=${LTCC-"$CC"}
6178 # If no C compiler flags were specified, use CFLAGS.
6179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6181 # Allow CC to be a program name with arguments.
6182 compiler=$CC
6185 # Check for command to grab the raw symbol name followed by C symbol from nm.
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6187 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6188 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6192 # These are sane defaults that work on at least a few old systems.
6193 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6195 # Character class describing NM global symbol codes.
6196 symcode='[BCDEGRST]'
6198 # Regexp to match symbols that can be accessed directly from C.
6199 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6201 # Define system-specific variables.
6202 case $host_os in
6203 aix*)
6204 symcode='[BCDT]'
6206 cygwin* | mingw* | pw32* | cegcc*)
6207 symcode='[ABCDGISTW]'
6209 hpux*)
6210 if test "$host_cpu" = ia64; then
6211 symcode='[ABCDEGRST]'
6214 irix* | nonstopux*)
6215 symcode='[BCDEGRST]'
6217 osf*)
6218 symcode='[BCDEGQRST]'
6220 solaris*)
6221 symcode='[BDRT]'
6223 sco3.2v5*)
6224 symcode='[DT]'
6226 sysv4.2uw2*)
6227 symcode='[DT]'
6229 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6230 symcode='[ABDT]'
6232 sysv4)
6233 symcode='[DFNSTU]'
6235 esac
6237 # If we're using GNU nm, then use its standard symbol codes.
6238 case `$NM -V 2>&1` in
6239 *GNU* | *'with BFD'*)
6240 symcode='[ABCDGIRSTW]' ;;
6241 esac
6243 # Transform an extracted symbol line into a proper C declaration.
6244 # Some systems (esp. on ia64) link data and code symbols differently,
6245 # so use this general approach.
6246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6248 # Transform an extracted symbol line into symbol name and symbol address
6249 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6250 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'"
6252 # Handle CRLF in mingw tool chain
6253 opt_cr=
6254 case $build_os in
6255 mingw*)
6256 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6258 esac
6260 # Try without a prefix underscore, then with it.
6261 for ac_symprfx in "" "_"; do
6263 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6264 symxfrm="\\1 $ac_symprfx\\2 \\2"
6266 # Write the raw and C identifiers.
6267 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6268 # Fake it for dumpbin and say T for any non-static function
6269 # and D for any global variable.
6270 # Also find C++ and __fastcall symbols from MSVC++,
6271 # which start with @ or ?.
6272 lt_cv_sys_global_symbol_pipe="$AWK '"\
6273 " {last_section=section; section=\$ 3};"\
6274 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6275 " \$ 0!~/External *\|/{next};"\
6276 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6277 " {if(hide[section]) next};"\
6278 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6279 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6280 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6281 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6282 " ' prfx=^$ac_symprfx"
6283 else
6284 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6287 # Check to see that the pipe works correctly.
6288 pipe_works=no
6290 rm -f conftest*
6291 cat > conftest.$ac_ext <<_LT_EOF
6292 #ifdef __cplusplus
6293 extern "C" {
6294 #endif
6295 char nm_test_var;
6296 void nm_test_func(void);
6297 void nm_test_func(void){}
6298 #ifdef __cplusplus
6300 #endif
6301 int main(){nm_test_var='a';nm_test_func();return(0);}
6302 _LT_EOF
6304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6305 (eval $ac_compile) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }; then
6309 # Now try to grab the symbols.
6310 nlist=conftest.nm
6311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6312 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6313 ac_status=$?
6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; } && test -s "$nlist"; then
6316 # Try sorting and uniquifying the output.
6317 if sort "$nlist" | uniq > "$nlist"T; then
6318 mv -f "$nlist"T "$nlist"
6319 else
6320 rm -f "$nlist"T
6323 # Make sure that we snagged all the symbols we need.
6324 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6325 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6326 cat <<_LT_EOF > conftest.$ac_ext
6327 #ifdef __cplusplus
6328 extern "C" {
6329 #endif
6331 _LT_EOF
6332 # Now generate the symbol file.
6333 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6335 cat <<_LT_EOF >> conftest.$ac_ext
6337 /* The mapping between symbol names and symbols. */
6338 const struct {
6339 const char *name;
6340 void *address;
6342 lt__PROGRAM__LTX_preloaded_symbols[] =
6344 { "@PROGRAM@", (void *) 0 },
6345 _LT_EOF
6346 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6347 cat <<\_LT_EOF >> conftest.$ac_ext
6348 {0, (void *) 0}
6351 /* This works around a problem in FreeBSD linker */
6352 #ifdef FREEBSD_WORKAROUND
6353 static const void *lt_preloaded_setup() {
6354 return lt__PROGRAM__LTX_preloaded_symbols;
6356 #endif
6358 #ifdef __cplusplus
6360 #endif
6361 _LT_EOF
6362 # Now try linking the two files.
6363 mv conftest.$ac_objext conftstm.$ac_objext
6364 lt_save_LIBS="$LIBS"
6365 lt_save_CFLAGS="$CFLAGS"
6366 LIBS="conftstm.$ac_objext"
6367 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6369 (eval $ac_link) 2>&5
6370 ac_status=$?
6371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6373 pipe_works=yes
6375 LIBS="$lt_save_LIBS"
6376 CFLAGS="$lt_save_CFLAGS"
6377 else
6378 echo "cannot find nm_test_func in $nlist" >&5
6380 else
6381 echo "cannot find nm_test_var in $nlist" >&5
6383 else
6384 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6386 else
6387 echo "$progname: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6390 rm -rf conftest* conftst*
6392 # Do not use the global_symbol_pipe unless it works.
6393 if test "$pipe_works" = yes; then
6394 break
6395 else
6396 lt_cv_sys_global_symbol_pipe=
6398 done
6402 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6403 lt_cv_sys_global_symbol_to_cdecl=
6405 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6407 $as_echo "failed" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6410 $as_echo "ok" >&6; }
6435 # Check whether --enable-libtool-lock was given.
6436 if test "${enable_libtool_lock+set}" = set; then :
6437 enableval=$enable_libtool_lock;
6440 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6442 # Some flags need to be propagated to the compiler or linker for good
6443 # libtool support.
6444 case $host in
6445 ia64-*-hpux*)
6446 # Find out which ABI we are using.
6447 echo 'int i;' > conftest.$ac_ext
6448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6449 (eval $ac_compile) 2>&5
6450 ac_status=$?
6451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452 test $ac_status = 0; }; then
6453 case `/usr/bin/file conftest.$ac_objext` in
6454 *ELF-32*)
6455 HPUX_IA64_MODE="32"
6457 *ELF-64*)
6458 HPUX_IA64_MODE="64"
6460 esac
6462 rm -rf conftest*
6464 *-*-irix6*)
6465 # Find out which ABI we are using.
6466 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468 (eval $ac_compile) 2>&5
6469 ac_status=$?
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; }; then
6472 if test "$lt_cv_prog_gnu_ld" = yes; then
6473 case `/usr/bin/file conftest.$ac_objext` in
6474 *32-bit*)
6475 LD="${LD-ld} -melf32bsmip"
6477 *N32*)
6478 LD="${LD-ld} -melf32bmipn32"
6480 *64-bit*)
6481 LD="${LD-ld} -melf64bmip"
6483 esac
6484 else
6485 case `/usr/bin/file conftest.$ac_objext` in
6486 *32-bit*)
6487 LD="${LD-ld} -32"
6489 *N32*)
6490 LD="${LD-ld} -n32"
6492 *64-bit*)
6493 LD="${LD-ld} -64"
6495 esac
6498 rm -rf conftest*
6501 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6502 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6503 # Find out which ABI we are using.
6504 echo 'int i;' > conftest.$ac_ext
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506 (eval $ac_compile) 2>&5
6507 ac_status=$?
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 case `/usr/bin/file conftest.o` in
6511 *32-bit*)
6512 case $host in
6513 x86_64-*kfreebsd*-gnu)
6514 LD="${LD-ld} -m elf_i386_fbsd"
6516 x86_64-*linux*)
6517 LD="${LD-ld} -m elf_i386"
6519 ppc64-*linux*|powerpc64-*linux*)
6520 LD="${LD-ld} -m elf32ppclinux"
6522 s390x-*linux*)
6523 LD="${LD-ld} -m elf_s390"
6525 sparc64-*linux*)
6526 LD="${LD-ld} -m elf32_sparc"
6528 esac
6530 *64-bit*)
6531 case $host in
6532 x86_64-*kfreebsd*-gnu)
6533 LD="${LD-ld} -m elf_x86_64_fbsd"
6535 x86_64-*linux*)
6536 LD="${LD-ld} -m elf_x86_64"
6538 ppc*-*linux*|powerpc*-*linux*)
6539 LD="${LD-ld} -m elf64ppc"
6541 s390*-*linux*|s390*-*tpf*)
6542 LD="${LD-ld} -m elf64_s390"
6544 sparc*-*linux*)
6545 LD="${LD-ld} -m elf64_sparc"
6547 esac
6549 esac
6551 rm -rf conftest*
6554 *-*-sco3.2v5*)
6555 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6556 SAVE_CFLAGS="$CFLAGS"
6557 CFLAGS="$CFLAGS -belf"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6559 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6560 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 ac_ext=c
6564 ac_cpp='$CPP $CPPFLAGS'
6565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6573 main ()
6577 return 0;
6579 _ACEOF
6580 if ac_fn_c_try_link "$LINENO"; then :
6581 lt_cv_cc_needs_belf=yes
6582 else
6583 lt_cv_cc_needs_belf=no
6585 rm -f core conftest.err conftest.$ac_objext \
6586 conftest$ac_exeext conftest.$ac_ext
6587 ac_ext=c
6588 ac_cpp='$CPP $CPPFLAGS'
6589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6595 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6596 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6597 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6598 CFLAGS="$SAVE_CFLAGS"
6601 *-*solaris*)
6602 # Find out which ABI we are using.
6603 echo 'int i;' > conftest.$ac_ext
6604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6605 (eval $ac_compile) 2>&5
6606 ac_status=$?
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }; then
6609 case `/usr/bin/file conftest.o` in
6610 *64-bit*)
6611 case $lt_cv_prog_gnu_ld in
6612 yes*)
6613 case $host in
6614 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6615 LD="${LD-ld} -m elf_x86_64"
6617 sparc*-*-solaris*)
6618 LD="${LD-ld} -m elf64_sparc"
6620 esac
6621 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6622 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6623 LD="${LD-ld}_sol2"
6627 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6628 LD="${LD-ld} -64"
6631 esac
6633 esac
6635 rm -rf conftest*
6637 esac
6639 need_locks="$enable_libtool_lock"
6642 case $host_os in
6643 rhapsody* | darwin*)
6644 if test -n "$ac_tool_prefix"; then
6645 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6646 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 if test -n "$DSYMUTIL"; then
6653 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6666 done
6667 done
6668 IFS=$as_save_IFS
6672 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6673 if test -n "$DSYMUTIL"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6675 $as_echo "$DSYMUTIL" >&6; }
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6683 if test -z "$ac_cv_prog_DSYMUTIL"; then
6684 ac_ct_DSYMUTIL=$DSYMUTIL
6685 # Extract the first word of "dsymutil", so it can be a program name with args.
6686 set dummy dsymutil; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$ac_ct_DSYMUTIL"; then
6693 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6706 done
6707 done
6708 IFS=$as_save_IFS
6712 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6713 if test -n "$ac_ct_DSYMUTIL"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6715 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6721 if test "x$ac_ct_DSYMUTIL" = x; then
6722 DSYMUTIL=":"
6723 else
6724 case $cross_compiling:$ac_tool_warned in
6725 yes:)
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728 ac_tool_warned=yes ;;
6729 esac
6730 DSYMUTIL=$ac_ct_DSYMUTIL
6732 else
6733 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6736 if test -n "$ac_tool_prefix"; then
6737 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6738 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 if test -n "$NMEDIT"; then
6745 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6758 done
6759 done
6760 IFS=$as_save_IFS
6764 NMEDIT=$ac_cv_prog_NMEDIT
6765 if test -n "$NMEDIT"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6767 $as_echo "$NMEDIT" >&6; }
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6775 if test -z "$ac_cv_prog_NMEDIT"; then
6776 ac_ct_NMEDIT=$NMEDIT
6777 # Extract the first word of "nmedit", so it can be a program name with args.
6778 set dummy nmedit; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if test -n "$ac_ct_NMEDIT"; then
6785 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6804 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6805 if test -n "$ac_ct_NMEDIT"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6807 $as_echo "$ac_ct_NMEDIT" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6813 if test "x$ac_ct_NMEDIT" = x; then
6814 NMEDIT=":"
6815 else
6816 case $cross_compiling:$ac_tool_warned in
6817 yes:)
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820 ac_tool_warned=yes ;;
6821 esac
6822 NMEDIT=$ac_ct_NMEDIT
6824 else
6825 NMEDIT="$ac_cv_prog_NMEDIT"
6828 if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6830 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if test "${ac_cv_prog_LIPO+set}" = set; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 if test -n "$LIPO"; then
6837 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6850 done
6851 done
6852 IFS=$as_save_IFS
6856 LIPO=$ac_cv_prog_LIPO
6857 if test -n "$LIPO"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6859 $as_echo "$LIPO" >&6; }
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6867 if test -z "$ac_cv_prog_LIPO"; then
6868 ac_ct_LIPO=$LIPO
6869 # Extract the first word of "lipo", so it can be a program name with args.
6870 set dummy lipo; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$ac_ct_LIPO"; then
6877 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_ac_ct_LIPO="lipo"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6890 done
6891 done
6892 IFS=$as_save_IFS
6896 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6897 if test -n "$ac_ct_LIPO"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6899 $as_echo "$ac_ct_LIPO" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6905 if test "x$ac_ct_LIPO" = x; then
6906 LIPO=":"
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909 yes:)
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912 ac_tool_warned=yes ;;
6913 esac
6914 LIPO=$ac_ct_LIPO
6916 else
6917 LIPO="$ac_cv_prog_LIPO"
6920 if test -n "$ac_tool_prefix"; then
6921 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6922 set dummy ${ac_tool_prefix}otool; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 if test -n "$OTOOL"; then
6929 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6942 done
6943 done
6944 IFS=$as_save_IFS
6948 OTOOL=$ac_cv_prog_OTOOL
6949 if test -n "$OTOOL"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6951 $as_echo "$OTOOL" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6959 if test -z "$ac_cv_prog_OTOOL"; then
6960 ac_ct_OTOOL=$OTOOL
6961 # Extract the first word of "otool", so it can be a program name with args.
6962 set dummy otool; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$ac_ct_OTOOL"; then
6969 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_ac_ct_OTOOL="otool"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6982 done
6983 done
6984 IFS=$as_save_IFS
6988 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6989 if test -n "$ac_ct_OTOOL"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6991 $as_echo "$ac_ct_OTOOL" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6997 if test "x$ac_ct_OTOOL" = x; then
6998 OTOOL=":"
6999 else
7000 case $cross_compiling:$ac_tool_warned in
7001 yes:)
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004 ac_tool_warned=yes ;;
7005 esac
7006 OTOOL=$ac_ct_OTOOL
7008 else
7009 OTOOL="$ac_cv_prog_OTOOL"
7012 if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7014 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 if test -n "$OTOOL64"; then
7021 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7034 done
7035 done
7036 IFS=$as_save_IFS
7040 OTOOL64=$ac_cv_prog_OTOOL64
7041 if test -n "$OTOOL64"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7043 $as_echo "$OTOOL64" >&6; }
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7051 if test -z "$ac_cv_prog_OTOOL64"; then
7052 ac_ct_OTOOL64=$OTOOL64
7053 # Extract the first word of "otool64", so it can be a program name with args.
7054 set dummy otool64; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 if test -n "$ac_ct_OTOOL64"; then
7061 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_ac_ct_OTOOL64="otool64"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7074 done
7075 done
7076 IFS=$as_save_IFS
7080 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7081 if test -n "$ac_ct_OTOOL64"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7083 $as_echo "$ac_ct_OTOOL64" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7089 if test "x$ac_ct_OTOOL64" = x; then
7090 OTOOL64=":"
7091 else
7092 case $cross_compiling:$ac_tool_warned in
7093 yes:)
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096 ac_tool_warned=yes ;;
7097 esac
7098 OTOOL64=$ac_ct_OTOOL64
7100 else
7101 OTOOL64="$ac_cv_prog_OTOOL64"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7131 $as_echo_n "checking for -single_module linker flag... " >&6; }
7132 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 lt_cv_apple_cc_single_mod=no
7136 if test -z "${LT_MULTI_MODULE}"; then
7137 # By default we will add the -single_module flag. You can override
7138 # by either setting the environment variable LT_MULTI_MODULE
7139 # non-empty at configure time, or by adding -multi_module to the
7140 # link flags.
7141 rm -rf libconftest.dylib*
7142 echo "int foo(void){return 1;}" > conftest.c
7143 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7144 -dynamiclib -Wl,-single_module conftest.c" >&5
7145 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7146 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7147 _lt_result=$?
7148 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7149 lt_cv_apple_cc_single_mod=yes
7150 else
7151 cat conftest.err >&5
7153 rm -rf libconftest.dylib*
7154 rm -f conftest.*
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7158 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7160 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7161 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 lt_cv_ld_exported_symbols_list=no
7165 save_LDFLAGS=$LDFLAGS
7166 echo "_main" > conftest.sym
7167 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7172 main ()
7176 return 0;
7178 _ACEOF
7179 if ac_fn_c_try_link "$LINENO"; then :
7180 lt_cv_ld_exported_symbols_list=yes
7181 else
7182 lt_cv_ld_exported_symbols_list=no
7184 rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 LDFLAGS="$save_LDFLAGS"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7190 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7192 $as_echo_n "checking for -force_load linker flag... " >&6; }
7193 if test "${lt_cv_ld_force_load+set}" = set; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 lt_cv_ld_force_load=no
7197 cat > conftest.c << _LT_EOF
7198 int forced_loaded() { return 2;}
7199 _LT_EOF
7200 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7201 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7202 echo "$AR cru libconftest.a conftest.o" >&5
7203 $AR cru libconftest.a conftest.o 2>&5
7204 cat > conftest.c << _LT_EOF
7205 int main() { return 0;}
7206 _LT_EOF
7207 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7208 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7209 _lt_result=$?
7210 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7211 lt_cv_ld_force_load=yes
7212 else
7213 cat conftest.err >&5
7215 rm -f conftest.err libconftest.a conftest conftest.c
7216 rm -rf conftest.dSYM
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7220 $as_echo "$lt_cv_ld_force_load" >&6; }
7221 case $host_os in
7222 rhapsody* | darwin1.[012])
7223 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7224 darwin1.*)
7225 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7226 darwin*) # darwin 5.x on
7227 # if running on 10.5 or later, the deployment target defaults
7228 # to the OS version, if on x86, and 10.4, the deployment
7229 # target defaults to 10.4. Don't you love it?
7230 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7231 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7232 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7233 10.[012]*)
7234 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7235 10.*)
7236 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7237 esac
7239 esac
7240 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7241 _lt_dar_single_mod='$single_module'
7243 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7244 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7245 else
7246 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7248 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7249 _lt_dsymutil='~$DSYMUTIL $lib || :'
7250 else
7251 _lt_dsymutil=
7254 esac
7256 ac_ext=c
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7262 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7263 # On Suns, sometimes $CPP names a directory.
7264 if test -n "$CPP" && test -d "$CPP"; then
7265 CPP=
7267 if test -z "$CPP"; then
7268 if test "${ac_cv_prog_CPP+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 # Double quotes because CPP needs to be expanded
7272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7274 ac_preproc_ok=false
7275 for ac_c_preproc_warn_flag in '' yes
7277 # Use a header file that comes with gcc, so configuring glibc
7278 # with a fresh cross-compiler works.
7279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7280 # <limits.h> exists even on freestanding compilers.
7281 # On the NeXT, cc -E runs the code through the compiler's parser,
7282 # not just through cpp. "Syntax error" is here to catch this case.
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #ifdef __STDC__
7286 # include <limits.h>
7287 #else
7288 # include <assert.h>
7289 #endif
7290 Syntax error
7291 _ACEOF
7292 if ac_fn_c_try_cpp "$LINENO"; then :
7294 else
7295 # Broken: fails on valid input.
7296 continue
7298 rm -f conftest.err conftest.$ac_ext
7300 # OK, works on sane cases. Now check whether nonexistent headers
7301 # can be detected and how.
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <ac_nonexistent.h>
7305 _ACEOF
7306 if ac_fn_c_try_cpp "$LINENO"; then :
7307 # Broken: success on invalid input.
7308 continue
7309 else
7310 # Passes both tests.
7311 ac_preproc_ok=:
7312 break
7314 rm -f conftest.err conftest.$ac_ext
7316 done
7317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7318 rm -f conftest.err conftest.$ac_ext
7319 if $ac_preproc_ok; then :
7320 break
7323 done
7324 ac_cv_prog_CPP=$CPP
7327 CPP=$ac_cv_prog_CPP
7328 else
7329 ac_cv_prog_CPP=$CPP
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7332 $as_echo "$CPP" >&6; }
7333 ac_preproc_ok=false
7334 for ac_c_preproc_warn_flag in '' yes
7336 # Use a header file that comes with gcc, so configuring glibc
7337 # with a fresh cross-compiler works.
7338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7339 # <limits.h> exists even on freestanding compilers.
7340 # On the NeXT, cc -E runs the code through the compiler's parser,
7341 # not just through cpp. "Syntax error" is here to catch this case.
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #ifdef __STDC__
7345 # include <limits.h>
7346 #else
7347 # include <assert.h>
7348 #endif
7349 Syntax error
7350 _ACEOF
7351 if ac_fn_c_try_cpp "$LINENO"; then :
7353 else
7354 # Broken: fails on valid input.
7355 continue
7357 rm -f conftest.err conftest.$ac_ext
7359 # OK, works on sane cases. Now check whether nonexistent headers
7360 # can be detected and how.
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 #include <ac_nonexistent.h>
7364 _ACEOF
7365 if ac_fn_c_try_cpp "$LINENO"; then :
7366 # Broken: success on invalid input.
7367 continue
7368 else
7369 # Passes both tests.
7370 ac_preproc_ok=:
7371 break
7373 rm -f conftest.err conftest.$ac_ext
7375 done
7376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7377 rm -f conftest.err conftest.$ac_ext
7378 if $ac_preproc_ok; then :
7380 else
7381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7383 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7384 See \`config.log' for more details." "$LINENO" 5; }
7387 ac_ext=c
7388 ac_cpp='$CPP $CPPFLAGS'
7389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7395 $as_echo_n "checking for ANSI C header files... " >&6; }
7396 if test "${ac_cv_header_stdc+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 #include <stdlib.h>
7402 #include <stdarg.h>
7403 #include <string.h>
7404 #include <float.h>
7407 main ()
7411 return 0;
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415 ac_cv_header_stdc=yes
7416 else
7417 ac_cv_header_stdc=no
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 if test $ac_cv_header_stdc = yes; then
7422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #include <string.h>
7427 _ACEOF
7428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429 $EGREP "memchr" >/dev/null 2>&1; then :
7431 else
7432 ac_cv_header_stdc=no
7434 rm -f conftest*
7438 if test $ac_cv_header_stdc = yes; then
7439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <stdlib.h>
7444 _ACEOF
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446 $EGREP "free" >/dev/null 2>&1; then :
7448 else
7449 ac_cv_header_stdc=no
7451 rm -f conftest*
7455 if test $ac_cv_header_stdc = yes; then
7456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7457 if test "$cross_compiling" = yes; then :
7459 else
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <ctype.h>
7463 #include <stdlib.h>
7464 #if ((' ' & 0x0FF) == 0x020)
7465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7467 #else
7468 # define ISLOWER(c) \
7469 (('a' <= (c) && (c) <= 'i') \
7470 || ('j' <= (c) && (c) <= 'r') \
7471 || ('s' <= (c) && (c) <= 'z'))
7472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7473 #endif
7475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7477 main ()
7479 int i;
7480 for (i = 0; i < 256; i++)
7481 if (XOR (islower (i), ISLOWER (i))
7482 || toupper (i) != TOUPPER (i))
7483 return 2;
7484 return 0;
7486 _ACEOF
7487 if ac_fn_c_try_run "$LINENO"; then :
7489 else
7490 ac_cv_header_stdc=no
7492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7493 conftest.$ac_objext conftest.beam conftest.$ac_ext
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7499 $as_echo "$ac_cv_header_stdc" >&6; }
7500 if test $ac_cv_header_stdc = yes; then
7502 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7506 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7508 inttypes.h stdint.h unistd.h
7509 do :
7510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7511 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7513 eval as_val=\$$as_ac_Header
7514 if test "x$as_val" = x""yes; then :
7515 cat >>confdefs.h <<_ACEOF
7516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7517 _ACEOF
7521 done
7524 for ac_header in dlfcn.h
7525 do :
7526 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7528 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7529 cat >>confdefs.h <<_ACEOF
7530 #define HAVE_DLFCN_H 1
7531 _ACEOF
7535 done
7537 if test -n "$ac_tool_prefix"; then
7538 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_GOC+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 if test -n "$GOC"; then
7546 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7559 done
7560 done
7561 IFS=$as_save_IFS
7565 GOC=$ac_cv_prog_GOC
7566 if test -n "$GOC"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7568 $as_echo "$GOC" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7576 if test -z "$ac_cv_prog_GOC"; then
7577 ac_ct_GOC=$GOC
7578 # Extract the first word of "gccgo", so it can be a program name with args.
7579 set dummy gccgo; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 if test -n "$ac_ct_GOC"; then
7586 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_ac_ct_GOC="gccgo"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7599 done
7600 done
7601 IFS=$as_save_IFS
7605 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7606 if test -n "$ac_ct_GOC"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7608 $as_echo "$ac_ct_GOC" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7614 if test "x$ac_ct_GOC" = x; then
7615 GOC=""
7616 else
7617 case $cross_compiling:$ac_tool_warned in
7618 yes:)
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7622 esac
7623 GOC=$ac_ct_GOC
7625 else
7626 GOC="$ac_cv_prog_GOC"
7634 # Set options
7639 enable_win32_dll=no
7642 # Check whether --enable-shared was given.
7643 if test "${enable_shared+set}" = set; then :
7644 enableval=$enable_shared; p=${PACKAGE-default}
7645 case $enableval in
7646 yes) enable_shared=yes ;;
7647 no) enable_shared=no ;;
7649 enable_shared=no
7650 # Look at the argument we got. We use all the common list separators.
7651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652 for pkg in $enableval; do
7653 IFS="$lt_save_ifs"
7654 if test "X$pkg" = "X$p"; then
7655 enable_shared=yes
7657 done
7658 IFS="$lt_save_ifs"
7660 esac
7661 else
7662 enable_shared=yes
7673 # Check whether --enable-static was given.
7674 if test "${enable_static+set}" = set; then :
7675 enableval=$enable_static; p=${PACKAGE-default}
7676 case $enableval in
7677 yes) enable_static=yes ;;
7678 no) enable_static=no ;;
7680 enable_static=no
7681 # Look at the argument we got. We use all the common list separators.
7682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683 for pkg in $enableval; do
7684 IFS="$lt_save_ifs"
7685 if test "X$pkg" = "X$p"; then
7686 enable_static=yes
7688 done
7689 IFS="$lt_save_ifs"
7691 esac
7692 else
7693 enable_static=yes
7705 # Check whether --with-pic was given.
7706 if test "${with_pic+set}" = set; then :
7707 withval=$with_pic; pic_mode="$withval"
7708 else
7709 pic_mode=default
7713 test -z "$pic_mode" && pic_mode=default
7721 # Check whether --enable-fast-install was given.
7722 if test "${enable_fast_install+set}" = set; then :
7723 enableval=$enable_fast_install; p=${PACKAGE-default}
7724 case $enableval in
7725 yes) enable_fast_install=yes ;;
7726 no) enable_fast_install=no ;;
7728 enable_fast_install=no
7729 # Look at the argument we got. We use all the common list separators.
7730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7731 for pkg in $enableval; do
7732 IFS="$lt_save_ifs"
7733 if test "X$pkg" = "X$p"; then
7734 enable_fast_install=yes
7736 done
7737 IFS="$lt_save_ifs"
7739 esac
7740 else
7741 enable_fast_install=yes
7754 # This can be used to rebuild libtool when needed
7755 LIBTOOL_DEPS="$ltmain"
7757 # Always use our own libtool.
7758 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7785 test -z "$LN_S" && LN_S="ln -s"
7800 if test -n "${ZSH_VERSION+set}" ; then
7801 setopt NO_GLOB_SUBST
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7805 $as_echo_n "checking for objdir... " >&6; }
7806 if test "${lt_cv_objdir+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 rm -f .libs 2>/dev/null
7810 mkdir .libs 2>/dev/null
7811 if test -d .libs; then
7812 lt_cv_objdir=.libs
7813 else
7814 # MS-DOS does not allow filenames that begin with a dot.
7815 lt_cv_objdir=_libs
7817 rmdir .libs 2>/dev/null
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7820 $as_echo "$lt_cv_objdir" >&6; }
7821 objdir=$lt_cv_objdir
7827 cat >>confdefs.h <<_ACEOF
7828 #define LT_OBJDIR "$lt_cv_objdir/"
7829 _ACEOF
7834 case $host_os in
7835 aix3*)
7836 # AIX sometimes has problems with the GCC collect2 program. For some
7837 # reason, if we set the COLLECT_NAMES environment variable, the problems
7838 # vanish in a puff of smoke.
7839 if test "X${COLLECT_NAMES+set}" != Xset; then
7840 COLLECT_NAMES=
7841 export COLLECT_NAMES
7844 esac
7846 # Global variables:
7847 ofile=libtool
7848 can_build_shared=yes
7850 # All known linkers require a `.a' archive for static linking (except MSVC,
7851 # which needs '.lib').
7852 libext=a
7854 with_gnu_ld="$lt_cv_prog_gnu_ld"
7856 old_CC="$CC"
7857 old_CFLAGS="$CFLAGS"
7859 # Set sane defaults for various variables
7860 test -z "$CC" && CC=cc
7861 test -z "$LTCC" && LTCC=$CC
7862 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7863 test -z "$LD" && LD=ld
7864 test -z "$ac_objext" && ac_objext=o
7866 for cc_temp in $compiler""; do
7867 case $cc_temp in
7868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7870 \-*) ;;
7871 *) break;;
7872 esac
7873 done
7874 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7877 # Only perform the check for file, if the check method requires it
7878 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7879 case $deplibs_check_method in
7880 file_magic*)
7881 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7883 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7884 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 case $MAGIC_CMD in
7888 [\\/*] | ?:[\\/]*)
7889 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7892 lt_save_MAGIC_CMD="$MAGIC_CMD"
7893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7894 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7895 for ac_dir in $ac_dummy; do
7896 IFS="$lt_save_ifs"
7897 test -z "$ac_dir" && ac_dir=.
7898 if test -f $ac_dir/${ac_tool_prefix}file; then
7899 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7900 if test -n "$file_magic_test_file"; then
7901 case $deplibs_check_method in
7902 "file_magic "*)
7903 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7905 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7906 $EGREP "$file_magic_regex" > /dev/null; then
7908 else
7909 cat <<_LT_EOF 1>&2
7911 *** Warning: the command libtool uses to detect shared libraries,
7912 *** $file_magic_cmd, produces output that libtool cannot recognize.
7913 *** The result is that libtool may fail to recognize shared libraries
7914 *** as such. This will affect the creation of libtool libraries that
7915 *** depend on shared libraries, but programs linked with such libtool
7916 *** libraries will work regardless of this problem. Nevertheless, you
7917 *** may want to report the problem to your system manager and/or to
7918 *** bug-libtool@gnu.org
7920 _LT_EOF
7921 fi ;;
7922 esac
7924 break
7926 done
7927 IFS="$lt_save_ifs"
7928 MAGIC_CMD="$lt_save_MAGIC_CMD"
7930 esac
7933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7934 if test -n "$MAGIC_CMD"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7936 $as_echo "$MAGIC_CMD" >&6; }
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7946 if test -z "$lt_cv_path_MAGIC_CMD"; then
7947 if test -n "$ac_tool_prefix"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7949 $as_echo_n "checking for file... " >&6; }
7950 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 case $MAGIC_CMD in
7954 [\\/*] | ?:[\\/]*)
7955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7958 lt_save_MAGIC_CMD="$MAGIC_CMD"
7959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7960 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7961 for ac_dir in $ac_dummy; do
7962 IFS="$lt_save_ifs"
7963 test -z "$ac_dir" && ac_dir=.
7964 if test -f $ac_dir/file; then
7965 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7966 if test -n "$file_magic_test_file"; then
7967 case $deplibs_check_method in
7968 "file_magic "*)
7969 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7971 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7972 $EGREP "$file_magic_regex" > /dev/null; then
7974 else
7975 cat <<_LT_EOF 1>&2
7977 *** Warning: the command libtool uses to detect shared libraries,
7978 *** $file_magic_cmd, produces output that libtool cannot recognize.
7979 *** The result is that libtool may fail to recognize shared libraries
7980 *** as such. This will affect the creation of libtool libraries that
7981 *** depend on shared libraries, but programs linked with such libtool
7982 *** libraries will work regardless of this problem. Nevertheless, you
7983 *** may want to report the problem to your system manager and/or to
7984 *** bug-libtool@gnu.org
7986 _LT_EOF
7987 fi ;;
7988 esac
7990 break
7992 done
7993 IFS="$lt_save_ifs"
7994 MAGIC_CMD="$lt_save_MAGIC_CMD"
7996 esac
7999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8000 if test -n "$MAGIC_CMD"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8002 $as_echo "$MAGIC_CMD" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8009 else
8010 MAGIC_CMD=:
8016 esac
8018 # Use C for the default configuration in the libtool script
8020 lt_save_CC="$CC"
8021 ac_ext=c
8022 ac_cpp='$CPP $CPPFLAGS'
8023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028 # Source file extension for C test sources.
8029 ac_ext=c
8031 # Object file extension for compiled C test sources.
8032 objext=o
8033 objext=$objext
8035 # Code to be used in simple compile tests
8036 lt_simple_compile_test_code="int some_variable = 0;"
8038 # Code to be used in simple link tests
8039 lt_simple_link_test_code='int main(){return(0);}'
8047 # If no C compiler was specified, use CC.
8048 LTCC=${LTCC-"$CC"}
8050 # If no C compiler flags were specified, use CFLAGS.
8051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8053 # Allow CC to be a program name with arguments.
8054 compiler=$CC
8056 # Save the default compiler, since it gets overwritten when the other
8057 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8058 compiler_DEFAULT=$CC
8060 # save warnings/boilerplate of simple test code
8061 ac_outfile=conftest.$ac_objext
8062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8064 _lt_compiler_boilerplate=`cat conftest.err`
8065 $RM conftest*
8067 ac_outfile=conftest.$ac_objext
8068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8070 _lt_linker_boilerplate=`cat conftest.err`
8071 $RM -r conftest*
8074 ## CAVEAT EMPTOR:
8075 ## There is no encapsulation within the following macros, do not change
8076 ## the running order or otherwise move them around unless you know exactly
8077 ## what you are doing...
8078 if test -n "$compiler"; then
8080 lt_prog_compiler_no_builtin_flag=
8082 if test "$GCC" = yes; then
8083 case $cc_basename in
8084 nvcc*)
8085 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8087 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8088 esac
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8091 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8092 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 lt_cv_prog_compiler_rtti_exceptions=no
8096 ac_outfile=conftest.$ac_objext
8097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8098 lt_compiler_flag="-fno-rtti -fno-exceptions"
8099 # Insert the option either (1) after the last *FLAGS variable, or
8100 # (2) before a word containing "conftest.", or (3) at the end.
8101 # Note that $ac_compile itself does not contain backslashes and begins
8102 # with a dollar sign (not a hyphen), so the echo should work correctly.
8103 # The option is referenced via a variable to avoid confusing sed.
8104 lt_compile=`echo "$ac_compile" | $SED \
8105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107 -e 's:$: $lt_compiler_flag:'`
8108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8109 (eval "$lt_compile" 2>conftest.err)
8110 ac_status=$?
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 if (exit $ac_status) && test -s "$ac_outfile"; then
8114 # The compiler can only warn and ignore the option if not recognized
8115 # So say no if there are warnings other than the usual output.
8116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8119 lt_cv_prog_compiler_rtti_exceptions=yes
8122 $RM conftest*
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8126 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8128 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8129 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8130 else
8141 lt_prog_compiler_wl=
8142 lt_prog_compiler_pic=
8143 lt_prog_compiler_static=
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8146 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8148 if test "$GCC" = yes; then
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_static='-static'
8152 case $host_os in
8153 aix*)
8154 # All AIX code is PIC.
8155 if test "$host_cpu" = ia64; then
8156 # AIX 5 now supports IA64 processor
8157 lt_prog_compiler_static='-Bstatic'
8161 amigaos*)
8162 case $host_cpu in
8163 powerpc)
8164 # see comment about AmigaOS4 .so support
8165 lt_prog_compiler_pic='-fPIC'
8167 m68k)
8168 # FIXME: we need at least 68020 code to build shared libraries, but
8169 # adding the `-m68020' flag to GCC prevents building anything better,
8170 # like `-m68040'.
8171 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8173 esac
8176 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8177 # PIC is the default for these OSes.
8180 mingw* | cygwin* | pw32* | os2* | cegcc*)
8181 # This hack is so that the source file can tell whether it is being
8182 # built for inclusion in a dll (and should export symbols for example).
8183 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8184 # (--disable-auto-import) libraries
8185 lt_prog_compiler_pic='-DDLL_EXPORT'
8188 darwin* | rhapsody*)
8189 # PIC is the default on this platform
8190 # Common symbols not allowed in MH_DYLIB files
8191 lt_prog_compiler_pic='-fno-common'
8194 haiku*)
8195 # PIC is the default for Haiku.
8196 # The "-static" flag exists, but is broken.
8197 lt_prog_compiler_static=
8200 hpux*)
8201 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8202 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8203 # sets the default TLS model and affects inlining.
8204 case $host_cpu in
8205 hppa*64*)
8206 # +Z the default
8209 lt_prog_compiler_pic='-fPIC'
8211 esac
8214 interix[3-9]*)
8215 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8216 # Instead, we relocate shared libraries at runtime.
8219 msdosdjgpp*)
8220 # Just because we use GCC doesn't mean we suddenly get shared libraries
8221 # on systems that don't support them.
8222 lt_prog_compiler_can_build_shared=no
8223 enable_shared=no
8226 *nto* | *qnx*)
8227 # QNX uses GNU C++, but need to define -shared option too, otherwise
8228 # it will coredump.
8229 lt_prog_compiler_pic='-fPIC -shared'
8232 sysv4*MP*)
8233 if test -d /usr/nec; then
8234 lt_prog_compiler_pic=-Kconform_pic
8239 lt_prog_compiler_pic='-fPIC'
8241 esac
8243 case $cc_basename in
8244 nvcc*) # Cuda Compiler Driver 2.2
8245 lt_prog_compiler_wl='-Xlinker '
8246 lt_prog_compiler_pic='-Xcompiler -fPIC'
8248 esac
8249 else
8250 # PORTME Check for flag to pass linker flags through the system compiler.
8251 case $host_os in
8252 aix*)
8253 lt_prog_compiler_wl='-Wl,'
8254 if test "$host_cpu" = ia64; then
8255 # AIX 5 now supports IA64 processor
8256 lt_prog_compiler_static='-Bstatic'
8257 else
8258 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8262 mingw* | cygwin* | pw32* | os2* | cegcc*)
8263 # This hack is so that the source file can tell whether it is being
8264 # built for inclusion in a dll (and should export symbols for example).
8265 lt_prog_compiler_pic='-DDLL_EXPORT'
8268 hpux9* | hpux10* | hpux11*)
8269 lt_prog_compiler_wl='-Wl,'
8270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8271 # not for PA HP-UX.
8272 case $host_cpu in
8273 hppa*64*|ia64*)
8274 # +Z the default
8277 lt_prog_compiler_pic='+Z'
8279 esac
8280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8281 lt_prog_compiler_static='${wl}-a ${wl}archive'
8284 irix5* | irix6* | nonstopux*)
8285 lt_prog_compiler_wl='-Wl,'
8286 # PIC (with -KPIC) is the default.
8287 lt_prog_compiler_static='-non_shared'
8290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8291 case $cc_basename in
8292 # old Intel for x86_64 which still supported -KPIC.
8293 ecc*)
8294 lt_prog_compiler_wl='-Wl,'
8295 lt_prog_compiler_pic='-KPIC'
8296 lt_prog_compiler_static='-static'
8298 # icc used to be incompatible with GCC.
8299 # ICC 10 doesn't accept -KPIC any more.
8300 icc* | ifort*)
8301 lt_prog_compiler_wl='-Wl,'
8302 lt_prog_compiler_pic='-fPIC'
8303 lt_prog_compiler_static='-static'
8305 # Lahey Fortran 8.1.
8306 lf95*)
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_pic='--shared'
8309 lt_prog_compiler_static='--static'
8311 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8312 # Portland Group compilers (*not* the Pentium gcc compiler,
8313 # which looks to be a dead project)
8314 lt_prog_compiler_wl='-Wl,'
8315 lt_prog_compiler_pic='-fpic'
8316 lt_prog_compiler_static='-Bstatic'
8318 ccc*)
8319 lt_prog_compiler_wl='-Wl,'
8320 # All Alpha code is PIC.
8321 lt_prog_compiler_static='-non_shared'
8323 xl* | bgxl* | bgf* | mpixl*)
8324 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='-qpic'
8327 lt_prog_compiler_static='-qstaticlink'
8330 case `$CC -V 2>&1 | sed 5q` in
8331 *Sun\ F* | *Sun*Fortran*)
8332 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8333 lt_prog_compiler_pic='-KPIC'
8334 lt_prog_compiler_static='-Bstatic'
8335 lt_prog_compiler_wl=''
8337 *Sun\ C*)
8338 # Sun C 5.9
8339 lt_prog_compiler_pic='-KPIC'
8340 lt_prog_compiler_static='-Bstatic'
8341 lt_prog_compiler_wl='-Wl,'
8343 esac
8345 esac
8348 newsos6)
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8353 *nto* | *qnx*)
8354 # QNX uses GNU C++, but need to define -shared option too, otherwise
8355 # it will coredump.
8356 lt_prog_compiler_pic='-fPIC -shared'
8359 osf3* | osf4* | osf5*)
8360 lt_prog_compiler_wl='-Wl,'
8361 # All OSF/1 code is PIC.
8362 lt_prog_compiler_static='-non_shared'
8365 rdos*)
8366 lt_prog_compiler_static='-non_shared'
8369 solaris*)
8370 lt_prog_compiler_pic='-KPIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 case $cc_basename in
8373 f77* | f90* | f95*)
8374 lt_prog_compiler_wl='-Qoption ld ';;
8376 lt_prog_compiler_wl='-Wl,';;
8377 esac
8380 sunos4*)
8381 lt_prog_compiler_wl='-Qoption ld '
8382 lt_prog_compiler_pic='-PIC'
8383 lt_prog_compiler_static='-Bstatic'
8386 sysv4 | sysv4.2uw2* | sysv4.3*)
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-Bstatic'
8392 sysv4*MP*)
8393 if test -d /usr/nec ;then
8394 lt_prog_compiler_pic='-Kconform_pic'
8395 lt_prog_compiler_static='-Bstatic'
8399 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_pic='-KPIC'
8402 lt_prog_compiler_static='-Bstatic'
8405 unicos*)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_can_build_shared=no
8410 uts4*)
8411 lt_prog_compiler_pic='-pic'
8412 lt_prog_compiler_static='-Bstatic'
8416 lt_prog_compiler_can_build_shared=no
8418 esac
8421 case $host_os in
8422 # For platforms which do not support PIC, -DPIC is meaningless:
8423 *djgpp*)
8424 lt_prog_compiler_pic=
8427 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8429 esac
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8431 $as_echo "$lt_prog_compiler_pic" >&6; }
8439 # Check to make sure the PIC flag actually works.
8441 if test -n "$lt_prog_compiler_pic"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8443 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8444 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 lt_cv_prog_compiler_pic_works=no
8448 ac_outfile=conftest.$ac_objext
8449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8450 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8451 # Insert the option either (1) after the last *FLAGS variable, or
8452 # (2) before a word containing "conftest.", or (3) at the end.
8453 # Note that $ac_compile itself does not contain backslashes and begins
8454 # with a dollar sign (not a hyphen), so the echo should work correctly.
8455 # The option is referenced via a variable to avoid confusing sed.
8456 lt_compile=`echo "$ac_compile" | $SED \
8457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8459 -e 's:$: $lt_compiler_flag:'`
8460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8461 (eval "$lt_compile" 2>conftest.err)
8462 ac_status=$?
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 if (exit $ac_status) && test -s "$ac_outfile"; then
8466 # The compiler can only warn and ignore the option if not recognized
8467 # So say no if there are warnings other than the usual output.
8468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8471 lt_cv_prog_compiler_pic_works=yes
8474 $RM conftest*
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8478 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8480 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8481 case $lt_prog_compiler_pic in
8482 "" | " "*) ;;
8483 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8484 esac
8485 else
8486 lt_prog_compiler_pic=
8487 lt_prog_compiler_can_build_shared=no
8498 # Check to make sure the static flag actually works.
8500 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8502 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8503 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 lt_cv_prog_compiler_static_works=no
8507 save_LDFLAGS="$LDFLAGS"
8508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8509 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8511 # The linker can only warn and ignore the option if not recognized
8512 # So say no if there are warnings
8513 if test -s conftest.err; then
8514 # Append any errors to the config.log.
8515 cat conftest.err 1>&5
8516 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8518 if diff conftest.exp conftest.er2 >/dev/null; then
8519 lt_cv_prog_compiler_static_works=yes
8521 else
8522 lt_cv_prog_compiler_static_works=yes
8525 $RM -r conftest*
8526 LDFLAGS="$save_LDFLAGS"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8530 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8532 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8534 else
8535 lt_prog_compiler_static=
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8545 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8546 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 lt_cv_prog_compiler_c_o=no
8550 $RM -r conftest 2>/dev/null
8551 mkdir conftest
8552 cd conftest
8553 mkdir out
8554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8556 lt_compiler_flag="-o out/conftest2.$ac_objext"
8557 # Insert the option either (1) after the last *FLAGS variable, or
8558 # (2) before a word containing "conftest.", or (3) at the end.
8559 # Note that $ac_compile itself does not contain backslashes and begins
8560 # with a dollar sign (not a hyphen), so the echo should work correctly.
8561 lt_compile=`echo "$ac_compile" | $SED \
8562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8564 -e 's:$: $lt_compiler_flag:'`
8565 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8566 (eval "$lt_compile" 2>out/conftest.err)
8567 ac_status=$?
8568 cat out/conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8571 then
8572 # The compiler can only warn and ignore the option if not recognized
8573 # So say no if there are warnings
8574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8575 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8576 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8577 lt_cv_prog_compiler_c_o=yes
8580 chmod u+w . 2>&5
8581 $RM conftest*
8582 # SGI C++ compiler will create directory out/ii_files/ for
8583 # template instantiation
8584 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8585 $RM out/* && rmdir out
8586 cd ..
8587 $RM -r conftest
8588 $RM conftest*
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8592 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8600 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8601 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 lt_cv_prog_compiler_c_o=no
8605 $RM -r conftest 2>/dev/null
8606 mkdir conftest
8607 cd conftest
8608 mkdir out
8609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611 lt_compiler_flag="-o out/conftest2.$ac_objext"
8612 # Insert the option either (1) after the last *FLAGS variable, or
8613 # (2) before a word containing "conftest.", or (3) at the end.
8614 # Note that $ac_compile itself does not contain backslashes and begins
8615 # with a dollar sign (not a hyphen), so the echo should work correctly.
8616 lt_compile=`echo "$ac_compile" | $SED \
8617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8619 -e 's:$: $lt_compiler_flag:'`
8620 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8621 (eval "$lt_compile" 2>out/conftest.err)
8622 ac_status=$?
8623 cat out/conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8626 then
8627 # The compiler can only warn and ignore the option if not recognized
8628 # So say no if there are warnings
8629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8632 lt_cv_prog_compiler_c_o=yes
8635 chmod u+w . 2>&5
8636 $RM conftest*
8637 # SGI C++ compiler will create directory out/ii_files/ for
8638 # template instantiation
8639 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8640 $RM out/* && rmdir out
8641 cd ..
8642 $RM -r conftest
8643 $RM conftest*
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8647 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8652 hard_links="nottested"
8653 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8654 # do not overwrite the value of need_locks provided by the user
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8656 $as_echo_n "checking if we can lock with hard links... " >&6; }
8657 hard_links=yes
8658 $RM conftest*
8659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8660 touch conftest.a
8661 ln conftest.a conftest.b 2>&5 || hard_links=no
8662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8664 $as_echo "$hard_links" >&6; }
8665 if test "$hard_links" = no; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8667 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8668 need_locks=warn
8670 else
8671 need_locks=no
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8680 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8682 runpath_var=
8683 allow_undefined_flag=
8684 always_export_symbols=no
8685 archive_cmds=
8686 archive_expsym_cmds=
8687 compiler_needs_object=no
8688 enable_shared_with_static_runtimes=no
8689 export_dynamic_flag_spec=
8690 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8691 hardcode_automatic=no
8692 hardcode_direct=no
8693 hardcode_direct_absolute=no
8694 hardcode_libdir_flag_spec=
8695 hardcode_libdir_flag_spec_ld=
8696 hardcode_libdir_separator=
8697 hardcode_minus_L=no
8698 hardcode_shlibpath_var=unsupported
8699 inherit_rpath=no
8700 link_all_deplibs=unknown
8701 module_cmds=
8702 module_expsym_cmds=
8703 old_archive_from_new_cmds=
8704 old_archive_from_expsyms_cmds=
8705 thread_safe_flag_spec=
8706 whole_archive_flag_spec=
8707 # include_expsyms should be a list of space-separated symbols to be *always*
8708 # included in the symbol list
8709 include_expsyms=
8710 # exclude_expsyms can be an extended regexp of symbols to exclude
8711 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8712 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8713 # as well as any symbol that contains `d'.
8714 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8715 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8716 # platforms (ab)use it in PIC code, but their linkers get confused if
8717 # the symbol is explicitly referenced. Since portable code cannot
8718 # rely on this symbol name, it's probably fine to never include it in
8719 # preloaded symbol tables.
8720 # Exclude shared library initialization/finalization symbols.
8721 extract_expsyms_cmds=
8723 case $host_os in
8724 cygwin* | mingw* | pw32* | cegcc*)
8725 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8726 # When not using gcc, we currently assume that we are using
8727 # Microsoft Visual C++.
8728 if test "$GCC" != yes; then
8729 with_gnu_ld=no
8732 interix*)
8733 # we just hope/assume this is gcc and not c89 (= MSVC++)
8734 with_gnu_ld=yes
8736 openbsd*)
8737 with_gnu_ld=no
8739 esac
8741 ld_shlibs=yes
8743 # On some targets, GNU ld is compatible enough with the native linker
8744 # that we're better off using the native interface for both.
8745 lt_use_gnu_ld_interface=no
8746 if test "$with_gnu_ld" = yes; then
8747 case $host_os in
8748 aix*)
8749 # The AIX port of GNU ld has always aspired to compatibility
8750 # with the native linker. However, as the warning in the GNU ld
8751 # block says, versions before 2.19.5* couldn't really create working
8752 # shared libraries, regardless of the interface used.
8753 case `$LD -v 2>&1` in
8754 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8755 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8756 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8758 lt_use_gnu_ld_interface=yes
8760 esac
8763 lt_use_gnu_ld_interface=yes
8765 esac
8768 if test "$lt_use_gnu_ld_interface" = yes; then
8769 # If archive_cmds runs LD, not CC, wlarc should be empty
8770 wlarc='${wl}'
8772 # Set some defaults for GNU ld with shared library support. These
8773 # are reset later if shared libraries are not supported. Putting them
8774 # here allows them to be overridden if necessary.
8775 runpath_var=LD_RUN_PATH
8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 export_dynamic_flag_spec='${wl}--export-dynamic'
8778 # ancient GNU ld didn't support --whole-archive et. al.
8779 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8780 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8781 else
8782 whole_archive_flag_spec=
8784 supports_anon_versioning=no
8785 case `$LD -v 2>&1` in
8786 *GNU\ gold*) supports_anon_versioning=yes ;;
8787 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8788 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8789 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8790 *\ 2.11.*) ;; # other 2.11 versions
8791 *) supports_anon_versioning=yes ;;
8792 esac
8794 # See if GNU ld supports shared libraries.
8795 case $host_os in
8796 aix[3-9]*)
8797 # On AIX/PPC, the GNU linker is very broken
8798 if test "$host_cpu" != ia64; then
8799 ld_shlibs=no
8800 cat <<_LT_EOF 1>&2
8802 *** Warning: the GNU linker, at least up to release 2.19, is reported
8803 *** to be unable to reliably create shared libraries on AIX.
8804 *** Therefore, libtool is disabling shared libraries support. If you
8805 *** really care for shared libraries, you may want to install binutils
8806 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8807 *** You will then need to restart the configuration process.
8809 _LT_EOF
8813 amigaos*)
8814 case $host_cpu in
8815 powerpc)
8816 # see comment about AmigaOS4 .so support
8817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818 archive_expsym_cmds=''
8820 m68k)
8821 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)'
8822 hardcode_libdir_flag_spec='-L$libdir'
8823 hardcode_minus_L=yes
8825 esac
8828 beos*)
8829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8830 allow_undefined_flag=unsupported
8831 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8832 # support --undefined. This deserves some investigation. FIXME
8833 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 else
8835 ld_shlibs=no
8839 cygwin* | mingw* | pw32* | cegcc*)
8840 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8841 # as there is no search path for DLLs.
8842 hardcode_libdir_flag_spec='-L$libdir'
8843 export_dynamic_flag_spec='${wl}--export-all-symbols'
8844 allow_undefined_flag=unsupported
8845 always_export_symbols=no
8846 enable_shared_with_static_runtimes=yes
8847 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8849 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8851 # If the export-symbols file already is a .def file (1st line
8852 # is EXPORTS), use it as is; otherwise, prepend...
8853 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8854 cp $export_symbols $output_objdir/$soname.def;
8855 else
8856 echo EXPORTS > $output_objdir/$soname.def;
8857 cat $export_symbols >> $output_objdir/$soname.def;
8859 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8860 else
8861 ld_shlibs=no
8865 haiku*)
8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867 link_all_deplibs=yes
8870 interix[3-9]*)
8871 hardcode_direct=no
8872 hardcode_shlibpath_var=no
8873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8874 export_dynamic_flag_spec='${wl}-E'
8875 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8876 # Instead, shared libraries are loaded at an image base (0x10000000 by
8877 # default) and relocated if they conflict, which is a slow very memory
8878 # consuming and fragmenting process. To avoid this, we pick a random,
8879 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8880 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8881 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8882 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'
8885 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8886 tmp_diet=no
8887 if test "$host_os" = linux-dietlibc; then
8888 case $cc_basename in
8889 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8890 esac
8892 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8893 && test "$tmp_diet" = no
8894 then
8895 tmp_addflag=
8896 tmp_sharedflag='-shared'
8897 case $cc_basename,$host_cpu in
8898 pgcc*) # Portland Group C compiler
8899 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'
8900 tmp_addflag=' $pic_flag'
8902 pgf77* | pgf90* | pgf95* | pgfortran*)
8903 # Portland Group f77 and f90 compilers
8904 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'
8905 tmp_addflag=' $pic_flag -Mnomain' ;;
8906 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8907 tmp_addflag=' -i_dynamic' ;;
8908 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8909 tmp_addflag=' -i_dynamic -nofor_main' ;;
8910 ifc* | ifort*) # Intel Fortran compiler
8911 tmp_addflag=' -nofor_main' ;;
8912 lf95*) # Lahey Fortran 8.1
8913 whole_archive_flag_spec=
8914 tmp_sharedflag='--shared' ;;
8915 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8916 tmp_sharedflag='-qmkshrobj'
8917 tmp_addflag= ;;
8918 nvcc*) # Cuda Compiler Driver 2.2
8919 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8920 compiler_needs_object=yes
8922 esac
8923 case `$CC -V 2>&1 | sed 5q` in
8924 *Sun\ C*) # Sun C 5.9
8925 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'
8926 compiler_needs_object=yes
8927 tmp_sharedflag='-G' ;;
8928 *Sun\ F*) # Sun Fortran 8.3
8929 tmp_sharedflag='-G' ;;
8930 esac
8931 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933 if test "x$supports_anon_versioning" = xyes; then
8934 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8935 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8936 echo "local: *; };" >> $output_objdir/$libname.ver~
8937 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8940 case $cc_basename in
8941 xlf* | bgf* | bgxlf* | mpixlf*)
8942 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8943 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8944 hardcode_libdir_flag_spec=
8945 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8946 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8947 if test "x$supports_anon_versioning" = xyes; then
8948 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8949 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8950 echo "local: *; };" >> $output_objdir/$libname.ver~
8951 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8954 esac
8955 else
8956 ld_shlibs=no
8960 netbsd*)
8961 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8962 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8963 wlarc=
8964 else
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970 solaris*)
8971 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8972 ld_shlibs=no
8973 cat <<_LT_EOF 1>&2
8975 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8976 *** create shared libraries on Solaris systems. Therefore, libtool
8977 *** is disabling shared libraries support. We urge you to upgrade GNU
8978 *** binutils to release 2.9.1 or newer. Another option is to modify
8979 *** your PATH or compiler configuration so that the native linker is
8980 *** used, and then restart.
8982 _LT_EOF
8983 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986 else
8987 ld_shlibs=no
8991 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8992 case `$LD -v 2>&1` in
8993 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8994 ld_shlibs=no
8995 cat <<_LT_EOF 1>&2
8997 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8998 *** reliably create shared libraries on SCO systems. Therefore, libtool
8999 *** is disabling shared libraries support. We urge you to upgrade GNU
9000 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9001 *** your PATH or compiler configuration so that the native linker is
9002 *** used, and then restart.
9004 _LT_EOF
9007 # For security reasons, it is highly recommended that you always
9008 # use absolute paths for naming shared libraries, and exclude the
9009 # DT_RUNPATH tag from executables and libraries. But doing so
9010 # requires that you compile everything twice, which is a pain.
9011 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9014 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9015 else
9016 ld_shlibs=no
9019 esac
9022 sunos4*)
9023 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9024 wlarc=
9025 hardcode_direct=yes
9026 hardcode_shlibpath_var=no
9030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9033 else
9034 ld_shlibs=no
9037 esac
9039 if test "$ld_shlibs" = no; then
9040 runpath_var=
9041 hardcode_libdir_flag_spec=
9042 export_dynamic_flag_spec=
9043 whole_archive_flag_spec=
9045 else
9046 # PORTME fill in a description of your system's linker (not GNU ld)
9047 case $host_os in
9048 aix3*)
9049 allow_undefined_flag=unsupported
9050 always_export_symbols=yes
9051 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'
9052 # Note: this linker hardcodes the directories in LIBPATH if there
9053 # are no directories specified by -L.
9054 hardcode_minus_L=yes
9055 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9056 # Neither direct hardcoding nor static linking is supported with a
9057 # broken collect2.
9058 hardcode_direct=unsupported
9062 aix[4-9]*)
9063 if test "$host_cpu" = ia64; then
9064 # On IA64, the linker does run time linking by default, so we don't
9065 # have to do anything special.
9066 aix_use_runtimelinking=no
9067 exp_sym_flag='-Bexport'
9068 no_entry_flag=""
9069 else
9070 # If we're using GNU nm, then we don't want the "-C" option.
9071 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9072 # Also, AIX nm treats weak defined symbols like other global
9073 # defined symbols, whereas GNU nm marks them as "W".
9074 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9075 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'
9076 else
9077 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'
9079 aix_use_runtimelinking=no
9081 # Test if we are trying to use run time linking or normal
9082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9083 # need to do runtime linking.
9084 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9085 for ld_flag in $LDFLAGS; do
9086 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9087 aix_use_runtimelinking=yes
9088 break
9090 done
9092 esac
9094 exp_sym_flag='-bexport'
9095 no_entry_flag='-bnoentry'
9098 # When large executables or shared objects are built, AIX ld can
9099 # have problems creating the table of contents. If linking a library
9100 # or program results in "error TOC overflow" add -mminimal-toc to
9101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9104 archive_cmds=''
9105 hardcode_direct=yes
9106 hardcode_direct_absolute=yes
9107 hardcode_libdir_separator=':'
9108 link_all_deplibs=yes
9109 file_list_spec='${wl}-f,'
9111 if test "$GCC" = yes; then
9112 case $host_os in aix4.[012]|aix4.[012].*)
9113 # We only want to do this on AIX 4.2 and lower, the check
9114 # below for broken collect2 doesn't work under 4.3+
9115 collect2name=`${CC} -print-prog-name=collect2`
9116 if test -f "$collect2name" &&
9117 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9118 then
9119 # We have reworked collect2
9121 else
9122 # We have old collect2
9123 hardcode_direct=unsupported
9124 # It fails to find uninstalled libraries when the uninstalled
9125 # path is not listed in the libpath. Setting hardcode_minus_L
9126 # to unsupported forces relinking
9127 hardcode_minus_L=yes
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_libdir_separator=
9132 esac
9133 shared_flag='-shared'
9134 if test "$aix_use_runtimelinking" = yes; then
9135 shared_flag="$shared_flag "'${wl}-G'
9137 else
9138 # not using gcc
9139 if test "$host_cpu" = ia64; then
9140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9141 # chokes on -Wl,-G. The following line is correct:
9142 shared_flag='-G'
9143 else
9144 if test "$aix_use_runtimelinking" = yes; then
9145 shared_flag='${wl}-G'
9146 else
9147 shared_flag='${wl}-bM:SRE'
9152 export_dynamic_flag_spec='${wl}-bexpall'
9153 # It seems that -bexpall does not export symbols beginning with
9154 # underscore (_), so it is better to generate a list of symbols to export.
9155 always_export_symbols=yes
9156 if test "$aix_use_runtimelinking" = yes; then
9157 # Warning - without using the other runtime loading flags (-brtl),
9158 # -berok will link without error, but may produce a broken library.
9159 allow_undefined_flag='-berok'
9160 # Determine the default libpath from the value encoded in an
9161 # empty executable.
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9166 main ()
9170 return 0;
9172 _ACEOF
9173 if ac_fn_c_try_link "$LINENO"; then :
9175 lt_aix_libpath_sed='
9176 /Import File Strings/,/^$/ {
9177 /^0/ {
9178 s/^0 *\(.*\)$/\1/
9182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183 # Check for a 64-bit object if we didn't find anything.
9184 if test -z "$aix_libpath"; then
9185 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9188 rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9192 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9193 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"
9194 else
9195 if test "$host_cpu" = ia64; then
9196 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9197 allow_undefined_flag="-z nodefs"
9198 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"
9199 else
9200 # Determine the default libpath from the value encoded in an
9201 # empty executable.
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9206 main ()
9210 return 0;
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9215 lt_aix_libpath_sed='
9216 /Import File Strings/,/^$/ {
9217 /^0/ {
9218 s/^0 *\(.*\)$/\1/
9222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9223 # Check for a 64-bit object if we didn't find anything.
9224 if test -z "$aix_libpath"; then
9225 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9228 rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9232 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9233 # Warning - without using the other run time loading flags,
9234 # -berok will link without error, but may produce a broken library.
9235 no_undefined_flag=' ${wl}-bernotok'
9236 allow_undefined_flag=' ${wl}-berok'
9237 if test "$with_gnu_ld" = yes; then
9238 # We only use this code for GNU lds that support --whole-archive.
9239 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9240 else
9241 # Exported symbols can be pulled into shared objects from archives
9242 whole_archive_flag_spec='$convenience'
9244 archive_cmds_need_lc=yes
9245 # This is similar to how AIX traditionally builds its shared libraries.
9246 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'
9251 amigaos*)
9252 case $host_cpu in
9253 powerpc)
9254 # see comment about AmigaOS4 .so support
9255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256 archive_expsym_cmds=''
9258 m68k)
9259 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)'
9260 hardcode_libdir_flag_spec='-L$libdir'
9261 hardcode_minus_L=yes
9263 esac
9266 bsdi[45]*)
9267 export_dynamic_flag_spec=-rdynamic
9270 cygwin* | mingw* | pw32* | cegcc*)
9271 # When not using gcc, we currently assume that we are using
9272 # Microsoft Visual C++.
9273 # hardcode_libdir_flag_spec is actually meaningless, as there is
9274 # no search path for DLLs.
9275 hardcode_libdir_flag_spec=' '
9276 allow_undefined_flag=unsupported
9277 # Tell ltmain to make .lib files, not .a files.
9278 libext=lib
9279 # Tell ltmain to make .dll files, not .so files.
9280 shrext_cmds=".dll"
9281 # FIXME: Setting linknames here is a bad hack.
9282 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9283 # The linker will automatically build a .lib file if we build a DLL.
9284 old_archive_from_new_cmds='true'
9285 # FIXME: Should let the user specify the lib program.
9286 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9287 fix_srcfile_path='`cygpath -w "$srcfile"`'
9288 enable_shared_with_static_runtimes=yes
9291 darwin* | rhapsody*)
9294 archive_cmds_need_lc=no
9295 hardcode_direct=no
9296 hardcode_automatic=yes
9297 hardcode_shlibpath_var=unsupported
9298 if test "$lt_cv_ld_force_load" = "yes"; then
9299 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\"`'
9300 else
9301 whole_archive_flag_spec=''
9303 link_all_deplibs=yes
9304 allow_undefined_flag="$_lt_dar_allow_undefined"
9305 case $cc_basename in
9306 ifort*) _lt_dar_can_shared=yes ;;
9307 *) _lt_dar_can_shared=$GCC ;;
9308 esac
9309 if test "$_lt_dar_can_shared" = "yes"; then
9310 output_verbose_link_cmd=func_echo_all
9311 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9312 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9313 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}"
9314 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}"
9316 else
9317 ld_shlibs=no
9322 dgux*)
9323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_shlibpath_var=no
9328 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9329 # support. Future versions do this automatically, but an explicit c++rt0.o
9330 # does not break anything, and helps significantly (at the cost of a little
9331 # extra space).
9332 freebsd2.2*)
9333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9334 hardcode_libdir_flag_spec='-R$libdir'
9335 hardcode_direct=yes
9336 hardcode_shlibpath_var=no
9339 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9340 freebsd2*)
9341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_direct=yes
9343 hardcode_minus_L=yes
9344 hardcode_shlibpath_var=no
9347 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9348 freebsd* | dragonfly*)
9349 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_direct=yes
9352 hardcode_shlibpath_var=no
9355 hpux9*)
9356 if test "$GCC" = yes; then
9357 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'
9358 else
9359 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'
9361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9362 hardcode_libdir_separator=:
9363 hardcode_direct=yes
9365 # hardcode_minus_L: Not really in the search PATH,
9366 # but as the default location of the library.
9367 hardcode_minus_L=yes
9368 export_dynamic_flag_spec='${wl}-E'
9371 hpux10*)
9372 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9373 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9374 else
9375 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9377 if test "$with_gnu_ld" = no; then
9378 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9379 hardcode_libdir_flag_spec_ld='+b $libdir'
9380 hardcode_libdir_separator=:
9381 hardcode_direct=yes
9382 hardcode_direct_absolute=yes
9383 export_dynamic_flag_spec='${wl}-E'
9384 # hardcode_minus_L: Not really in the search PATH,
9385 # but as the default location of the library.
9386 hardcode_minus_L=yes
9390 hpux11*)
9391 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9392 case $host_cpu in
9393 hppa*64*)
9394 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 ia64*)
9397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9402 esac
9403 else
9404 case $host_cpu in
9405 hppa*64*)
9406 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 ia64*)
9409 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9413 # Older versions of the 11.00 compiler do not understand -b yet
9414 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9416 $as_echo_n "checking if $CC understands -b... " >&6; }
9417 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 lt_cv_prog_compiler__b=no
9421 save_LDFLAGS="$LDFLAGS"
9422 LDFLAGS="$LDFLAGS -b"
9423 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9425 # The linker can only warn and ignore the option if not recognized
9426 # So say no if there are warnings
9427 if test -s conftest.err; then
9428 # Append any errors to the config.log.
9429 cat conftest.err 1>&5
9430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9432 if diff conftest.exp conftest.er2 >/dev/null; then
9433 lt_cv_prog_compiler__b=yes
9435 else
9436 lt_cv_prog_compiler__b=yes
9439 $RM -r conftest*
9440 LDFLAGS="$save_LDFLAGS"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9444 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9446 if test x"$lt_cv_prog_compiler__b" = xyes; then
9447 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9448 else
9449 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9453 esac
9455 if test "$with_gnu_ld" = no; then
9456 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9457 hardcode_libdir_separator=:
9459 case $host_cpu in
9460 hppa*64*|ia64*)
9461 hardcode_direct=no
9462 hardcode_shlibpath_var=no
9465 hardcode_direct=yes
9466 hardcode_direct_absolute=yes
9467 export_dynamic_flag_spec='${wl}-E'
9469 # hardcode_minus_L: Not really in the search PATH,
9470 # but as the default location of the library.
9471 hardcode_minus_L=yes
9473 esac
9477 irix5* | irix6* | nonstopux*)
9478 if test "$GCC" = yes; then
9479 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'
9480 # Try to use the -exported_symbol ld option, if it does not
9481 # work, assume that -exports_file does not work either and
9482 # implicitly export all symbols.
9483 save_LDFLAGS="$LDFLAGS"
9484 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9487 int foo(void) {}
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9490 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'
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 LDFLAGS="$save_LDFLAGS"
9496 else
9497 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'
9498 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'
9500 archive_cmds_need_lc='no'
9501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502 hardcode_libdir_separator=:
9503 inherit_rpath=yes
9504 link_all_deplibs=yes
9507 netbsd*)
9508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9510 else
9511 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9513 hardcode_libdir_flag_spec='-R$libdir'
9514 hardcode_direct=yes
9515 hardcode_shlibpath_var=no
9518 newsos6)
9519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520 hardcode_direct=yes
9521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522 hardcode_libdir_separator=:
9523 hardcode_shlibpath_var=no
9526 *nto* | *qnx*)
9529 openbsd*)
9530 if test -f /usr/libexec/ld.so; then
9531 hardcode_direct=yes
9532 hardcode_shlibpath_var=no
9533 hardcode_direct_absolute=yes
9534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538 export_dynamic_flag_spec='${wl}-E'
9539 else
9540 case $host_os in
9541 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9543 hardcode_libdir_flag_spec='-R$libdir'
9546 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9549 esac
9551 else
9552 ld_shlibs=no
9556 os2*)
9557 hardcode_libdir_flag_spec='-L$libdir'
9558 hardcode_minus_L=yes
9559 allow_undefined_flag=unsupported
9560 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'
9561 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9564 osf3*)
9565 if test "$GCC" = yes; then
9566 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9567 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'
9568 else
9569 allow_undefined_flag=' -expect_unresolved \*'
9570 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'
9572 archive_cmds_need_lc='no'
9573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574 hardcode_libdir_separator=:
9577 osf4* | osf5*) # as osf3* with the addition of -msym flag
9578 if test "$GCC" = yes; then
9579 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9580 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'
9581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9582 else
9583 allow_undefined_flag=' -expect_unresolved \*'
9584 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'
9585 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~
9586 $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'
9588 # Both c and cxx compiler support -rpath directly
9589 hardcode_libdir_flag_spec='-rpath $libdir'
9591 archive_cmds_need_lc='no'
9592 hardcode_libdir_separator=:
9595 solaris*)
9596 no_undefined_flag=' -z defs'
9597 if test "$GCC" = yes; then
9598 wlarc='${wl}'
9599 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9601 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9602 else
9603 case `$CC -V 2>&1` in
9604 *"Compilers 5.0"*)
9605 wlarc=''
9606 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9608 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9611 wlarc='${wl}'
9612 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9614 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9616 esac
9618 hardcode_libdir_flag_spec='-R$libdir'
9619 hardcode_shlibpath_var=no
9620 case $host_os in
9621 solaris2.[0-5] | solaris2.[0-5].*) ;;
9623 # The compiler driver will combine and reorder linker options,
9624 # but understands `-z linker_flag'. GCC discards it without `$wl',
9625 # but is careful enough not to reorder.
9626 # Supported since Solaris 2.6 (maybe 2.5.1?)
9627 if test "$GCC" = yes; then
9628 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9629 else
9630 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9633 esac
9634 link_all_deplibs=yes
9637 sunos4*)
9638 if test "x$host_vendor" = xsequent; then
9639 # Use $CC to link under sequent, because it throws in some extra .o
9640 # files that make .init and .fini sections work.
9641 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9642 else
9643 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_libdir_flag_spec='-L$libdir'
9646 hardcode_direct=yes
9647 hardcode_minus_L=yes
9648 hardcode_shlibpath_var=no
9651 sysv4)
9652 case $host_vendor in
9653 sni)
9654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655 hardcode_direct=yes # is this really true???
9657 siemens)
9658 ## LD is ld it makes a PLAMLIB
9659 ## CC just makes a GrossModule.
9660 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9661 reload_cmds='$CC -r -o $output$reload_objs'
9662 hardcode_direct=no
9664 motorola)
9665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9668 esac
9669 runpath_var='LD_RUN_PATH'
9670 hardcode_shlibpath_var=no
9673 sysv4.3*)
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_shlibpath_var=no
9676 export_dynamic_flag_spec='-Bexport'
9679 sysv4*MP*)
9680 if test -d /usr/nec; then
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_shlibpath_var=no
9683 runpath_var=LD_RUN_PATH
9684 hardcode_runpath_var=yes
9685 ld_shlibs=yes
9689 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9690 no_undefined_flag='${wl}-z,text'
9691 archive_cmds_need_lc=no
9692 hardcode_shlibpath_var=no
9693 runpath_var='LD_RUN_PATH'
9695 if test "$GCC" = yes; then
9696 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 else
9699 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 sysv5* | sco3.2v5* | sco5v6*)
9705 # Note: We can NOT use -z defs as we might desire, because we do not
9706 # link with -lc, and that would cause any symbols used from libc to
9707 # always be unresolved, which means just about no library would
9708 # ever link correctly. If we're not using GNU ld we use -z text
9709 # though, which does catch some bad symbols but isn't as heavy-handed
9710 # as -z defs.
9711 no_undefined_flag='${wl}-z,text'
9712 allow_undefined_flag='${wl}-z,nodefs'
9713 archive_cmds_need_lc=no
9714 hardcode_shlibpath_var=no
9715 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9716 hardcode_libdir_separator=':'
9717 link_all_deplibs=yes
9718 export_dynamic_flag_spec='${wl}-Bexport'
9719 runpath_var='LD_RUN_PATH'
9721 if test "$GCC" = yes; then
9722 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 else
9725 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 uts4*)
9731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_libdir_flag_spec='-L$libdir'
9733 hardcode_shlibpath_var=no
9737 ld_shlibs=no
9739 esac
9741 if test x$host_vendor = xsni; then
9742 case $host in
9743 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9744 export_dynamic_flag_spec='${wl}-Blargedynsym'
9746 esac
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9751 $as_echo "$ld_shlibs" >&6; }
9752 test "$ld_shlibs" = no && can_build_shared=no
9754 with_gnu_ld=$with_gnu_ld
9771 # Do we need to explicitly link libc?
9773 case "x$archive_cmds_need_lc" in
9774 x|xyes)
9775 # Assume -lc should be added
9776 archive_cmds_need_lc=yes
9778 if test "$enable_shared" = yes && test "$GCC" = yes; then
9779 case $archive_cmds in
9780 *'~'*)
9781 # FIXME: we may have to deal with multi-command sequences.
9783 '$CC '*)
9784 # Test whether the compiler implicitly links with -lc since on some
9785 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9786 # to ld, don't add -lc before -lgcc.
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9789 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 $RM conftest*
9793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9796 (eval $ac_compile) 2>&5
9797 ac_status=$?
9798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9799 test $ac_status = 0; } 2>conftest.err; then
9800 soname=conftest
9801 lib=conftest
9802 libobjs=conftest.$ac_objext
9803 deplibs=
9804 wl=$lt_prog_compiler_wl
9805 pic_flag=$lt_prog_compiler_pic
9806 compiler_flags=-v
9807 linker_flags=-v
9808 verstring=
9809 output_objdir=.
9810 libname=conftest
9811 lt_save_allow_undefined_flag=$allow_undefined_flag
9812 allow_undefined_flag=
9813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9814 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9815 ac_status=$?
9816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9817 test $ac_status = 0; }
9818 then
9819 lt_cv_archive_cmds_need_lc=no
9820 else
9821 lt_cv_archive_cmds_need_lc=yes
9823 allow_undefined_flag=$lt_save_allow_undefined_flag
9824 else
9825 cat conftest.err 1>&5
9827 $RM conftest*
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9831 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9832 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9834 esac
9837 esac
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9996 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9998 if test "$GCC" = yes; then
9999 case $host_os in
10000 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10001 *) lt_awk_arg="/^libraries:/" ;;
10002 esac
10003 case $host_os in
10004 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10005 *) lt_sed_strip_eq="s,=/,/,g" ;;
10006 esac
10007 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10008 case $lt_search_path_spec in
10009 *\;*)
10010 # if the path contains ";" then we assume it to be the separator
10011 # otherwise default to the standard path separator (i.e. ":") - it is
10012 # assumed that no part of a normal pathname contains ";" but that should
10013 # okay in the real world where ";" in dirpaths is itself problematic.
10014 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10017 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10019 esac
10020 # Ok, now we have the path, separated by spaces, we can step through it
10021 # and add multilib dir if necessary.
10022 lt_tmp_lt_search_path_spec=
10023 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10024 for lt_sys_path in $lt_search_path_spec; do
10025 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10026 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10027 else
10028 test -d "$lt_sys_path" && \
10029 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10031 done
10032 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10033 BEGIN {RS=" "; FS="/|\n";} {
10034 lt_foo="";
10035 lt_count=0;
10036 for (lt_i = NF; lt_i > 0; lt_i--) {
10037 if ($lt_i != "" && $lt_i != ".") {
10038 if ($lt_i == "..") {
10039 lt_count++;
10040 } else {
10041 if (lt_count == 0) {
10042 lt_foo="/" $lt_i lt_foo;
10043 } else {
10044 lt_count--;
10049 if (lt_foo != "") { lt_freq[lt_foo]++; }
10050 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10052 # AWK program above erroneously prepends '/' to C:/dos/paths
10053 # for these hosts.
10054 case $host_os in
10055 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10056 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10057 esac
10058 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10059 else
10060 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10062 library_names_spec=
10063 libname_spec='lib$name'
10064 soname_spec=
10065 shrext_cmds=".so"
10066 postinstall_cmds=
10067 postuninstall_cmds=
10068 finish_cmds=
10069 finish_eval=
10070 shlibpath_var=
10071 shlibpath_overrides_runpath=unknown
10072 version_type=none
10073 dynamic_linker="$host_os ld.so"
10074 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10075 need_lib_prefix=unknown
10076 hardcode_into_libs=no
10078 # when you set need_version to no, make sure it does not cause -set_version
10079 # flags to be left without arguments
10080 need_version=unknown
10082 case $host_os in
10083 aix3*)
10084 version_type=linux
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10086 shlibpath_var=LIBPATH
10088 # AIX 3 has no versioning support, so we append a major version to the name.
10089 soname_spec='${libname}${release}${shared_ext}$major'
10092 aix[4-9]*)
10093 version_type=linux
10094 need_lib_prefix=no
10095 need_version=no
10096 hardcode_into_libs=yes
10097 if test "$host_cpu" = ia64; then
10098 # AIX 5 supports IA64
10099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 else
10102 # With GCC up to 2.95.x, collect2 would create an import file
10103 # for dependence libraries. The import file would start with
10104 # the line `#! .'. This would cause the generated library to
10105 # depend on `.', always an invalid library. This was fixed in
10106 # development snapshots of GCC prior to 3.0.
10107 case $host_os in
10108 aix4 | aix4.[01] | aix4.[01].*)
10109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10110 echo ' yes '
10111 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10113 else
10114 can_build_shared=no
10117 esac
10118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10119 # soname into executable. Probably we can add versioning support to
10120 # collect2, so additional links can be useful in future.
10121 if test "$aix_use_runtimelinking" = yes; then
10122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10123 # instead of lib<name>.a to let people know that these are not
10124 # typical AIX shared libraries.
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 else
10127 # We preserve .a as extension for shared libraries through AIX4.2
10128 # and later when we are not doing run time linking.
10129 library_names_spec='${libname}${release}.a $libname.a'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10132 shlibpath_var=LIBPATH
10136 amigaos*)
10137 case $host_cpu in
10138 powerpc)
10139 # Since July 2007 AmigaOS4 officially supports .so libraries.
10140 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 m68k)
10144 library_names_spec='$libname.ixlibrary $libname.a'
10145 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10146 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'
10148 esac
10151 beos*)
10152 library_names_spec='${libname}${shared_ext}'
10153 dynamic_linker="$host_os ld.so"
10154 shlibpath_var=LIBRARY_PATH
10157 bsdi[45]*)
10158 version_type=linux
10159 need_version=no
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10166 # the default ld.so.conf also contains /usr/contrib/lib and
10167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10168 # libtool to hard-code these into programs
10171 cygwin* | mingw* | pw32* | cegcc*)
10172 version_type=windows
10173 shrext_cmds=".dll"
10174 need_version=no
10175 need_lib_prefix=no
10177 case $GCC,$host_os in
10178 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10179 library_names_spec='$libname.dll.a'
10180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10181 postinstall_cmds='base_file=`basename \${file}`~
10182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10183 dldir=$destdir/`dirname \$dlpath`~
10184 test -d \$dldir || mkdir -p \$dldir~
10185 $install_prog $dir/$dlname \$dldir/$dlname~
10186 chmod a+x \$dldir/$dlname~
10187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10191 dlpath=$dir/\$dldll~
10192 $RM \$dlpath'
10193 shlibpath_overrides_runpath=yes
10195 case $host_os in
10196 cygwin*)
10197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10198 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10200 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10202 mingw* | cegcc*)
10203 # MinGW DLLs use traditional 'lib' prefix
10204 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10206 pw32*)
10207 # pw32 DLLs use 'pw' prefix rather than 'lib'
10208 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10210 esac
10214 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10216 esac
10217 dynamic_linker='Win32 ld.exe'
10218 # FIXME: first we should search . and the directory the executable is in
10219 shlibpath_var=PATH
10222 darwin* | rhapsody*)
10223 dynamic_linker="$host_os dyld"
10224 version_type=darwin
10225 need_lib_prefix=no
10226 need_version=no
10227 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10228 soname_spec='${libname}${release}${major}$shared_ext'
10229 shlibpath_overrides_runpath=yes
10230 shlibpath_var=DYLD_LIBRARY_PATH
10231 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10233 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10237 dgux*)
10238 version_type=linux
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 shlibpath_var=LD_LIBRARY_PATH
10246 freebsd* | dragonfly*)
10247 # DragonFly does not have aout. When/if they implement a new
10248 # versioning mechanism, adjust this.
10249 if test -x /usr/bin/objformat; then
10250 objformat=`/usr/bin/objformat`
10251 else
10252 case $host_os in
10253 freebsd[123]*) objformat=aout ;;
10254 *) objformat=elf ;;
10255 esac
10257 version_type=freebsd-$objformat
10258 case $version_type in
10259 freebsd-elf*)
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10261 need_version=no
10262 need_lib_prefix=no
10264 freebsd-*)
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10266 need_version=yes
10268 esac
10269 shlibpath_var=LD_LIBRARY_PATH
10270 case $host_os in
10271 freebsd2*)
10272 shlibpath_overrides_runpath=yes
10274 freebsd3.[01]* | freebsdelf3.[01]*)
10275 shlibpath_overrides_runpath=yes
10276 hardcode_into_libs=yes
10278 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10279 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10280 shlibpath_overrides_runpath=no
10281 hardcode_into_libs=yes
10283 *) # from 4.6 on, and DragonFly
10284 shlibpath_overrides_runpath=yes
10285 hardcode_into_libs=yes
10287 esac
10290 gnu*)
10291 version_type=linux
10292 need_lib_prefix=no
10293 need_version=no
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 hardcode_into_libs=yes
10300 haiku*)
10301 version_type=linux
10302 need_lib_prefix=no
10303 need_version=no
10304 dynamic_linker="$host_os runtime_loader"
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LIBRARY_PATH
10308 shlibpath_overrides_runpath=yes
10309 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10310 hardcode_into_libs=yes
10313 hpux9* | hpux10* | hpux11*)
10314 # Give a soname corresponding to the major version so that dld.sl refuses to
10315 # link against other versions.
10316 version_type=sunos
10317 need_lib_prefix=no
10318 need_version=no
10319 case $host_cpu in
10320 ia64*)
10321 shrext_cmds='.so'
10322 hardcode_into_libs=yes
10323 dynamic_linker="$host_os dld.so"
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 if test "X$HPUX_IA64_MODE" = X32; then
10329 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10330 else
10331 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10335 hppa*64*)
10336 shrext_cmds='.sl'
10337 hardcode_into_libs=yes
10338 dynamic_linker="$host_os dld.sl"
10339 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10347 shrext_cmds='.sl'
10348 dynamic_linker="$host_os dld.sl"
10349 shlibpath_var=SHLIB_PATH
10350 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10354 esac
10355 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10356 postinstall_cmds='chmod 555 $lib'
10357 # or fails outright, so override atomically:
10358 install_override_mode=555
10361 interix[3-9]*)
10362 version_type=linux
10363 need_lib_prefix=no
10364 need_version=no
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=no
10370 hardcode_into_libs=yes
10373 irix5* | irix6* | nonstopux*)
10374 case $host_os in
10375 nonstopux*) version_type=nonstopux ;;
10377 if test "$lt_cv_prog_gnu_ld" = yes; then
10378 version_type=linux
10379 else
10380 version_type=irix
10381 fi ;;
10382 esac
10383 need_lib_prefix=no
10384 need_version=no
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10387 case $host_os in
10388 irix5* | nonstopux*)
10389 libsuff= shlibsuff=
10392 case $LD in # libtool.m4 will add one of these switches to LD
10393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10394 libsuff= shlibsuff= libmagic=32-bit;;
10395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10396 libsuff=32 shlibsuff=N32 libmagic=N32;;
10397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10399 *) libsuff= shlibsuff= libmagic=never-match;;
10400 esac
10402 esac
10403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10404 shlibpath_overrides_runpath=no
10405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10407 hardcode_into_libs=yes
10410 # No shared lib support for Linux oldld, aout, or coff.
10411 linux*oldld* | linux*aout* | linux*coff*)
10412 dynamic_linker=no
10415 # This must be Linux ELF.
10416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10417 version_type=linux
10418 need_lib_prefix=no
10419 need_version=no
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=no
10426 # Some binutils ld are patched to set DT_RUNPATH
10427 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 lt_cv_shlibpath_overrides_runpath=no
10431 save_LDFLAGS=$LDFLAGS
10432 save_libdir=$libdir
10433 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10434 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10439 main ()
10443 return 0;
10445 _ACEOF
10446 if ac_fn_c_try_link "$LINENO"; then :
10447 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10448 lt_cv_shlibpath_overrides_runpath=yes
10451 rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10453 LDFLAGS=$save_LDFLAGS
10454 libdir=$save_libdir
10458 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10460 # This implies no fast_install, which is unacceptable.
10461 # Some rework will be needed to allow for fast_install
10462 # before this can be enabled.
10463 hardcode_into_libs=yes
10465 # Append ld.so.conf contents to the search path
10466 if test -f /etc/ld.so.conf; then
10467 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' ' '`
10468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10471 # We used to test for /lib/ld.so.1 and disable shared libraries on
10472 # powerpc, because MkLinux only supported shared libraries with the
10473 # GNU dynamic linker. Since this was broken with cross compilers,
10474 # most powerpc-linux boxes support dynamic linking these days and
10475 # people can always --disable-shared, the test was removed, and we
10476 # assume the GNU/Linux dynamic linker is in use.
10477 dynamic_linker='GNU/Linux ld.so'
10480 netbsd*)
10481 version_type=sunos
10482 need_lib_prefix=no
10483 need_version=no
10484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10487 dynamic_linker='NetBSD (a.out) ld.so'
10488 else
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 dynamic_linker='NetBSD ld.elf_so'
10493 shlibpath_var=LD_LIBRARY_PATH
10494 shlibpath_overrides_runpath=yes
10495 hardcode_into_libs=yes
10498 newsos6)
10499 version_type=linux
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 shlibpath_var=LD_LIBRARY_PATH
10502 shlibpath_overrides_runpath=yes
10505 *nto* | *qnx*)
10506 version_type=qnx
10507 need_lib_prefix=no
10508 need_version=no
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 soname_spec='${libname}${release}${shared_ext}$major'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 shlibpath_overrides_runpath=no
10513 hardcode_into_libs=yes
10514 dynamic_linker='ldqnx.so'
10517 openbsd*)
10518 version_type=sunos
10519 sys_lib_dlsearch_path_spec="/usr/lib"
10520 need_lib_prefix=no
10521 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10522 case $host_os in
10523 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10524 *) need_version=no ;;
10525 esac
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10530 case $host_os in
10531 openbsd2.[89] | openbsd2.[89].*)
10532 shlibpath_overrides_runpath=no
10535 shlibpath_overrides_runpath=yes
10537 esac
10538 else
10539 shlibpath_overrides_runpath=yes
10543 os2*)
10544 libname_spec='$name'
10545 shrext_cmds=".dll"
10546 need_lib_prefix=no
10547 library_names_spec='$libname${shared_ext} $libname.a'
10548 dynamic_linker='OS/2 ld.exe'
10549 shlibpath_var=LIBPATH
10552 osf3* | osf4* | osf5*)
10553 version_type=osf
10554 need_lib_prefix=no
10555 need_version=no
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10560 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10563 rdos*)
10564 dynamic_linker=no
10567 solaris*)
10568 version_type=linux
10569 need_lib_prefix=no
10570 need_version=no
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 shlibpath_var=LD_LIBRARY_PATH
10574 shlibpath_overrides_runpath=yes
10575 hardcode_into_libs=yes
10576 # ldd complains unless libraries are executable
10577 postinstall_cmds='chmod +x $lib'
10580 sunos4*)
10581 version_type=sunos
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10583 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10584 shlibpath_var=LD_LIBRARY_PATH
10585 shlibpath_overrides_runpath=yes
10586 if test "$with_gnu_ld" = yes; then
10587 need_lib_prefix=no
10589 need_version=yes
10592 sysv4 | sysv4.3*)
10593 version_type=linux
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 case $host_vendor in
10598 sni)
10599 shlibpath_overrides_runpath=no
10600 need_lib_prefix=no
10601 runpath_var=LD_RUN_PATH
10603 siemens)
10604 need_lib_prefix=no
10606 motorola)
10607 need_lib_prefix=no
10608 need_version=no
10609 shlibpath_overrides_runpath=no
10610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10612 esac
10615 sysv4*MP*)
10616 if test -d /usr/nec ;then
10617 version_type=linux
10618 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10619 soname_spec='$libname${shared_ext}.$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10625 version_type=freebsd-elf
10626 need_lib_prefix=no
10627 need_version=no
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 hardcode_into_libs=yes
10633 if test "$with_gnu_ld" = yes; then
10634 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10635 else
10636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10637 case $host_os in
10638 sco3.2v5*)
10639 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10641 esac
10643 sys_lib_dlsearch_path_spec='/usr/lib'
10646 tpf*)
10647 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10648 version_type=linux
10649 need_lib_prefix=no
10650 need_version=no
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=no
10654 hardcode_into_libs=yes
10657 uts4*)
10658 version_type=linux
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 shlibpath_var=LD_LIBRARY_PATH
10665 dynamic_linker=no
10667 esac
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10669 $as_echo "$dynamic_linker" >&6; }
10670 test "$dynamic_linker" = no && can_build_shared=no
10672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10673 if test "$GCC" = yes; then
10674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10677 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10678 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10680 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10681 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10776 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10777 hardcode_action=
10778 if test -n "$hardcode_libdir_flag_spec" ||
10779 test -n "$runpath_var" ||
10780 test "X$hardcode_automatic" = "Xyes" ; then
10782 # We can hardcode non-existent directories.
10783 if test "$hardcode_direct" != no &&
10784 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10785 # have to relink, otherwise we might link with an installed library
10786 # when we should be linking with a yet-to-be-installed one
10787 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10788 test "$hardcode_minus_L" != no; then
10789 # Linking always hardcodes the temporary library directory.
10790 hardcode_action=relink
10791 else
10792 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10793 hardcode_action=immediate
10795 else
10796 # We cannot hardcode anything, or else we can only hardcode existing
10797 # directories.
10798 hardcode_action=unsupported
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10801 $as_echo "$hardcode_action" >&6; }
10803 if test "$hardcode_action" = relink ||
10804 test "$inherit_rpath" = yes; then
10805 # Fast installation is not supported
10806 enable_fast_install=no
10807 elif test "$shlibpath_overrides_runpath" = yes ||
10808 test "$enable_shared" = no; then
10809 # Fast installation is not necessary
10810 enable_fast_install=needless
10818 if test "x$enable_dlopen" != xyes; then
10819 enable_dlopen=unknown
10820 enable_dlopen_self=unknown
10821 enable_dlopen_self_static=unknown
10822 else
10823 lt_cv_dlopen=no
10824 lt_cv_dlopen_libs=
10826 case $host_os in
10827 beos*)
10828 lt_cv_dlopen="load_add_on"
10829 lt_cv_dlopen_libs=
10830 lt_cv_dlopen_self=yes
10833 mingw* | pw32* | cegcc*)
10834 lt_cv_dlopen="LoadLibrary"
10835 lt_cv_dlopen_libs=
10838 cygwin*)
10839 lt_cv_dlopen="dlopen"
10840 lt_cv_dlopen_libs=
10843 darwin*)
10844 # if libdl is installed we need to link against it
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10846 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10847 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850 ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-ldl $LIBS"
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10855 /* Override any GCC internal prototype to avoid an error.
10856 Use char because int might match the return type of a GCC
10857 builtin and then its argument prototype would still apply. */
10858 #ifdef __cplusplus
10859 extern "C"
10860 #endif
10861 char dlopen ();
10863 main ()
10865 return dlopen ();
10867 return 0;
10869 _ACEOF
10870 if ac_fn_c_try_link "$LINENO"; then :
10871 ac_cv_lib_dl_dlopen=yes
10872 else
10873 ac_cv_lib_dl_dlopen=no
10875 rm -f core conftest.err conftest.$ac_objext \
10876 conftest$ac_exeext conftest.$ac_ext
10877 LIBS=$ac_check_lib_save_LIBS
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10880 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10881 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10882 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10883 else
10885 lt_cv_dlopen="dyld"
10886 lt_cv_dlopen_libs=
10887 lt_cv_dlopen_self=yes
10894 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10895 if test "x$ac_cv_func_shl_load" = x""yes; then :
10896 lt_cv_dlopen="shl_load"
10897 else
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10899 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10900 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-ldld $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char shl_load ();
10916 main ()
10918 return shl_load ();
10920 return 0;
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 ac_cv_lib_dld_shl_load=yes
10925 else
10926 ac_cv_lib_dld_shl_load=no
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10933 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10934 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10935 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10936 else
10937 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10938 if test "x$ac_cv_func_dlopen" = x""yes; then :
10939 lt_cv_dlopen="dlopen"
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10942 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-ldl $LIBS"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char dlopen ();
10959 main ()
10961 return dlopen ();
10963 return 0;
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 ac_cv_lib_dl_dlopen=yes
10968 else
10969 ac_cv_lib_dl_dlopen=no
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_lib_save_LIBS
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10976 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10977 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10981 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10982 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-lsvld $LIBS"
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char dlopen ();
10998 main ()
11000 return dlopen ();
11002 return 0;
11004 _ACEOF
11005 if ac_fn_c_try_link "$LINENO"; then :
11006 ac_cv_lib_svld_dlopen=yes
11007 else
11008 ac_cv_lib_svld_dlopen=no
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11015 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11016 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11018 else
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11020 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11021 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 ac_check_lib_save_LIBS=$LIBS
11025 LIBS="-ldld $LIBS"
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11032 #ifdef __cplusplus
11033 extern "C"
11034 #endif
11035 char dld_link ();
11037 main ()
11039 return dld_link ();
11041 return 0;
11043 _ACEOF
11044 if ac_fn_c_try_link "$LINENO"; then :
11045 ac_cv_lib_dld_dld_link=yes
11046 else
11047 ac_cv_lib_dld_dld_link=no
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051 LIBS=$ac_check_lib_save_LIBS
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11054 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11055 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11056 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11075 esac
11077 if test "x$lt_cv_dlopen" != xno; then
11078 enable_dlopen=yes
11079 else
11080 enable_dlopen=no
11083 case $lt_cv_dlopen in
11084 dlopen)
11085 save_CPPFLAGS="$CPPFLAGS"
11086 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11088 save_LDFLAGS="$LDFLAGS"
11089 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11091 save_LIBS="$LIBS"
11092 LIBS="$lt_cv_dlopen_libs $LIBS"
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11095 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11096 if test "${lt_cv_dlopen_self+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 if test "$cross_compiling" = yes; then :
11100 lt_cv_dlopen_self=cross
11101 else
11102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11103 lt_status=$lt_dlunknown
11104 cat > conftest.$ac_ext <<_LT_EOF
11105 #line 11105 "configure"
11106 #include "confdefs.h"
11108 #if HAVE_DLFCN_H
11109 #include <dlfcn.h>
11110 #endif
11112 #include <stdio.h>
11114 #ifdef RTLD_GLOBAL
11115 # define LT_DLGLOBAL RTLD_GLOBAL
11116 #else
11117 # ifdef DL_GLOBAL
11118 # define LT_DLGLOBAL DL_GLOBAL
11119 # else
11120 # define LT_DLGLOBAL 0
11121 # endif
11122 #endif
11124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11125 find out it does not work in some platform. */
11126 #ifndef LT_DLLAZY_OR_NOW
11127 # ifdef RTLD_LAZY
11128 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11129 # else
11130 # ifdef DL_LAZY
11131 # define LT_DLLAZY_OR_NOW DL_LAZY
11132 # else
11133 # ifdef RTLD_NOW
11134 # define LT_DLLAZY_OR_NOW RTLD_NOW
11135 # else
11136 # ifdef DL_NOW
11137 # define LT_DLLAZY_OR_NOW DL_NOW
11138 # else
11139 # define LT_DLLAZY_OR_NOW 0
11140 # endif
11141 # endif
11142 # endif
11143 # endif
11144 #endif
11146 /* When -fvisbility=hidden is used, assume the code has been annotated
11147 correspondingly for the symbols needed. */
11148 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11149 void fnord () __attribute__((visibility("default")));
11150 #endif
11152 void fnord () { int i=42; }
11153 int main ()
11155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11156 int status = $lt_dlunknown;
11158 if (self)
11160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11161 else
11163 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11164 else puts (dlerror ());
11166 /* dlclose (self); */
11168 else
11169 puts (dlerror ());
11171 return status;
11173 _LT_EOF
11174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11175 (eval $ac_link) 2>&5
11176 ac_status=$?
11177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11178 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11179 (./conftest; exit; ) >&5 2>/dev/null
11180 lt_status=$?
11181 case x$lt_status in
11182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11184 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11185 esac
11186 else :
11187 # compilation failed
11188 lt_cv_dlopen_self=no
11191 rm -fr conftest*
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11196 $as_echo "$lt_cv_dlopen_self" >&6; }
11198 if test "x$lt_cv_dlopen_self" = xyes; then
11199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11201 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11202 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 if test "$cross_compiling" = yes; then :
11206 lt_cv_dlopen_self_static=cross
11207 else
11208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11209 lt_status=$lt_dlunknown
11210 cat > conftest.$ac_ext <<_LT_EOF
11211 #line 11211 "configure"
11212 #include "confdefs.h"
11214 #if HAVE_DLFCN_H
11215 #include <dlfcn.h>
11216 #endif
11218 #include <stdio.h>
11220 #ifdef RTLD_GLOBAL
11221 # define LT_DLGLOBAL RTLD_GLOBAL
11222 #else
11223 # ifdef DL_GLOBAL
11224 # define LT_DLGLOBAL DL_GLOBAL
11225 # else
11226 # define LT_DLGLOBAL 0
11227 # endif
11228 #endif
11230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11231 find out it does not work in some platform. */
11232 #ifndef LT_DLLAZY_OR_NOW
11233 # ifdef RTLD_LAZY
11234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11235 # else
11236 # ifdef DL_LAZY
11237 # define LT_DLLAZY_OR_NOW DL_LAZY
11238 # else
11239 # ifdef RTLD_NOW
11240 # define LT_DLLAZY_OR_NOW RTLD_NOW
11241 # else
11242 # ifdef DL_NOW
11243 # define LT_DLLAZY_OR_NOW DL_NOW
11244 # else
11245 # define LT_DLLAZY_OR_NOW 0
11246 # endif
11247 # endif
11248 # endif
11249 # endif
11250 #endif
11252 /* When -fvisbility=hidden is used, assume the code has been annotated
11253 correspondingly for the symbols needed. */
11254 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11255 void fnord () __attribute__((visibility("default")));
11256 #endif
11258 void fnord () { int i=42; }
11259 int main ()
11261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11262 int status = $lt_dlunknown;
11264 if (self)
11266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11267 else
11269 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11270 else puts (dlerror ());
11272 /* dlclose (self); */
11274 else
11275 puts (dlerror ());
11277 return status;
11279 _LT_EOF
11280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11281 (eval $ac_link) 2>&5
11282 ac_status=$?
11283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11284 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11285 (./conftest; exit; ) >&5 2>/dev/null
11286 lt_status=$?
11287 case x$lt_status in
11288 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11289 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11290 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11291 esac
11292 else :
11293 # compilation failed
11294 lt_cv_dlopen_self_static=no
11297 rm -fr conftest*
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11302 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11305 CPPFLAGS="$save_CPPFLAGS"
11306 LDFLAGS="$save_LDFLAGS"
11307 LIBS="$save_LIBS"
11309 esac
11311 case $lt_cv_dlopen_self in
11312 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11313 *) enable_dlopen_self=unknown ;;
11314 esac
11316 case $lt_cv_dlopen_self_static in
11317 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11318 *) enable_dlopen_self_static=unknown ;;
11319 esac
11338 striplib=
11339 old_striplib=
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11341 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11342 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11343 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11344 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11346 $as_echo "yes" >&6; }
11347 else
11348 # FIXME - insert some real tests, host_os isn't really good enough
11349 case $host_os in
11350 darwin*)
11351 if test -n "$STRIP" ; then
11352 striplib="$STRIP -x"
11353 old_striplib="$STRIP -S"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11356 else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11365 esac
11379 # Report which library types will actually be built
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11381 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11383 $as_echo "$can_build_shared" >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11386 $as_echo_n "checking whether to build shared libraries... " >&6; }
11387 test "$can_build_shared" = "no" && enable_shared=no
11389 # On AIX, shared libraries and static libraries use the same namespace, and
11390 # are all built from PIC.
11391 case $host_os in
11392 aix3*)
11393 test "$enable_shared" = yes && enable_static=no
11394 if test -n "$RANLIB"; then
11395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11396 postinstall_cmds='$RANLIB $lib'
11400 aix[4-9]*)
11401 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11402 test "$enable_shared" = yes && enable_static=no
11405 esac
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11407 $as_echo "$enable_shared" >&6; }
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11410 $as_echo_n "checking whether to build static libraries... " >&6; }
11411 # Make sure either enable_shared or enable_static is yes.
11412 test "$enable_shared" = yes || enable_static=yes
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11414 $as_echo "$enable_static" >&6; }
11420 ac_ext=c
11421 ac_cpp='$CPP $CPPFLAGS'
11422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11426 CC="$lt_save_CC"
11440 # Source file extension for Go test sources.
11441 ac_ext=go
11443 # Object file extension for compiled Go test sources.
11444 objext=o
11445 objext_GO=$objext
11447 # Code to be used in simple compile tests
11448 lt_simple_compile_test_code="package main; func main() { }"
11450 # Code to be used in simple link tests
11451 lt_simple_link_test_code='package main; func main() { }'
11453 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11460 # If no C compiler was specified, use CC.
11461 LTCC=${LTCC-"$CC"}
11463 # If no C compiler flags were specified, use CFLAGS.
11464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11466 # Allow CC to be a program name with arguments.
11467 compiler=$CC
11470 # save warnings/boilerplate of simple test code
11471 ac_outfile=conftest.$ac_objext
11472 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11473 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11474 _lt_compiler_boilerplate=`cat conftest.err`
11475 $RM conftest*
11477 ac_outfile=conftest.$ac_objext
11478 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11479 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11480 _lt_linker_boilerplate=`cat conftest.err`
11481 $RM -r conftest*
11484 # Allow CC to be a program name with arguments.
11485 lt_save_CC="$CC"
11486 lt_save_GCC="$GCC"
11487 GCC=yes
11488 CC=${GOC-"gccgo"}
11489 compiler=$CC
11490 compiler_GO=$CC
11491 LD_GO="$LD"
11492 for cc_temp in $compiler""; do
11493 case $cc_temp in
11494 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11495 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11496 \-*) ;;
11497 *) break;;
11498 esac
11499 done
11500 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11503 # Go did not exist at the time GCC didn't implicitly link libc in.
11504 archive_cmds_need_lc_GO=no
11506 old_archive_cmds_GO=$old_archive_cmds
11508 ## CAVEAT EMPTOR:
11509 ## There is no encapsulation within the following macros, do not change
11510 ## the running order or otherwise move them around unless you know exactly
11511 ## what you are doing...
11512 if test -n "$compiler"; then
11514 lt_prog_compiler_no_builtin_flag_GO=
11516 if test "$GCC" = yes; then
11517 case $cc_basename in
11518 nvcc*)
11519 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11521 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11522 esac
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11525 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11526 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 lt_cv_prog_compiler_rtti_exceptions=no
11530 ac_outfile=conftest.$ac_objext
11531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11532 lt_compiler_flag="-fno-rtti -fno-exceptions"
11533 # Insert the option either (1) after the last *FLAGS variable, or
11534 # (2) before a word containing "conftest.", or (3) at the end.
11535 # Note that $ac_compile itself does not contain backslashes and begins
11536 # with a dollar sign (not a hyphen), so the echo should work correctly.
11537 # The option is referenced via a variable to avoid confusing sed.
11538 lt_compile=`echo "$ac_compile" | $SED \
11539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11541 -e 's:$: $lt_compiler_flag:'`
11542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11543 (eval "$lt_compile" 2>conftest.err)
11544 ac_status=$?
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 if (exit $ac_status) && test -s "$ac_outfile"; then
11548 # The compiler can only warn and ignore the option if not recognized
11549 # So say no if there are warnings other than the usual output.
11550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11553 lt_cv_prog_compiler_rtti_exceptions=yes
11556 $RM conftest*
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11560 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11563 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11564 else
11572 lt_prog_compiler_wl_GO=
11573 lt_prog_compiler_pic_GO=
11574 lt_prog_compiler_static_GO=
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11577 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11579 if test "$GCC" = yes; then
11580 lt_prog_compiler_wl_GO='-Wl,'
11581 lt_prog_compiler_static_GO='-static'
11583 case $host_os in
11584 aix*)
11585 # All AIX code is PIC.
11586 if test "$host_cpu" = ia64; then
11587 # AIX 5 now supports IA64 processor
11588 lt_prog_compiler_static_GO='-Bstatic'
11592 amigaos*)
11593 case $host_cpu in
11594 powerpc)
11595 # see comment about AmigaOS4 .so support
11596 lt_prog_compiler_pic_GO='-fPIC'
11598 m68k)
11599 # FIXME: we need at least 68020 code to build shared libraries, but
11600 # adding the `-m68020' flag to GCC prevents building anything better,
11601 # like `-m68040'.
11602 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11604 esac
11607 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11608 # PIC is the default for these OSes.
11611 mingw* | cygwin* | pw32* | os2* | cegcc*)
11612 # This hack is so that the source file can tell whether it is being
11613 # built for inclusion in a dll (and should export symbols for example).
11614 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11615 # (--disable-auto-import) libraries
11616 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11619 darwin* | rhapsody*)
11620 # PIC is the default on this platform
11621 # Common symbols not allowed in MH_DYLIB files
11622 lt_prog_compiler_pic_GO='-fno-common'
11625 haiku*)
11626 # PIC is the default for Haiku.
11627 # The "-static" flag exists, but is broken.
11628 lt_prog_compiler_static_GO=
11631 hpux*)
11632 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11633 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11634 # sets the default TLS model and affects inlining.
11635 case $host_cpu in
11636 hppa*64*)
11637 # +Z the default
11640 lt_prog_compiler_pic_GO='-fPIC'
11642 esac
11645 interix[3-9]*)
11646 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11647 # Instead, we relocate shared libraries at runtime.
11650 msdosdjgpp*)
11651 # Just because we use GCC doesn't mean we suddenly get shared libraries
11652 # on systems that don't support them.
11653 lt_prog_compiler_can_build_shared_GO=no
11654 enable_shared=no
11657 *nto* | *qnx*)
11658 # QNX uses GNU C++, but need to define -shared option too, otherwise
11659 # it will coredump.
11660 lt_prog_compiler_pic_GO='-fPIC -shared'
11663 sysv4*MP*)
11664 if test -d /usr/nec; then
11665 lt_prog_compiler_pic_GO=-Kconform_pic
11670 lt_prog_compiler_pic_GO='-fPIC'
11672 esac
11674 case $cc_basename in
11675 nvcc*) # Cuda Compiler Driver 2.2
11676 lt_prog_compiler_wl_GO='-Xlinker '
11677 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11679 esac
11680 else
11681 # PORTME Check for flag to pass linker flags through the system compiler.
11682 case $host_os in
11683 aix*)
11684 lt_prog_compiler_wl_GO='-Wl,'
11685 if test "$host_cpu" = ia64; then
11686 # AIX 5 now supports IA64 processor
11687 lt_prog_compiler_static_GO='-Bstatic'
11688 else
11689 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11693 mingw* | cygwin* | pw32* | os2* | cegcc*)
11694 # This hack is so that the source file can tell whether it is being
11695 # built for inclusion in a dll (and should export symbols for example).
11696 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11699 hpux9* | hpux10* | hpux11*)
11700 lt_prog_compiler_wl_GO='-Wl,'
11701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11702 # not for PA HP-UX.
11703 case $host_cpu in
11704 hppa*64*|ia64*)
11705 # +Z the default
11708 lt_prog_compiler_pic_GO='+Z'
11710 esac
11711 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11712 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11715 irix5* | irix6* | nonstopux*)
11716 lt_prog_compiler_wl_GO='-Wl,'
11717 # PIC (with -KPIC) is the default.
11718 lt_prog_compiler_static_GO='-non_shared'
11721 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11722 case $cc_basename in
11723 # old Intel for x86_64 which still supported -KPIC.
11724 ecc*)
11725 lt_prog_compiler_wl_GO='-Wl,'
11726 lt_prog_compiler_pic_GO='-KPIC'
11727 lt_prog_compiler_static_GO='-static'
11729 # icc used to be incompatible with GCC.
11730 # ICC 10 doesn't accept -KPIC any more.
11731 icc* | ifort*)
11732 lt_prog_compiler_wl_GO='-Wl,'
11733 lt_prog_compiler_pic_GO='-fPIC'
11734 lt_prog_compiler_static_GO='-static'
11736 # Lahey Fortran 8.1.
11737 lf95*)
11738 lt_prog_compiler_wl_GO='-Wl,'
11739 lt_prog_compiler_pic_GO='--shared'
11740 lt_prog_compiler_static_GO='--static'
11742 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11743 # Portland Group compilers (*not* the Pentium gcc compiler,
11744 # which looks to be a dead project)
11745 lt_prog_compiler_wl_GO='-Wl,'
11746 lt_prog_compiler_pic_GO='-fpic'
11747 lt_prog_compiler_static_GO='-Bstatic'
11749 ccc*)
11750 lt_prog_compiler_wl_GO='-Wl,'
11751 # All Alpha code is PIC.
11752 lt_prog_compiler_static_GO='-non_shared'
11754 xl* | bgxl* | bgf* | mpixl*)
11755 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11756 lt_prog_compiler_wl_GO='-Wl,'
11757 lt_prog_compiler_pic_GO='-qpic'
11758 lt_prog_compiler_static_GO='-qstaticlink'
11761 case `$CC -V 2>&1 | sed 5q` in
11762 *Sun\ F* | *Sun*Fortran*)
11763 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11764 lt_prog_compiler_pic_GO='-KPIC'
11765 lt_prog_compiler_static_GO='-Bstatic'
11766 lt_prog_compiler_wl_GO=''
11768 *Sun\ C*)
11769 # Sun C 5.9
11770 lt_prog_compiler_pic_GO='-KPIC'
11771 lt_prog_compiler_static_GO='-Bstatic'
11772 lt_prog_compiler_wl_GO='-Wl,'
11774 esac
11776 esac
11779 newsos6)
11780 lt_prog_compiler_pic_GO='-KPIC'
11781 lt_prog_compiler_static_GO='-Bstatic'
11784 *nto* | *qnx*)
11785 # QNX uses GNU C++, but need to define -shared option too, otherwise
11786 # it will coredump.
11787 lt_prog_compiler_pic_GO='-fPIC -shared'
11790 osf3* | osf4* | osf5*)
11791 lt_prog_compiler_wl_GO='-Wl,'
11792 # All OSF/1 code is PIC.
11793 lt_prog_compiler_static_GO='-non_shared'
11796 rdos*)
11797 lt_prog_compiler_static_GO='-non_shared'
11800 solaris*)
11801 lt_prog_compiler_pic_GO='-KPIC'
11802 lt_prog_compiler_static_GO='-Bstatic'
11803 case $cc_basename in
11804 f77* | f90* | f95*)
11805 lt_prog_compiler_wl_GO='-Qoption ld ';;
11807 lt_prog_compiler_wl_GO='-Wl,';;
11808 esac
11811 sunos4*)
11812 lt_prog_compiler_wl_GO='-Qoption ld '
11813 lt_prog_compiler_pic_GO='-PIC'
11814 lt_prog_compiler_static_GO='-Bstatic'
11817 sysv4 | sysv4.2uw2* | sysv4.3*)
11818 lt_prog_compiler_wl_GO='-Wl,'
11819 lt_prog_compiler_pic_GO='-KPIC'
11820 lt_prog_compiler_static_GO='-Bstatic'
11823 sysv4*MP*)
11824 if test -d /usr/nec ;then
11825 lt_prog_compiler_pic_GO='-Kconform_pic'
11826 lt_prog_compiler_static_GO='-Bstatic'
11830 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11831 lt_prog_compiler_wl_GO='-Wl,'
11832 lt_prog_compiler_pic_GO='-KPIC'
11833 lt_prog_compiler_static_GO='-Bstatic'
11836 unicos*)
11837 lt_prog_compiler_wl_GO='-Wl,'
11838 lt_prog_compiler_can_build_shared_GO=no
11841 uts4*)
11842 lt_prog_compiler_pic_GO='-pic'
11843 lt_prog_compiler_static_GO='-Bstatic'
11847 lt_prog_compiler_can_build_shared_GO=no
11849 esac
11852 case $host_os in
11853 # For platforms which do not support PIC, -DPIC is meaningless:
11854 *djgpp*)
11855 lt_prog_compiler_pic_GO=
11858 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11860 esac
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11862 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11867 # Check to make sure the PIC flag actually works.
11869 if test -n "$lt_prog_compiler_pic_GO"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11871 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11872 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 lt_cv_prog_compiler_pic_works_GO=no
11876 ac_outfile=conftest.$ac_objext
11877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11878 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11879 # Insert the option either (1) after the last *FLAGS variable, or
11880 # (2) before a word containing "conftest.", or (3) at the end.
11881 # Note that $ac_compile itself does not contain backslashes and begins
11882 # with a dollar sign (not a hyphen), so the echo should work correctly.
11883 # The option is referenced via a variable to avoid confusing sed.
11884 lt_compile=`echo "$ac_compile" | $SED \
11885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11887 -e 's:$: $lt_compiler_flag:'`
11888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11889 (eval "$lt_compile" 2>conftest.err)
11890 ac_status=$?
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 if (exit $ac_status) && test -s "$ac_outfile"; then
11894 # The compiler can only warn and ignore the option if not recognized
11895 # So say no if there are warnings other than the usual output.
11896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11899 lt_cv_prog_compiler_pic_works_GO=yes
11902 $RM conftest*
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11906 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11908 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11909 case $lt_prog_compiler_pic_GO in
11910 "" | " "*) ;;
11911 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11912 esac
11913 else
11914 lt_prog_compiler_pic_GO=
11915 lt_prog_compiler_can_build_shared_GO=no
11923 # Check to make sure the static flag actually works.
11925 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11927 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11928 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 lt_cv_prog_compiler_static_works_GO=no
11932 save_LDFLAGS="$LDFLAGS"
11933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11934 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11936 # The linker can only warn and ignore the option if not recognized
11937 # So say no if there are warnings
11938 if test -s conftest.err; then
11939 # Append any errors to the config.log.
11940 cat conftest.err 1>&5
11941 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11943 if diff conftest.exp conftest.er2 >/dev/null; then
11944 lt_cv_prog_compiler_static_works_GO=yes
11946 else
11947 lt_cv_prog_compiler_static_works_GO=yes
11950 $RM -r conftest*
11951 LDFLAGS="$save_LDFLAGS"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11955 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11957 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11959 else
11960 lt_prog_compiler_static_GO=
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11968 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 lt_cv_prog_compiler_c_o_GO=no
11972 $RM -r conftest 2>/dev/null
11973 mkdir conftest
11974 cd conftest
11975 mkdir out
11976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11978 lt_compiler_flag="-o out/conftest2.$ac_objext"
11979 # Insert the option either (1) after the last *FLAGS variable, or
11980 # (2) before a word containing "conftest.", or (3) at the end.
11981 # Note that $ac_compile itself does not contain backslashes and begins
11982 # with a dollar sign (not a hyphen), so the echo should work correctly.
11983 lt_compile=`echo "$ac_compile" | $SED \
11984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11986 -e 's:$: $lt_compiler_flag:'`
11987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11988 (eval "$lt_compile" 2>out/conftest.err)
11989 ac_status=$?
11990 cat out/conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11993 then
11994 # The compiler can only warn and ignore the option if not recognized
11995 # So say no if there are warnings
11996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11999 lt_cv_prog_compiler_c_o_GO=yes
12002 chmod u+w . 2>&5
12003 $RM conftest*
12004 # SGI C++ compiler will create directory out/ii_files/ for
12005 # template instantiation
12006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12007 $RM out/* && rmdir out
12008 cd ..
12009 $RM -r conftest
12010 $RM conftest*
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12014 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12019 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12020 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 lt_cv_prog_compiler_c_o_GO=no
12024 $RM -r conftest 2>/dev/null
12025 mkdir conftest
12026 cd conftest
12027 mkdir out
12028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12030 lt_compiler_flag="-o out/conftest2.$ac_objext"
12031 # Insert the option either (1) after the last *FLAGS variable, or
12032 # (2) before a word containing "conftest.", or (3) at the end.
12033 # Note that $ac_compile itself does not contain backslashes and begins
12034 # with a dollar sign (not a hyphen), so the echo should work correctly.
12035 lt_compile=`echo "$ac_compile" | $SED \
12036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12038 -e 's:$: $lt_compiler_flag:'`
12039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12040 (eval "$lt_compile" 2>out/conftest.err)
12041 ac_status=$?
12042 cat out/conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12045 then
12046 # The compiler can only warn and ignore the option if not recognized
12047 # So say no if there are warnings
12048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12051 lt_cv_prog_compiler_c_o_GO=yes
12054 chmod u+w . 2>&5
12055 $RM conftest*
12056 # SGI C++ compiler will create directory out/ii_files/ for
12057 # template instantiation
12058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12059 $RM out/* && rmdir out
12060 cd ..
12061 $RM -r conftest
12062 $RM conftest*
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12066 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12071 hard_links="nottested"
12072 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12073 # do not overwrite the value of need_locks provided by the user
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12075 $as_echo_n "checking if we can lock with hard links... " >&6; }
12076 hard_links=yes
12077 $RM conftest*
12078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12079 touch conftest.a
12080 ln conftest.a conftest.b 2>&5 || hard_links=no
12081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12083 $as_echo "$hard_links" >&6; }
12084 if test "$hard_links" = no; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12086 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12087 need_locks=warn
12089 else
12090 need_locks=no
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12098 runpath_var=
12099 allow_undefined_flag_GO=
12100 always_export_symbols_GO=no
12101 archive_cmds_GO=
12102 archive_expsym_cmds_GO=
12103 compiler_needs_object_GO=no
12104 enable_shared_with_static_runtimes_GO=no
12105 export_dynamic_flag_spec_GO=
12106 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12107 hardcode_automatic_GO=no
12108 hardcode_direct_GO=no
12109 hardcode_direct_absolute_GO=no
12110 hardcode_libdir_flag_spec_GO=
12111 hardcode_libdir_flag_spec_ld_GO=
12112 hardcode_libdir_separator_GO=
12113 hardcode_minus_L_GO=no
12114 hardcode_shlibpath_var_GO=unsupported
12115 inherit_rpath_GO=no
12116 link_all_deplibs_GO=unknown
12117 module_cmds_GO=
12118 module_expsym_cmds_GO=
12119 old_archive_from_new_cmds_GO=
12120 old_archive_from_expsyms_cmds_GO=
12121 thread_safe_flag_spec_GO=
12122 whole_archive_flag_spec_GO=
12123 # include_expsyms should be a list of space-separated symbols to be *always*
12124 # included in the symbol list
12125 include_expsyms_GO=
12126 # exclude_expsyms can be an extended regexp of symbols to exclude
12127 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12129 # as well as any symbol that contains `d'.
12130 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12132 # platforms (ab)use it in PIC code, but their linkers get confused if
12133 # the symbol is explicitly referenced. Since portable code cannot
12134 # rely on this symbol name, it's probably fine to never include it in
12135 # preloaded symbol tables.
12136 # Exclude shared library initialization/finalization symbols.
12137 extract_expsyms_cmds=
12139 case $host_os in
12140 cygwin* | mingw* | pw32* | cegcc*)
12141 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12142 # When not using gcc, we currently assume that we are using
12143 # Microsoft Visual C++.
12144 if test "$GCC" != yes; then
12145 with_gnu_ld=no
12148 interix*)
12149 # we just hope/assume this is gcc and not c89 (= MSVC++)
12150 with_gnu_ld=yes
12152 openbsd*)
12153 with_gnu_ld=no
12155 esac
12157 ld_shlibs_GO=yes
12159 # On some targets, GNU ld is compatible enough with the native linker
12160 # that we're better off using the native interface for both.
12161 lt_use_gnu_ld_interface=no
12162 if test "$with_gnu_ld" = yes; then
12163 case $host_os in
12164 aix*)
12165 # The AIX port of GNU ld has always aspired to compatibility
12166 # with the native linker. However, as the warning in the GNU ld
12167 # block says, versions before 2.19.5* couldn't really create working
12168 # shared libraries, regardless of the interface used.
12169 case `$LD -v 2>&1` in
12170 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12171 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12172 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12174 lt_use_gnu_ld_interface=yes
12176 esac
12179 lt_use_gnu_ld_interface=yes
12181 esac
12184 if test "$lt_use_gnu_ld_interface" = yes; then
12185 # If archive_cmds runs LD, not CC, wlarc should be empty
12186 wlarc='${wl}'
12188 # Set some defaults for GNU ld with shared library support. These
12189 # are reset later if shared libraries are not supported. Putting them
12190 # here allows them to be overridden if necessary.
12191 runpath_var=LD_RUN_PATH
12192 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12193 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12194 # ancient GNU ld didn't support --whole-archive et. al.
12195 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12196 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12197 else
12198 whole_archive_flag_spec_GO=
12200 supports_anon_versioning=no
12201 case `$LD -v 2>&1` in
12202 *GNU\ gold*) supports_anon_versioning=yes ;;
12203 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12204 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12205 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12206 *\ 2.11.*) ;; # other 2.11 versions
12207 *) supports_anon_versioning=yes ;;
12208 esac
12210 # See if GNU ld supports shared libraries.
12211 case $host_os in
12212 aix[3-9]*)
12213 # On AIX/PPC, the GNU linker is very broken
12214 if test "$host_cpu" != ia64; then
12215 ld_shlibs_GO=no
12216 cat <<_LT_EOF 1>&2
12218 *** Warning: the GNU linker, at least up to release 2.19, is reported
12219 *** to be unable to reliably create shared libraries on AIX.
12220 *** Therefore, libtool is disabling shared libraries support. If you
12221 *** really care for shared libraries, you may want to install binutils
12222 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12223 *** You will then need to restart the configuration process.
12225 _LT_EOF
12229 amigaos*)
12230 case $host_cpu in
12231 powerpc)
12232 # see comment about AmigaOS4 .so support
12233 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12234 archive_expsym_cmds_GO=''
12236 m68k)
12237 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)'
12238 hardcode_libdir_flag_spec_GO='-L$libdir'
12239 hardcode_minus_L_GO=yes
12241 esac
12244 beos*)
12245 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12246 allow_undefined_flag_GO=unsupported
12247 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12248 # support --undefined. This deserves some investigation. FIXME
12249 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12250 else
12251 ld_shlibs_GO=no
12255 cygwin* | mingw* | pw32* | cegcc*)
12256 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12257 # as there is no search path for DLLs.
12258 hardcode_libdir_flag_spec_GO='-L$libdir'
12259 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12260 allow_undefined_flag_GO=unsupported
12261 always_export_symbols_GO=no
12262 enable_shared_with_static_runtimes_GO=yes
12263 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12265 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12266 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12267 # If the export-symbols file already is a .def file (1st line
12268 # is EXPORTS), use it as is; otherwise, prepend...
12269 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12270 cp $export_symbols $output_objdir/$soname.def;
12271 else
12272 echo EXPORTS > $output_objdir/$soname.def;
12273 cat $export_symbols >> $output_objdir/$soname.def;
12275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12276 else
12277 ld_shlibs_GO=no
12281 haiku*)
12282 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283 link_all_deplibs_GO=yes
12286 interix[3-9]*)
12287 hardcode_direct_GO=no
12288 hardcode_shlibpath_var_GO=no
12289 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12290 export_dynamic_flag_spec_GO='${wl}-E'
12291 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12292 # Instead, shared libraries are loaded at an image base (0x10000000 by
12293 # default) and relocated if they conflict, which is a slow very memory
12294 # consuming and fragmenting process. To avoid this, we pick a random,
12295 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12296 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12297 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'
12298 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'
12301 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12302 tmp_diet=no
12303 if test "$host_os" = linux-dietlibc; then
12304 case $cc_basename in
12305 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12306 esac
12308 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12309 && test "$tmp_diet" = no
12310 then
12311 tmp_addflag=
12312 tmp_sharedflag='-shared'
12313 case $cc_basename,$host_cpu in
12314 pgcc*) # Portland Group C compiler
12315 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'
12316 tmp_addflag=' $pic_flag'
12318 pgf77* | pgf90* | pgf95* | pgfortran*)
12319 # Portland Group f77 and f90 compilers
12320 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'
12321 tmp_addflag=' $pic_flag -Mnomain' ;;
12322 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12323 tmp_addflag=' -i_dynamic' ;;
12324 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12325 tmp_addflag=' -i_dynamic -nofor_main' ;;
12326 ifc* | ifort*) # Intel Fortran compiler
12327 tmp_addflag=' -nofor_main' ;;
12328 lf95*) # Lahey Fortran 8.1
12329 whole_archive_flag_spec_GO=
12330 tmp_sharedflag='--shared' ;;
12331 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12332 tmp_sharedflag='-qmkshrobj'
12333 tmp_addflag= ;;
12334 nvcc*) # Cuda Compiler Driver 2.2
12335 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12336 compiler_needs_object_GO=yes
12338 esac
12339 case `$CC -V 2>&1 | sed 5q` in
12340 *Sun\ C*) # Sun C 5.9
12341 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'
12342 compiler_needs_object_GO=yes
12343 tmp_sharedflag='-G' ;;
12344 *Sun\ F*) # Sun Fortran 8.3
12345 tmp_sharedflag='-G' ;;
12346 esac
12347 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12349 if test "x$supports_anon_versioning" = xyes; then
12350 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12352 echo "local: *; };" >> $output_objdir/$libname.ver~
12353 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12356 case $cc_basename in
12357 xlf* | bgf* | bgxlf* | mpixlf*)
12358 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12359 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12360 hardcode_libdir_flag_spec_GO=
12361 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12362 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12363 if test "x$supports_anon_versioning" = xyes; then
12364 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12366 echo "local: *; };" >> $output_objdir/$libname.ver~
12367 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12370 esac
12371 else
12372 ld_shlibs_GO=no
12376 netbsd*)
12377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12378 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12379 wlarc=
12380 else
12381 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12382 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12386 solaris*)
12387 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12388 ld_shlibs_GO=no
12389 cat <<_LT_EOF 1>&2
12391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12392 *** create shared libraries on Solaris systems. Therefore, libtool
12393 *** is disabling shared libraries support. We urge you to upgrade GNU
12394 *** binutils to release 2.9.1 or newer. Another option is to modify
12395 *** your PATH or compiler configuration so that the native linker is
12396 *** used, and then restart.
12398 _LT_EOF
12399 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12400 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12401 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12402 else
12403 ld_shlibs_GO=no
12407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12408 case `$LD -v 2>&1` in
12409 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12410 ld_shlibs_GO=no
12411 cat <<_LT_EOF 1>&2
12413 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12414 *** reliably create shared libraries on SCO systems. Therefore, libtool
12415 *** is disabling shared libraries support. We urge you to upgrade GNU
12416 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12417 *** your PATH or compiler configuration so that the native linker is
12418 *** used, and then restart.
12420 _LT_EOF
12423 # For security reasons, it is highly recommended that you always
12424 # use absolute paths for naming shared libraries, and exclude the
12425 # DT_RUNPATH tag from executables and libraries. But doing so
12426 # requires that you compile everything twice, which is a pain.
12427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12428 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12429 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12431 else
12432 ld_shlibs_GO=no
12435 esac
12438 sunos4*)
12439 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12440 wlarc=
12441 hardcode_direct_GO=yes
12442 hardcode_shlibpath_var_GO=no
12446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12447 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12448 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12449 else
12450 ld_shlibs_GO=no
12453 esac
12455 if test "$ld_shlibs_GO" = no; then
12456 runpath_var=
12457 hardcode_libdir_flag_spec_GO=
12458 export_dynamic_flag_spec_GO=
12459 whole_archive_flag_spec_GO=
12461 else
12462 # PORTME fill in a description of your system's linker (not GNU ld)
12463 case $host_os in
12464 aix3*)
12465 allow_undefined_flag_GO=unsupported
12466 always_export_symbols_GO=yes
12467 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'
12468 # Note: this linker hardcodes the directories in LIBPATH if there
12469 # are no directories specified by -L.
12470 hardcode_minus_L_GO=yes
12471 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12472 # Neither direct hardcoding nor static linking is supported with a
12473 # broken collect2.
12474 hardcode_direct_GO=unsupported
12478 aix[4-9]*)
12479 if test "$host_cpu" = ia64; then
12480 # On IA64, the linker does run time linking by default, so we don't
12481 # have to do anything special.
12482 aix_use_runtimelinking=no
12483 exp_sym_flag='-Bexport'
12484 no_entry_flag=""
12485 else
12486 # If we're using GNU nm, then we don't want the "-C" option.
12487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12488 # Also, AIX nm treats weak defined symbols like other global
12489 # defined symbols, whereas GNU nm marks them as "W".
12490 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12491 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'
12492 else
12493 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'
12495 aix_use_runtimelinking=no
12497 # Test if we are trying to use run time linking or normal
12498 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12499 # need to do runtime linking.
12500 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12501 for ld_flag in $LDFLAGS; do
12502 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12503 aix_use_runtimelinking=yes
12504 break
12506 done
12508 esac
12510 exp_sym_flag='-bexport'
12511 no_entry_flag='-bnoentry'
12514 # When large executables or shared objects are built, AIX ld can
12515 # have problems creating the table of contents. If linking a library
12516 # or program results in "error TOC overflow" add -mminimal-toc to
12517 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12518 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12520 archive_cmds_GO=''
12521 hardcode_direct_GO=yes
12522 hardcode_direct_absolute_GO=yes
12523 hardcode_libdir_separator_GO=':'
12524 link_all_deplibs_GO=yes
12525 file_list_spec_GO='${wl}-f,'
12527 if test "$GCC" = yes; then
12528 case $host_os in aix4.[012]|aix4.[012].*)
12529 # We only want to do this on AIX 4.2 and lower, the check
12530 # below for broken collect2 doesn't work under 4.3+
12531 collect2name=`${CC} -print-prog-name=collect2`
12532 if test -f "$collect2name" &&
12533 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12534 then
12535 # We have reworked collect2
12537 else
12538 # We have old collect2
12539 hardcode_direct_GO=unsupported
12540 # It fails to find uninstalled libraries when the uninstalled
12541 # path is not listed in the libpath. Setting hardcode_minus_L
12542 # to unsupported forces relinking
12543 hardcode_minus_L_GO=yes
12544 hardcode_libdir_flag_spec_GO='-L$libdir'
12545 hardcode_libdir_separator_GO=
12548 esac
12549 shared_flag='-shared'
12550 if test "$aix_use_runtimelinking" = yes; then
12551 shared_flag="$shared_flag "'${wl}-G'
12553 else
12554 # not using gcc
12555 if test "$host_cpu" = ia64; then
12556 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12557 # chokes on -Wl,-G. The following line is correct:
12558 shared_flag='-G'
12559 else
12560 if test "$aix_use_runtimelinking" = yes; then
12561 shared_flag='${wl}-G'
12562 else
12563 shared_flag='${wl}-bM:SRE'
12568 export_dynamic_flag_spec_GO='${wl}-bexpall'
12569 # It seems that -bexpall does not export symbols beginning with
12570 # underscore (_), so it is better to generate a list of symbols to export.
12571 always_export_symbols_GO=yes
12572 if test "$aix_use_runtimelinking" = yes; then
12573 # Warning - without using the other runtime loading flags (-brtl),
12574 # -berok will link without error, but may produce a broken library.
12575 allow_undefined_flag_GO='-berok'
12576 # Determine the default libpath from the value encoded in an
12577 # empty executable.
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12582 main ()
12586 return 0;
12588 _ACEOF
12589 if ac_fn_c_try_link "$LINENO"; then :
12591 lt_aix_libpath_sed='
12592 /Import File Strings/,/^$/ {
12593 /^0/ {
12594 s/^0 *\(.*\)$/\1/
12598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599 # Check for a 64-bit object if we didn't find anything.
12600 if test -z "$aix_libpath"; then
12601 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12608 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12609 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"
12610 else
12611 if test "$host_cpu" = ia64; then
12612 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12613 allow_undefined_flag_GO="-z nodefs"
12614 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"
12615 else
12616 # Determine the default libpath from the value encoded in an
12617 # empty executable.
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12622 main ()
12626 return 0;
12628 _ACEOF
12629 if ac_fn_c_try_link "$LINENO"; then :
12631 lt_aix_libpath_sed='
12632 /Import File Strings/,/^$/ {
12633 /^0/ {
12634 s/^0 *\(.*\)$/\1/
12638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639 # Check for a 64-bit object if we didn't find anything.
12640 if test -z "$aix_libpath"; then
12641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12644 rm -f core conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12648 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12649 # Warning - without using the other run time loading flags,
12650 # -berok will link without error, but may produce a broken library.
12651 no_undefined_flag_GO=' ${wl}-bernotok'
12652 allow_undefined_flag_GO=' ${wl}-berok'
12653 if test "$with_gnu_ld" = yes; then
12654 # We only use this code for GNU lds that support --whole-archive.
12655 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12656 else
12657 # Exported symbols can be pulled into shared objects from archives
12658 whole_archive_flag_spec_GO='$convenience'
12660 archive_cmds_need_lc_GO=yes
12661 # This is similar to how AIX traditionally builds its shared libraries.
12662 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'
12667 amigaos*)
12668 case $host_cpu in
12669 powerpc)
12670 # see comment about AmigaOS4 .so support
12671 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12672 archive_expsym_cmds_GO=''
12674 m68k)
12675 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)'
12676 hardcode_libdir_flag_spec_GO='-L$libdir'
12677 hardcode_minus_L_GO=yes
12679 esac
12682 bsdi[45]*)
12683 export_dynamic_flag_spec_GO=-rdynamic
12686 cygwin* | mingw* | pw32* | cegcc*)
12687 # When not using gcc, we currently assume that we are using
12688 # Microsoft Visual C++.
12689 # hardcode_libdir_flag_spec is actually meaningless, as there is
12690 # no search path for DLLs.
12691 hardcode_libdir_flag_spec_GO=' '
12692 allow_undefined_flag_GO=unsupported
12693 # Tell ltmain to make .lib files, not .a files.
12694 libext=lib
12695 # Tell ltmain to make .dll files, not .so files.
12696 shrext_cmds=".dll"
12697 # FIXME: Setting linknames here is a bad hack.
12698 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12699 # The linker will automatically build a .lib file if we build a DLL.
12700 old_archive_from_new_cmds_GO='true'
12701 # FIXME: Should let the user specify the lib program.
12702 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12703 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12704 enable_shared_with_static_runtimes_GO=yes
12707 darwin* | rhapsody*)
12710 archive_cmds_need_lc_GO=no
12711 hardcode_direct_GO=no
12712 hardcode_automatic_GO=yes
12713 hardcode_shlibpath_var_GO=unsupported
12714 if test "$lt_cv_ld_force_load" = "yes"; then
12715 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\"`'
12716 else
12717 whole_archive_flag_spec_GO=''
12719 link_all_deplibs_GO=yes
12720 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12721 case $cc_basename in
12722 ifort*) _lt_dar_can_shared=yes ;;
12723 *) _lt_dar_can_shared=$GCC ;;
12724 esac
12725 if test "$_lt_dar_can_shared" = "yes"; then
12726 output_verbose_link_cmd=func_echo_all
12727 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}"
12728 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12729 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}"
12730 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}"
12732 else
12733 ld_shlibs_GO=no
12738 dgux*)
12739 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12740 hardcode_libdir_flag_spec_GO='-L$libdir'
12741 hardcode_shlibpath_var_GO=no
12744 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12745 # support. Future versions do this automatically, but an explicit c++rt0.o
12746 # does not break anything, and helps significantly (at the cost of a little
12747 # extra space).
12748 freebsd2.2*)
12749 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12750 hardcode_libdir_flag_spec_GO='-R$libdir'
12751 hardcode_direct_GO=yes
12752 hardcode_shlibpath_var_GO=no
12755 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12756 freebsd2*)
12757 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12758 hardcode_direct_GO=yes
12759 hardcode_minus_L_GO=yes
12760 hardcode_shlibpath_var_GO=no
12763 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12764 freebsd* | dragonfly*)
12765 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12766 hardcode_libdir_flag_spec_GO='-R$libdir'
12767 hardcode_direct_GO=yes
12768 hardcode_shlibpath_var_GO=no
12771 hpux9*)
12772 if test "$GCC" = yes; then
12773 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'
12774 else
12775 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'
12777 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12778 hardcode_libdir_separator_GO=:
12779 hardcode_direct_GO=yes
12781 # hardcode_minus_L: Not really in the search PATH,
12782 # but as the default location of the library.
12783 hardcode_minus_L_GO=yes
12784 export_dynamic_flag_spec_GO='${wl}-E'
12787 hpux10*)
12788 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12789 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12790 else
12791 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12793 if test "$with_gnu_ld" = no; then
12794 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12795 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12796 hardcode_libdir_separator_GO=:
12797 hardcode_direct_GO=yes
12798 hardcode_direct_absolute_GO=yes
12799 export_dynamic_flag_spec_GO='${wl}-E'
12800 # hardcode_minus_L: Not really in the search PATH,
12801 # but as the default location of the library.
12802 hardcode_minus_L_GO=yes
12806 hpux11*)
12807 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12808 case $host_cpu in
12809 hppa*64*)
12810 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12812 ia64*)
12813 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12816 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12818 esac
12819 else
12820 case $host_cpu in
12821 hppa*64*)
12822 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12824 ia64*)
12825 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12828 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12830 esac
12832 if test "$with_gnu_ld" = no; then
12833 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12834 hardcode_libdir_separator_GO=:
12836 case $host_cpu in
12837 hppa*64*|ia64*)
12838 hardcode_direct_GO=no
12839 hardcode_shlibpath_var_GO=no
12842 hardcode_direct_GO=yes
12843 hardcode_direct_absolute_GO=yes
12844 export_dynamic_flag_spec_GO='${wl}-E'
12846 # hardcode_minus_L: Not really in the search PATH,
12847 # but as the default location of the library.
12848 hardcode_minus_L_GO=yes
12850 esac
12854 irix5* | irix6* | nonstopux*)
12855 if test "$GCC" = yes; then
12856 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'
12857 # Try to use the -exported_symbol ld option, if it does not
12858 # work, assume that -exports_file does not work either and
12859 # implicitly export all symbols.
12860 save_LDFLAGS="$LDFLAGS"
12861 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864 int foo(void) {}
12865 _ACEOF
12866 if ac_fn_c_try_link "$LINENO"; then :
12867 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'
12870 rm -f core conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872 LDFLAGS="$save_LDFLAGS"
12873 else
12874 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'
12875 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'
12877 archive_cmds_need_lc_GO='no'
12878 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12879 hardcode_libdir_separator_GO=:
12880 inherit_rpath_GO=yes
12881 link_all_deplibs_GO=yes
12884 netbsd*)
12885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12886 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12887 else
12888 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12890 hardcode_libdir_flag_spec_GO='-R$libdir'
12891 hardcode_direct_GO=yes
12892 hardcode_shlibpath_var_GO=no
12895 newsos6)
12896 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_direct_GO=yes
12898 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12899 hardcode_libdir_separator_GO=:
12900 hardcode_shlibpath_var_GO=no
12903 *nto* | *qnx*)
12906 openbsd*)
12907 if test -f /usr/libexec/ld.so; then
12908 hardcode_direct_GO=yes
12909 hardcode_shlibpath_var_GO=no
12910 hardcode_direct_absolute_GO=yes
12911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12912 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12913 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12914 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12915 export_dynamic_flag_spec_GO='${wl}-E'
12916 else
12917 case $host_os in
12918 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12919 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12920 hardcode_libdir_flag_spec_GO='-R$libdir'
12923 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12924 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12926 esac
12928 else
12929 ld_shlibs_GO=no
12933 os2*)
12934 hardcode_libdir_flag_spec_GO='-L$libdir'
12935 hardcode_minus_L_GO=yes
12936 allow_undefined_flag_GO=unsupported
12937 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'
12938 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12941 osf3*)
12942 if test "$GCC" = yes; then
12943 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12944 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'
12945 else
12946 allow_undefined_flag_GO=' -expect_unresolved \*'
12947 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'
12949 archive_cmds_need_lc_GO='no'
12950 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12951 hardcode_libdir_separator_GO=:
12954 osf4* | osf5*) # as osf3* with the addition of -msym flag
12955 if test "$GCC" = yes; then
12956 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12957 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'
12958 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12959 else
12960 allow_undefined_flag_GO=' -expect_unresolved \*'
12961 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'
12962 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~
12963 $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'
12965 # Both c and cxx compiler support -rpath directly
12966 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12968 archive_cmds_need_lc_GO='no'
12969 hardcode_libdir_separator_GO=:
12972 solaris*)
12973 no_undefined_flag_GO=' -z defs'
12974 if test "$GCC" = yes; then
12975 wlarc='${wl}'
12976 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12977 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12978 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12979 else
12980 case `$CC -V 2>&1` in
12981 *"Compilers 5.0"*)
12982 wlarc=''
12983 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12984 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12985 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12988 wlarc='${wl}'
12989 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12990 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12991 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12993 esac
12995 hardcode_libdir_flag_spec_GO='-R$libdir'
12996 hardcode_shlibpath_var_GO=no
12997 case $host_os in
12998 solaris2.[0-5] | solaris2.[0-5].*) ;;
13000 # The compiler driver will combine and reorder linker options,
13001 # but understands `-z linker_flag'. GCC discards it without `$wl',
13002 # but is careful enough not to reorder.
13003 # Supported since Solaris 2.6 (maybe 2.5.1?)
13004 if test "$GCC" = yes; then
13005 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13006 else
13007 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13010 esac
13011 link_all_deplibs_GO=yes
13014 sunos4*)
13015 if test "x$host_vendor" = xsequent; then
13016 # Use $CC to link under sequent, because it throws in some extra .o
13017 # files that make .init and .fini sections work.
13018 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13019 else
13020 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13022 hardcode_libdir_flag_spec_GO='-L$libdir'
13023 hardcode_direct_GO=yes
13024 hardcode_minus_L_GO=yes
13025 hardcode_shlibpath_var_GO=no
13028 sysv4)
13029 case $host_vendor in
13030 sni)
13031 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13032 hardcode_direct_GO=yes # is this really true???
13034 siemens)
13035 ## LD is ld it makes a PLAMLIB
13036 ## CC just makes a GrossModule.
13037 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13038 reload_cmds_GO='$CC -r -o $output$reload_objs'
13039 hardcode_direct_GO=no
13041 motorola)
13042 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13045 esac
13046 runpath_var='LD_RUN_PATH'
13047 hardcode_shlibpath_var_GO=no
13050 sysv4.3*)
13051 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13052 hardcode_shlibpath_var_GO=no
13053 export_dynamic_flag_spec_GO='-Bexport'
13056 sysv4*MP*)
13057 if test -d /usr/nec; then
13058 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13059 hardcode_shlibpath_var_GO=no
13060 runpath_var=LD_RUN_PATH
13061 hardcode_runpath_var=yes
13062 ld_shlibs_GO=yes
13066 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13067 no_undefined_flag_GO='${wl}-z,text'
13068 archive_cmds_need_lc_GO=no
13069 hardcode_shlibpath_var_GO=no
13070 runpath_var='LD_RUN_PATH'
13072 if test "$GCC" = yes; then
13073 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075 else
13076 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13081 sysv5* | sco3.2v5* | sco5v6*)
13082 # Note: We can NOT use -z defs as we might desire, because we do not
13083 # link with -lc, and that would cause any symbols used from libc to
13084 # always be unresolved, which means just about no library would
13085 # ever link correctly. If we're not using GNU ld we use -z text
13086 # though, which does catch some bad symbols but isn't as heavy-handed
13087 # as -z defs.
13088 no_undefined_flag_GO='${wl}-z,text'
13089 allow_undefined_flag_GO='${wl}-z,nodefs'
13090 archive_cmds_need_lc_GO=no
13091 hardcode_shlibpath_var_GO=no
13092 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13093 hardcode_libdir_separator_GO=':'
13094 link_all_deplibs_GO=yes
13095 export_dynamic_flag_spec_GO='${wl}-Bexport'
13096 runpath_var='LD_RUN_PATH'
13098 if test "$GCC" = yes; then
13099 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101 else
13102 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13107 uts4*)
13108 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13109 hardcode_libdir_flag_spec_GO='-L$libdir'
13110 hardcode_shlibpath_var_GO=no
13114 ld_shlibs_GO=no
13116 esac
13118 if test x$host_vendor = xsni; then
13119 case $host in
13120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13121 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13123 esac
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13128 $as_echo "$ld_shlibs_GO" >&6; }
13129 test "$ld_shlibs_GO" = no && can_build_shared=no
13131 with_gnu_ld_GO=$with_gnu_ld
13139 # Do we need to explicitly link libc?
13141 case "x$archive_cmds_need_lc_GO" in
13142 x|xyes)
13143 # Assume -lc should be added
13144 archive_cmds_need_lc_GO=yes
13146 if test "$enable_shared" = yes && test "$GCC" = yes; then
13147 case $archive_cmds_GO in
13148 *'~'*)
13149 # FIXME: we may have to deal with multi-command sequences.
13151 '$CC '*)
13152 # Test whether the compiler implicitly links with -lc since on some
13153 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13154 # to ld, don't add -lc before -lgcc.
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13156 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13157 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 $RM conftest*
13161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13164 (eval $ac_compile) 2>&5
13165 ac_status=$?
13166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167 test $ac_status = 0; } 2>conftest.err; then
13168 soname=conftest
13169 lib=conftest
13170 libobjs=conftest.$ac_objext
13171 deplibs=
13172 wl=$lt_prog_compiler_wl_GO
13173 pic_flag=$lt_prog_compiler_pic_GO
13174 compiler_flags=-v
13175 linker_flags=-v
13176 verstring=
13177 output_objdir=.
13178 libname=conftest
13179 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13180 allow_undefined_flag_GO=
13181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13182 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13183 ac_status=$?
13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185 test $ac_status = 0; }
13186 then
13187 lt_cv_archive_cmds_need_lc_GO=no
13188 else
13189 lt_cv_archive_cmds_need_lc_GO=yes
13191 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13192 else
13193 cat conftest.err 1>&5
13195 $RM conftest*
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13199 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13200 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13202 esac
13205 esac
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13271 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13272 hardcode_action_GO=
13273 if test -n "$hardcode_libdir_flag_spec_GO" ||
13274 test -n "$runpath_var_GO" ||
13275 test "X$hardcode_automatic_GO" = "Xyes" ; then
13277 # We can hardcode non-existent directories.
13278 if test "$hardcode_direct_GO" != no &&
13279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13280 # have to relink, otherwise we might link with an installed library
13281 # when we should be linking with a yet-to-be-installed one
13282 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13283 test "$hardcode_minus_L_GO" != no; then
13284 # Linking always hardcodes the temporary library directory.
13285 hardcode_action_GO=relink
13286 else
13287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13288 hardcode_action_GO=immediate
13290 else
13291 # We cannot hardcode anything, or else we can only hardcode existing
13292 # directories.
13293 hardcode_action_GO=unsupported
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13296 $as_echo "$hardcode_action_GO" >&6; }
13298 if test "$hardcode_action_GO" = relink ||
13299 test "$inherit_rpath_GO" = yes; then
13300 # Fast installation is not supported
13301 enable_fast_install=no
13302 elif test "$shlibpath_overrides_runpath" = yes ||
13303 test "$enable_shared" = no; then
13304 # Fast installation is not necessary
13305 enable_fast_install=needless
13316 ac_ext=c
13317 ac_cpp='$CPP $CPPFLAGS'
13318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13323 GCC=$lt_save_GCC
13324 CC="$lt_save_CC"
13329 ac_config_commands="$ac_config_commands libtool"
13334 # Only expand once:
13340 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13343 for ac_prog in gawk mawk nawk awk
13345 # Extract the first word of "$ac_prog", so it can be a program name with args.
13346 set dummy $ac_prog; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if test "${ac_cv_prog_AWK+set}" = set; then :
13350 $as_echo_n "(cached) " >&6
13351 else
13352 if test -n "$AWK"; then
13353 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13354 else
13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356 for as_dir in $PATH
13358 IFS=$as_save_IFS
13359 test -z "$as_dir" && as_dir=.
13360 for ac_exec_ext in '' $ac_executable_extensions; do
13361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13362 ac_cv_prog_AWK="$ac_prog"
13363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 break 2
13366 done
13367 done
13368 IFS=$as_save_IFS
13372 AWK=$ac_cv_prog_AWK
13373 if test -n "$AWK"; then
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13375 $as_echo "$AWK" >&6; }
13376 else
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 $as_echo "no" >&6; }
13382 test -n "$AWK" && break
13383 done
13386 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13389 WERROR="-Werror"
13392 glibgo_toolexecdir=no
13393 glibgo_toolexeclibdir=no
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13396 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13397 # Check whether --enable-version-specific-runtime-libs was given.
13398 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13399 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13400 yes) version_specific_libs=yes ;;
13401 no) version_specific_libs=no ;;
13402 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13403 esac
13404 else
13405 version_specific_libs=no
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13409 $as_echo "$version_specific_libs" >&6; }
13411 # Version-specific runtime libs processing.
13412 if test $version_specific_libs = yes; then
13413 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13414 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13417 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13418 # Install a library built with a cross compiler in tooldir, not libdir.
13419 if test -n "$with_cross_host" &&
13420 test x"$with_cross_host" != x"no"; then
13421 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13422 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13423 else
13424 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13425 nover_glibgo_toolexeclibdir='${libdir}'
13427 multi_os_directory=`$CC -print-multi-os-directory`
13428 case $multi_os_directory in
13429 .) ;; # Avoid trailing /.
13430 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13431 esac
13433 if test x"$glibgo_toolexecdir" = x"no"; then
13434 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13435 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13442 # See if the user wants to configure without libffi. Some
13443 # architectures don't support it. FIXME: We should set a default
13444 # based on the host.
13446 # Check whether --with-libffi was given.
13447 if test "${with_libffi+set}" = set; then :
13448 withval=$with_libffi; :
13449 else
13450 with_libffi=${with_libffi_default-yes}
13454 LIBFFI=
13455 LIBFFIINCS=
13456 if test "$with_libffi" != no; then
13458 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13460 LIBFFI=../libffi/libffi_convenience.la
13461 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13466 # Used to tell GNU make to include a file without telling automake to
13467 # include it.
13468 go_include="-include"
13471 is_darwin=no
13472 is_freebsd=no
13473 is_irix=no
13474 is_linux=no
13475 is_netbsd=no
13476 is_openbsd=no
13477 is_rtems=no
13478 is_solaris=no
13479 GOOS=unknown
13480 case ${host} in
13481 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13482 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13483 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13484 *-*-linux*) is_linux=yes; GOOS=linux ;;
13485 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13486 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13487 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13488 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13489 esac
13490 if test $is_darwin = yes; then
13491 LIBGO_IS_DARWIN_TRUE=
13492 LIBGO_IS_DARWIN_FALSE='#'
13493 else
13494 LIBGO_IS_DARWIN_TRUE='#'
13495 LIBGO_IS_DARWIN_FALSE=
13498 if test $is_freebsd = yes; then
13499 LIBGO_IS_FREEBSD_TRUE=
13500 LIBGO_IS_FREEBSD_FALSE='#'
13501 else
13502 LIBGO_IS_FREEBSD_TRUE='#'
13503 LIBGO_IS_FREEBSD_FALSE=
13506 if test $is_irix = yes; then
13507 LIBGO_IS_IRIX_TRUE=
13508 LIBGO_IS_IRIX_FALSE='#'
13509 else
13510 LIBGO_IS_IRIX_TRUE='#'
13511 LIBGO_IS_IRIX_FALSE=
13514 if test $is_linux = yes; then
13515 LIBGO_IS_LINUX_TRUE=
13516 LIBGO_IS_LINUX_FALSE='#'
13517 else
13518 LIBGO_IS_LINUX_TRUE='#'
13519 LIBGO_IS_LINUX_FALSE=
13522 if test $is_netbsd = yes; then
13523 LIBGO_IS_NETBSD_TRUE=
13524 LIBGO_IS_NETBSD_FALSE='#'
13525 else
13526 LIBGO_IS_NETBSD_TRUE='#'
13527 LIBGO_IS_NETBSD_FALSE=
13530 if test $is_openbsd = yes; then
13531 LIBGO_IS_OPENBSD_TRUE=
13532 LIBGO_IS_OPENBSD_FALSE='#'
13533 else
13534 LIBGO_IS_OPENBSD_TRUE='#'
13535 LIBGO_IS_OPENBSD_FALSE=
13538 if test $is_rtems = yes; then
13539 LIBGO_IS_RTEMS_TRUE=
13540 LIBGO_IS_RTEMS_FALSE='#'
13541 else
13542 LIBGO_IS_RTEMS_TRUE='#'
13543 LIBGO_IS_RTEMS_FALSE=
13546 if test $is_solaris = yes; then
13547 LIBGO_IS_SOLARIS_TRUE=
13548 LIBGO_IS_SOLARIS_FALSE='#'
13549 else
13550 LIBGO_IS_SOLARIS_TRUE='#'
13551 LIBGO_IS_SOLARIS_FALSE=
13556 is_386=no
13557 is_alpha=no
13558 is_arm=no
13559 is_m68k=no
13560 mips_abi=unknown
13561 is_ppc=no
13562 is_ppc64=no
13563 is_sparc=no
13564 is_sparc64=no
13565 is_x86_64=no
13566 GOARCH=unknown
13567 case ${host} in
13568 alpha*-*-*)
13569 is_alpha=yes
13570 GOARCH=alpha
13572 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13573 is_arm=yes
13574 GOARCH=arm
13576 i[34567]86-*-* | x86_64-*-*)
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13580 #ifdef __x86_64__
13581 #error 64-bit
13582 #endif
13583 _ACEOF
13584 if ac_fn_c_try_compile "$LINENO"; then :
13585 is_386=yes
13586 else
13587 is_x86_64=yes
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 if test "$is_386" = "yes"; then
13591 GOARCH=386
13592 else
13593 GOARCH=amd64
13596 m68k*-*-*)
13597 is_m68k=yes
13598 GOARCH=m68k
13600 mips*-*-*)
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13604 #if _MIPS_SIM != _ABIO32
13605 #error not o32
13606 #endif
13607 _ACEOF
13608 if ac_fn_c_try_compile "$LINENO"; then :
13609 mips_abi="o32"
13610 else
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13614 #if _MIPS_SIM != _ABIN32
13615 #error not n32
13616 #endif
13617 _ACEOF
13618 if ac_fn_c_try_compile "$LINENO"; then :
13619 mips_abi="n32"
13620 else
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13624 #if _MIPS_SIM != _ABI64
13625 #error not n64
13626 #endif
13627 _ACEOF
13628 if ac_fn_c_try_compile "$LINENO"; then :
13629 mips_abi="n64"
13630 else
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13634 #if _MIPS_SIM != _ABIO64
13635 #error not o64
13636 #endif
13637 _ACEOF
13638 if ac_fn_c_try_compile "$LINENO"; then :
13639 mips_abi="o64"
13640 else
13641 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13642 mips_abi="n32"
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 case "$mips_abi" in
13652 "o32") GOARCH=mipso32 ;;
13653 "n32") GOARCH=mipsn32 ;;
13654 "n64") GOARCH=mipsn64 ;;
13655 "o64") GOARCH=mipso64 ;;
13656 esac
13658 rs6000*-*-* | powerpc*-*-*)
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13662 #ifdef _ARCH_PPC64
13663 #error 64-bit
13664 #endif
13665 _ACEOF
13666 if ac_fn_c_try_compile "$LINENO"; then :
13667 is_ppc=yes
13668 else
13669 is_ppc64=yes
13671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672 if test "$is_ppc" = "yes"; then
13673 GOARCH=ppc
13674 else
13675 GOARCH=ppc64
13678 sparc*-*-*)
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13682 #if defined(__sparcv9) || defined(__arch64__)
13683 #error 64-bit
13684 #endif
13685 _ACEOF
13686 if ac_fn_c_try_compile "$LINENO"; then :
13687 is_sparc=yes
13688 else
13689 is_sparc64=yes
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 if test "$is_sparc" = "yes"; then
13693 GOARCH=sparc
13694 else
13695 GOARCH=sparc64
13698 esac
13699 if test $is_386 = yes; then
13700 LIBGO_IS_386_TRUE=
13701 LIBGO_IS_386_FALSE='#'
13702 else
13703 LIBGO_IS_386_TRUE='#'
13704 LIBGO_IS_386_FALSE=
13707 if test $is_alpha = yes; then
13708 LIBGO_IS_ALPHA_TRUE=
13709 LIBGO_IS_ALPHA_FALSE='#'
13710 else
13711 LIBGO_IS_ALPHA_TRUE='#'
13712 LIBGO_IS_ALPHA_FALSE=
13715 if test $is_arm = yes; then
13716 LIBGO_IS_ARM_TRUE=
13717 LIBGO_IS_ARM_FALSE='#'
13718 else
13719 LIBGO_IS_ARM_TRUE='#'
13720 LIBGO_IS_ARM_FALSE=
13723 if test $is_m68k = yes; then
13724 LIBGO_IS_M68K_TRUE=
13725 LIBGO_IS_M68K_FALSE='#'
13726 else
13727 LIBGO_IS_M68K_TRUE='#'
13728 LIBGO_IS_M68K_FALSE=
13731 if test $mips_abi != unknown; then
13732 LIBGO_IS_MIPS_TRUE=
13733 LIBGO_IS_MIPS_FALSE='#'
13734 else
13735 LIBGO_IS_MIPS_TRUE='#'
13736 LIBGO_IS_MIPS_FALSE=
13739 if test $mips_abi = o32; then
13740 LIBGO_IS_MIPSO32_TRUE=
13741 LIBGO_IS_MIPSO32_FALSE='#'
13742 else
13743 LIBGO_IS_MIPSO32_TRUE='#'
13744 LIBGO_IS_MIPSO32_FALSE=
13747 if test $mips_abi = n32; then
13748 LIBGO_IS_MIPSN32_TRUE=
13749 LIBGO_IS_MIPSN32_FALSE='#'
13750 else
13751 LIBGO_IS_MIPSN32_TRUE='#'
13752 LIBGO_IS_MIPSN32_FALSE=
13755 if test $mips_abi = n64; then
13756 LIBGO_IS_MIPSN64_TRUE=
13757 LIBGO_IS_MIPSN64_FALSE='#'
13758 else
13759 LIBGO_IS_MIPSN64_TRUE='#'
13760 LIBGO_IS_MIPSN64_FALSE=
13763 if test $mips_abi = o64; then
13764 LIBGO_IS_MIPSO64_TRUE=
13765 LIBGO_IS_MIPSO64_FALSE='#'
13766 else
13767 LIBGO_IS_MIPSO64_TRUE='#'
13768 LIBGO_IS_MIPSO64_FALSE=
13771 if test $is_ppc = yes; then
13772 LIBGO_IS_PPC_TRUE=
13773 LIBGO_IS_PPC_FALSE='#'
13774 else
13775 LIBGO_IS_PPC_TRUE='#'
13776 LIBGO_IS_PPC_FALSE=
13779 if test $is_ppc64 = yes; then
13780 LIBGO_IS_PPC64_TRUE=
13781 LIBGO_IS_PPC64_FALSE='#'
13782 else
13783 LIBGO_IS_PPC64_TRUE='#'
13784 LIBGO_IS_PPC64_FALSE=
13787 if test $is_sparc = yes; then
13788 LIBGO_IS_SPARC_TRUE=
13789 LIBGO_IS_SPARC_FALSE='#'
13790 else
13791 LIBGO_IS_SPARC_TRUE='#'
13792 LIBGO_IS_SPARC_FALSE=
13795 if test $is_sparc64 = yes; then
13796 LIBGO_IS_SPARC64_TRUE=
13797 LIBGO_IS_SPARC64_FALSE='#'
13798 else
13799 LIBGO_IS_SPARC64_TRUE='#'
13800 LIBGO_IS_SPARC64_FALSE=
13803 if test $is_x86_64 = yes; then
13804 LIBGO_IS_X86_64_TRUE=
13805 LIBGO_IS_X86_64_FALSE='#'
13806 else
13807 LIBGO_IS_X86_64_TRUE='#'
13808 LIBGO_IS_X86_64_FALSE=
13813 GO_LIBCALL_OS_FILE=
13814 GO_LIBCALL_OS_ARCH_FILE=
13815 GO_SYSCALL_OS_FILE=
13816 GO_SYSCALL_OS_ARCH_FILE=
13817 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13818 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13820 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13821 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13823 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13824 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13826 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13827 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13834 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13835 case "$target" in
13836 mips-sgi-irix6.5*)
13837 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13838 # msghdr in <sys/socket.h>.
13839 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13841 *-*-solaris2.[89])
13842 # Solaris 8/9 need this so struct msghdr gets the msg_control
13843 # etc. fields in <sys/socket.h> (_XPG4_2).
13844 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13846 *-*-solaris2.1[01])
13847 # Solaris 10+ needs this so struct msghdr gets the msg_control
13848 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13849 # above doesn't work with C99.
13850 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13852 esac
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13856 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13857 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 CFLAGS_hold=$CFLAGS
13861 CFLAGS="$CFLAGS -fsplit-stack"
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13864 int i;
13865 _ACEOF
13866 if ac_fn_c_try_compile "$LINENO"; then :
13867 libgo_cv_c_split_stack_supported=yes
13868 else
13869 libgo_cv_c_split_stack_supported=no
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872 CFLAGS=$CFLAGS_hold
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13875 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13876 if test "$libgo_cv_c_split_stack_supported" = yes; then
13877 SPLIT_STACK=-fsplit-stack
13879 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13881 else
13882 SPLIT_STACK=
13885 if test "$libgo_cv_c_split_stack_supported" = yes; then
13886 USING_SPLIT_STACK_TRUE=
13887 USING_SPLIT_STACK_FALSE='#'
13888 else
13889 USING_SPLIT_STACK_TRUE='#'
13890 USING_SPLIT_STACK_FALSE=
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13895 $as_echo_n "checking whether linker supports split stack... " >&6; }
13896 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899 libgo_cv_c_linker_supports_split_stack=no
13900 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13901 libgo_cv_c_linker_supports_split_stack=yes
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13905 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13906 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13908 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13912 MATH_LIBS=
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13914 $as_echo_n "checking for sqrt in -lm... " >&6; }
13915 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 ac_check_lib_save_LIBS=$LIBS
13919 LIBS="-lm $LIBS"
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13923 /* Override any GCC internal prototype to avoid an error.
13924 Use char because int might match the return type of a GCC
13925 builtin and then its argument prototype would still apply. */
13926 #ifdef __cplusplus
13927 extern "C"
13928 #endif
13929 char sqrt ();
13931 main ()
13933 return sqrt ();
13935 return 0;
13937 _ACEOF
13938 if ac_fn_c_try_link "$LINENO"; then :
13939 ac_cv_lib_m_sqrt=yes
13940 else
13941 ac_cv_lib_m_sqrt=no
13943 rm -f core conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13948 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13949 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13950 MATH_LIBS=-lm
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13956 $as_echo_n "checking for socket libraries... " >&6; }
13957 if test "${libgo_cv_lib_sockets+set}" = set; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 libgo_cv_lib_sockets=
13961 libgo_check_both=no
13962 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13963 if test "x$ac_cv_func_connect" = x""yes; then :
13964 libgo_check_socket=no
13965 else
13966 libgo_check_socket=yes
13969 if test "$libgo_check_socket" = "yes"; then
13970 unset ac_cv_func_connect
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13972 $as_echo_n "checking for main in -lsocket... " >&6; }
13973 if test "${ac_cv_lib_socket_main+set}" = set; then :
13974 $as_echo_n "(cached) " >&6
13975 else
13976 ac_check_lib_save_LIBS=$LIBS
13977 LIBS="-lsocket $LIBS"
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13983 main ()
13985 return main ();
13987 return 0;
13989 _ACEOF
13990 if ac_fn_c_try_link "$LINENO"; then :
13991 ac_cv_lib_socket_main=yes
13992 else
13993 ac_cv_lib_socket_main=no
13995 rm -f core conftest.err conftest.$ac_objext \
13996 conftest$ac_exeext conftest.$ac_ext
13997 LIBS=$ac_check_lib_save_LIBS
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14000 $as_echo "$ac_cv_lib_socket_main" >&6; }
14001 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14002 libgo_cv_lib_sockets="-lsocket"
14003 else
14004 libgo_check_both=yes
14008 if test "$libgo_check_both" = "yes"; then
14009 libgo_old_libs=$LIBS
14010 LIBS="$LIBS -lsocket -lnsl"
14011 unset ac_cv_func_accept
14012 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14013 if test "x$ac_cv_func_accept" = x""yes; then :
14014 libgo_check_nsl=no
14015 libgo_cv_lib_sockets="-lsocket -lnsl"
14018 unset ac_cv_func_accept
14019 LIBS=$libgo_old_libs
14021 unset ac_cv_func_gethostbyname
14022 libgo_old_libs="$LIBS"
14023 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14024 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14026 else
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14028 $as_echo_n "checking for main in -lnsl... " >&6; }
14029 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14030 $as_echo_n "(cached) " >&6
14031 else
14032 ac_check_lib_save_LIBS=$LIBS
14033 LIBS="-lnsl $LIBS"
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14039 main ()
14041 return main ();
14043 return 0;
14045 _ACEOF
14046 if ac_fn_c_try_link "$LINENO"; then :
14047 ac_cv_lib_nsl_main=yes
14048 else
14049 ac_cv_lib_nsl_main=no
14051 rm -f core conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
14053 LIBS=$ac_check_lib_save_LIBS
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14056 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14057 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14058 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14063 unset ac_cv_func_gethostbyname
14064 LIBS=$libgo_old_libs
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14068 $as_echo "$libgo_cv_lib_sockets" >&6; }
14069 NET_LIBS="$libgo_cv_lib_sockets"
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14073 $as_echo_n "checking whether -pthread is supported... " >&6; }
14074 if test "${libgo_cv_lib_pthread+set}" = set; then :
14075 $as_echo_n "(cached) " >&6
14076 else
14077 CFLAGS_hold=$CFLAGS
14078 CFLAGS="$CFLAGS -pthread"
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081 int i;
14082 _ACEOF
14083 if ac_fn_c_try_compile "$LINENO"; then :
14084 libgo_cv_lib_pthread=yes
14085 else
14086 libgo_cv_lib_pthread=no
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 CFLAGS=$CFLAGS_hold
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14092 $as_echo "$libgo_cv_lib_pthread" >&6; }
14093 PTHREAD_CFLAGS=
14094 if test "$libgo_cv_lib_pthread" = yes; then
14095 PTHREAD_CFLAGS=-pthread
14099 PTHREAD_LIBS=
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14101 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14102 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 ac_check_lib_save_LIBS=$LIBS
14106 LIBS="-lpthread $LIBS"
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14110 /* Override any GCC internal prototype to avoid an error.
14111 Use char because int might match the return type of a GCC
14112 builtin and then its argument prototype would still apply. */
14113 #ifdef __cplusplus
14114 extern "C"
14115 #endif
14116 char pthread_create ();
14118 main ()
14120 return pthread_create ();
14122 return 0;
14124 _ACEOF
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 ac_cv_lib_pthread_pthread_create=yes
14127 else
14128 ac_cv_lib_pthread_pthread_create=no
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 LIBS=$ac_check_lib_save_LIBS
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14135 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14136 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14137 PTHREAD_LIBS=-lpthread
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14143 $as_echo_n "checking for library containing sched_yield... " >&6; }
14144 if test "${ac_cv_search_sched_yield+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146 else
14147 ac_func_search_save_LIBS=$LIBS
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14151 /* Override any GCC internal prototype to avoid an error.
14152 Use char because int might match the return type of a GCC
14153 builtin and then its argument prototype would still apply. */
14154 #ifdef __cplusplus
14155 extern "C"
14156 #endif
14157 char sched_yield ();
14159 main ()
14161 return sched_yield ();
14163 return 0;
14165 _ACEOF
14166 for ac_lib in '' rt; do
14167 if test -z "$ac_lib"; then
14168 ac_res="none required"
14169 else
14170 ac_res=-l$ac_lib
14171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14173 if ac_fn_c_try_link "$LINENO"; then :
14174 ac_cv_search_sched_yield=$ac_res
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext
14178 if test "${ac_cv_search_sched_yield+set}" = set; then :
14179 break
14181 done
14182 if test "${ac_cv_search_sched_yield+set}" = set; then :
14184 else
14185 ac_cv_search_sched_yield=no
14187 rm conftest.$ac_ext
14188 LIBS=$ac_func_search_save_LIBS
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14191 $as_echo "$ac_cv_search_sched_yield" >&6; }
14192 ac_res=$ac_cv_search_sched_yield
14193 if test "$ac_res" != no; then :
14194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14200 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14201 if test "${ac_cv_c_bigendian+set}" = set; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 ac_cv_c_bigendian=unknown
14205 # See if we're dealing with a universal compiler.
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 #ifndef __APPLE_CC__
14209 not a universal capable compiler
14210 #endif
14211 typedef int dummy;
14213 _ACEOF
14214 if ac_fn_c_try_compile "$LINENO"; then :
14216 # Check for potential -arch flags. It is not universal unless
14217 # there are at least two -arch flags with different values.
14218 ac_arch=
14219 ac_prev=
14220 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14221 if test -n "$ac_prev"; then
14222 case $ac_word in
14223 i?86 | x86_64 | ppc | ppc64)
14224 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14225 ac_arch=$ac_word
14226 else
14227 ac_cv_c_bigendian=universal
14228 break
14231 esac
14232 ac_prev=
14233 elif test "x$ac_word" = "x-arch"; then
14234 ac_prev=arch
14236 done
14238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239 if test $ac_cv_c_bigendian = unknown; then
14240 # See if sys/param.h defines the BYTE_ORDER macro.
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243 #include <sys/types.h>
14244 #include <sys/param.h>
14247 main ()
14249 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14250 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14251 && LITTLE_ENDIAN)
14252 bogus endian macros
14253 #endif
14256 return 0;
14258 _ACEOF
14259 if ac_fn_c_try_compile "$LINENO"; then :
14260 # It does; now see whether it defined to BIG_ENDIAN or not.
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 #include <sys/types.h>
14264 #include <sys/param.h>
14267 main ()
14269 #if BYTE_ORDER != BIG_ENDIAN
14270 not big endian
14271 #endif
14274 return 0;
14276 _ACEOF
14277 if ac_fn_c_try_compile "$LINENO"; then :
14278 ac_cv_c_bigendian=yes
14279 else
14280 ac_cv_c_bigendian=no
14282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286 if test $ac_cv_c_bigendian = unknown; then
14287 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290 #include <limits.h>
14293 main ()
14295 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14296 bogus endian macros
14297 #endif
14300 return 0;
14302 _ACEOF
14303 if ac_fn_c_try_compile "$LINENO"; then :
14304 # It does; now see whether it defined to _BIG_ENDIAN or not.
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14307 #include <limits.h>
14310 main ()
14312 #ifndef _BIG_ENDIAN
14313 not big endian
14314 #endif
14317 return 0;
14319 _ACEOF
14320 if ac_fn_c_try_compile "$LINENO"; then :
14321 ac_cv_c_bigendian=yes
14322 else
14323 ac_cv_c_bigendian=no
14325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14329 if test $ac_cv_c_bigendian = unknown; then
14330 # Compile a test program.
14331 if test "$cross_compiling" = yes; then :
14332 # Try to guess by grepping values from an object file.
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14335 short int ascii_mm[] =
14336 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14337 short int ascii_ii[] =
14338 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14339 int use_ascii (int i) {
14340 return ascii_mm[i] + ascii_ii[i];
14342 short int ebcdic_ii[] =
14343 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14344 short int ebcdic_mm[] =
14345 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14346 int use_ebcdic (int i) {
14347 return ebcdic_mm[i] + ebcdic_ii[i];
14349 extern int foo;
14352 main ()
14354 return use_ascii (foo) == use_ebcdic (foo);
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_compile "$LINENO"; then :
14360 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14361 ac_cv_c_bigendian=yes
14363 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14364 if test "$ac_cv_c_bigendian" = unknown; then
14365 ac_cv_c_bigendian=no
14366 else
14367 # finding both strings is unlikely to happen, but who knows?
14368 ac_cv_c_bigendian=unknown
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 else
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14376 $ac_includes_default
14378 main ()
14381 /* Are we little or big endian? From Harbison&Steele. */
14382 union
14384 long int l;
14385 char c[sizeof (long int)];
14386 } u;
14387 u.l = 1;
14388 return u.c[sizeof (long int) - 1] == 1;
14391 return 0;
14393 _ACEOF
14394 if ac_fn_c_try_run "$LINENO"; then :
14395 ac_cv_c_bigendian=no
14396 else
14397 ac_cv_c_bigendian=yes
14399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14400 conftest.$ac_objext conftest.beam conftest.$ac_ext
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14406 $as_echo "$ac_cv_c_bigendian" >&6; }
14407 case $ac_cv_c_bigendian in #(
14408 yes)
14409 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14410 ;; #(
14412 ;; #(
14413 universal)
14415 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14417 ;; #(
14419 as_fn_error "unknown endianness
14420 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14421 esac
14426 # Check whether --with-system-libunwind was given.
14427 if test "${with_system_libunwind+set}" = set; then :
14428 withval=$with_system_libunwind;
14431 # If system-libunwind was not specifically set, pick a default setting.
14432 if test x$with_system_libunwind = x; then
14433 case ${target} in
14434 ia64-*-hpux*) with_system_libunwind=yes ;;
14435 *) with_system_libunwind=no ;;
14436 esac
14438 # Based on system-libunwind and target, do we have ipinfo?
14439 if test x$with_system_libunwind = xyes; then
14440 case ${target} in
14441 ia64-*-*) have_unwind_getipinfo=no ;;
14442 *) have_unwind_getipinfo=yes ;;
14443 esac
14444 else
14445 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14447 case ${target} in
14448 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14449 *) have_unwind_getipinfo=yes ;;
14450 esac
14454 if test x$have_unwind_getipinfo = xyes; then
14456 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14461 # Check whether --enable-sjlj-exceptions was given.
14462 if test "${enable_sjlj_exceptions+set}" = set; then :
14463 enableval=$enable_sjlj_exceptions; case "$enableval" in
14464 yes|no|auto) ;;
14465 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14466 esac
14467 else
14468 enable_sjlj_exceptions=auto
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14473 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14474 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14480 void bar ();
14481 void clean (int *);
14482 void foo ()
14484 int i __attribute__ ((cleanup (clean)));
14485 bar();
14488 _ACEOF
14489 CFLAGS_hold=$CFLAGS
14490 CFLAGS="--save-temps -fexceptions"
14491 libgo_cv_lib_sjlj_exceptions=unknown
14492 if ac_fn_c_try_compile; then :
14493 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14494 libgo_cv_lib_sjlj_exceptions=yes
14495 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14496 libgo_cv_lib_sjlj_exceptions=no
14499 CFLAGS=$CFLAGS_hold
14500 rm -f conftest*
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14504 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14506 if test "$enable_sjlj_exceptions" = "auto"; then
14507 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14510 case $enable_sjlj_exceptions in
14511 yes)
14513 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14519 as_fn_error "unable to detect exception model" "$LINENO" 5
14521 esac
14523 for ac_header in sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14524 do :
14525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14526 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14527 eval as_val=\$$as_ac_Header
14528 if test "x$as_val" = x""yes; then :
14529 cat >>confdefs.h <<_ACEOF
14530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14531 _ACEOF
14535 done
14538 for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
14539 do :
14540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14541 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14542 #include <sys/socket.h>
14543 #endif
14546 eval as_val=\$$as_ac_Header
14547 if test "x$as_val" = x""yes; then :
14548 cat >>confdefs.h <<_ACEOF
14549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14550 _ACEOF
14554 done
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14558 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14559 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 CFLAGS_hold=$CFLAGS
14563 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14567 #include <sys/types.h>
14568 #ifdef HAVE_LINUX_FILTER_H
14569 #include <linux/filter.h>
14570 #endif
14571 #include <ustat.h>
14573 _ACEOF
14574 if ac_fn_c_try_compile "$LINENO"; then :
14575 libgo_cv_c_ustat_h=yes
14576 else
14577 libgo_cv_c_ustat_h=no
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 CFLAGS=$CFLAGS_hold
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14583 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14584 if test $libgo_cv_c_ustat_h = yes; then
14586 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14590 if test "$ac_cv_header_sys_mman_h" = yes; then
14591 HAVE_SYS_MMAN_H_TRUE=
14592 HAVE_SYS_MMAN_H_FALSE='#'
14593 else
14594 HAVE_SYS_MMAN_H_TRUE='#'
14595 HAVE_SYS_MMAN_H_FALSE=
14599 for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
14600 do :
14601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14603 eval as_val=\$$as_ac_var
14604 if test "x$as_val" = x""yes; then :
14605 cat >>confdefs.h <<_ACEOF
14606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14607 _ACEOF
14610 done
14612 if test "$ac_cv_func_strerror_r" = yes; then
14613 HAVE_STRERROR_R_TRUE=
14614 HAVE_STRERROR_R_FALSE='#'
14615 else
14616 HAVE_STRERROR_R_TRUE='#'
14617 HAVE_STRERROR_R_FALSE=
14620 if test "$ac_cv_func_wait4" = yes; then
14621 HAVE_WAIT4_TRUE=
14622 HAVE_WAIT4_FALSE='#'
14623 else
14624 HAVE_WAIT4_TRUE='#'
14625 HAVE_WAIT4_FALSE=
14629 for ac_func in epoll_create1 faccessat fallocate fchmodat fchownat futimesat inotify_add_watch inotify_init inotify_init1 inotify_rm_watch mkdirat mknodat openat renameat sync_file_range splice tee unlinkat unshare
14630 do :
14631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14632 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14633 eval as_val=\$$as_ac_var
14634 if test "x$as_val" = x""yes; then :
14635 cat >>confdefs.h <<_ACEOF
14636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14637 _ACEOF
14640 done
14642 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14643 if test "x$ac_cv_type_off_t" = x""yes; then :
14645 else
14647 cat >>confdefs.h <<_ACEOF
14648 #define off_t long int
14649 _ACEOF
14653 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14654 if test "x$ac_cv_type_loff_t" = x""yes; then :
14656 cat >>confdefs.h <<_ACEOF
14657 #define HAVE_LOFF_T 1
14658 _ACEOF
14664 LIBS_hold="$LIBS"
14665 LIBS="$LIBS -lm"
14666 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14667 do :
14668 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14669 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14670 eval as_val=\$$as_ac_var
14671 if test "x$as_val" = x""yes; then :
14672 cat >>confdefs.h <<_ACEOF
14673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14674 _ACEOF
14677 done
14679 LIBS="$LIBS_hold"
14681 CFLAGS_hold="$CFLAGS"
14682 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14683 LIBS_hold="$LIBS"
14684 LIBS="$LIBS $PTHREAD_LIBS"
14685 for ac_func in sem_timedwait
14686 do :
14687 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14688 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14689 cat >>confdefs.h <<_ACEOF
14690 #define HAVE_SEM_TIMEDWAIT 1
14691 _ACEOF
14694 done
14696 CFLAGS="$CFLAGS_hold"
14697 LIBS="$LIBS_hold"
14699 LIBS_hold="$LIBS"
14700 LIBS="$LIBS $MATH_LIBS"
14701 for ac_func in matherr
14702 do :
14703 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14704 if test "x$ac_cv_func_matherr" = x""yes; then :
14705 cat >>confdefs.h <<_ACEOF
14706 #define HAVE_MATHERR 1
14707 _ACEOF
14710 done
14712 LIBS="$LIBS_hold"
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14715 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14716 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14722 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14723 uint32 i;
14724 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14726 _ACEOF
14727 if ac_fn_c_try_link "$LINENO"; then :
14728 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14729 else
14730 libgo_cv_func___sync_bool_compare_and_swap_4=no
14732 rm -f core conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14736 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14737 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14739 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14744 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14745 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14751 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14752 uint64 i;
14753 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14755 _ACEOF
14756 if ac_fn_c_try_link "$LINENO"; then :
14757 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14758 else
14759 libgo_cv_func___sync_bool_compare_and_swap_8=no
14761 rm -f core conftest.err conftest.$ac_objext \
14762 conftest$ac_exeext conftest.$ac_ext
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14765 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14766 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14768 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14773 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14774 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14780 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14781 uint32 i;
14782 int main() { return __sync_fetch_and_add (&i, 1); }
14784 _ACEOF
14785 if ac_fn_c_try_link "$LINENO"; then :
14786 libgo_cv_func___sync_fetch_and_add_4=yes
14787 else
14788 libgo_cv_func___sync_fetch_and_add_4=no
14790 rm -f core conftest.err conftest.$ac_objext \
14791 conftest$ac_exeext conftest.$ac_ext
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14794 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14795 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14797 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14802 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14803 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14809 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14810 uint64 i;
14811 int main() { return __sync_add_and_fetch (&i, 1); }
14813 _ACEOF
14814 if ac_fn_c_try_link "$LINENO"; then :
14815 libgo_cv_func___sync_add_and_fetch_8=yes
14816 else
14817 libgo_cv_func___sync_add_and_fetch_8=no
14819 rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14823 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14824 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14826 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14831 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14832 if test "${libgo_cv_c_stringops+set}" = set; then :
14833 $as_echo_n "(cached) " >&6
14834 else
14835 CFLAGS_hold=$CFLAGS
14836 CFLAGS="$CFLAGS -minline-all-stringops"
14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h. */
14839 int i;
14840 _ACEOF
14841 if ac_fn_c_try_compile "$LINENO"; then :
14842 libgo_cv_c_stringops=yes
14843 else
14844 libgo_cv_c_stringops=no
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847 CFLAGS=$CFLAGS_hold
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14850 $as_echo "$libgo_cv_c_stringops" >&6; }
14851 STRINGOPS_FLAG=
14852 if test "$libgo_cv_c_stringops" = yes; then
14853 STRINGOPS_FLAG=-minline-all-stringops
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14858 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14859 if test "${libgo_cv_c_fancymath+set}" = set; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 CFLAGS_hold=$CFLAGS
14863 CFLAGS="$CFLAGS -mfancy-math-387"
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866 int i;
14867 _ACEOF
14868 if ac_fn_c_try_compile "$LINENO"; then :
14869 libgo_cv_c_fancymath=yes
14870 else
14871 libgo_cv_c_fancymath=no
14873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14874 CFLAGS=$CFLAGS_hold
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
14877 $as_echo "$libgo_cv_c_fancymath" >&6; }
14878 MATH_FLAG=
14879 if test "$libgo_cv_c_fancymath" = yes; then
14880 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
14884 CFLAGS_hold=$CFLAGS
14885 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14886 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14887 if test "x$ac_cv_type_off64_t" = x""yes; then :
14889 cat >>confdefs.h <<_ACEOF
14890 #define HAVE_OFF64_T 1
14891 _ACEOF
14896 CFLAGS=$CFLAGS_hold
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14899 $as_echo_n "checking epoll_event size... " >&6; }
14900 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14902 else
14903 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14905 else
14906 libgo_cv_c_epoll_event_size=0
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14911 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14912 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14916 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14917 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14918 $as_echo_n "(cached) " >&6
14919 else
14920 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14921 #include <sys/epoll.h>"; then :
14923 else
14924 libgo_cv_c_epoll_event_fd_offset=0
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14929 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14930 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14933 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
14935 if test "x$ac_cv_type_struct_exception" = x""yes; then :
14936 libgo_has_struct_exception=yes
14937 else
14938 libgo_has_struct_exception=no
14941 if test "$libgo_has_struct_exception" = "yes"; then
14943 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
14947 case "$target" in
14948 sparc*-*-solaris2.[89]*)
14949 libgo_cv_lib_makecontext_stack_top=yes
14952 libgo_cv_lib_makecontext_stack_top=no
14954 esac
14955 if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
14957 $as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
14962 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
14963 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
14964 $as_echo_n "(cached) " >&6
14965 else
14966 CFLAGS_hold="$CFLAGS"
14967 CFLAGS="$PTHREAD_CFLAGS"
14968 LIBS_hold="$LIBS"
14969 LIBS="$LIBS $PTHREAD_LIBS"
14970 # The cast to long int works around a bug in the HP C Compiler
14971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14973 # This bug is HP SR number 8606223364.
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14975 $as_echo_n "checking size of void *... " >&6; }
14976 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14977 $as_echo_n "(cached) " >&6
14978 else
14979 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14981 else
14982 if test "$ac_cv_type_void_p" = yes; then
14983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14985 { as_fn_set_status 77
14986 as_fn_error "cannot compute sizeof (void *)
14987 See \`config.log' for more details." "$LINENO" 5; }; }
14988 else
14989 ac_cv_sizeof_void_p=0
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14995 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14999 cat >>confdefs.h <<_ACEOF
15000 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15001 _ACEOF
15004 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15005 if test "$cross_compiling" = yes; then :
15006 case "$target:$ptr_type_size" in
15007 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15008 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15010 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15011 esac
15013 else
15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h. */
15017 #include <pthread.h>
15018 #include <stdlib.h>
15019 #include <ucontext.h>
15020 #include <unistd.h>
15022 __thread int tls;
15024 static char stack[10 * 1024 * 1024];
15025 static ucontext_t c;
15027 /* Called via makecontext/setcontext. */
15029 static void
15030 cfn (void)
15032 exit (tls);
15035 /* Called via pthread_create. */
15037 static void *
15038 tfn (void *dummy)
15040 /* The thread should still see this value after calling
15041 setcontext. */
15042 tls = 0;
15044 setcontext (&c);
15046 /* The call to setcontext should not return. */
15047 abort ();
15051 main ()
15053 pthread_t tid;
15055 /* The thread should not see this value. */
15056 tls = 1;
15058 if (getcontext (&c) < 0)
15059 abort ();
15061 c.uc_stack.ss_sp = stack;
15062 #ifdef MAKECONTEXT_STACK_TOP
15063 c.uc_stack.ss_sp += sizeof stack;
15064 #endif
15065 c.uc_stack.ss_flags = 0;
15066 c.uc_stack.ss_size = sizeof stack;
15067 c.uc_link = NULL;
15068 makecontext (&c, cfn, 0);
15070 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15071 abort ();
15073 if (pthread_join (tid, NULL) != 0)
15074 abort ();
15076 /* The thread should have called exit. */
15077 abort ();
15080 _ACEOF
15081 if ac_fn_c_try_run "$LINENO"; then :
15082 libgo_cv_lib_setcontext_clobbers_tls=no
15083 else
15084 libgo_cv_lib_setcontext_clobbers_tls=yes
15086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15087 conftest.$ac_objext conftest.beam conftest.$ac_ext
15090 CFLAGS="$CFLAGS_hold"
15091 LIBS="$LIBS_hold"
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15095 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15096 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15098 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15102 cat >confcache <<\_ACEOF
15103 # This file is a shell script that caches the results of configure
15104 # tests run on this system so they can be shared between configure
15105 # scripts and configure runs, see configure's option --config-cache.
15106 # It is not useful on other systems. If it contains results you don't
15107 # want to keep, you may remove or edit it.
15109 # config.status only pays attention to the cache file if you give it
15110 # the --recheck option to rerun configure.
15112 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15113 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15114 # following values.
15116 _ACEOF
15118 # The following way of writing the cache mishandles newlines in values,
15119 # but we know of no workaround that is simple, portable, and efficient.
15120 # So, we kill variables containing newlines.
15121 # Ultrix sh set writes to stderr and can't be redirected directly,
15122 # and sets the high bit in the cache file unless we assign to the vars.
15124 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15125 eval ac_val=\$$ac_var
15126 case $ac_val in #(
15127 *${as_nl}*)
15128 case $ac_var in #(
15129 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15130 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15131 esac
15132 case $ac_var in #(
15133 _ | IFS | as_nl) ;; #(
15134 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15135 *) { eval $ac_var=; unset $ac_var;} ;;
15136 esac ;;
15137 esac
15138 done
15140 (set) 2>&1 |
15141 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15142 *${as_nl}ac_space=\ *)
15143 # `set' does not quote correctly, so add quotes: double-quote
15144 # substitution turns \\\\ into \\, and sed turns \\ into \.
15145 sed -n \
15146 "s/'/'\\\\''/g;
15147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15148 ;; #(
15150 # `set' quotes correctly as required by POSIX, so do not add quotes.
15151 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15153 esac |
15154 sort
15156 sed '
15157 /^ac_cv_env_/b end
15158 t clear
15159 :clear
15160 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15161 t end
15162 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15163 :end' >>confcache
15164 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15165 if test -w "$cache_file"; then
15166 test "x$cache_file" != "x/dev/null" &&
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15168 $as_echo "$as_me: updating cache $cache_file" >&6;}
15169 cat confcache >$cache_file
15170 else
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15172 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15175 rm -f confcache
15177 if test ${multilib} = yes; then
15178 multilib_arg="--enable-multilib"
15179 else
15180 multilib_arg=
15183 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15186 ac_config_commands="$ac_config_commands default"
15189 cat >confcache <<\_ACEOF
15190 # This file is a shell script that caches the results of configure
15191 # tests run on this system so they can be shared between configure
15192 # scripts and configure runs, see configure's option --config-cache.
15193 # It is not useful on other systems. If it contains results you don't
15194 # want to keep, you may remove or edit it.
15196 # config.status only pays attention to the cache file if you give it
15197 # the --recheck option to rerun configure.
15199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15201 # following values.
15203 _ACEOF
15205 # The following way of writing the cache mishandles newlines in values,
15206 # but we know of no workaround that is simple, portable, and efficient.
15207 # So, we kill variables containing newlines.
15208 # Ultrix sh set writes to stderr and can't be redirected directly,
15209 # and sets the high bit in the cache file unless we assign to the vars.
15211 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15212 eval ac_val=\$$ac_var
15213 case $ac_val in #(
15214 *${as_nl}*)
15215 case $ac_var in #(
15216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15218 esac
15219 case $ac_var in #(
15220 _ | IFS | as_nl) ;; #(
15221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15222 *) { eval $ac_var=; unset $ac_var;} ;;
15223 esac ;;
15224 esac
15225 done
15227 (set) 2>&1 |
15228 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15229 *${as_nl}ac_space=\ *)
15230 # `set' does not quote correctly, so add quotes: double-quote
15231 # substitution turns \\\\ into \\, and sed turns \\ into \.
15232 sed -n \
15233 "s/'/'\\\\''/g;
15234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15235 ;; #(
15237 # `set' quotes correctly as required by POSIX, so do not add quotes.
15238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15240 esac |
15241 sort
15243 sed '
15244 /^ac_cv_env_/b end
15245 t clear
15246 :clear
15247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15248 t end
15249 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15250 :end' >>confcache
15251 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15252 if test -w "$cache_file"; then
15253 test "x$cache_file" != "x/dev/null" &&
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15255 $as_echo "$as_me: updating cache $cache_file" >&6;}
15256 cat confcache >$cache_file
15257 else
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15259 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15262 rm -f confcache
15264 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15265 # Let make expand exec_prefix.
15266 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15268 DEFS=-DHAVE_CONFIG_H
15270 ac_libobjs=
15271 ac_ltlibobjs=
15272 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15273 # 1. Remove the extension, and $U if already installed.
15274 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15275 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15276 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15277 # will be set to the directory where LIBOBJS objects are built.
15278 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15279 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15280 done
15281 LIBOBJS=$ac_libobjs
15283 LTLIBOBJS=$ac_ltlibobjs
15286 if test -n "$EXEEXT"; then
15287 am__EXEEXT_TRUE=
15288 am__EXEEXT_FALSE='#'
15289 else
15290 am__EXEEXT_TRUE='#'
15291 am__EXEEXT_FALSE=
15294 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15295 as_fn_error "conditional \"AMDEP\" was never defined.
15296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15298 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15299 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15302 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15303 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15306 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15307 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15310 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15311 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15314 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15315 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15318 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15319 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15322 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15323 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15326 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15327 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15330 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15331 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15335 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15339 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15343 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15347 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15351 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15355 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15359 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15363 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15367 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15371 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15374 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15375 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15378 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15379 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15382 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15383 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15386 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15387 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15390 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15391 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15394 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15395 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15399 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15400 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15403 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15404 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15407 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15408 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15412 : ${CONFIG_STATUS=./config.status}
15413 ac_write_fail=0
15414 ac_clean_files_save=$ac_clean_files
15415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15418 as_write_fail=0
15419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15420 #! $SHELL
15421 # Generated by $as_me.
15422 # Run this file to recreate the current configuration.
15423 # Compiler output produced by configure, useful for debugging
15424 # configure, is in config.log if it exists.
15426 debug=false
15427 ac_cs_recheck=false
15428 ac_cs_silent=false
15430 SHELL=\${CONFIG_SHELL-$SHELL}
15431 export SHELL
15432 _ASEOF
15433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15434 ## -------------------- ##
15435 ## M4sh Initialization. ##
15436 ## -------------------- ##
15438 # Be more Bourne compatible
15439 DUALCASE=1; export DUALCASE # for MKS sh
15440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15441 emulate sh
15442 NULLCMD=:
15443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15444 # is contrary to our usage. Disable this feature.
15445 alias -g '${1+"$@"}'='"$@"'
15446 setopt NO_GLOB_SUBST
15447 else
15448 case `(set -o) 2>/dev/null` in #(
15449 *posix*) :
15450 set -o posix ;; #(
15451 *) :
15453 esac
15457 as_nl='
15459 export as_nl
15460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15464 # Prefer a ksh shell builtin over an external printf program on Solaris,
15465 # but without wasting forks for bash or zsh.
15466 if test -z "$BASH_VERSION$ZSH_VERSION" \
15467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15468 as_echo='print -r --'
15469 as_echo_n='print -rn --'
15470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15471 as_echo='printf %s\n'
15472 as_echo_n='printf %s'
15473 else
15474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15476 as_echo_n='/usr/ucb/echo -n'
15477 else
15478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15479 as_echo_n_body='eval
15480 arg=$1;
15481 case $arg in #(
15482 *"$as_nl"*)
15483 expr "X$arg" : "X\\(.*\\)$as_nl";
15484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15485 esac;
15486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15488 export as_echo_n_body
15489 as_echo_n='sh -c $as_echo_n_body as_echo'
15491 export as_echo_body
15492 as_echo='sh -c $as_echo_body as_echo'
15495 # The user is always right.
15496 if test "${PATH_SEPARATOR+set}" != set; then
15497 PATH_SEPARATOR=:
15498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15500 PATH_SEPARATOR=';'
15505 # IFS
15506 # We need space, tab and new line, in precisely that order. Quoting is
15507 # there to prevent editors from complaining about space-tab.
15508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15509 # splitting by setting IFS to empty value.)
15510 IFS=" "" $as_nl"
15512 # Find who we are. Look in the path if we contain no directory separator.
15513 case $0 in #((
15514 *[\\/]* ) as_myself=$0 ;;
15515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15516 for as_dir in $PATH
15518 IFS=$as_save_IFS
15519 test -z "$as_dir" && as_dir=.
15520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15521 done
15522 IFS=$as_save_IFS
15525 esac
15526 # We did not find ourselves, most probably we were run as `sh COMMAND'
15527 # in which case we are not to be found in the path.
15528 if test "x$as_myself" = x; then
15529 as_myself=$0
15531 if test ! -f "$as_myself"; then
15532 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15533 exit 1
15536 # Unset variables that we do not need and which cause bugs (e.g. in
15537 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15538 # suppresses any "Segmentation fault" message there. '((' could
15539 # trigger a bug in pdksh 5.2.14.
15540 for as_var in BASH_ENV ENV MAIL MAILPATH
15541 do eval test x\${$as_var+set} = xset \
15542 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15543 done
15544 PS1='$ '
15545 PS2='> '
15546 PS4='+ '
15548 # NLS nuisances.
15549 LC_ALL=C
15550 export LC_ALL
15551 LANGUAGE=C
15552 export LANGUAGE
15554 # CDPATH.
15555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15558 # as_fn_error ERROR [LINENO LOG_FD]
15559 # ---------------------------------
15560 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15561 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15562 # script with status $?, using 1 if that was 0.
15563 as_fn_error ()
15565 as_status=$?; test $as_status -eq 0 && as_status=1
15566 if test "$3"; then
15567 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15568 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15570 $as_echo "$as_me: error: $1" >&2
15571 as_fn_exit $as_status
15572 } # as_fn_error
15575 # as_fn_set_status STATUS
15576 # -----------------------
15577 # Set $? to STATUS, without forking.
15578 as_fn_set_status ()
15580 return $1
15581 } # as_fn_set_status
15583 # as_fn_exit STATUS
15584 # -----------------
15585 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15586 as_fn_exit ()
15588 set +e
15589 as_fn_set_status $1
15590 exit $1
15591 } # as_fn_exit
15593 # as_fn_unset VAR
15594 # ---------------
15595 # Portably unset VAR.
15596 as_fn_unset ()
15598 { eval $1=; unset $1;}
15600 as_unset=as_fn_unset
15601 # as_fn_append VAR VALUE
15602 # ----------------------
15603 # Append the text in VALUE to the end of the definition contained in VAR. Take
15604 # advantage of any shell optimizations that allow amortized linear growth over
15605 # repeated appends, instead of the typical quadratic growth present in naive
15606 # implementations.
15607 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15608 eval 'as_fn_append ()
15610 eval $1+=\$2
15612 else
15613 as_fn_append ()
15615 eval $1=\$$1\$2
15617 fi # as_fn_append
15619 # as_fn_arith ARG...
15620 # ------------------
15621 # Perform arithmetic evaluation on the ARGs, and store the result in the
15622 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15623 # must be portable across $(()) and expr.
15624 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15625 eval 'as_fn_arith ()
15627 as_val=$(( $* ))
15629 else
15630 as_fn_arith ()
15632 as_val=`expr "$@" || test $? -eq 1`
15634 fi # as_fn_arith
15637 if expr a : '\(a\)' >/dev/null 2>&1 &&
15638 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15639 as_expr=expr
15640 else
15641 as_expr=false
15644 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15645 as_basename=basename
15646 else
15647 as_basename=false
15650 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15651 as_dirname=dirname
15652 else
15653 as_dirname=false
15656 as_me=`$as_basename -- "$0" ||
15657 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15658 X"$0" : 'X\(//\)$' \| \
15659 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15660 $as_echo X/"$0" |
15661 sed '/^.*\/\([^/][^/]*\)\/*$/{
15662 s//\1/
15665 /^X\/\(\/\/\)$/{
15666 s//\1/
15669 /^X\/\(\/\).*/{
15670 s//\1/
15673 s/.*/./; q'`
15675 # Avoid depending upon Character Ranges.
15676 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15677 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15678 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15679 as_cr_digits='0123456789'
15680 as_cr_alnum=$as_cr_Letters$as_cr_digits
15682 ECHO_C= ECHO_N= ECHO_T=
15683 case `echo -n x` in #(((((
15684 -n*)
15685 case `echo 'xy\c'` in
15686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15687 xy) ECHO_C='\c';;
15688 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15689 ECHO_T=' ';;
15690 esac;;
15692 ECHO_N='-n';;
15693 esac
15695 rm -f conf$$ conf$$.exe conf$$.file
15696 if test -d conf$$.dir; then
15697 rm -f conf$$.dir/conf$$.file
15698 else
15699 rm -f conf$$.dir
15700 mkdir conf$$.dir 2>/dev/null
15702 if (echo >conf$$.file) 2>/dev/null; then
15703 if ln -s conf$$.file conf$$ 2>/dev/null; then
15704 as_ln_s='ln -s'
15705 # ... but there are two gotchas:
15706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15708 # In both cases, we have to default to `cp -p'.
15709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15710 as_ln_s='cp -p'
15711 elif ln conf$$.file conf$$ 2>/dev/null; then
15712 as_ln_s=ln
15713 else
15714 as_ln_s='cp -p'
15716 else
15717 as_ln_s='cp -p'
15719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15720 rmdir conf$$.dir 2>/dev/null
15723 # as_fn_mkdir_p
15724 # -------------
15725 # Create "$as_dir" as a directory, including parents if necessary.
15726 as_fn_mkdir_p ()
15729 case $as_dir in #(
15730 -*) as_dir=./$as_dir;;
15731 esac
15732 test -d "$as_dir" || eval $as_mkdir_p || {
15733 as_dirs=
15734 while :; do
15735 case $as_dir in #(
15736 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15737 *) as_qdir=$as_dir;;
15738 esac
15739 as_dirs="'$as_qdir' $as_dirs"
15740 as_dir=`$as_dirname -- "$as_dir" ||
15741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15742 X"$as_dir" : 'X\(//\)[^/]' \| \
15743 X"$as_dir" : 'X\(//\)$' \| \
15744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15745 $as_echo X"$as_dir" |
15746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15747 s//\1/
15750 /^X\(\/\/\)[^/].*/{
15751 s//\1/
15754 /^X\(\/\/\)$/{
15755 s//\1/
15758 /^X\(\/\).*/{
15759 s//\1/
15762 s/.*/./; q'`
15763 test -d "$as_dir" && break
15764 done
15765 test -z "$as_dirs" || eval "mkdir $as_dirs"
15766 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15769 } # as_fn_mkdir_p
15770 if mkdir -p . 2>/dev/null; then
15771 as_mkdir_p='mkdir -p "$as_dir"'
15772 else
15773 test -d ./-p && rmdir ./-p
15774 as_mkdir_p=false
15777 if test -x / >/dev/null 2>&1; then
15778 as_test_x='test -x'
15779 else
15780 if ls -dL / >/dev/null 2>&1; then
15781 as_ls_L_option=L
15782 else
15783 as_ls_L_option=
15785 as_test_x='
15786 eval sh -c '\''
15787 if test -d "$1"; then
15788 test -d "$1/.";
15789 else
15790 case $1 in #(
15791 -*)set "./$1";;
15792 esac;
15793 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15794 ???[sx]*):;;*)false;;esac;fi
15795 '\'' sh
15798 as_executable_p=$as_test_x
15800 # Sed expression to map a string onto a valid CPP name.
15801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15803 # Sed expression to map a string onto a valid variable name.
15804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15807 exec 6>&1
15808 ## ----------------------------------- ##
15809 ## Main body of $CONFIG_STATUS script. ##
15810 ## ----------------------------------- ##
15811 _ASEOF
15812 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15815 # Save the log message, to keep $0 and so on meaningful, and to
15816 # report actual input values of CONFIG_FILES etc. instead of their
15817 # values after options handling.
15818 ac_log="
15819 This file was extended by package-unused $as_me version-unused, which was
15820 generated by GNU Autoconf 2.64. Invocation command line was
15822 CONFIG_FILES = $CONFIG_FILES
15823 CONFIG_HEADERS = $CONFIG_HEADERS
15824 CONFIG_LINKS = $CONFIG_LINKS
15825 CONFIG_COMMANDS = $CONFIG_COMMANDS
15826 $ $0 $@
15828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15831 _ACEOF
15833 case $ac_config_files in *"
15834 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15835 esac
15837 case $ac_config_headers in *"
15838 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15839 esac
15842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15843 # Files that config.status was made for.
15844 config_files="$ac_config_files"
15845 config_headers="$ac_config_headers"
15846 config_commands="$ac_config_commands"
15848 _ACEOF
15850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15851 ac_cs_usage="\
15852 \`$as_me' instantiates files and other configuration actions
15853 from templates according to the current configuration. Unless the files
15854 and actions are specified as TAGs, all are instantiated by default.
15856 Usage: $0 [OPTION]... [TAG]...
15858 -h, --help print this help, then exit
15859 -V, --version print version number and configuration settings, then exit
15860 -q, --quiet, --silent
15861 do not print progress messages
15862 -d, --debug don't remove temporary files
15863 --recheck update $as_me by reconfiguring in the same conditions
15864 --file=FILE[:TEMPLATE]
15865 instantiate the configuration file FILE
15866 --header=FILE[:TEMPLATE]
15867 instantiate the configuration header FILE
15869 Configuration files:
15870 $config_files
15872 Configuration headers:
15873 $config_headers
15875 Configuration commands:
15876 $config_commands
15878 Report bugs to the package provider."
15880 _ACEOF
15881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15882 ac_cs_version="\\
15883 package-unused config.status version-unused
15884 configured by $0, generated by GNU Autoconf 2.64,
15885 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15887 Copyright (C) 2009 Free Software Foundation, Inc.
15888 This config.status script is free software; the Free Software Foundation
15889 gives unlimited permission to copy, distribute and modify it."
15891 ac_pwd='$ac_pwd'
15892 srcdir='$srcdir'
15893 INSTALL='$INSTALL'
15894 MKDIR_P='$MKDIR_P'
15895 AWK='$AWK'
15896 test -n "\$AWK" || AWK=awk
15897 _ACEOF
15899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15900 # The default lists apply if the user does not specify any file.
15901 ac_need_defaults=:
15902 while test $# != 0
15904 case $1 in
15905 --*=*)
15906 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15907 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15908 ac_shift=:
15911 ac_option=$1
15912 ac_optarg=$2
15913 ac_shift=shift
15915 esac
15917 case $ac_option in
15918 # Handling of the options.
15919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15920 ac_cs_recheck=: ;;
15921 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15922 $as_echo "$ac_cs_version"; exit ;;
15923 --debug | --debu | --deb | --de | --d | -d )
15924 debug=: ;;
15925 --file | --fil | --fi | --f )
15926 $ac_shift
15927 case $ac_optarg in
15928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15929 esac
15930 as_fn_append CONFIG_FILES " '$ac_optarg'"
15931 ac_need_defaults=false;;
15932 --header | --heade | --head | --hea )
15933 $ac_shift
15934 case $ac_optarg in
15935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15936 esac
15937 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15938 ac_need_defaults=false;;
15939 --he | --h)
15940 # Conflict between --help and --header
15941 as_fn_error "ambiguous option: \`$1'
15942 Try \`$0 --help' for more information.";;
15943 --help | --hel | -h )
15944 $as_echo "$ac_cs_usage"; exit ;;
15945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15946 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15947 ac_cs_silent=: ;;
15949 # This is an error.
15950 -*) as_fn_error "unrecognized option: \`$1'
15951 Try \`$0 --help' for more information." ;;
15953 *) as_fn_append ac_config_targets " $1"
15954 ac_need_defaults=false ;;
15956 esac
15957 shift
15958 done
15960 ac_configure_extra_args=
15962 if $ac_cs_silent; then
15963 exec 6>/dev/null
15964 ac_configure_extra_args="$ac_configure_extra_args --silent"
15967 _ACEOF
15968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15969 if \$ac_cs_recheck; then
15970 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15971 shift
15972 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15973 CONFIG_SHELL='$SHELL'
15974 export CONFIG_SHELL
15975 exec "\$@"
15978 _ACEOF
15979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15980 exec 5>>config.log
15982 echo
15983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15984 ## Running $as_me. ##
15985 _ASBOX
15986 $as_echo "$ac_log"
15987 } >&5
15989 _ACEOF
15990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15992 # INIT-COMMANDS
15995 srcdir="$srcdir"
15996 host="$host"
15997 target="$target"
15998 with_multisubdir="$with_multisubdir"
15999 with_multisrctop="$with_multisrctop"
16000 with_target_subdir="$with_target_subdir"
16001 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16002 multi_basedir="$multi_basedir"
16003 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16004 CC="$CC"
16005 CXX="$CXX"
16006 GFORTRAN="$GFORTRAN"
16007 GCJ="$GCJ"
16008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16011 # The HP-UX ksh and POSIX shell print the target directory to stdout
16012 # if CDPATH is set.
16013 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16015 sed_quote_subst='$sed_quote_subst'
16016 double_quote_subst='$double_quote_subst'
16017 delay_variable_subst='$delay_variable_subst'
16018 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16019 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16020 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16021 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16022 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16023 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16024 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16025 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16026 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16027 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16028 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16029 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16030 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16031 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16032 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16033 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16034 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16035 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16036 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16037 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16038 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16039 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16040 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16041 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16042 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16043 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16044 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16045 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16046 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16047 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16048 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16049 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16050 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16051 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16052 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16053 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16054 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16055 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16056 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16057 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16058 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16059 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16060 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16061 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16062 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16063 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16064 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16065 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16066 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"`'
16067 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16068 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16069 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16070 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16071 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16072 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16073 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16074 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16075 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16076 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16077 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16078 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16079 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16080 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16081 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16082 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16083 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16084 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16085 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16086 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16087 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16088 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16089 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16090 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16091 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16092 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16093 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16094 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16095 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16096 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16097 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16098 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16099 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16100 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16101 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16102 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16103 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16104 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16105 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16106 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16107 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16108 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16109 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16110 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16111 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16112 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16113 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16114 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16115 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16116 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16117 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16118 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16119 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16120 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16121 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16122 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16123 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16124 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16125 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16126 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16127 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16128 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16129 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16130 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16131 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16132 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16133 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16134 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16135 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16136 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16137 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16138 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16139 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16140 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16141 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16142 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16143 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16144 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16145 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16146 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16147 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16148 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16149 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16150 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16151 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16152 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16153 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16154 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16155 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16156 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16157 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16158 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16159 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16160 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16161 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16162 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16163 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16164 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16165 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16166 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16167 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16168 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16169 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16170 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16171 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16172 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16173 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16174 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16175 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16176 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16177 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16178 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16179 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16180 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16182 LTCC='$LTCC'
16183 LTCFLAGS='$LTCFLAGS'
16184 compiler='$compiler_DEFAULT'
16186 # A function that is used when there is no print builtin or printf.
16187 func_fallback_echo ()
16189 eval 'cat <<_LTECHO_EOF
16191 _LTECHO_EOF'
16194 # Quote evaled strings.
16195 for var in SED \
16196 GREP \
16197 EGREP \
16198 FGREP \
16199 SHELL \
16200 ECHO \
16201 LD \
16202 NM \
16203 LN_S \
16204 lt_SP2NL \
16205 lt_NL2SP \
16206 reload_flag \
16207 OBJDUMP \
16208 deplibs_check_method \
16209 file_magic_cmd \
16210 AR \
16211 AR_FLAGS \
16212 STRIP \
16213 RANLIB \
16214 CC \
16215 CFLAGS \
16216 compiler \
16217 lt_cv_sys_global_symbol_pipe \
16218 lt_cv_sys_global_symbol_to_cdecl \
16219 lt_cv_sys_global_symbol_to_c_name_address \
16220 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16221 lt_prog_compiler_no_builtin_flag \
16222 lt_prog_compiler_wl \
16223 lt_prog_compiler_pic \
16224 lt_prog_compiler_static \
16225 lt_cv_prog_compiler_c_o \
16226 need_locks \
16227 DSYMUTIL \
16228 NMEDIT \
16229 LIPO \
16230 OTOOL \
16231 OTOOL64 \
16232 shrext_cmds \
16233 export_dynamic_flag_spec \
16234 whole_archive_flag_spec \
16235 compiler_needs_object \
16236 with_gnu_ld \
16237 allow_undefined_flag \
16238 no_undefined_flag \
16239 hardcode_libdir_flag_spec \
16240 hardcode_libdir_flag_spec_ld \
16241 hardcode_libdir_separator \
16242 fix_srcfile_path \
16243 exclude_expsyms \
16244 include_expsyms \
16245 file_list_spec \
16246 variables_saved_for_relink \
16247 libname_spec \
16248 library_names_spec \
16249 soname_spec \
16250 install_override_mode \
16251 finish_eval \
16252 old_striplib \
16253 striplib \
16254 LD_GO \
16255 reload_flag_GO \
16256 compiler_GO \
16257 lt_prog_compiler_no_builtin_flag_GO \
16258 lt_prog_compiler_wl_GO \
16259 lt_prog_compiler_pic_GO \
16260 lt_prog_compiler_static_GO \
16261 lt_cv_prog_compiler_c_o_GO \
16262 export_dynamic_flag_spec_GO \
16263 whole_archive_flag_spec_GO \
16264 compiler_needs_object_GO \
16265 with_gnu_ld_GO \
16266 allow_undefined_flag_GO \
16267 no_undefined_flag_GO \
16268 hardcode_libdir_flag_spec_GO \
16269 hardcode_libdir_flag_spec_ld_GO \
16270 hardcode_libdir_separator_GO \
16271 fix_srcfile_path_GO \
16272 exclude_expsyms_GO \
16273 include_expsyms_GO \
16274 file_list_spec_GO; do
16275 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16276 *[\\\\\\\`\\"\\\$]*)
16277 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16280 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16282 esac
16283 done
16285 # Double-quote double-evaled strings.
16286 for var in reload_cmds \
16287 old_postinstall_cmds \
16288 old_postuninstall_cmds \
16289 old_archive_cmds \
16290 extract_expsyms_cmds \
16291 old_archive_from_new_cmds \
16292 old_archive_from_expsyms_cmds \
16293 archive_cmds \
16294 archive_expsym_cmds \
16295 module_cmds \
16296 module_expsym_cmds \
16297 export_symbols_cmds \
16298 prelink_cmds \
16299 postinstall_cmds \
16300 postuninstall_cmds \
16301 finish_cmds \
16302 sys_lib_search_path_spec \
16303 sys_lib_dlsearch_path_spec \
16304 reload_cmds_GO \
16305 old_archive_cmds_GO \
16306 old_archive_from_new_cmds_GO \
16307 old_archive_from_expsyms_cmds_GO \
16308 archive_cmds_GO \
16309 archive_expsym_cmds_GO \
16310 module_cmds_GO \
16311 module_expsym_cmds_GO \
16312 export_symbols_cmds_GO \
16313 prelink_cmds_GO; do
16314 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16315 *[\\\\\\\`\\"\\\$]*)
16316 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16319 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16321 esac
16322 done
16324 ac_aux_dir='$ac_aux_dir'
16325 xsi_shell='$xsi_shell'
16326 lt_shell_append='$lt_shell_append'
16328 # See if we are running on zsh, and set the options which allow our
16329 # commands through without removal of \ escapes INIT.
16330 if test -n "\${ZSH_VERSION+set}" ; then
16331 setopt NO_GLOB_SUBST
16335 PACKAGE='$PACKAGE'
16336 VERSION='$VERSION'
16337 TIMESTAMP='$TIMESTAMP'
16338 RM='$RM'
16339 ofile='$ofile'
16346 # Variables needed in config.status (file generation) which aren't already
16347 # passed by autoconf.
16348 SUBDIRS="$SUBDIRS"
16351 _ACEOF
16353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16355 # Handling of arguments.
16356 for ac_config_target in $ac_config_targets
16358 case $ac_config_target in
16359 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16360 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16361 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16362 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16363 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16364 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16365 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16367 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16368 esac
16369 done
16372 # If the user did not use the arguments to specify the items to instantiate,
16373 # then the envvar interface is used. Set only those that are not.
16374 # We use the long form for the default assignment because of an extremely
16375 # bizarre bug on SunOS 4.1.3.
16376 if $ac_need_defaults; then
16377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16382 # Have a temporary directory for convenience. Make it in the build tree
16383 # simply because there is no reason against having it here, and in addition,
16384 # creating and moving files from /tmp can sometimes cause problems.
16385 # Hook for its removal unless debugging.
16386 # Note that there is a small window in which the directory will not be cleaned:
16387 # after its creation but before its name has been assigned to `$tmp'.
16388 $debug ||
16390 tmp=
16391 trap 'exit_status=$?
16392 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16394 trap 'as_fn_exit 1' 1 2 13 15
16396 # Create a (secure) tmp directory for tmp files.
16399 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16400 test -n "$tmp" && test -d "$tmp"
16401 } ||
16403 tmp=./conf$$-$RANDOM
16404 (umask 077 && mkdir "$tmp")
16405 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16407 # Set up the scripts for CONFIG_FILES section.
16408 # No need to generate them if there are no CONFIG_FILES.
16409 # This happens for instance with `./config.status config.h'.
16410 if test -n "$CONFIG_FILES"; then
16413 ac_cr=`echo X | tr X '\015'`
16414 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16415 # But we know of no other shell where ac_cr would be empty at this
16416 # point, so we can use a bashism as a fallback.
16417 if test "x$ac_cr" = x; then
16418 eval ac_cr=\$\'\\r\'
16420 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16421 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16422 ac_cs_awk_cr='\r'
16423 else
16424 ac_cs_awk_cr=$ac_cr
16427 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16428 _ACEOF
16432 echo "cat >conf$$subs.awk <<_ACEOF" &&
16433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16434 echo "_ACEOF"
16435 } >conf$$subs.sh ||
16436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16437 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16438 ac_delim='%!_!# '
16439 for ac_last_try in false false false false false :; do
16440 . ./conf$$subs.sh ||
16441 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16443 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16444 if test $ac_delim_n = $ac_delim_num; then
16445 break
16446 elif $ac_last_try; then
16447 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16448 else
16449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16451 done
16452 rm -f conf$$subs.sh
16454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16455 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16456 _ACEOF
16457 sed -n '
16459 s/^/S["/; s/!.*/"]=/
16462 s/^[^!]*!//
16463 :repl
16464 t repl
16465 s/'"$ac_delim"'$//
16466 t delim
16469 s/\(.\{148\}\).*/\1/
16470 t more1
16471 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16474 b repl
16475 :more1
16476 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16479 s/.\{148\}//
16480 t nl
16481 :delim
16483 s/\(.\{148\}\).*/\1/
16484 t more2
16485 s/["\\]/\\&/g; s/^/"/; s/$/"/
16488 :more2
16489 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16492 s/.\{148\}//
16493 t delim
16494 ' <conf$$subs.awk | sed '
16495 /^[^""]/{
16497 s/\n//
16499 ' >>$CONFIG_STATUS || ac_write_fail=1
16500 rm -f conf$$subs.awk
16501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16502 _ACAWK
16503 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16504 for (key in S) S_is_set[key] = 1
16505 FS = "\a"
16509 line = $ 0
16510 nfields = split(line, field, "@")
16511 substed = 0
16512 len = length(field[1])
16513 for (i = 2; i < nfields; i++) {
16514 key = field[i]
16515 keylen = length(key)
16516 if (S_is_set[key]) {
16517 value = S[key]
16518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16519 len += length(value) + length(field[++i])
16520 substed = 1
16521 } else
16522 len += 1 + keylen
16525 print line
16528 _ACAWK
16529 _ACEOF
16530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16531 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16532 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16533 else
16535 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16536 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16537 _ACEOF
16539 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16540 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16541 # trailing colons and then remove the whole line if VPATH becomes empty
16542 # (actually we leave an empty line to preserve line numbers).
16543 if test "x$srcdir" = x.; then
16544 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16545 s/:*\$(srcdir):*/:/
16546 s/:*\${srcdir}:*/:/
16547 s/:*@srcdir@:*/:/
16548 s/^\([^=]*=[ ]*\):*/\1/
16549 s/:*$//
16550 s/^[^=]*=[ ]*$//
16554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16555 fi # test -n "$CONFIG_FILES"
16557 # Set up the scripts for CONFIG_HEADERS section.
16558 # No need to generate them if there are no CONFIG_HEADERS.
16559 # This happens for instance with `./config.status Makefile'.
16560 if test -n "$CONFIG_HEADERS"; then
16561 cat >"$tmp/defines.awk" <<\_ACAWK ||
16562 BEGIN {
16563 _ACEOF
16565 # Transform confdefs.h into an awk script `defines.awk', embedded as
16566 # here-document in config.status, that substitutes the proper values into
16567 # config.h.in to produce config.h.
16569 # Create a delimiter string that does not exist in confdefs.h, to ease
16570 # handling of long lines.
16571 ac_delim='%!_!# '
16572 for ac_last_try in false false :; do
16573 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16574 if test -z "$ac_t"; then
16575 break
16576 elif $ac_last_try; then
16577 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16578 else
16579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16581 done
16583 # For the awk script, D is an array of macro values keyed by name,
16584 # likewise P contains macro parameters if any. Preserve backslash
16585 # newline sequences.
16587 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16588 sed -n '
16589 s/.\{148\}/&'"$ac_delim"'/g
16590 t rset
16591 :rset
16592 s/^[ ]*#[ ]*define[ ][ ]*/ /
16593 t def
16595 :def
16596 s/\\$//
16597 t bsnl
16598 s/["\\]/\\&/g
16599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16600 D["\1"]=" \3"/p
16601 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16603 :bsnl
16604 s/["\\]/\\&/g
16605 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16606 D["\1"]=" \3\\\\\\n"\\/p
16607 t cont
16608 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16609 t cont
16611 :cont
16613 s/.\{148\}/&'"$ac_delim"'/g
16614 t clear
16615 :clear
16616 s/\\$//
16617 t bsnlc
16618 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16620 :bsnlc
16621 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16622 b cont
16623 ' <confdefs.h | sed '
16624 s/'"$ac_delim"'/"\\\
16625 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16628 for (key in D) D_is_set[key] = 1
16629 FS = "\a"
16631 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16632 line = \$ 0
16633 split(line, arg, " ")
16634 if (arg[1] == "#") {
16635 defundef = arg[2]
16636 mac1 = arg[3]
16637 } else {
16638 defundef = substr(arg[1], 2)
16639 mac1 = arg[2]
16641 split(mac1, mac2, "(") #)
16642 macro = mac2[1]
16643 prefix = substr(line, 1, index(line, defundef) - 1)
16644 if (D_is_set[macro]) {
16645 # Preserve the white space surrounding the "#".
16646 print prefix "define", macro P[macro] D[macro]
16647 next
16648 } else {
16649 # Replace #undef with comments. This is necessary, for example,
16650 # in the case of _POSIX_SOURCE, which is predefined and required
16651 # on some systems where configure will not decide to define it.
16652 if (defundef == "undef") {
16653 print "/*", prefix defundef, macro, "*/"
16654 next
16658 { print }
16659 _ACAWK
16660 _ACEOF
16661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16662 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16663 fi # test -n "$CONFIG_HEADERS"
16666 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16667 shift
16668 for ac_tag
16670 case $ac_tag in
16671 :[FHLC]) ac_mode=$ac_tag; continue;;
16672 esac
16673 case $ac_mode$ac_tag in
16674 :[FHL]*:*);;
16675 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16676 :[FH]-) ac_tag=-:-;;
16677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16678 esac
16679 ac_save_IFS=$IFS
16680 IFS=:
16681 set x $ac_tag
16682 IFS=$ac_save_IFS
16683 shift
16684 ac_file=$1
16685 shift
16687 case $ac_mode in
16688 :L) ac_source=$1;;
16689 :[FH])
16690 ac_file_inputs=
16691 for ac_f
16693 case $ac_f in
16694 -) ac_f="$tmp/stdin";;
16695 *) # Look for the file first in the build tree, then in the source tree
16696 # (if the path is not absolute). The absolute path cannot be DOS-style,
16697 # because $ac_f cannot contain `:'.
16698 test -f "$ac_f" ||
16699 case $ac_f in
16700 [\\/$]*) false;;
16701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16702 esac ||
16703 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16704 esac
16705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16706 as_fn_append ac_file_inputs " '$ac_f'"
16707 done
16709 # Let's still pretend it is `configure' which instantiates (i.e., don't
16710 # use $as_me), people would be surprised to read:
16711 # /* config.h. Generated by config.status. */
16712 configure_input='Generated from '`
16713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16714 `' by configure.'
16715 if test x"$ac_file" != x-; then
16716 configure_input="$ac_file. $configure_input"
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16718 $as_echo "$as_me: creating $ac_file" >&6;}
16720 # Neutralize special characters interpreted by sed in replacement strings.
16721 case $configure_input in #(
16722 *\&* | *\|* | *\\* )
16723 ac_sed_conf_input=`$as_echo "$configure_input" |
16724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16725 *) ac_sed_conf_input=$configure_input;;
16726 esac
16728 case $ac_tag in
16729 *:-:* | *:-) cat >"$tmp/stdin" \
16730 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16731 esac
16733 esac
16735 ac_dir=`$as_dirname -- "$ac_file" ||
16736 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16737 X"$ac_file" : 'X\(//\)[^/]' \| \
16738 X"$ac_file" : 'X\(//\)$' \| \
16739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16740 $as_echo X"$ac_file" |
16741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16742 s//\1/
16745 /^X\(\/\/\)[^/].*/{
16746 s//\1/
16749 /^X\(\/\/\)$/{
16750 s//\1/
16753 /^X\(\/\).*/{
16754 s//\1/
16757 s/.*/./; q'`
16758 as_dir="$ac_dir"; as_fn_mkdir_p
16759 ac_builddir=.
16761 case "$ac_dir" in
16762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16765 # A ".." for each directory in $ac_dir_suffix.
16766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16767 case $ac_top_builddir_sub in
16768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16770 esac ;;
16771 esac
16772 ac_abs_top_builddir=$ac_pwd
16773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16774 # for backward compatibility:
16775 ac_top_builddir=$ac_top_build_prefix
16777 case $srcdir in
16778 .) # We are building in place.
16779 ac_srcdir=.
16780 ac_top_srcdir=$ac_top_builddir_sub
16781 ac_abs_top_srcdir=$ac_pwd ;;
16782 [\\/]* | ?:[\\/]* ) # Absolute name.
16783 ac_srcdir=$srcdir$ac_dir_suffix;
16784 ac_top_srcdir=$srcdir
16785 ac_abs_top_srcdir=$srcdir ;;
16786 *) # Relative name.
16787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16788 ac_top_srcdir=$ac_top_build_prefix$srcdir
16789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16790 esac
16791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16794 case $ac_mode in
16797 # CONFIG_FILE
16800 case $INSTALL in
16801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16802 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16803 esac
16804 ac_MKDIR_P=$MKDIR_P
16805 case $MKDIR_P in
16806 [\\/$]* | ?:[\\/]* ) ;;
16807 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16808 esac
16809 _ACEOF
16811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16812 # If the template does not know about datarootdir, expand it.
16813 # FIXME: This hack should be removed a few years after 2.60.
16814 ac_datarootdir_hack=; ac_datarootdir_seen=
16815 ac_sed_dataroot='
16816 /datarootdir/ {
16820 /@datadir@/p
16821 /@docdir@/p
16822 /@infodir@/p
16823 /@localedir@/p
16824 /@mandir@/p'
16825 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16826 *datarootdir*) ac_datarootdir_seen=yes;;
16827 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16829 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16830 _ACEOF
16831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16832 ac_datarootdir_hack='
16833 s&@datadir@&$datadir&g
16834 s&@docdir@&$docdir&g
16835 s&@infodir@&$infodir&g
16836 s&@localedir@&$localedir&g
16837 s&@mandir@&$mandir&g
16838 s&\\\${datarootdir}&$datarootdir&g' ;;
16839 esac
16840 _ACEOF
16842 # Neutralize VPATH when `$srcdir' = `.'.
16843 # Shell code in configure.ac might set extrasub.
16844 # FIXME: do we really want to maintain this feature?
16845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16846 ac_sed_extra="$ac_vpsub
16847 $extrasub
16848 _ACEOF
16849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16852 s|@configure_input@|$ac_sed_conf_input|;t t
16853 s&@top_builddir@&$ac_top_builddir_sub&;t t
16854 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16855 s&@srcdir@&$ac_srcdir&;t t
16856 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16857 s&@top_srcdir@&$ac_top_srcdir&;t t
16858 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16859 s&@builddir@&$ac_builddir&;t t
16860 s&@abs_builddir@&$ac_abs_builddir&;t t
16861 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16862 s&@INSTALL@&$ac_INSTALL&;t t
16863 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16864 $ac_datarootdir_hack
16866 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16867 || as_fn_error "could not create $ac_file" "$LINENO" 5
16869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16870 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16873 which seems to be undefined. Please make sure it is defined." >&5
16874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16875 which seems to be undefined. Please make sure it is defined." >&2;}
16877 rm -f "$tmp/stdin"
16878 case $ac_file in
16879 -) cat "$tmp/out" && rm -f "$tmp/out";;
16880 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16881 esac \
16882 || as_fn_error "could not create $ac_file" "$LINENO" 5
16886 # CONFIG_HEADER
16888 if test x"$ac_file" != x-; then
16890 $as_echo "/* $configure_input */" \
16891 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16892 } >"$tmp/config.h" \
16893 || as_fn_error "could not create $ac_file" "$LINENO" 5
16894 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16896 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16897 else
16898 rm -f "$ac_file"
16899 mv "$tmp/config.h" "$ac_file" \
16900 || as_fn_error "could not create $ac_file" "$LINENO" 5
16902 else
16903 $as_echo "/* $configure_input */" \
16904 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16905 || as_fn_error "could not create -" "$LINENO" 5
16907 # Compute "$ac_file"'s index in $config_headers.
16908 _am_arg="$ac_file"
16909 _am_stamp_count=1
16910 for _am_header in $config_headers :; do
16911 case $_am_header in
16912 $_am_arg | $_am_arg:* )
16913 break ;;
16915 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16916 esac
16917 done
16918 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16919 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16920 X"$_am_arg" : 'X\(//\)[^/]' \| \
16921 X"$_am_arg" : 'X\(//\)$' \| \
16922 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16923 $as_echo X"$_am_arg" |
16924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16925 s//\1/
16928 /^X\(\/\/\)[^/].*/{
16929 s//\1/
16932 /^X\(\/\/\)$/{
16933 s//\1/
16936 /^X\(\/\).*/{
16937 s//\1/
16940 s/.*/./; q'`/stamp-h$_am_stamp_count
16943 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16944 $as_echo "$as_me: executing $ac_file commands" >&6;}
16946 esac
16949 case $ac_file$ac_mode in
16950 "default-1":C)
16951 # Only add multilib support code if we just rebuilt the top-level
16952 # Makefile.
16953 case " $CONFIG_FILES " in
16954 *" Makefile "*)
16955 ac_file=Makefile . ${multi_basedir}/config-ml.in
16957 esac ;;
16958 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16959 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16960 # are listed without --file. Let's play safe and only enable the eval
16961 # if we detect the quoting.
16962 case $CONFIG_FILES in
16963 *\'*) eval set x "$CONFIG_FILES" ;;
16964 *) set x $CONFIG_FILES ;;
16965 esac
16966 shift
16967 for mf
16969 # Strip MF so we end up with the name of the file.
16970 mf=`echo "$mf" | sed -e 's/:.*$//'`
16971 # Check whether this is an Automake generated Makefile or not.
16972 # We used to match only the files named `Makefile.in', but
16973 # some people rename them; so instead we look at the file content.
16974 # Grep'ing the first line is not enough: some people post-process
16975 # each Makefile.in and add a new line on top of each file to say so.
16976 # Grep'ing the whole file is not good either: AIX grep has a line
16977 # limit of 2048, but all sed's we know have understand at least 4000.
16978 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16979 dirpart=`$as_dirname -- "$mf" ||
16980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16981 X"$mf" : 'X\(//\)[^/]' \| \
16982 X"$mf" : 'X\(//\)$' \| \
16983 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16984 $as_echo X"$mf" |
16985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16986 s//\1/
16989 /^X\(\/\/\)[^/].*/{
16990 s//\1/
16993 /^X\(\/\/\)$/{
16994 s//\1/
16997 /^X\(\/\).*/{
16998 s//\1/
17001 s/.*/./; q'`
17002 else
17003 continue
17005 # Extract the definition of DEPDIR, am__include, and am__quote
17006 # from the Makefile without running `make'.
17007 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17008 test -z "$DEPDIR" && continue
17009 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17010 test -z "am__include" && continue
17011 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17012 # When using ansi2knr, U may be empty or an underscore; expand it
17013 U=`sed -n 's/^U = //p' < "$mf"`
17014 # Find all dependency output files, they are included files with
17015 # $(DEPDIR) in their names. We invoke sed twice because it is the
17016 # simplest approach to changing $(DEPDIR) to its actual value in the
17017 # expansion.
17018 for file in `sed -n "
17019 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17020 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17021 # Make sure the directory exists.
17022 test -f "$dirpart/$file" && continue
17023 fdir=`$as_dirname -- "$file" ||
17024 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17025 X"$file" : 'X\(//\)[^/]' \| \
17026 X"$file" : 'X\(//\)$' \| \
17027 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17028 $as_echo X"$file" |
17029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17030 s//\1/
17033 /^X\(\/\/\)[^/].*/{
17034 s//\1/
17037 /^X\(\/\/\)$/{
17038 s//\1/
17041 /^X\(\/\).*/{
17042 s//\1/
17045 s/.*/./; q'`
17046 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17047 # echo "creating $dirpart/$file"
17048 echo '# dummy' > "$dirpart/$file"
17049 done
17050 done
17053 "libtool":C)
17055 # See if we are running on zsh, and set the options which allow our
17056 # commands through without removal of \ escapes.
17057 if test -n "${ZSH_VERSION+set}" ; then
17058 setopt NO_GLOB_SUBST
17061 cfgfile="${ofile}T"
17062 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17063 $RM "$cfgfile"
17065 cat <<_LT_EOF >> "$cfgfile"
17066 #! $SHELL
17068 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17069 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17070 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17071 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17073 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17074 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17075 # Written by Gordon Matzigkeit, 1996
17077 # This file is part of GNU Libtool.
17079 # GNU Libtool is free software; you can redistribute it and/or
17080 # modify it under the terms of the GNU General Public License as
17081 # published by the Free Software Foundation; either version 2 of
17082 # the License, or (at your option) any later version.
17084 # As a special exception to the GNU General Public License,
17085 # if you distribute this file as part of a program or library that
17086 # is built using GNU Libtool, you may include this file under the
17087 # same distribution terms that you use for the rest of that program.
17089 # GNU Libtool is distributed in the hope that it will be useful,
17090 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17091 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17092 # GNU General Public License for more details.
17094 # You should have received a copy of the GNU General Public License
17095 # along with GNU Libtool; see the file COPYING. If not, a copy
17096 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17097 # obtained by writing to the Free Software Foundation, Inc.,
17098 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17101 # The names of the tagged configurations supported by this script.
17102 available_tags="GO "
17104 # ### BEGIN LIBTOOL CONFIG
17106 # A sed program that does not truncate output.
17107 SED=$lt_SED
17109 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17110 Xsed="\$SED -e 1s/^X//"
17112 # A grep program that handles long lines.
17113 GREP=$lt_GREP
17115 # An ERE matcher.
17116 EGREP=$lt_EGREP
17118 # A literal string matcher.
17119 FGREP=$lt_FGREP
17121 # Shell to use when invoking shell scripts.
17122 SHELL=$lt_SHELL
17124 # An echo program that protects backslashes.
17125 ECHO=$lt_ECHO
17127 # Which release of libtool.m4 was used?
17128 macro_version=$macro_version
17129 macro_revision=$macro_revision
17131 # Whether or not to build shared libraries.
17132 build_libtool_libs=$enable_shared
17134 # Whether or not to build static libraries.
17135 build_old_libs=$enable_static
17137 # What type of objects to build.
17138 pic_mode=$pic_mode
17140 # Whether or not to optimize for fast installation.
17141 fast_install=$enable_fast_install
17143 # The host system.
17144 host_alias=$host_alias
17145 host=$host
17146 host_os=$host_os
17148 # The build system.
17149 build_alias=$build_alias
17150 build=$build
17151 build_os=$build_os
17153 # A BSD- or MS-compatible name lister.
17154 NM=$lt_NM
17156 # Whether we need soft or hard links.
17157 LN_S=$lt_LN_S
17159 # What is the maximum length of a command?
17160 max_cmd_len=$max_cmd_len
17162 # Object file suffix (normally "o").
17163 objext=$ac_objext
17165 # Executable file suffix (normally "").
17166 exeext=$exeext
17168 # whether the shell understands "unset".
17169 lt_unset=$lt_unset
17171 # turn spaces into newlines.
17172 SP2NL=$lt_lt_SP2NL
17174 # turn newlines into spaces.
17175 NL2SP=$lt_lt_NL2SP
17177 # An object symbol dumper.
17178 OBJDUMP=$lt_OBJDUMP
17180 # Method to check whether dependent libraries are shared objects.
17181 deplibs_check_method=$lt_deplibs_check_method
17183 # Command to use when deplibs_check_method == "file_magic".
17184 file_magic_cmd=$lt_file_magic_cmd
17186 # The archiver.
17187 AR=$lt_AR
17188 AR_FLAGS=$lt_AR_FLAGS
17190 # A symbol stripping program.
17191 STRIP=$lt_STRIP
17193 # Commands used to install an old-style archive.
17194 RANLIB=$lt_RANLIB
17195 old_postinstall_cmds=$lt_old_postinstall_cmds
17196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17198 # Whether to use a lock for old archive extraction.
17199 lock_old_archive_extraction=$lock_old_archive_extraction
17201 # A C compiler.
17202 LTCC=$lt_CC
17204 # LTCC compiler flags.
17205 LTCFLAGS=$lt_CFLAGS
17207 # Take the output of nm and produce a listing of raw symbols and C names.
17208 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17210 # Transform the output of nm in a proper C declaration.
17211 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17213 # Transform the output of nm in a C name address pair.
17214 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17216 # Transform the output of nm in a C name address pair when lib prefix is needed.
17217 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17219 # The name of the directory that contains temporary libtool files.
17220 objdir=$objdir
17222 # Used to examine libraries when file_magic_cmd begins with "file".
17223 MAGIC_CMD=$MAGIC_CMD
17225 # Must we lock files when doing compilation?
17226 need_locks=$lt_need_locks
17228 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17229 DSYMUTIL=$lt_DSYMUTIL
17231 # Tool to change global to local symbols on Mac OS X.
17232 NMEDIT=$lt_NMEDIT
17234 # Tool to manipulate fat objects and archives on Mac OS X.
17235 LIPO=$lt_LIPO
17237 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17238 OTOOL=$lt_OTOOL
17240 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17241 OTOOL64=$lt_OTOOL64
17243 # Old archive suffix (normally "a").
17244 libext=$libext
17246 # Shared library suffix (normally ".so").
17247 shrext_cmds=$lt_shrext_cmds
17249 # The commands to extract the exported symbol list from a shared archive.
17250 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17252 # Variables whose values should be saved in libtool wrapper scripts and
17253 # restored at link time.
17254 variables_saved_for_relink=$lt_variables_saved_for_relink
17256 # Do we need the "lib" prefix for modules?
17257 need_lib_prefix=$need_lib_prefix
17259 # Do we need a version for libraries?
17260 need_version=$need_version
17262 # Library versioning type.
17263 version_type=$version_type
17265 # Shared library runtime path variable.
17266 runpath_var=$runpath_var
17268 # Shared library path variable.
17269 shlibpath_var=$shlibpath_var
17271 # Is shlibpath searched before the hard-coded library search path?
17272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17274 # Format of library name prefix.
17275 libname_spec=$lt_libname_spec
17277 # List of archive names. First name is the real one, the rest are links.
17278 # The last name is the one that the linker finds with -lNAME
17279 library_names_spec=$lt_library_names_spec
17281 # The coded name of the library, if different from the real name.
17282 soname_spec=$lt_soname_spec
17284 # Permission mode override for installation of shared libraries.
17285 install_override_mode=$lt_install_override_mode
17287 # Command to use after installation of a shared archive.
17288 postinstall_cmds=$lt_postinstall_cmds
17290 # Command to use after uninstallation of a shared archive.
17291 postuninstall_cmds=$lt_postuninstall_cmds
17293 # Commands used to finish a libtool library installation in a directory.
17294 finish_cmds=$lt_finish_cmds
17296 # As "finish_cmds", except a single script fragment to be evaled but
17297 # not shown.
17298 finish_eval=$lt_finish_eval
17300 # Whether we should hardcode library paths into libraries.
17301 hardcode_into_libs=$hardcode_into_libs
17303 # Compile-time system search path for libraries.
17304 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17306 # Run-time system search path for libraries.
17307 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17309 # Whether dlopen is supported.
17310 dlopen_support=$enable_dlopen
17312 # Whether dlopen of programs is supported.
17313 dlopen_self=$enable_dlopen_self
17315 # Whether dlopen of statically linked programs is supported.
17316 dlopen_self_static=$enable_dlopen_self_static
17318 # Commands to strip libraries.
17319 old_striplib=$lt_old_striplib
17320 striplib=$lt_striplib
17323 # The linker used to build libraries.
17324 LD=$lt_LD
17326 # How to create reloadable object files.
17327 reload_flag=$lt_reload_flag
17328 reload_cmds=$lt_reload_cmds
17330 # Commands used to build an old-style archive.
17331 old_archive_cmds=$lt_old_archive_cmds
17333 # A language specific compiler.
17334 CC=$lt_compiler
17336 # Is the compiler the GNU compiler?
17337 with_gcc=$GCC
17339 # Compiler flag to turn off builtin functions.
17340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17342 # How to pass a linker flag through the compiler.
17343 wl=$lt_lt_prog_compiler_wl
17345 # Additional compiler flags for building library objects.
17346 pic_flag=$lt_lt_prog_compiler_pic
17348 # Compiler flag to prevent dynamic linking.
17349 link_static_flag=$lt_lt_prog_compiler_static
17351 # Does compiler simultaneously support -c and -o options?
17352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17354 # Whether or not to add -lc for building shared libraries.
17355 build_libtool_need_lc=$archive_cmds_need_lc
17357 # Whether or not to disallow shared libs when runtime libs are static.
17358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17360 # Compiler flag to allow reflexive dlopens.
17361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17363 # Compiler flag to generate shared objects directly from archives.
17364 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17366 # Whether the compiler copes with passing no objects directly.
17367 compiler_needs_object=$lt_compiler_needs_object
17369 # Create an old-style archive from a shared archive.
17370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17372 # Create a temporary old-style archive to link instead of a shared archive.
17373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17375 # Commands used to build a shared archive.
17376 archive_cmds=$lt_archive_cmds
17377 archive_expsym_cmds=$lt_archive_expsym_cmds
17379 # Commands used to build a loadable module if different from building
17380 # a shared archive.
17381 module_cmds=$lt_module_cmds
17382 module_expsym_cmds=$lt_module_expsym_cmds
17384 # Whether we are building with GNU ld or not.
17385 with_gnu_ld=$lt_with_gnu_ld
17387 # Flag that allows shared libraries with undefined symbols to be built.
17388 allow_undefined_flag=$lt_allow_undefined_flag
17390 # Flag that enforces no undefined symbols.
17391 no_undefined_flag=$lt_no_undefined_flag
17393 # Flag to hardcode \$libdir into a binary during linking.
17394 # This must work even if \$libdir does not exist
17395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17397 # If ld is used when linking, flag to hardcode \$libdir into a binary
17398 # during linking. This must work even if \$libdir does not exist.
17399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17401 # Whether we need a single "-rpath" flag with a separated argument.
17402 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17405 # DIR into the resulting binary.
17406 hardcode_direct=$hardcode_direct
17408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17409 # DIR into the resulting binary and the resulting library dependency is
17410 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17411 # library is relocated.
17412 hardcode_direct_absolute=$hardcode_direct_absolute
17414 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17415 # into the resulting binary.
17416 hardcode_minus_L=$hardcode_minus_L
17418 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17419 # into the resulting binary.
17420 hardcode_shlibpath_var=$hardcode_shlibpath_var
17422 # Set to "yes" if building a shared library automatically hardcodes DIR
17423 # into the library and all subsequent libraries and executables linked
17424 # against it.
17425 hardcode_automatic=$hardcode_automatic
17427 # Set to yes if linker adds runtime paths of dependent libraries
17428 # to runtime path list.
17429 inherit_rpath=$inherit_rpath
17431 # Whether libtool must link a program against all its dependency libraries.
17432 link_all_deplibs=$link_all_deplibs
17434 # Fix the shell variable \$srcfile for the compiler.
17435 fix_srcfile_path=$lt_fix_srcfile_path
17437 # Set to "yes" if exported symbols are required.
17438 always_export_symbols=$always_export_symbols
17440 # The commands to list exported symbols.
17441 export_symbols_cmds=$lt_export_symbols_cmds
17443 # Symbols that should not be listed in the preloaded symbols.
17444 exclude_expsyms=$lt_exclude_expsyms
17446 # Symbols that must always be exported.
17447 include_expsyms=$lt_include_expsyms
17449 # Commands necessary for linking programs (against libraries) with templates.
17450 prelink_cmds=$lt_prelink_cmds
17452 # Specify filename containing input files.
17453 file_list_spec=$lt_file_list_spec
17455 # How to hardcode a shared library path into an executable.
17456 hardcode_action=$hardcode_action
17458 # ### END LIBTOOL CONFIG
17460 _LT_EOF
17462 case $host_os in
17463 aix3*)
17464 cat <<\_LT_EOF >> "$cfgfile"
17465 # AIX sometimes has problems with the GCC collect2 program. For some
17466 # reason, if we set the COLLECT_NAMES environment variable, the problems
17467 # vanish in a puff of smoke.
17468 if test "X${COLLECT_NAMES+set}" != Xset; then
17469 COLLECT_NAMES=
17470 export COLLECT_NAMES
17472 _LT_EOF
17474 esac
17477 ltmain="$ac_aux_dir/ltmain.sh"
17480 # We use sed instead of cat because bash on DJGPP gets confused if
17481 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17482 # text mode, it properly converts lines to CR/LF. This bash problem
17483 # is reportedly fixed, but why not run on old versions too?
17484 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17485 || (rm -f "$cfgfile"; exit 1)
17487 case $xsi_shell in
17488 yes)
17489 cat << \_LT_EOF >> "$cfgfile"
17491 # func_dirname file append nondir_replacement
17492 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17493 # otherwise set result to NONDIR_REPLACEMENT.
17494 func_dirname ()
17496 case ${1} in
17497 */*) func_dirname_result="${1%/*}${2}" ;;
17498 * ) func_dirname_result="${3}" ;;
17499 esac
17502 # func_basename file
17503 func_basename ()
17505 func_basename_result="${1##*/}"
17508 # func_dirname_and_basename file append nondir_replacement
17509 # perform func_basename and func_dirname in a single function
17510 # call:
17511 # dirname: Compute the dirname of FILE. If nonempty,
17512 # add APPEND to the result, otherwise set result
17513 # to NONDIR_REPLACEMENT.
17514 # value returned in "$func_dirname_result"
17515 # basename: Compute filename of FILE.
17516 # value retuned in "$func_basename_result"
17517 # Implementation must be kept synchronized with func_dirname
17518 # and func_basename. For efficiency, we do not delegate to
17519 # those functions but instead duplicate the functionality here.
17520 func_dirname_and_basename ()
17522 case ${1} in
17523 */*) func_dirname_result="${1%/*}${2}" ;;
17524 * ) func_dirname_result="${3}" ;;
17525 esac
17526 func_basename_result="${1##*/}"
17529 # func_stripname prefix suffix name
17530 # strip PREFIX and SUFFIX off of NAME.
17531 # PREFIX and SUFFIX must not contain globbing or regex special
17532 # characters, hashes, percent signs, but SUFFIX may contain a leading
17533 # dot (in which case that matches only a dot).
17534 func_stripname ()
17536 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17537 # positional parameters, so assign one to ordinary parameter first.
17538 func_stripname_result=${3}
17539 func_stripname_result=${func_stripname_result#"${1}"}
17540 func_stripname_result=${func_stripname_result%"${2}"}
17543 # func_opt_split
17544 func_opt_split ()
17546 func_opt_split_opt=${1%%=*}
17547 func_opt_split_arg=${1#*=}
17550 # func_lo2o object
17551 func_lo2o ()
17553 case ${1} in
17554 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17555 *) func_lo2o_result=${1} ;;
17556 esac
17559 # func_xform libobj-or-source
17560 func_xform ()
17562 func_xform_result=${1%.*}.lo
17565 # func_arith arithmetic-term...
17566 func_arith ()
17568 func_arith_result=$(( $* ))
17571 # func_len string
17572 # STRING may not start with a hyphen.
17573 func_len ()
17575 func_len_result=${#1}
17578 _LT_EOF
17580 *) # Bourne compatible functions.
17581 cat << \_LT_EOF >> "$cfgfile"
17583 # func_dirname file append nondir_replacement
17584 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17585 # otherwise set result to NONDIR_REPLACEMENT.
17586 func_dirname ()
17588 # Extract subdirectory from the argument.
17589 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17590 if test "X$func_dirname_result" = "X${1}"; then
17591 func_dirname_result="${3}"
17592 else
17593 func_dirname_result="$func_dirname_result${2}"
17597 # func_basename file
17598 func_basename ()
17600 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17604 # func_stripname prefix suffix name
17605 # strip PREFIX and SUFFIX off of NAME.
17606 # PREFIX and SUFFIX must not contain globbing or regex special
17607 # characters, hashes, percent signs, but SUFFIX may contain a leading
17608 # dot (in which case that matches only a dot).
17609 # func_strip_suffix prefix name
17610 func_stripname ()
17612 case ${2} in
17613 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17614 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17615 esac
17618 # sed scripts:
17619 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17620 my_sed_long_arg='1s/^-[^=]*=//'
17622 # func_opt_split
17623 func_opt_split ()
17625 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17626 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17629 # func_lo2o object
17630 func_lo2o ()
17632 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17635 # func_xform libobj-or-source
17636 func_xform ()
17638 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17641 # func_arith arithmetic-term...
17642 func_arith ()
17644 func_arith_result=`expr "$@"`
17647 # func_len string
17648 # STRING may not start with a hyphen.
17649 func_len ()
17651 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17654 _LT_EOF
17655 esac
17657 case $lt_shell_append in
17658 yes)
17659 cat << \_LT_EOF >> "$cfgfile"
17661 # func_append var value
17662 # Append VALUE to the end of shell variable VAR.
17663 func_append ()
17665 eval "$1+=\$2"
17667 _LT_EOF
17670 cat << \_LT_EOF >> "$cfgfile"
17672 # func_append var value
17673 # Append VALUE to the end of shell variable VAR.
17674 func_append ()
17676 eval "$1=\$$1\$2"
17679 _LT_EOF
17681 esac
17684 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17685 || (rm -f "$cfgfile"; exit 1)
17687 mv -f "$cfgfile" "$ofile" ||
17688 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17689 chmod +x "$ofile"
17692 cat <<_LT_EOF >> "$ofile"
17694 # ### BEGIN LIBTOOL TAG CONFIG: GO
17696 # The linker used to build libraries.
17697 LD=$lt_LD_GO
17699 # How to create reloadable object files.
17700 reload_flag=$lt_reload_flag_GO
17701 reload_cmds=$lt_reload_cmds_GO
17703 # Commands used to build an old-style archive.
17704 old_archive_cmds=$lt_old_archive_cmds_GO
17706 # A language specific compiler.
17707 CC=$lt_compiler_GO
17709 # Is the compiler the GNU compiler?
17710 with_gcc=$GCC_GO
17712 # Compiler flag to turn off builtin functions.
17713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17715 # How to pass a linker flag through the compiler.
17716 wl=$lt_lt_prog_compiler_wl_GO
17718 # Additional compiler flags for building library objects.
17719 pic_flag=$lt_lt_prog_compiler_pic_GO
17721 # Compiler flag to prevent dynamic linking.
17722 link_static_flag=$lt_lt_prog_compiler_static_GO
17724 # Does compiler simultaneously support -c and -o options?
17725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17727 # Whether or not to add -lc for building shared libraries.
17728 build_libtool_need_lc=$archive_cmds_need_lc_GO
17730 # Whether or not to disallow shared libs when runtime libs are static.
17731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17733 # Compiler flag to allow reflexive dlopens.
17734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17736 # Compiler flag to generate shared objects directly from archives.
17737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17739 # Whether the compiler copes with passing no objects directly.
17740 compiler_needs_object=$lt_compiler_needs_object_GO
17742 # Create an old-style archive from a shared archive.
17743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17745 # Create a temporary old-style archive to link instead of a shared archive.
17746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17748 # Commands used to build a shared archive.
17749 archive_cmds=$lt_archive_cmds_GO
17750 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17752 # Commands used to build a loadable module if different from building
17753 # a shared archive.
17754 module_cmds=$lt_module_cmds_GO
17755 module_expsym_cmds=$lt_module_expsym_cmds_GO
17757 # Whether we are building with GNU ld or not.
17758 with_gnu_ld=$lt_with_gnu_ld_GO
17760 # Flag that allows shared libraries with undefined symbols to be built.
17761 allow_undefined_flag=$lt_allow_undefined_flag_GO
17763 # Flag that enforces no undefined symbols.
17764 no_undefined_flag=$lt_no_undefined_flag_GO
17766 # Flag to hardcode \$libdir into a binary during linking.
17767 # This must work even if \$libdir does not exist
17768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17770 # If ld is used when linking, flag to hardcode \$libdir into a binary
17771 # during linking. This must work even if \$libdir does not exist.
17772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17774 # Whether we need a single "-rpath" flag with a separated argument.
17775 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17778 # DIR into the resulting binary.
17779 hardcode_direct=$hardcode_direct_GO
17781 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17782 # DIR into the resulting binary and the resulting library dependency is
17783 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17784 # library is relocated.
17785 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17787 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17788 # into the resulting binary.
17789 hardcode_minus_L=$hardcode_minus_L_GO
17791 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17792 # into the resulting binary.
17793 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17795 # Set to "yes" if building a shared library automatically hardcodes DIR
17796 # into the library and all subsequent libraries and executables linked
17797 # against it.
17798 hardcode_automatic=$hardcode_automatic_GO
17800 # Set to yes if linker adds runtime paths of dependent libraries
17801 # to runtime path list.
17802 inherit_rpath=$inherit_rpath_GO
17804 # Whether libtool must link a program against all its dependency libraries.
17805 link_all_deplibs=$link_all_deplibs_GO
17807 # Fix the shell variable \$srcfile for the compiler.
17808 fix_srcfile_path=$lt_fix_srcfile_path_GO
17810 # Set to "yes" if exported symbols are required.
17811 always_export_symbols=$always_export_symbols_GO
17813 # The commands to list exported symbols.
17814 export_symbols_cmds=$lt_export_symbols_cmds_GO
17816 # Symbols that should not be listed in the preloaded symbols.
17817 exclude_expsyms=$lt_exclude_expsyms_GO
17819 # Symbols that must always be exported.
17820 include_expsyms=$lt_include_expsyms_GO
17822 # Commands necessary for linking programs (against libraries) with templates.
17823 prelink_cmds=$lt_prelink_cmds_GO
17825 # Specify filename containing input files.
17826 file_list_spec=$lt_file_list_spec_GO
17828 # How to hardcode a shared library path into an executable.
17829 hardcode_action=$hardcode_action_GO
17831 # ### END LIBTOOL TAG CONFIG: GO
17832 _LT_EOF
17835 "default":C) if test -n "$CONFIG_FILES"; then
17836 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17837 # that multilib installs will end up installed in the correct place.
17838 # The testsuite needs it for multilib-aware ABI baseline files.
17839 # To work around this not being passed down from config-ml.in ->
17840 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17841 # append it here. Only modify Makefiles that have just been created.
17843 # Also, get rid of this simulated-VPATH thing that automake does.
17844 cat > vpsed << \_EOF
17845 s!`test -f '$<' || echo '$(srcdir)/'`!!
17846 _EOF
17847 for i in $SUBDIRS; do
17848 case $CONFIG_FILES in
17849 *${i}/Makefile*)
17850 #echo "Adding MULTISUBDIR to $i/Makefile"
17851 sed -f vpsed $i/Makefile > tmp
17852 grep '^MULTISUBDIR =' Makefile >> tmp
17853 mv tmp $i/Makefile
17855 esac
17856 done
17857 rm vpsed
17861 esac
17862 done # for ac_tag
17865 as_fn_exit 0
17866 _ACEOF
17867 ac_clean_files=$ac_clean_files_save
17869 test $ac_write_fail = 0 ||
17870 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17873 # configure is writing to config.log, and then calls config.status.
17874 # config.status does its own redirection, appending to config.log.
17875 # Unfortunately, on DOS this fails, as config.log is still kept open
17876 # by configure, so config.status won't be able to write to it; its
17877 # output is simply discarded. So we exec the FD to /dev/null,
17878 # effectively closing config.log, so it can be properly (re)opened and
17879 # appended to by config.status. When coming back to configure, we
17880 # need to make the FD available again.
17881 if test "$no_create" != yes; then
17882 ac_cs_success=:
17883 ac_config_status_args=
17884 test "$silent" = yes &&
17885 ac_config_status_args="$ac_config_status_args --quiet"
17886 exec 5>/dev/null
17887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17888 exec 5>>config.log
17889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17890 # would make configure fail if this is the last instruction.
17891 $ac_cs_success || as_fn_exit $?
17893 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17895 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}