gcc/:
[official-gcc.git] / libgo / configure
blob7984e862e644fc201cdd21120848a742a0c2299f
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_ARM64_FALSE
651 LIBGO_IS_ARM64_TRUE
652 LIBGO_IS_ARM_FALSE
653 LIBGO_IS_ARM_TRUE
654 LIBGO_IS_ALPHA_FALSE
655 LIBGO_IS_ALPHA_TRUE
656 LIBGO_IS_386_FALSE
657 LIBGO_IS_386_TRUE
658 USE_DEJAGNU
659 GOOS
660 LIBGO_IS_SOLARIS_FALSE
661 LIBGO_IS_SOLARIS_TRUE
662 LIBGO_IS_RTEMS_FALSE
663 LIBGO_IS_RTEMS_TRUE
664 LIBGO_IS_DRAGONFLY_FALSE
665 LIBGO_IS_DRAGONFLY_TRUE
666 LIBGO_IS_OPENBSD_FALSE
667 LIBGO_IS_OPENBSD_TRUE
668 LIBGO_IS_NETBSD_FALSE
669 LIBGO_IS_NETBSD_TRUE
670 LIBGO_IS_LINUX_FALSE
671 LIBGO_IS_LINUX_TRUE
672 LIBGO_IS_IRIX_FALSE
673 LIBGO_IS_IRIX_TRUE
674 LIBGO_IS_FREEBSD_FALSE
675 LIBGO_IS_FREEBSD_TRUE
676 LIBGO_IS_DARWIN_FALSE
677 LIBGO_IS_DARWIN_TRUE
678 go_include
679 LIBATOMIC
680 LIBFFIINCS
681 LIBFFI
682 nover_glibgo_toolexeclibdir
683 glibgo_toolexeclibdir
684 glibgo_toolexecdir
685 WERROR
686 WARN_FLAGS
687 CC_FOR_BUILD
688 enable_static
689 enable_shared
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
697 OBJDUMP
698 LN_S
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LIBTOOL
703 OBJCOPY
704 RANLIB
706 FGREP
707 EGREP
708 GREP
710 MAINT
711 MAINTAINER_MODE_FALSE
712 MAINTAINER_MODE_TRUE
713 GOCFLAGS
715 am__fastdepCC_FALSE
716 am__fastdepCC_TRUE
717 CCDEPMODE
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__quote
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_os
755 target_vendor
756 target_cpu
757 target
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 multi_basedir
767 libtool_VERSION
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_multilib
810 enable_dependency_tracking
811 enable_maintainer_mode
812 with_gnu_ld
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 enable_libtool_lock
818 enable_werror
819 enable_version_specific_runtime_libs
820 with_libffi
821 with_libatomic
822 with_system_libunwind
823 enable_sjlj_exceptions
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
829 CPPFLAGS'
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
880 ac_prev=
881 ac_dashdash=
882 for ac_option
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
900 ac_dashdash=yes ;;
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
919 --config-cache | -C)
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information."
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1236 esac
1237 done
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error "missing argument to $ac_option"
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294 test "$silent" = yes && exec 6>/dev/null
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1323 /^X\(\/\/\)$/{
1324 s//\1/
1327 /^X\(\/\).*/{
1328 s//\1/
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1336 else
1337 ac_srcdir_defaulted=no
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1426 cat <<\_ACEOF
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437 _ACEOF
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of package-unused version-unused:";;
1443 esac
1444 cat <<\_ACEOF
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-multilib build many library versions (default)
1451 --disable-dependency-tracking speeds up one-time build
1452 --enable-dependency-tracking do not reject slow dependency extractors
1453 --enable-maintainer-mode enable make rules and dependencies not useful
1454 (and sometimes confusing) to the casual installer
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-static[=PKGS] build static libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1460 --enable-werror turns on -Werror [default=yes]
1461 --enable-version-specific-runtime-libs
1462 Specify that runtime libraries should be installed
1463 in a compiler-specific directory
1464 --enable-sjlj-exceptions
1465 force use of builtin_setjmp for exceptions
1467 Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1471 --with-pic try to use only PIC/non-PIC objects [default=use
1472 both]
1473 --without-libffi don't use libffi
1474 --without-libatomic don't use libatomic
1475 --with-system-libunwind use installed libunwind
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 GOC Go compiler command
1486 GOCFLAGS Go compiler flags
1487 CPP C preprocessor
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to the package provider.
1493 _ACEOF
1494 ac_status=$?
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 package-unused configure version-unused
1556 generated by GNU Autoconf 2.64
1558 Copyright (C) 2009 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1605 } # ac_fn_c_try_compile
1607 # ac_fn_c_try_link LINENO
1608 # -----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_link ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest$ac_exeext
1614 if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest$ac_exeext && {
1633 test "$cross_compiling" = yes ||
1634 $as_test_x conftest$ac_exeext
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1641 ac_retval=1
1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645 # interfere with the next link command; also delete a directory that is
1646 # left behind by Apple's compiler. We do this before executing the actions.
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 return $ac_retval
1651 } # ac_fn_c_try_link
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672 else
1673 eval "$3=no"
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 } # ac_fn_c_check_header_compile
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } >/dev/null && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=1
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 return $ac_retval
1719 } # ac_fn_c_try_cpp
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
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_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=$ac_status
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1761 } # ac_fn_c_try_run
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778 #define $2 innocuous_$2
1780 /* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char $2 (); below.
1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783 <limits.h> exists even on freestanding compilers. */
1785 #ifdef __STDC__
1786 # include <limits.h>
1787 #else
1788 # include <assert.h>
1789 #endif
1791 #undef $2
1793 /* Override any GCC internal prototype to avoid an error.
1794 Use char because int might match the return type of a GCC
1795 builtin and then its argument prototype would still apply. */
1796 #ifdef __cplusplus
1797 extern "C"
1798 #endif
1799 char $2 ();
1800 /* The GNU C library defines this for functions which it implements
1801 to always fail with ENOSYS. Some functions are actually named
1802 something starting with __ and the normal name is an alias. */
1803 #if defined __stub_$2 || defined __stub___$2
1804 choke me
1805 #endif
1808 main ()
1810 return $2 ();
1812 return 0;
1814 _ACEOF
1815 if ac_fn_c_try_link "$LINENO"; then :
1816 eval "$3=yes"
1817 else
1818 eval "$3=no"
1820 rm -f core conftest.err conftest.$ac_objext \
1821 conftest$ac_exeext conftest.$ac_ext
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 } # ac_fn_c_check_func
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1834 # accordingly.
1835 ac_fn_c_check_header_mongrel ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 else
1848 # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 ac_header_compiler=yes
1858 else
1859 ac_header_compiler=no
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873 ac_header_preproc=yes
1874 else
1875 ac_header_preproc=no
1877 rm -f conftest.err conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1881 # So? What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1883 yes:no: )
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 no:yes:* )
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901 esac
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 eval "$3=\$ac_header_compiler"
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 } # ac_fn_c_check_header_mongrel
1917 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1918 # -------------------------------------------
1919 # Tests whether TYPE exists after having included INCLUDES, setting cache
1920 # variable VAR accordingly.
1921 ac_fn_c_check_type ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 eval "$3=no"
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1934 main ()
1936 if (sizeof ($2))
1937 return 0;
1939 return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 main ()
1949 if (sizeof (($2)))
1950 return 0;
1952 return 0;
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1957 else
1958 eval "$3=yes"
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969 } # ac_fn_c_check_type
1971 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1972 # --------------------------------------------
1973 # Tries to find the compile-time value of EXPR in a program that includes
1974 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1975 # computed
1976 ac_fn_c_compute_int ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if test "$cross_compiling" = yes; then
1980 # Depending upon the size, compute the lo and hi bounds.
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 main ()
1987 static int test_array [1 - 2 * !(($2) >= 0)];
1988 test_array [0] = 0
1991 return 0;
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 ac_lo=0 ac_mid=0
1996 while :; do
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2001 main ()
2003 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2004 test_array [0] = 0
2007 return 0;
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_hi=$ac_mid; break
2012 else
2013 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2014 if test $ac_lo -le $ac_mid; then
2015 ac_lo= ac_hi=
2016 break
2018 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 done
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static int test_array [1 - 2 * !(($2) < 0)];
2030 test_array [0] = 0
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_hi=-1 ac_mid=-1
2038 while :; do
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2046 test_array [0] = 0
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_lo=$ac_mid; break
2054 else
2055 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2056 if test $ac_mid -le $ac_hi; then
2057 ac_lo= ac_hi=
2058 break
2060 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 done
2064 else
2065 ac_lo= ac_hi=
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 # Binary search between lo and hi bounds.
2071 while test "x$ac_lo" != "x$ac_hi"; do
2072 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 test_array [0] = 0
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid
2088 else
2089 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 done
2093 case $ac_lo in #((
2094 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2095 '') ac_retval=1 ;;
2096 esac
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2101 static long int longval () { return $2; }
2102 static unsigned long int ulongval () { return $2; }
2103 #include <stdio.h>
2104 #include <stdlib.h>
2106 main ()
2109 FILE *f = fopen ("conftest.val", "w");
2110 if (! f)
2111 return 1;
2112 if (($2) < 0)
2114 long int i = longval ();
2115 if (i != ($2))
2116 return 1;
2117 fprintf (f, "%ld", i);
2119 else
2121 unsigned long int i = ulongval ();
2122 if (i != ($2))
2123 return 1;
2124 fprintf (f, "%lu", i);
2126 /* Do not output a trailing newline, as this causes \r\n confusion
2127 on some platforms. */
2128 return ferror (f) || fclose (f) != 0;
2131 return 0;
2133 _ACEOF
2134 if ac_fn_c_try_run "$LINENO"; then :
2135 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2136 else
2137 ac_retval=1
2139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2140 conftest.$ac_objext conftest.beam conftest.$ac_ext
2141 rm -f conftest.val
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 return $ac_retval
2147 } # ac_fn_c_compute_int
2148 cat >config.log <<_ACEOF
2149 This file contains any messages produced by compilers while
2150 running configure, to aid debugging if configure makes a mistake.
2152 It was created by package-unused $as_me version-unused, which was
2153 generated by GNU Autoconf 2.64. Invocation command line was
2155 $ $0 $@
2157 _ACEOF
2158 exec 5>>config.log
2160 cat <<_ASUNAME
2161 ## --------- ##
2162 ## Platform. ##
2163 ## --------- ##
2165 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2166 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2167 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2168 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2169 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2171 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2172 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2174 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2175 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2176 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2177 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2178 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2179 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2180 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2182 _ASUNAME
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 $as_echo "PATH: $as_dir"
2190 done
2191 IFS=$as_save_IFS
2193 } >&5
2195 cat >&5 <<_ACEOF
2198 ## ----------- ##
2199 ## Core tests. ##
2200 ## ----------- ##
2202 _ACEOF
2205 # Keep a trace of the command line.
2206 # Strip out --no-create and --no-recursion so they do not pile up.
2207 # Strip out --silent because we don't want to record it for future runs.
2208 # Also quote any args containing shell meta-characters.
2209 # Make two passes to allow for proper duplicate-argument suppression.
2210 ac_configure_args=
2211 ac_configure_args0=
2212 ac_configure_args1=
2213 ac_must_keep_next=false
2214 for ac_pass in 1 2
2216 for ac_arg
2218 case $ac_arg in
2219 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2221 | -silent | --silent | --silen | --sile | --sil)
2222 continue ;;
2223 *\'*)
2224 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2225 esac
2226 case $ac_pass in
2227 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2229 as_fn_append ac_configure_args1 " '$ac_arg'"
2230 if test $ac_must_keep_next = true; then
2231 ac_must_keep_next=false # Got value, back to normal.
2232 else
2233 case $ac_arg in
2234 *=* | --config-cache | -C | -disable-* | --disable-* \
2235 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2236 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2237 | -with-* | --with-* | -without-* | --without-* | --x)
2238 case "$ac_configure_args0 " in
2239 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2240 esac
2242 -* ) ac_must_keep_next=true ;;
2243 esac
2245 as_fn_append ac_configure_args " '$ac_arg'"
2247 esac
2248 done
2249 done
2250 { ac_configure_args0=; unset ac_configure_args0;}
2251 { ac_configure_args1=; unset ac_configure_args1;}
2253 # When interrupted or exit'd, cleanup temporary files, and complete
2254 # config.log. We remove comments because anyway the quotes in there
2255 # would cause problems or look ugly.
2256 # WARNING: Use '\'' to represent an apostrophe within the trap.
2257 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2258 trap 'exit_status=$?
2259 # Save into config.log some information that might help in debugging.
2261 echo
2263 cat <<\_ASBOX
2264 ## ---------------- ##
2265 ## Cache variables. ##
2266 ## ---------------- ##
2267 _ASBOX
2268 echo
2269 # The following way of writing the cache mishandles newlines in values,
2271 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in #(
2274 *${as_nl}*)
2275 case $ac_var in #(
2276 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2277 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2278 esac
2279 case $ac_var in #(
2280 _ | IFS | as_nl) ;; #(
2281 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2282 *) { eval $ac_var=; unset $ac_var;} ;;
2283 esac ;;
2284 esac
2285 done
2286 (set) 2>&1 |
2287 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2288 *${as_nl}ac_space=\ *)
2289 sed -n \
2290 "s/'\''/'\''\\\\'\'''\''/g;
2291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2292 ;; #(
2294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2296 esac |
2297 sort
2299 echo
2301 cat <<\_ASBOX
2302 ## ----------------- ##
2303 ## Output variables. ##
2304 ## ----------------- ##
2305 _ASBOX
2306 echo
2307 for ac_var in $ac_subst_vars
2309 eval ac_val=\$$ac_var
2310 case $ac_val in
2311 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2312 esac
2313 $as_echo "$ac_var='\''$ac_val'\''"
2314 done | sort
2315 echo
2317 if test -n "$ac_subst_files"; then
2318 cat <<\_ASBOX
2319 ## ------------------- ##
2320 ## File substitutions. ##
2321 ## ------------------- ##
2322 _ASBOX
2323 echo
2324 for ac_var in $ac_subst_files
2326 eval ac_val=\$$ac_var
2327 case $ac_val in
2328 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 esac
2330 $as_echo "$ac_var='\''$ac_val'\''"
2331 done | sort
2332 echo
2335 if test -s confdefs.h; then
2336 cat <<\_ASBOX
2337 ## ----------- ##
2338 ## confdefs.h. ##
2339 ## ----------- ##
2340 _ASBOX
2341 echo
2342 cat confdefs.h
2343 echo
2345 test "$ac_signal" != 0 &&
2346 $as_echo "$as_me: caught signal $ac_signal"
2347 $as_echo "$as_me: exit $exit_status"
2348 } >&5
2349 rm -f core *.core core.conftest.* &&
2350 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2351 exit $exit_status
2353 for ac_signal in 1 2 13 15; do
2354 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355 done
2356 ac_signal=0
2358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2359 rm -f -r conftest* confdefs.h
2361 $as_echo "/* confdefs.h */" > confdefs.h
2363 # Predefined preprocessor variables.
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_NAME "$PACKAGE_NAME"
2367 _ACEOF
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2371 _ACEOF
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2375 _ACEOF
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_STRING "$PACKAGE_STRING"
2379 _ACEOF
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_URL "$PACKAGE_URL"
2387 _ACEOF
2390 # Let the site file select an alternate cache file if it wants to.
2391 # Prefer an explicitly selected file to automatically selected ones.
2392 ac_site_file1=NONE
2393 ac_site_file2=NONE
2394 if test -n "$CONFIG_SITE"; then
2395 ac_site_file1=$CONFIG_SITE
2396 elif test "x$prefix" != xNONE; then
2397 ac_site_file1=$prefix/share/config.site
2398 ac_site_file2=$prefix/etc/config.site
2399 else
2400 ac_site_file1=$ac_default_prefix/share/config.site
2401 ac_site_file2=$ac_default_prefix/etc/config.site
2403 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2405 test "x$ac_site_file" = xNONE && continue
2406 if test -r "$ac_site_file"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2408 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2409 sed 's/^/| /' "$ac_site_file" >&5
2410 . "$ac_site_file"
2412 done
2414 if test -r "$cache_file"; then
2415 # Some versions of bash will fail to source /dev/null (special
2416 # files actually), so we avoid doing that.
2417 if test -f "$cache_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2419 $as_echo "$as_me: loading cache $cache_file" >&6;}
2420 case $cache_file in
2421 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2422 *) . "./$cache_file";;
2423 esac
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2427 $as_echo "$as_me: creating cache $cache_file" >&6;}
2428 >$cache_file
2431 # Check that the precious variables saved in the cache have kept the same
2432 # value.
2433 ac_cache_corrupted=false
2434 for ac_var in $ac_precious_vars; do
2435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2436 eval ac_new_set=\$ac_env_${ac_var}_set
2437 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2438 eval ac_new_val=\$ac_env_${ac_var}_value
2439 case $ac_old_set,$ac_new_set in
2440 set,)
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2442 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2443 ac_cache_corrupted=: ;;
2444 ,set)
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2446 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2447 ac_cache_corrupted=: ;;
2448 ,);;
2450 if test "x$ac_old_val" != "x$ac_new_val"; then
2451 # differences in whitespace do not lead to failure.
2452 ac_old_val_w=`echo x $ac_old_val`
2453 ac_new_val_w=`echo x $ac_new_val`
2454 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2456 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2457 ac_cache_corrupted=:
2458 else
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2460 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2461 eval $ac_var=\$ac_old_val
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2464 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2466 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2467 fi;;
2468 esac
2469 # Pass precious variables to config.status.
2470 if test "$ac_new_set" = set; then
2471 case $ac_new_val in
2472 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2473 *) ac_arg=$ac_var=$ac_new_val ;;
2474 esac
2475 case " $ac_configure_args " in
2476 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2477 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2478 esac
2480 done
2481 if $ac_cache_corrupted; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2485 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2486 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2488 ## -------------------- ##
2489 ## Main body of script. ##
2490 ## -------------------- ##
2492 ac_ext=c
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503 ac_config_headers="$ac_config_headers config.h"
2506 libtool_VERSION=6:0:0
2509 # Default to --enable-multilib
2510 # Check whether --enable-multilib was given.
2511 if test "${enable_multilib+set}" = set; then :
2512 enableval=$enable_multilib; case "$enableval" in
2513 yes) multilib=yes ;;
2514 no) multilib=no ;;
2515 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2516 esac
2517 else
2518 multilib=yes
2522 # We may get other options which we leave undocumented:
2523 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2524 # See config-ml.in if you want the gory details.
2526 if test "$srcdir" = "."; then
2527 if test "$with_target_subdir" != "."; then
2528 multi_basedir="$srcdir/$with_multisrctop../.."
2529 else
2530 multi_basedir="$srcdir/$with_multisrctop.."
2532 else
2533 multi_basedir="$srcdir/.."
2537 # Even if the default multilib is not a cross compilation,
2538 # it may be that some of the other multilibs are.
2539 if test $cross_compiling = no && test $multilib = yes \
2540 && test "x${with_multisubdir}" != x ; then
2541 cross_compiling=maybe
2544 ac_config_commands="$ac_config_commands default-1"
2547 ac_aux_dir=
2548 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2549 for ac_t in install-sh install.sh shtool; do
2550 if test -f "$ac_dir/$ac_t"; then
2551 ac_aux_dir=$ac_dir
2552 ac_install_sh="$ac_aux_dir/$ac_t -c"
2553 break 2
2555 done
2556 done
2557 if test -z "$ac_aux_dir"; then
2558 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2561 # These three variables are undocumented and unsupported,
2562 # and are intended to be withdrawn in a future Autoconf release.
2563 # They can cause serious problems if a builder's source tree is in a directory
2564 # whose full name contains unusual characters.
2565 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2566 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2567 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2570 # Make sure we can run config.sub.
2571 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2572 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2575 $as_echo_n "checking build system type... " >&6; }
2576 if test "${ac_cv_build+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 ac_build_alias=$build_alias
2580 test "x$ac_build_alias" = x &&
2581 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2582 test "x$ac_build_alias" = x &&
2583 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2584 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2585 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2589 $as_echo "$ac_cv_build" >&6; }
2590 case $ac_cv_build in
2591 *-*-*) ;;
2592 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2593 esac
2594 build=$ac_cv_build
2595 ac_save_IFS=$IFS; IFS='-'
2596 set x $ac_cv_build
2597 shift
2598 build_cpu=$1
2599 build_vendor=$2
2600 shift; shift
2601 # Remember, the first character of IFS is used to create $*,
2602 # except with old shells:
2603 build_os=$*
2604 IFS=$ac_save_IFS
2605 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2609 $as_echo_n "checking host system type... " >&6; }
2610 if test "${ac_cv_host+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test "x$host_alias" = x; then
2614 ac_cv_host=$ac_cv_build
2615 else
2616 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2617 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2622 $as_echo "$ac_cv_host" >&6; }
2623 case $ac_cv_host in
2624 *-*-*) ;;
2625 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2626 esac
2627 host=$ac_cv_host
2628 ac_save_IFS=$IFS; IFS='-'
2629 set x $ac_cv_host
2630 shift
2631 host_cpu=$1
2632 host_vendor=$2
2633 shift; shift
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2636 host_os=$*
2637 IFS=$ac_save_IFS
2638 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2642 $as_echo_n "checking target system type... " >&6; }
2643 if test "${ac_cv_target+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 if test "x$target_alias" = x; then
2647 ac_cv_target=$ac_cv_host
2648 else
2649 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2650 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2655 $as_echo "$ac_cv_target" >&6; }
2656 case $ac_cv_target in
2657 *-*-*) ;;
2658 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2659 esac
2660 target=$ac_cv_target
2661 ac_save_IFS=$IFS; IFS='-'
2662 set x $ac_cv_target
2663 shift
2664 target_cpu=$1
2665 target_vendor=$2
2666 shift; shift
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2669 target_os=$*
2670 IFS=$ac_save_IFS
2671 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2674 # The aliases save the names the user supplied, while $host etc.
2675 # will get canonicalized.
2676 test -n "$target_alias" &&
2677 test "$program_prefix$program_suffix$program_transform_name" = \
2678 NONENONEs,x,x, &&
2679 program_prefix=${target_alias}-
2681 target_alias=${target_alias-$host_alias}
2683 am__api_version='1.11'
2685 # Find a good install program. We prefer a C program (faster),
2686 # so one script is as good as another. But avoid the broken or
2687 # incompatible versions:
2688 # SysV /etc/install, /usr/sbin/install
2689 # SunOS /usr/etc/install
2690 # IRIX /sbin/install
2691 # AIX /bin/install
2692 # AmigaOS /C/install, which installs bootblocks on floppy discs
2693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2696 # OS/2's system install, which has a completely different semantic
2697 # ./install, which can be erroneously created by make from ./install.sh.
2698 # Reject install programs that cannot install multiple files.
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2700 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2701 if test -z "$INSTALL"; then
2702 if test "${ac_cv_path_install+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 # Account for people who put trailing slashes in PATH elements.
2711 case $as_dir/ in #((
2712 ./ | .// | /[cC]/* | \
2713 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2714 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2715 /usr/ucb/* ) ;;
2717 # OSF1 and SCO ODT 3.0 have their own names for install.
2718 # Don't use installbsd from OSF since it installs stuff as root
2719 # by default.
2720 for ac_prog in ginstall scoinst install; do
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2723 if test $ac_prog = install &&
2724 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725 # AIX install. It has an incompatible calling convention.
2727 elif test $ac_prog = install &&
2728 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729 # program-specific install script used by HP pwplus--don't use.
2731 else
2732 rm -rf conftest.one conftest.two conftest.dir
2733 echo one > conftest.one
2734 echo two > conftest.two
2735 mkdir conftest.dir
2736 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2737 test -s conftest.one && test -s conftest.two &&
2738 test -s conftest.dir/conftest.one &&
2739 test -s conftest.dir/conftest.two
2740 then
2741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2742 break 3
2746 done
2747 done
2749 esac
2751 done
2752 IFS=$as_save_IFS
2754 rm -rf conftest.one conftest.two conftest.dir
2757 if test "${ac_cv_path_install+set}" = set; then
2758 INSTALL=$ac_cv_path_install
2759 else
2760 # As a last resort, use the slow shell script. Don't cache a
2761 # value for INSTALL within a source directory, because that will
2762 # break other packages using the cache if that directory is
2763 # removed, or if the value is a relative name.
2764 INSTALL=$ac_install_sh
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2768 $as_echo "$INSTALL" >&6; }
2770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2771 # It thinks the first close brace ends the variable substitution.
2772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2779 $as_echo_n "checking whether build environment is sane... " >&6; }
2780 # Just in case
2781 sleep 1
2782 echo timestamp > conftest.file
2783 # Reject unsafe characters in $srcdir or the absolute working directory
2784 # name. Accept space and tab only in the latter.
2785 am_lf='
2787 case `pwd` in
2788 *[\\\"\#\$\&\'\`$am_lf]*)
2789 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2790 esac
2791 case $srcdir in
2792 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2793 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2794 esac
2796 # Do `set' in a subshell so we don't clobber the current shell's
2797 # arguments. Must try -L first in case configure is actually a
2798 # symlink; some systems play weird games with the mod time of symlinks
2799 # (eg FreeBSD returns the mod time of the symlink's containing
2800 # directory).
2801 if (
2802 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2803 if test "$*" = "X"; then
2804 # -L didn't work.
2805 set X `ls -t "$srcdir/configure" conftest.file`
2807 rm -f conftest.file
2808 if test "$*" != "X $srcdir/configure conftest.file" \
2809 && test "$*" != "X conftest.file $srcdir/configure"; then
2811 # If neither matched, then we have a broken ls. This can happen
2812 # if, for instance, CONFIG_SHELL is bash and it inherits a
2813 # broken ls alias from the environment. This has actually
2814 # happened. Such a system could not be considered "sane".
2815 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2816 alias in your environment" "$LINENO" 5
2819 test "$2" = conftest.file
2821 then
2822 # Ok.
2824 else
2825 as_fn_error "newly created file is older than distributed files!
2826 Check your system clock" "$LINENO" 5
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2830 test "$program_prefix" != NONE &&
2831 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2832 # Use a double $ so make ignores it.
2833 test "$program_suffix" != NONE &&
2834 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2835 # Double any \ or $.
2836 # By default was `s,x,x', remove it if useless.
2837 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2838 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2840 # expand $ac_aux_dir to an absolute path
2841 am_aux_dir=`cd $ac_aux_dir && pwd`
2843 if test x"${MISSING+set}" != xset; then
2844 case $am_aux_dir in
2845 *\ * | *\ *)
2846 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2848 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2849 esac
2851 # Use eval to expand $SHELL
2852 if eval "$MISSING --run true"; then
2853 am_missing_run="$MISSING --run "
2854 else
2855 am_missing_run=
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2857 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2860 if test x"${install_sh}" != xset; then
2861 case $am_aux_dir in
2862 *\ * | *\ *)
2863 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2865 install_sh="\${SHELL} $am_aux_dir/install-sh"
2866 esac
2869 # Installed binaries are usually stripped using `strip' when the user
2870 # run `make install-strip'. However `strip' might not be the right
2871 # tool to use in cross-compilation environments, therefore Automake
2872 # will honor the `STRIP' environment variable to overrule this program.
2873 if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}strip; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_STRIP+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2898 IFS=$as_save_IFS
2902 STRIP=$ac_cv_prog_STRIP
2903 if test -n "$STRIP"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2905 $as_echo "$STRIP" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2913 if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916 set dummy strip; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$ac_ct_STRIP"; then
2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2936 done
2937 done
2938 IFS=$as_save_IFS
2942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943 if test -n "$ac_ct_STRIP"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2945 $as_echo "$ac_ct_STRIP" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2951 if test "x$ac_ct_STRIP" = x; then
2952 STRIP=":"
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955 yes:)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960 STRIP=$ac_ct_STRIP
2962 else
2963 STRIP="$ac_cv_prog_STRIP"
2967 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2970 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2971 if test -z "$MKDIR_P"; then
2972 if test "${ac_cv_path_mkdir+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_prog in mkdir gmkdir; do
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2983 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2984 'mkdir (GNU coreutils) '* | \
2985 'mkdir (coreutils) '* | \
2986 'mkdir (fileutils) '4.1*)
2987 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2988 break 3;;
2989 esac
2990 done
2991 done
2992 done
2993 IFS=$as_save_IFS
2997 if test "${ac_cv_path_mkdir+set}" = set; then
2998 MKDIR_P="$ac_cv_path_mkdir -p"
2999 else
3000 # As a last resort, use the slow shell script. Don't cache a
3001 # value for MKDIR_P within a source directory, because that will
3002 # break other packages using the cache if that directory is
3003 # removed, or if the value is a relative name.
3004 test -d ./--version && rmdir ./--version
3005 MKDIR_P="$ac_install_sh -d"
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3009 $as_echo "$MKDIR_P" >&6; }
3011 mkdir_p="$MKDIR_P"
3012 case $mkdir_p in
3013 [\\/$]* | ?:[\\/]*) ;;
3014 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3015 esac
3017 for ac_prog in gawk mawk nawk awk
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_AWK+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$AWK"; then
3027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_AWK="$ac_prog"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3042 IFS=$as_save_IFS
3046 AWK=$ac_cv_prog_AWK
3047 if test -n "$AWK"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3049 $as_echo "$AWK" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3056 test -n "$AWK" && break
3057 done
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3060 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3061 set x ${MAKE-make}
3062 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3063 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 cat >conftest.make <<\_ACEOF
3067 SHELL = /bin/sh
3068 all:
3069 @echo '@@@%%%=$(MAKE)=@@@%%%'
3070 _ACEOF
3071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3072 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3073 *@@@%%%=?*=@@@%%%*)
3074 eval ac_cv_prog_make_${ac_make}_set=yes;;
3076 eval ac_cv_prog_make_${ac_make}_set=no;;
3077 esac
3078 rm -f conftest.make
3080 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082 $as_echo "yes" >&6; }
3083 SET_MAKE=
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 SET_MAKE="MAKE=${MAKE-make}"
3090 rm -rf .tst 2>/dev/null
3091 mkdir .tst 2>/dev/null
3092 if test -d .tst; then
3093 am__leading_dot=.
3094 else
3095 am__leading_dot=_
3097 rmdir .tst 2>/dev/null
3099 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3100 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3101 # is not polluted with repeated "-I."
3102 am__isrc=' -I$(srcdir)'
3103 # test to see if srcdir already configured
3104 if test -f $srcdir/config.status; then
3105 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3109 # test whether we have cygpath
3110 if test -z "$CYGPATH_W"; then
3111 if (cygpath --version) >/dev/null 2>/dev/null; then
3112 CYGPATH_W='cygpath -w'
3113 else
3114 CYGPATH_W=echo
3119 # Define the identity of the package.
3120 PACKAGE='libgo'
3121 VERSION='version-unused'
3124 # Some tools Automake needs.
3126 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3129 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3132 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3135 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3138 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3140 # We need awk for the "check" target. The system "awk" is bad on
3141 # some platforms.
3142 # Always define AMTAR for backward compatibility.
3144 AMTAR=${AMTAR-"${am_missing_run}tar"}
3146 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3157 ac_ext=c
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 if test -n "$ac_tool_prefix"; then
3163 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_prog_CC+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3184 done
3185 done
3186 IFS=$as_save_IFS
3190 CC=$ac_cv_prog_CC
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3201 if test -z "$ac_cv_prog_CC"; then
3202 ac_ct_CC=$CC
3203 # Extract the first word of "gcc", so it can be a program name with args.
3204 set dummy gcc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_ac_ct_CC="gcc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3224 done
3225 done
3226 IFS=$as_save_IFS
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3239 if test "x$ac_ct_CC" = x; then
3240 CC=""
3241 else
3242 case $cross_compiling:$ac_tool_warned in
3243 yes:)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248 CC=$ac_ct_CC
3250 else
3251 CC="$ac_cv_prog_CC"
3254 if test -z "$CC"; then
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}cc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if test "${ac_cv_prog_CC+set}" = set; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_CC="${ac_tool_prefix}cc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3277 done
3278 done
3279 IFS=$as_save_IFS
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3295 if test -z "$CC"; then
3296 # Extract the first word of "cc", so it can be a program name with args.
3297 set dummy cc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if test "${ac_cv_prog_CC+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 else
3306 ac_prog_rejected=no
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3315 ac_prog_rejected=yes
3316 continue
3318 ac_cv_prog_CC="cc"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3322 done
3323 done
3324 IFS=$as_save_IFS
3326 if test $ac_prog_rejected = yes; then
3327 # We found a bogon in the path, so make sure we never use it.
3328 set dummy $ac_cv_prog_CC
3329 shift
3330 if test $# != 0; then
3331 # We chose a different compiler from the bogus one.
3332 # However, it has the same basename, so the bogon will be chosen
3333 # first if we set CC to just the basename; use the full file name.
3334 shift
3335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3340 CC=$ac_cv_prog_CC
3341 if test -n "$CC"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3344 else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 for ac_prog in cl.exe
3355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if test "${ac_cv_prog_CC+set}" = set; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3378 IFS=$as_save_IFS
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3392 test -n "$CC" && break
3393 done
3395 if test -z "$CC"; then
3396 ac_ct_CC=$CC
3397 for ac_prog in cl.exe
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 if test -n "$ac_ct_CC"; then
3407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 ac_cv_prog_ac_ct_CC="$ac_prog"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3420 done
3421 done
3422 IFS=$as_save_IFS
3426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3427 if test -n "$ac_ct_CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3429 $as_echo "$ac_ct_CC" >&6; }
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3436 test -n "$ac_ct_CC" && break
3437 done
3439 if test "x$ac_ct_CC" = x; then
3440 CC=""
3441 else
3442 case $cross_compiling:$ac_tool_warned in
3443 yes:)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3447 esac
3448 CC=$ac_ct_CC
3455 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error "no acceptable C compiler found in \$PATH
3458 See \`config.log' for more details." "$LINENO" 5; }
3460 # Provide some information about the compiler.
3461 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3462 set X $ac_compile
3463 ac_compiler=$2
3464 for ac_option in --version -v -V -qversion; do
3465 { { ac_try="$ac_compiler $ac_option >&5"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3473 ac_status=$?
3474 if test -s conftest.err; then
3475 sed '10a\
3476 ... rest of stderr output deleted ...
3477 10q' conftest.err >conftest.er1
3478 cat conftest.er1 >&5
3479 rm -f conftest.er1 conftest.err
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }
3483 done
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3489 main ()
3493 return 0;
3495 _ACEOF
3496 ac_clean_files_save=$ac_clean_files
3497 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3498 # Try to create an executable without -o first, disregard a.out.
3499 # It will help us diagnose broken compilers, and finding out an intuition
3500 # of exeext.
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3502 $as_echo_n "checking for C compiler default output file name... " >&6; }
3503 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3505 # The possible output files:
3506 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3508 ac_rmfiles=
3509 for ac_file in $ac_files
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3514 esac
3515 done
3516 rm -f $ac_rmfiles
3518 if { { ac_try="$ac_link_default"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link_default") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3532 # so that the user can short-circuit this test for compilers unknown to
3533 # Autoconf.
3534 for ac_file in $ac_files ''
3536 test -f "$ac_file" || continue
3537 case $ac_file in
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3540 [ab].out )
3541 # We found the default executable, but exeext='' is most
3542 # certainly right.
3543 break;;
3544 *.* )
3545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3546 then :; else
3547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 # We set ac_cv_exeext here because the later test for it is not
3550 # safe: cross compilers may not add the suffix if given an `-o'
3551 # argument, so we may need to know it at that point already.
3552 # Even if this section looks crufty: it has the advantage of
3553 # actually working.
3554 break;;
3556 break;;
3557 esac
3558 done
3559 test "$ac_cv_exeext" = no && ac_cv_exeext=
3561 else
3562 ac_file=''
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3565 $as_echo "$ac_file" >&6; }
3566 if test -z "$ac_file"; then :
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 { as_fn_set_status 77
3573 as_fn_error "C compiler cannot create executables
3574 See \`config.log' for more details." "$LINENO" 5; }; }
3576 ac_exeext=$ac_cv_exeext
3578 # Check that the compiler produces executables we can run. If not, either
3579 # the compiler is broken, or we cross compile.
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3581 $as_echo_n "checking whether the C compiler works... " >&6; }
3582 # If not cross compiling, check that we can run a simple program.
3583 if test "$cross_compiling" != yes; then
3584 if { ac_try='./$ac_file'
3585 { { case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_try") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; }; then
3595 cross_compiling=no
3596 else
3597 if test "$cross_compiling" = maybe; then
3598 cross_compiling=yes
3599 else
3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 as_fn_error "cannot run C compiled programs.
3603 If you meant to cross compile, use \`--host'.
3604 See \`config.log' for more details." "$LINENO" 5; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3609 $as_echo "yes" >&6; }
3611 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3612 ac_clean_files=$ac_clean_files_save
3613 # Check that the compiler produces executables we can run. If not, either
3614 # the compiler is broken, or we cross compile.
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3616 $as_echo_n "checking whether we are cross compiling... " >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618 $as_echo "$cross_compiling" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3621 $as_echo_n "checking for suffix of executables... " >&6; }
3622 if { { ac_try="$ac_link"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_link") 2>&5
3630 ac_status=$?
3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632 test $ac_status = 0; }; then :
3633 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3634 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3635 # work properly (i.e., refer to `conftest.exe'), while it won't with
3636 # `rm'.
3637 for ac_file in conftest.exe conftest conftest.*; do
3638 test -f "$ac_file" || continue
3639 case $ac_file in
3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3641 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 break;;
3643 * ) break;;
3644 esac
3645 done
3646 else
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error "cannot compute suffix of executables: cannot compile and link
3650 See \`config.log' for more details." "$LINENO" 5; }
3652 rm -f conftest$ac_cv_exeext
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3654 $as_echo "$ac_cv_exeext" >&6; }
3656 rm -f conftest.$ac_ext
3657 EXEEXT=$ac_cv_exeext
3658 ac_exeext=$EXEEXT
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if test "${ac_cv_objext+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3668 main ()
3672 return 0;
3674 _ACEOF
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compile") 2>&5
3684 ac_status=$?
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 for ac_file in conftest.o conftest.obj conftest.*; do
3688 test -f "$ac_file" || continue;
3689 case $ac_file in
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3692 break;;
3693 esac
3694 done
3695 else
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details." "$LINENO" 5; }
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3709 ac_objext=$OBJEXT
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3719 main ()
3721 #ifndef __GNUC__
3722 choke me
3723 #endif
3726 return 0;
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_compiler_gnu=yes
3731 else
3732 ac_compiler_gnu=no
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3741 GCC=yes
3742 else
3743 GCC=
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if test "${ac_cv_prog_cc_g+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3754 ac_cv_prog_cc_g=no
3755 CFLAGS="-g"
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3760 main ()
3764 return 0;
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_prog_cc_g=yes
3769 else
3770 CFLAGS=""
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3775 main ()
3779 return 0;
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3784 else
3785 ac_c_werror_flag=$ac_save_c_werror_flag
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3791 main ()
3795 return 0;
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3814 CFLAGS="-g -O2"
3815 else
3816 CFLAGS="-g"
3818 else
3819 if test "$GCC" = yes; then
3820 CFLAGS="-O2"
3821 else
3822 CFLAGS=
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 ac_cv_prog_cc_c89=no
3831 ac_save_CC=$CC
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #include <stdarg.h>
3835 #include <stdio.h>
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3842 char **p;
3843 int i;
3845 return p[i];
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3849 char *s;
3850 va_list v;
3851 va_start (v,p);
3852 s = g (p, va_arg (v,int));
3853 va_end (v);
3854 return s;
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3868 #define FOO(x) 'x'
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3875 int argc;
3876 char **argv;
3878 main ()
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3882 return 0;
3884 _ACEOF
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 CC="$ac_save_CC $ac_arg"
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_c89=$ac_arg
3892 rm -f core conftest.err conftest.$ac_objext
3893 test "x$ac_cv_prog_cc_c89" != "xno" && break
3894 done
3895 rm -f conftest.$ac_ext
3896 CC=$ac_save_CC
3899 # AC_CACHE_VAL
3900 case "x$ac_cv_prog_cc_c89" in
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 $as_echo "none needed" >&6; } ;;
3904 xno)
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 $as_echo "unsupported" >&6; } ;;
3908 CC="$CC $ac_cv_prog_cc_c89"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3911 esac
3912 if test "x$ac_cv_prog_cc_c89" != xno; then :
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 DEPDIR="${am__leading_dot}deps"
3923 ac_config_commands="$ac_config_commands depfiles"
3926 am_make=${MAKE-make}
3927 cat > confinc << 'END'
3928 am__doit:
3929 @echo this is the am__doit target
3930 .PHONY: am__doit
3932 # If we don't find an include directive, just comment out the code.
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3934 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3935 am__include="#"
3936 am__quote=
3937 _am_result=none
3938 # First try GNU make style include.
3939 echo "include confinc" > confmf
3940 # Ignore all kinds of additional output from `make'.
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=GNU
3947 esac
3948 # Now try BSD make style include.
3949 if test "$am__include" = "#"; then
3950 echo '.include "confinc"' > confmf
3951 case `$am_make -s -f confmf 2> /dev/null` in #(
3952 *the\ am__doit\ target*)
3953 am__include=.include
3954 am__quote="\""
3955 _am_result=BSD
3957 esac
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3962 $as_echo "$_am_result" >&6; }
3963 rm -f confinc confmf
3965 # Check whether --enable-dependency-tracking was given.
3966 if test "${enable_dependency_tracking+set}" = set; then :
3967 enableval=$enable_dependency_tracking;
3970 if test "x$enable_dependency_tracking" != xno; then
3971 am_depcomp="$ac_aux_dir/depcomp"
3972 AMDEPBACKSLASH='\'
3974 if test "x$enable_dependency_tracking" != xno; then
3975 AMDEP_TRUE=
3976 AMDEP_FALSE='#'
3977 else
3978 AMDEP_TRUE='#'
3979 AMDEP_FALSE=
3984 depcc="$CC" am_compiler_list=
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3987 $as_echo_n "checking dependency style of $depcc... " >&6; }
3988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3992 # We make a subdir and do the tests there. Otherwise we can end up
3993 # making bogus files that we don't know about and never remove. For
3994 # instance it was reported that on HP-UX the gcc test will end up
3995 # making a dummy file named `D' -- because `-MD' means `put the output
3996 # in D'.
3997 mkdir conftest.dir
3998 # Copy depcomp to subdir because otherwise we won't find it if we're
3999 # using a relative directory.
4000 cp "$am_depcomp" conftest.dir
4001 cd conftest.dir
4002 # We will build objects and dependencies in a subdirectory because
4003 # it helps to detect inapplicable dependency modes. For instance
4004 # both Tru64's cc and ICC support -MD to output dependencies as a
4005 # side effect of compilation, but ICC will put the dependencies in
4006 # the current directory while Tru64 will put them in the object
4007 # directory.
4008 mkdir sub
4010 am_cv_CC_dependencies_compiler_type=none
4011 if test "$am_compiler_list" = ""; then
4012 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4014 am__universal=false
4015 case " $depcc " in #(
4016 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4017 esac
4019 for depmode in $am_compiler_list; do
4020 # Setup a source with many dependencies, because some compilers
4021 # like to wrap large dependency lists on column 80 (with \), and
4022 # we should not choose a depcomp mode which is confused by this.
4024 # We need to recreate these files for each test, as the compiler may
4025 # overwrite some of them when testing with obscure command lines.
4026 # This happens at least with the AIX C compiler.
4027 : > sub/conftest.c
4028 for i in 1 2 3 4 5 6; do
4029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4031 # Solaris 8's {/usr,}/bin/sh.
4032 touch sub/conftst$i.h
4033 done
4034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4037 # mode. It turns out that the SunPro C++ compiler does not properly
4038 # handle `-M -o', and we need to detect this. Also, some Intel
4039 # versions had trouble with output in subdirs
4040 am__obj=sub/conftest.${OBJEXT-o}
4041 am__minus_obj="-o $am__obj"
4042 case $depmode in
4043 gcc)
4044 # This depmode causes a compiler race in universal mode.
4045 test "$am__universal" = false || continue
4047 nosideeffect)
4048 # after this tag, mechanisms are not by side-effect, so they'll
4049 # only be used when explicitly requested
4050 if test "x$enable_dependency_tracking" = xyes; then
4051 continue
4052 else
4053 break
4056 msvisualcpp | msvcmsys)
4057 # This compiler won't grok `-c -o', but also, the minuso test has
4058 # not run yet. These depmodes are late enough in the game, and
4059 # so weak that their functioning should not be impacted.
4060 am__obj=conftest.${OBJEXT-o}
4061 am__minus_obj=
4063 none) break ;;
4064 esac
4065 if depmode=$depmode \
4066 source=sub/conftest.c object=$am__obj \
4067 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4068 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4069 >/dev/null 2>conftest.err &&
4070 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4072 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4074 # icc doesn't choke on unknown options, it will just issue warnings
4075 # or remarks (even with -Werror). So we grep stderr for any message
4076 # that says an option was ignored or not supported.
4077 # When given -MP, icc 7.0 and 7.1 complain thusly:
4078 # icc: Command line warning: ignoring option '-M'; no argument required
4079 # The diagnosis changed in icc 8.0:
4080 # icc: Command line remark: option '-MP' not supported
4081 if (grep 'ignoring option' conftest.err ||
4082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4083 am_cv_CC_dependencies_compiler_type=$depmode
4084 break
4087 done
4089 cd ..
4090 rm -rf conftest.dir
4091 else
4092 am_cv_CC_dependencies_compiler_type=none
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4097 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4098 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4101 test "x$enable_dependency_tracking" != xno \
4102 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4103 am__fastdepCC_TRUE=
4104 am__fastdepCC_FALSE='#'
4105 else
4106 am__fastdepCC_TRUE='#'
4107 am__fastdepCC_FALSE=
4111 ac_ext=go
4112 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4113 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compile_gnu=yes
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if test "${ac_cv_prog_GOC+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -n "$GOC"; then
4124 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4137 done
4138 done
4139 IFS=$as_save_IFS
4143 GOC=$ac_cv_prog_GOC
4144 if test -n "$GOC"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4146 $as_echo "$GOC" >&6; }
4147 else
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4154 if test -z "$ac_cv_prog_GOC"; then
4155 ac_ct_GOC=$GOC
4156 # Extract the first word of "gccgo", so it can be a program name with args.
4157 set dummy gccgo; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$ac_ct_GOC"; then
4164 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_ac_ct_GOC="gccgo"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4179 IFS=$as_save_IFS
4183 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4184 if test -n "$ac_ct_GOC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4186 $as_echo "$ac_ct_GOC" >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4192 if test "x$ac_ct_GOC" = x; then
4193 GOC=""
4194 else
4195 case $cross_compiling:$ac_tool_warned in
4196 yes:)
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4199 ac_tool_warned=yes ;;
4200 esac
4201 GOC=$ac_ct_GOC
4203 else
4204 GOC="$ac_cv_prog_GOC"
4207 if test -z "$GOC"; then
4208 if test -n "$ac_tool_prefix"; then
4209 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4210 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if test "${ac_cv_prog_GOC+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$GOC"; then
4217 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4236 GOC=$ac_cv_prog_GOC
4237 if test -n "$GOC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4239 $as_echo "$GOC" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4248 if test -z "$GOC"; then
4249 # Extract the first word of "gccgo", so it can be a program name with args.
4250 set dummy gccgo; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if test "${ac_cv_prog_GOC+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -n "$GOC"; then
4257 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4258 else
4259 ac_prog_rejected=no
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4268 ac_prog_rejected=yes
4269 continue
4271 ac_cv_prog_GOC="gccgo"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4275 done
4276 done
4277 IFS=$as_save_IFS
4279 if test $ac_prog_rejected = yes; then
4280 # We found a bogon in the path, so make sure we never use it.
4281 set dummy $ac_cv_prog_GOC
4282 shift
4283 if test $# != 0; then
4284 # We chose a different compiler from the bogus one.
4285 # However, it has the same basename, so the bogon will be chosen
4286 # first if we set GOC to just the basename; use the full file name.
4287 shift
4288 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4293 GOC=$ac_cv_prog_GOC
4294 if test -n "$GOC"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4296 $as_echo "$GOC" >&6; }
4297 else
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4306 # Provide some information about the compiler.
4307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4308 set X $ac_compile
4309 ac_compiler=$2
4310 { { ac_try="$ac_compiler --version >&5"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_compiler --version >&5") 2>conftest.err
4318 ac_status=$?
4319 if test -s conftest.err; then
4320 sed '10a\
4321 ... rest of stderr output deleted ...
4322 10q' conftest.err >conftest.er1
4323 cat conftest.er1 >&5
4324 rm -f conftest.er1 conftest.err
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }
4328 GOCFLAGS="-g -O2"
4329 ac_ext=c
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4341 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4342 # Check whether --enable-maintainer-mode was given.
4343 if test "${enable_maintainer_mode+set}" = set; then :
4344 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4345 else
4346 USE_MAINTAINER_MODE=no
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4350 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4351 if test $USE_MAINTAINER_MODE = yes; then
4352 MAINTAINER_MODE_TRUE=
4353 MAINTAINER_MODE_FALSE='#'
4354 else
4355 MAINTAINER_MODE_TRUE='#'
4356 MAINTAINER_MODE_FALSE=
4359 MAINT=$MAINTAINER_MODE_TRUE
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4364 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4365 if test "${ac_cv_path_SED+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4369 for ac_i in 1 2 3 4 5 6 7; do
4370 ac_script="$ac_script$as_nl$ac_script"
4371 done
4372 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4373 { ac_script=; unset ac_script;}
4374 if test -z "$SED"; then
4375 ac_path_SED_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in sed gsed; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4386 # Check for GNU ac_path_SED and select it if it is found.
4387 # Check for GNU $ac_path_SED
4388 case `"$ac_path_SED" --version 2>&1` in
4389 *GNU*)
4390 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4392 ac_count=0
4393 $as_echo_n 0123456789 >"conftest.in"
4394 while :
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 $as_echo '' >> "conftest.nl"
4400 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 as_fn_arith $ac_count + 1 && ac_count=$as_val
4403 if test $ac_count -gt ${ac_path_SED_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_SED="$ac_path_SED"
4406 ac_path_SED_max=$ac_count
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4410 done
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 esac
4414 $ac_path_SED_found && break 3
4415 done
4416 done
4417 done
4418 IFS=$as_save_IFS
4419 if test -z "$ac_cv_path_SED"; then
4420 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4422 else
4423 ac_cv_path_SED=$SED
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4428 $as_echo "$ac_cv_path_SED" >&6; }
4429 SED="$ac_cv_path_SED"
4430 rm -f conftest.sed
4432 test -z "$SED" && SED=sed
4433 Xsed="$SED -e 1s/^X//"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4446 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4447 if test "${ac_cv_path_GREP+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -z "$GREP"; then
4451 ac_path_GREP_found=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_prog in grep ggrep; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4461 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4462 # Check for GNU ac_path_GREP and select it if it is found.
4463 # Check for GNU $ac_path_GREP
4464 case `"$ac_path_GREP" --version 2>&1` in
4465 *GNU*)
4466 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4468 ac_count=0
4469 $as_echo_n 0123456789 >"conftest.in"
4470 while :
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo 'GREP' >> "conftest.nl"
4476 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478 as_fn_arith $ac_count + 1 && ac_count=$as_val
4479 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_GREP="$ac_path_GREP"
4482 ac_path_GREP_max=$ac_count
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4486 done
4487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4488 esac
4490 $ac_path_GREP_found && break 3
4491 done
4492 done
4493 done
4494 IFS=$as_save_IFS
4495 if test -z "$ac_cv_path_GREP"; then
4496 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4498 else
4499 ac_cv_path_GREP=$GREP
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4504 $as_echo "$ac_cv_path_GREP" >&6; }
4505 GREP="$ac_cv_path_GREP"
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4509 $as_echo_n "checking for egrep... " >&6; }
4510 if test "${ac_cv_path_EGREP+set}" = set; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4514 then ac_cv_path_EGREP="$GREP -E"
4515 else
4516 if test -z "$EGREP"; then
4517 ac_path_EGREP_found=false
4518 # Loop through the user's path and test for each of PROGNAME-LIST
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_prog in egrep; do
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4527 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4528 # Check for GNU ac_path_EGREP and select it if it is found.
4529 # Check for GNU $ac_path_EGREP
4530 case `"$ac_path_EGREP" --version 2>&1` in
4531 *GNU*)
4532 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4534 ac_count=0
4535 $as_echo_n 0123456789 >"conftest.in"
4536 while :
4538 cat "conftest.in" "conftest.in" >"conftest.tmp"
4539 mv "conftest.tmp" "conftest.in"
4540 cp "conftest.in" "conftest.nl"
4541 $as_echo 'EGREP' >> "conftest.nl"
4542 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4544 as_fn_arith $ac_count + 1 && ac_count=$as_val
4545 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4546 # Best one so far, save it but keep looking for a better one
4547 ac_cv_path_EGREP="$ac_path_EGREP"
4548 ac_path_EGREP_max=$ac_count
4550 # 10*(2^10) chars as input seems more than enough
4551 test $ac_count -gt 10 && break
4552 done
4553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4554 esac
4556 $ac_path_EGREP_found && break 3
4557 done
4558 done
4559 done
4560 IFS=$as_save_IFS
4561 if test -z "$ac_cv_path_EGREP"; then
4562 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4564 else
4565 ac_cv_path_EGREP=$EGREP
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4571 $as_echo "$ac_cv_path_EGREP" >&6; }
4572 EGREP="$ac_cv_path_EGREP"
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4576 $as_echo_n "checking for fgrep... " >&6; }
4577 if test "${ac_cv_path_FGREP+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4581 then ac_cv_path_FGREP="$GREP -F"
4582 else
4583 if test -z "$FGREP"; then
4584 ac_path_FGREP_found=false
4585 # Loop through the user's path and test for each of PROGNAME-LIST
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_prog in fgrep; do
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4594 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4595 # Check for GNU ac_path_FGREP and select it if it is found.
4596 # Check for GNU $ac_path_FGREP
4597 case `"$ac_path_FGREP" --version 2>&1` in
4598 *GNU*)
4599 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4601 ac_count=0
4602 $as_echo_n 0123456789 >"conftest.in"
4603 while :
4605 cat "conftest.in" "conftest.in" >"conftest.tmp"
4606 mv "conftest.tmp" "conftest.in"
4607 cp "conftest.in" "conftest.nl"
4608 $as_echo 'FGREP' >> "conftest.nl"
4609 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611 as_fn_arith $ac_count + 1 && ac_count=$as_val
4612 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4613 # Best one so far, save it but keep looking for a better one
4614 ac_cv_path_FGREP="$ac_path_FGREP"
4615 ac_path_FGREP_max=$ac_count
4617 # 10*(2^10) chars as input seems more than enough
4618 test $ac_count -gt 10 && break
4619 done
4620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 esac
4623 $ac_path_FGREP_found && break 3
4624 done
4625 done
4626 done
4627 IFS=$as_save_IFS
4628 if test -z "$ac_cv_path_FGREP"; then
4629 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4631 else
4632 ac_cv_path_FGREP=$FGREP
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4638 $as_echo "$ac_cv_path_FGREP" >&6; }
4639 FGREP="$ac_cv_path_FGREP"
4642 test -z "$GREP" && GREP=grep
4660 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4665 $as_echo_n "checking how to print strings... " >&6; }
4666 # Test print first, because it will be a builtin if present.
4667 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4668 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4669 ECHO='print -r --'
4670 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4671 ECHO='printf %s\n'
4672 else
4673 # Use this function as a fallback that always works.
4674 func_fallback_echo ()
4676 eval 'cat <<_LTECHO_EOF
4678 _LTECHO_EOF'
4680 ECHO='func_fallback_echo'
4683 # func_echo_all arg...
4684 # Invoke $ECHO with all args, space-separated.
4685 func_echo_all ()
4687 $ECHO ""
4690 case "$ECHO" in
4691 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4692 $as_echo "printf" >&6; } ;;
4693 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4694 $as_echo "print -r" >&6; } ;;
4695 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4696 $as_echo "cat" >&6; } ;;
4697 esac
4714 # Check whether --with-gnu-ld was given.
4715 if test "${with_gnu_ld+set}" = set; then :
4716 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4717 else
4718 with_gnu_ld=no
4721 ac_prog=ld
4722 if test "$GCC" = yes; then
4723 # Check if gcc -print-prog-name=ld gives a path.
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4725 $as_echo_n "checking for ld used by $CC... " >&6; }
4726 case $host in
4727 *-*-mingw*)
4728 # gcc leaves a trailing carriage return which upsets mingw
4729 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4731 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4732 esac
4733 case $ac_prog in
4734 # Accept absolute paths.
4735 [\\/]* | ?:[\\/]*)
4736 re_direlt='/[^/][^/]*/\.\./'
4737 # Canonicalize the pathname of ld
4738 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4739 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4740 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4741 done
4742 test -z "$LD" && LD="$ac_prog"
4745 # If it fails, then pretend we aren't using GCC.
4746 ac_prog=ld
4749 # If it is relative, then search for the first ld in PATH.
4750 with_gnu_ld=unknown
4752 esac
4753 elif test "$with_gnu_ld" = yes; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4755 $as_echo_n "checking for GNU ld... " >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4758 $as_echo_n "checking for non-GNU ld... " >&6; }
4760 if test "${lt_cv_path_LD+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -z "$LD"; then
4764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4765 for ac_dir in $PATH; do
4766 IFS="$lt_save_ifs"
4767 test -z "$ac_dir" && ac_dir=.
4768 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4769 lt_cv_path_LD="$ac_dir/$ac_prog"
4770 # Check to see if the program is GNU ld. I'd rather use --version,
4771 # but apparently some variants of GNU ld only accept -v.
4772 # Break only if it was the GNU/non-GNU ld that we prefer.
4773 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4774 *GNU* | *'with BFD'*)
4775 test "$with_gnu_ld" != no && break
4778 test "$with_gnu_ld" != yes && break
4780 esac
4782 done
4783 IFS="$lt_save_ifs"
4784 else
4785 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4789 LD="$lt_cv_path_LD"
4790 if test -n "$LD"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4792 $as_echo "$LD" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4797 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4799 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4800 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4804 case `$LD -v 2>&1 </dev/null` in
4805 *GNU* | *'with BFD'*)
4806 lt_cv_prog_gnu_ld=yes
4809 lt_cv_prog_gnu_ld=no
4811 esac
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4814 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4815 with_gnu_ld=$lt_cv_prog_gnu_ld
4825 if test -n "$ac_tool_prefix"; then
4826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$RANLIB"; then
4834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 RANLIB=$ac_cv_prog_RANLIB
4854 if test -n "$RANLIB"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4856 $as_echo "$RANLIB" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4864 if test -z "$ac_cv_prog_RANLIB"; then
4865 ac_ct_RANLIB=$RANLIB
4866 # Extract the first word of "ranlib", so it can be a program name with args.
4867 set dummy ranlib; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$ac_ct_RANLIB"; then
4874 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_ac_ct_RANLIB="ranlib"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4894 if test -n "$ac_ct_RANLIB"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4896 $as_echo "$ac_ct_RANLIB" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4902 if test "x$ac_ct_RANLIB" = x; then
4903 RANLIB=":"
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911 RANLIB=$ac_ct_RANLIB
4913 else
4914 RANLIB="$ac_cv_prog_RANLIB"
4917 if test -n "$ac_tool_prefix"; then
4918 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4919 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$OBJCOPY"; then
4926 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4939 done
4940 done
4941 IFS=$as_save_IFS
4945 OBJCOPY=$ac_cv_prog_OBJCOPY
4946 if test -n "$OBJCOPY"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4948 $as_echo "$OBJCOPY" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4956 if test -z "$ac_cv_prog_OBJCOPY"; then
4957 ac_ct_OBJCOPY=$OBJCOPY
4958 # Extract the first word of "objcopy", so it can be a program name with args.
4959 set dummy objcopy; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$ac_ct_OBJCOPY"; then
4966 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4979 done
4980 done
4981 IFS=$as_save_IFS
4985 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4986 if test -n "$ac_ct_OBJCOPY"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4988 $as_echo "$ac_ct_OBJCOPY" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4994 if test "x$ac_ct_OBJCOPY" = x; then
4995 OBJCOPY="missing-objcopy"
4996 else
4997 case $cross_compiling:$ac_tool_warned in
4998 yes:)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003 OBJCOPY=$ac_ct_OBJCOPY
5005 else
5006 OBJCOPY="$ac_cv_prog_OBJCOPY"
5010 enable_dlopen=yes
5014 case `pwd` in
5015 *\ * | *\ *)
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5017 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5018 esac
5022 macro_version='2.2.7a'
5023 macro_revision='1.3134'
5037 ltmain="$ac_aux_dir/ltmain.sh"
5039 # Backslashify metacharacters that are still active within
5040 # double-quoted strings.
5041 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5043 # Same as above, but do not quote variable references.
5044 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5046 # Sed substitution to delay expansion of an escaped shell variable in a
5047 # double_quote_subst'ed string.
5048 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5050 # Sed substitution to delay expansion of an escaped single quote.
5051 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5053 # Sed substitution to avoid accidental globbing in evaled expressions
5054 no_glob_subst='s/\*/\\\*/g'
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5057 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5058 if test "${lt_cv_path_NM+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$NM"; then
5062 # Let the user override the test.
5063 lt_cv_path_NM="$NM"
5064 else
5065 lt_nm_to_check="${ac_tool_prefix}nm"
5066 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5067 lt_nm_to_check="$lt_nm_to_check nm"
5069 for lt_tmp_nm in $lt_nm_to_check; do
5070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5071 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5072 IFS="$lt_save_ifs"
5073 test -z "$ac_dir" && ac_dir=.
5074 tmp_nm="$ac_dir/$lt_tmp_nm"
5075 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5076 # Check to see if the nm accepts a BSD-compat flag.
5077 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5078 # nm: unknown option "B" ignored
5079 # Tru64's nm complains that /dev/null is an invalid object file
5080 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5081 */dev/null* | *'Invalid file or object type'*)
5082 lt_cv_path_NM="$tmp_nm -B"
5083 break
5086 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5087 */dev/null*)
5088 lt_cv_path_NM="$tmp_nm -p"
5089 break
5092 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5093 continue # so that we can try to find one that supports BSD flags
5095 esac
5097 esac
5099 done
5100 IFS="$lt_save_ifs"
5101 done
5102 : ${lt_cv_path_NM=no}
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5106 $as_echo "$lt_cv_path_NM" >&6; }
5107 if test "$lt_cv_path_NM" != "no"; then
5108 NM="$lt_cv_path_NM"
5109 else
5110 # Didn't find any BSD compatible name lister, look for dumpbin.
5111 if test -n "$DUMPBIN"; then :
5112 # Let the user override the test.
5113 else
5114 if test -n "$ac_tool_prefix"; then
5115 for ac_prog in dumpbin "link -dump"
5117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$DUMPBIN"; then
5125 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5138 done
5139 done
5140 IFS=$as_save_IFS
5144 DUMPBIN=$ac_cv_prog_DUMPBIN
5145 if test -n "$DUMPBIN"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5147 $as_echo "$DUMPBIN" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5154 test -n "$DUMPBIN" && break
5155 done
5157 if test -z "$DUMPBIN"; then
5158 ac_ct_DUMPBIN=$DUMPBIN
5159 for ac_prog in dumpbin "link -dump"
5161 # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$ac_ct_DUMPBIN"; then
5169 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5184 IFS=$as_save_IFS
5188 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5189 if test -n "$ac_ct_DUMPBIN"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5191 $as_echo "$ac_ct_DUMPBIN" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5198 test -n "$ac_ct_DUMPBIN" && break
5199 done
5201 if test "x$ac_ct_DUMPBIN" = x; then
5202 DUMPBIN=":"
5203 else
5204 case $cross_compiling:$ac_tool_warned in
5205 yes:)
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208 ac_tool_warned=yes ;;
5209 esac
5210 DUMPBIN=$ac_ct_DUMPBIN
5214 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5215 *COFF*)
5216 DUMPBIN="$DUMPBIN -symbols"
5219 DUMPBIN=:
5221 esac
5224 if test "$DUMPBIN" != ":"; then
5225 NM="$DUMPBIN"
5228 test -z "$NM" && NM=nm
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5236 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5237 if test "${lt_cv_nm_interface+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 lt_cv_nm_interface="BSD nm"
5241 echo "int some_variable = 0;" > conftest.$ac_ext
5242 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5243 (eval "$ac_compile" 2>conftest.err)
5244 cat conftest.err >&5
5245 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5246 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5247 cat conftest.err >&5
5248 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5249 cat conftest.out >&5
5250 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5251 lt_cv_nm_interface="MS dumpbin"
5253 rm -f conftest*
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5256 $as_echo "$lt_cv_nm_interface" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5259 $as_echo_n "checking whether ln -s works... " >&6; }
5260 LN_S=$as_ln_s
5261 if test "$LN_S" = "ln -s"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5263 $as_echo "yes" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5266 $as_echo "no, using $LN_S" >&6; }
5269 # find the maximum length of command line arguments
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5271 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5272 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5276 teststring="ABCD"
5278 case $build_os in
5279 msdosdjgpp*)
5280 # On DJGPP, this test can blow up pretty badly due to problems in libc
5281 # (any single argument exceeding 2000 bytes causes a buffer overrun
5282 # during glob expansion). Even if it were fixed, the result of this
5283 # check would be larger than it should be.
5284 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5287 gnu*)
5288 # Under GNU Hurd, this test is not required because there is
5289 # no limit to the length of command line arguments.
5290 # Libtool will interpret -1 as no limit whatsoever
5291 lt_cv_sys_max_cmd_len=-1;
5294 cygwin* | mingw* | cegcc*)
5295 # On Win9x/ME, this test blows up -- it succeeds, but takes
5296 # about 5 minutes as the teststring grows exponentially.
5297 # Worse, since 9x/ME are not pre-emptively multitasking,
5298 # you end up with a "frozen" computer, even though with patience
5299 # the test eventually succeeds (with a max line length of 256k).
5300 # Instead, let's just punt: use the minimum linelength reported by
5301 # all of the supported platforms: 8192 (on NT/2K/XP).
5302 lt_cv_sys_max_cmd_len=8192;
5305 mint*)
5306 # On MiNT this can take a long time and run out of memory.
5307 lt_cv_sys_max_cmd_len=8192;
5310 amigaos*)
5311 # On AmigaOS with pdksh, this test takes hours, literally.
5312 # So we just punt and use a minimum line length of 8192.
5313 lt_cv_sys_max_cmd_len=8192;
5316 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5317 # This has been around since 386BSD, at least. Likely further.
5318 if test -x /sbin/sysctl; then
5319 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5320 elif test -x /usr/sbin/sysctl; then
5321 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5322 else
5323 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5325 # And add a safety zone
5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5330 interix*)
5331 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5332 lt_cv_sys_max_cmd_len=196608
5335 osf*)
5336 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5337 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5338 # nice to cause kernel panics so lets avoid the loop below.
5339 # First set a reasonable default.
5340 lt_cv_sys_max_cmd_len=16384
5342 if test -x /sbin/sysconfig; then
5343 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5344 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5345 esac
5348 sco3.2v5*)
5349 lt_cv_sys_max_cmd_len=102400
5351 sysv5* | sco5v6* | sysv4.2uw2*)
5352 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5353 if test -n "$kargmax"; then
5354 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5355 else
5356 lt_cv_sys_max_cmd_len=32768
5360 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5361 if test -n "$lt_cv_sys_max_cmd_len"; then
5362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5364 else
5365 # Make teststring a little bigger before we do anything with it.
5366 # a 1K string should be a reasonable start.
5367 for i in 1 2 3 4 5 6 7 8 ; do
5368 teststring=$teststring$teststring
5369 done
5370 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5371 # If test is not a shell built-in, we'll probably end up computing a
5372 # maximum length that is only half of the actual maximum length, but
5373 # we can't tell.
5374 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5375 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5376 test $i != 17 # 1/2 MB should be enough
5378 i=`expr $i + 1`
5379 teststring=$teststring$teststring
5380 done
5381 # Only check the string length outside the loop.
5382 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5383 teststring=
5384 # Add a significant safety factor because C++ compilers can tack on
5385 # massive amounts of additional arguments before passing them to the
5386 # linker. It appears as though 1/2 is a usable value.
5387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5390 esac
5394 if test -n $lt_cv_sys_max_cmd_len ; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5396 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5399 $as_echo "none" >&6; }
5401 max_cmd_len=$lt_cv_sys_max_cmd_len
5408 : ${CP="cp -f"}
5409 : ${MV="mv -f"}
5410 : ${RM="rm -f"}
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5413 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5414 # Try some XSI features
5415 xsi_shell=no
5416 ( _lt_dummy="a/b/c"
5417 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5418 = c,a/b,, \
5419 && eval 'test $(( 1 + 1 )) -eq 2 \
5420 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5421 && xsi_shell=yes
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5423 $as_echo "$xsi_shell" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5427 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5428 lt_shell_append=no
5429 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5430 >/dev/null 2>&1 \
5431 && lt_shell_append=yes
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5433 $as_echo "$lt_shell_append" >&6; }
5436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5437 lt_unset=unset
5438 else
5439 lt_unset=false
5446 # test EBCDIC or ASCII
5447 case `echo X|tr X '\101'` in
5448 A) # ASCII based system
5449 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5450 lt_SP2NL='tr \040 \012'
5451 lt_NL2SP='tr \015\012 \040\040'
5453 *) # EBCDIC based system
5454 lt_SP2NL='tr \100 \n'
5455 lt_NL2SP='tr \r\n \100\100'
5457 esac
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5468 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5469 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 lt_cv_ld_reload_flag='-r'
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5475 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5476 reload_flag=$lt_cv_ld_reload_flag
5477 case $reload_flag in
5478 "" | " "*) ;;
5479 *) reload_flag=" $reload_flag" ;;
5480 esac
5481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5482 case $host_os in
5483 darwin*)
5484 if test "$GCC" = yes; then
5485 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5486 else
5487 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5490 esac
5500 if test -n "$ac_tool_prefix"; then
5501 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5502 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -n "$OBJDUMP"; then
5509 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5522 done
5523 done
5524 IFS=$as_save_IFS
5528 OBJDUMP=$ac_cv_prog_OBJDUMP
5529 if test -n "$OBJDUMP"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5531 $as_echo "$OBJDUMP" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5539 if test -z "$ac_cv_prog_OBJDUMP"; then
5540 ac_ct_OBJDUMP=$OBJDUMP
5541 # Extract the first word of "objdump", so it can be a program name with args.
5542 set dummy objdump; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -n "$ac_ct_OBJDUMP"; then
5549 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5562 done
5563 done
5564 IFS=$as_save_IFS
5568 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5569 if test -n "$ac_ct_OBJDUMP"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5571 $as_echo "$ac_ct_OBJDUMP" >&6; }
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5577 if test "x$ac_ct_OBJDUMP" = x; then
5578 OBJDUMP="false"
5579 else
5580 case $cross_compiling:$ac_tool_warned in
5581 yes:)
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586 OBJDUMP=$ac_ct_OBJDUMP
5588 else
5589 OBJDUMP="$ac_cv_prog_OBJDUMP"
5592 test -z "$OBJDUMP" && OBJDUMP=objdump
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5603 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5604 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 lt_cv_file_magic_cmd='$MAGIC_CMD'
5608 lt_cv_file_magic_test_file=
5609 lt_cv_deplibs_check_method='unknown'
5610 # Need to set the preceding variable on all platforms that support
5611 # interlibrary dependencies.
5612 # 'none' -- dependencies not supported.
5613 # `unknown' -- same as none, but documents that we really don't know.
5614 # 'pass_all' -- all dependencies passed with no checks.
5615 # 'test_compile' -- check by making test program.
5616 # 'file_magic [[regex]]' -- check by looking for files in library path
5617 # which responds to the $file_magic_cmd with a given extended regex.
5618 # If you have `file' or equivalent on your system and you're not sure
5619 # whether `pass_all' will *always* work, you probably want this one.
5621 case $host_os in
5622 aix[4-9]*)
5623 lt_cv_deplibs_check_method=pass_all
5626 beos*)
5627 lt_cv_deplibs_check_method=pass_all
5630 bsdi[45]*)
5631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5632 lt_cv_file_magic_cmd='/usr/bin/file -L'
5633 lt_cv_file_magic_test_file=/shlib/libc.so
5636 cygwin*)
5637 # func_win32_libid is a shell function defined in ltmain.sh
5638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5639 lt_cv_file_magic_cmd='func_win32_libid'
5642 mingw* | pw32*)
5643 # Base MSYS/MinGW do not provide the 'file' command needed by
5644 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5645 # unless we find 'file', for example because we are cross-compiling.
5646 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5647 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5649 lt_cv_file_magic_cmd='func_win32_libid'
5650 else
5651 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5652 lt_cv_file_magic_cmd='$OBJDUMP -f'
5656 cegcc*)
5657 # use the weaker test based on 'objdump'. See mingw*.
5658 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5659 lt_cv_file_magic_cmd='$OBJDUMP -f'
5662 darwin* | rhapsody*)
5663 lt_cv_deplibs_check_method=pass_all
5666 freebsd* | dragonfly*)
5667 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5668 case $host_cpu in
5669 i*86 )
5670 # Not sure whether the presence of OpenBSD here was a mistake.
5671 # Let's accept both of them until this is cleared up.
5672 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5673 lt_cv_file_magic_cmd=/usr/bin/file
5674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5676 esac
5677 else
5678 lt_cv_deplibs_check_method=pass_all
5682 gnu*)
5683 lt_cv_deplibs_check_method=pass_all
5686 haiku*)
5687 lt_cv_deplibs_check_method=pass_all
5690 hpux10.20* | hpux11*)
5691 lt_cv_file_magic_cmd=/usr/bin/file
5692 case $host_cpu in
5693 ia64*)
5694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5695 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5697 hppa*64*)
5698 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]'
5699 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5703 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5705 esac
5708 interix[3-9]*)
5709 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5713 irix5* | irix6* | nonstopux*)
5714 case $LD in
5715 *-32|*"-32 ") libmagic=32-bit;;
5716 *-n32|*"-n32 ") libmagic=N32;;
5717 *-64|*"-64 ") libmagic=64-bit;;
5718 *) libmagic=never-match;;
5719 esac
5720 lt_cv_deplibs_check_method=pass_all
5723 # This must be Linux ELF.
5724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5725 lt_cv_deplibs_check_method=pass_all
5728 netbsd*)
5729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5731 else
5732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5736 newos6*)
5737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5738 lt_cv_file_magic_cmd=/usr/bin/file
5739 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5742 *nto* | *qnx*)
5743 lt_cv_deplibs_check_method=pass_all
5746 openbsd*)
5747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5749 else
5750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 osf3* | osf4* | osf5*)
5755 lt_cv_deplibs_check_method=pass_all
5758 rdos*)
5759 lt_cv_deplibs_check_method=pass_all
5762 solaris*)
5763 lt_cv_deplibs_check_method=pass_all
5766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5767 lt_cv_deplibs_check_method=pass_all
5770 sysv4 | sysv4.3*)
5771 case $host_vendor in
5772 motorola)
5773 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]'
5774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5776 ncr)
5777 lt_cv_deplibs_check_method=pass_all
5779 sequent)
5780 lt_cv_file_magic_cmd='/bin/file'
5781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5783 sni)
5784 lt_cv_file_magic_cmd='/bin/file'
5785 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5786 lt_cv_file_magic_test_file=/lib/libc.so
5788 siemens)
5789 lt_cv_deplibs_check_method=pass_all
5792 lt_cv_deplibs_check_method=pass_all
5794 esac
5797 tpf*)
5798 lt_cv_deplibs_check_method=pass_all
5800 esac
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5804 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5805 file_magic_cmd=$lt_cv_file_magic_cmd
5806 deplibs_check_method=$lt_cv_deplibs_check_method
5807 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5820 if test -n "$ac_tool_prefix"; then
5821 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5822 set dummy ${ac_tool_prefix}ar; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if test "${ac_cv_prog_AR+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if test -n "$AR"; then
5829 ac_cv_prog_AR="$AR" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838 ac_cv_prog_AR="${ac_tool_prefix}ar"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5842 done
5843 done
5844 IFS=$as_save_IFS
5848 AR=$ac_cv_prog_AR
5849 if test -n "$AR"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5851 $as_echo "$AR" >&6; }
5852 else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5859 if test -z "$ac_cv_prog_AR"; then
5860 ac_ct_AR=$AR
5861 # Extract the first word of "ar", so it can be a program name with args.
5862 set dummy ar; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test -n "$ac_ct_AR"; then
5869 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_prog_ac_ct_AR="ar"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5882 done
5883 done
5884 IFS=$as_save_IFS
5888 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5889 if test -n "$ac_ct_AR"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5891 $as_echo "$ac_ct_AR" >&6; }
5892 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5897 if test "x$ac_ct_AR" = x; then
5898 AR="false"
5899 else
5900 case $cross_compiling:$ac_tool_warned in
5901 yes:)
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904 ac_tool_warned=yes ;;
5905 esac
5906 AR=$ac_ct_AR
5908 else
5909 AR="$ac_cv_prog_AR"
5912 test -z "$AR" && AR=ar
5913 test -z "$AR_FLAGS" && AR_FLAGS=cru
5925 if test -n "$ac_tool_prefix"; then
5926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}strip; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if test "${ac_cv_prog_STRIP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -n "$STRIP"; then
5934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5947 done
5948 done
5949 IFS=$as_save_IFS
5953 STRIP=$ac_cv_prog_STRIP
5954 if test -n "$STRIP"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5956 $as_echo "$STRIP" >&6; }
5957 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5964 if test -z "$ac_cv_prog_STRIP"; then
5965 ac_ct_STRIP=$STRIP
5966 # Extract the first word of "strip", so it can be a program name with args.
5967 set dummy strip; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 if test -n "$ac_ct_STRIP"; then
5974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_prog_ac_ct_STRIP="strip"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5987 done
5988 done
5989 IFS=$as_save_IFS
5993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5994 if test -n "$ac_ct_STRIP"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5996 $as_echo "$ac_ct_STRIP" >&6; }
5997 else
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6002 if test "x$ac_ct_STRIP" = x; then
6003 STRIP=":"
6004 else
6005 case $cross_compiling:$ac_tool_warned in
6006 yes:)
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6010 esac
6011 STRIP=$ac_ct_STRIP
6013 else
6014 STRIP="$ac_cv_prog_STRIP"
6017 test -z "$STRIP" && STRIP=:
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$RANLIB"; then
6033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6046 done
6047 done
6048 IFS=$as_save_IFS
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6055 $as_echo "$RANLIB" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_RANLIB"; then
6064 ac_ct_RANLIB=$RANLIB
6065 # Extract the first word of "ranlib", so it can be a program name with args.
6066 set dummy ranlib; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_RANLIB"; then
6073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_RANLIB="ranlib"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6088 IFS=$as_save_IFS
6092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6093 if test -n "$ac_ct_RANLIB"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6095 $as_echo "$ac_ct_RANLIB" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_RANLIB" = x; then
6102 RANLIB=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 RANLIB=$ac_ct_RANLIB
6112 else
6113 RANLIB="$ac_cv_prog_RANLIB"
6116 test -z "$RANLIB" && RANLIB=:
6123 # Determine commands to create old-style static archives.
6124 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6125 old_postinstall_cmds='chmod 644 $oldlib'
6126 old_postuninstall_cmds=
6128 if test -n "$RANLIB"; then
6129 case $host_os in
6130 openbsd*)
6131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6134 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6136 esac
6137 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6140 case $host_os in
6141 darwin*)
6142 lock_old_archive_extraction=yes ;;
6144 lock_old_archive_extraction=no ;;
6145 esac
6185 # If no C compiler was specified, use CC.
6186 LTCC=${LTCC-"$CC"}
6188 # If no C compiler flags were specified, use CFLAGS.
6189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6191 # Allow CC to be a program name with arguments.
6192 compiler=$CC
6195 # Check for command to grab the raw symbol name followed by C symbol from nm.
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6197 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6198 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6202 # These are sane defaults that work on at least a few old systems.
6203 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6205 # Character class describing NM global symbol codes.
6206 symcode='[BCDEGRST]'
6208 # Regexp to match symbols that can be accessed directly from C.
6209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6211 # Define system-specific variables.
6212 case $host_os in
6213 aix*)
6214 symcode='[BCDT]'
6216 cygwin* | mingw* | pw32* | cegcc*)
6217 symcode='[ABCDGISTW]'
6219 hpux*)
6220 if test "$host_cpu" = ia64; then
6221 symcode='[ABCDEGRST]'
6224 irix* | nonstopux*)
6225 symcode='[BCDEGRST]'
6227 osf*)
6228 symcode='[BCDEGQRST]'
6230 solaris*)
6231 symcode='[BDRT]'
6233 sco3.2v5*)
6234 symcode='[DT]'
6236 sysv4.2uw2*)
6237 symcode='[DT]'
6239 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6240 symcode='[ABDT]'
6242 sysv4)
6243 symcode='[DFNSTU]'
6245 esac
6247 # If we're using GNU nm, then use its standard symbol codes.
6248 case `$NM -V 2>&1` in
6249 *GNU* | *'with BFD'*)
6250 symcode='[ABCDGIRSTW]' ;;
6251 esac
6253 # Transform an extracted symbol line into a proper C declaration.
6254 # Some systems (esp. on ia64) link data and code symbols differently,
6255 # so use this general approach.
6256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6258 # Transform an extracted symbol line into symbol name and symbol address
6259 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6260 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'"
6262 # Handle CRLF in mingw tool chain
6263 opt_cr=
6264 case $build_os in
6265 mingw*)
6266 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6268 esac
6270 # Try without a prefix underscore, then with it.
6271 for ac_symprfx in "" "_"; do
6273 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6274 symxfrm="\\1 $ac_symprfx\\2 \\2"
6276 # Write the raw and C identifiers.
6277 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6278 # Fake it for dumpbin and say T for any non-static function
6279 # and D for any global variable.
6280 # Also find C++ and __fastcall symbols from MSVC++,
6281 # which start with @ or ?.
6282 lt_cv_sys_global_symbol_pipe="$AWK '"\
6283 " {last_section=section; section=\$ 3};"\
6284 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6285 " \$ 0!~/External *\|/{next};"\
6286 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6287 " {if(hide[section]) next};"\
6288 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6289 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6290 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6291 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6292 " ' prfx=^$ac_symprfx"
6293 else
6294 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6297 # Check to see that the pipe works correctly.
6298 pipe_works=no
6300 rm -f conftest*
6301 cat > conftest.$ac_ext <<_LT_EOF
6302 #ifdef __cplusplus
6303 extern "C" {
6304 #endif
6305 char nm_test_var;
6306 void nm_test_func(void);
6307 void nm_test_func(void){}
6308 #ifdef __cplusplus
6310 #endif
6311 int main(){nm_test_var='a';nm_test_func();return(0);}
6312 _LT_EOF
6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6315 (eval $ac_compile) 2>&5
6316 ac_status=$?
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; }; then
6319 # Now try to grab the symbols.
6320 nlist=conftest.nm
6321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6322 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6323 ac_status=$?
6324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325 test $ac_status = 0; } && test -s "$nlist"; then
6326 # Try sorting and uniquifying the output.
6327 if sort "$nlist" | uniq > "$nlist"T; then
6328 mv -f "$nlist"T "$nlist"
6329 else
6330 rm -f "$nlist"T
6333 # Make sure that we snagged all the symbols we need.
6334 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6335 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6336 cat <<_LT_EOF > conftest.$ac_ext
6337 #ifdef __cplusplus
6338 extern "C" {
6339 #endif
6341 _LT_EOF
6342 # Now generate the symbol file.
6343 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6345 cat <<_LT_EOF >> conftest.$ac_ext
6347 /* The mapping between symbol names and symbols. */
6348 const struct {
6349 const char *name;
6350 void *address;
6352 lt__PROGRAM__LTX_preloaded_symbols[] =
6354 { "@PROGRAM@", (void *) 0 },
6355 _LT_EOF
6356 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6357 cat <<\_LT_EOF >> conftest.$ac_ext
6358 {0, (void *) 0}
6361 /* This works around a problem in FreeBSD linker */
6362 #ifdef FREEBSD_WORKAROUND
6363 static const void *lt_preloaded_setup() {
6364 return lt__PROGRAM__LTX_preloaded_symbols;
6366 #endif
6368 #ifdef __cplusplus
6370 #endif
6371 _LT_EOF
6372 # Now try linking the two files.
6373 mv conftest.$ac_objext conftstm.$ac_objext
6374 lt_save_LIBS="$LIBS"
6375 lt_save_CFLAGS="$CFLAGS"
6376 LIBS="conftstm.$ac_objext"
6377 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6379 (eval $ac_link) 2>&5
6380 ac_status=$?
6381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6383 pipe_works=yes
6385 LIBS="$lt_save_LIBS"
6386 CFLAGS="$lt_save_CFLAGS"
6387 else
6388 echo "cannot find nm_test_func in $nlist" >&5
6390 else
6391 echo "cannot find nm_test_var in $nlist" >&5
6393 else
6394 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6396 else
6397 echo "$progname: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6400 rm -rf conftest* conftst*
6402 # Do not use the global_symbol_pipe unless it works.
6403 if test "$pipe_works" = yes; then
6404 break
6405 else
6406 lt_cv_sys_global_symbol_pipe=
6408 done
6412 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6413 lt_cv_sys_global_symbol_to_cdecl=
6415 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6417 $as_echo "failed" >&6; }
6418 else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6420 $as_echo "ok" >&6; }
6445 # Check whether --enable-libtool-lock was given.
6446 if test "${enable_libtool_lock+set}" = set; then :
6447 enableval=$enable_libtool_lock;
6450 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6452 # Some flags need to be propagated to the compiler or linker for good
6453 # libtool support.
6454 case $host in
6455 ia64-*-hpux*)
6456 # Find out which ABI we are using.
6457 echo 'int i;' > conftest.$ac_ext
6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6459 (eval $ac_compile) 2>&5
6460 ac_status=$?
6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462 test $ac_status = 0; }; then
6463 case `/usr/bin/file conftest.$ac_objext` in
6464 *ELF-32*)
6465 HPUX_IA64_MODE="32"
6467 *ELF-64*)
6468 HPUX_IA64_MODE="64"
6470 esac
6472 rm -rf conftest*
6474 *-*-irix6*)
6475 # Find out which ABI we are using.
6476 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6478 (eval $ac_compile) 2>&5
6479 ac_status=$?
6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481 test $ac_status = 0; }; then
6482 if test "$lt_cv_prog_gnu_ld" = yes; then
6483 case `/usr/bin/file conftest.$ac_objext` in
6484 *32-bit*)
6485 LD="${LD-ld} -melf32bsmip"
6487 *N32*)
6488 LD="${LD-ld} -melf32bmipn32"
6490 *64-bit*)
6491 LD="${LD-ld} -melf64bmip"
6493 esac
6494 else
6495 case `/usr/bin/file conftest.$ac_objext` in
6496 *32-bit*)
6497 LD="${LD-ld} -32"
6499 *N32*)
6500 LD="${LD-ld} -n32"
6502 *64-bit*)
6503 LD="${LD-ld} -64"
6505 esac
6508 rm -rf conftest*
6511 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6512 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6513 # Find out which ABI we are using.
6514 echo 'int i;' > conftest.$ac_ext
6515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6516 (eval $ac_compile) 2>&5
6517 ac_status=$?
6518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519 test $ac_status = 0; }; then
6520 case `/usr/bin/file conftest.o` in
6521 *32-bit*)
6522 case $host in
6523 x86_64-*kfreebsd*-gnu)
6524 LD="${LD-ld} -m elf_i386_fbsd"
6526 x86_64-*linux*)
6527 LD="${LD-ld} -m elf_i386"
6529 powerpc64le-*linux*)
6530 LD="${LD-ld} -m elf32lppclinux"
6532 powerpc64-*linux*)
6533 LD="${LD-ld} -m elf32ppclinux"
6535 s390x-*linux*)
6536 LD="${LD-ld} -m elf_s390"
6538 sparc64-*linux*)
6539 LD="${LD-ld} -m elf32_sparc"
6541 esac
6543 *64-bit*)
6544 case $host in
6545 x86_64-*kfreebsd*-gnu)
6546 LD="${LD-ld} -m elf_x86_64_fbsd"
6548 x86_64-*linux*)
6549 LD="${LD-ld} -m elf_x86_64"
6551 powerpcle-*linux*)
6552 LD="${LD-ld} -m elf64lppc"
6554 powerpc-*linux*)
6555 LD="${LD-ld} -m elf64ppc"
6557 s390*-*linux*|s390*-*tpf*)
6558 LD="${LD-ld} -m elf64_s390"
6560 sparc*-*linux*)
6561 LD="${LD-ld} -m elf64_sparc"
6563 esac
6565 esac
6567 rm -rf conftest*
6570 *-*-sco3.2v5*)
6571 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6572 SAVE_CFLAGS="$CFLAGS"
6573 CFLAGS="$CFLAGS -belf"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6575 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6576 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 ac_ext=c
6580 ac_cpp='$CPP $CPPFLAGS'
6581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6589 main ()
6593 return 0;
6595 _ACEOF
6596 if ac_fn_c_try_link "$LINENO"; then :
6597 lt_cv_cc_needs_belf=yes
6598 else
6599 lt_cv_cc_needs_belf=no
6601 rm -f core conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6603 ac_ext=c
6604 ac_cpp='$CPP $CPPFLAGS'
6605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6611 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6612 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6613 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6614 CFLAGS="$SAVE_CFLAGS"
6617 *-*solaris*)
6618 # Find out which ABI we are using.
6619 echo 'int i;' > conftest.$ac_ext
6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621 (eval $ac_compile) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 case `/usr/bin/file conftest.o` in
6626 *64-bit*)
6627 case $lt_cv_prog_gnu_ld in
6628 yes*)
6629 case $host in
6630 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6631 LD="${LD-ld} -m elf_x86_64"
6633 sparc*-*-solaris*)
6634 LD="${LD-ld} -m elf64_sparc"
6636 esac
6637 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6638 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6639 LD="${LD-ld}_sol2"
6643 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6644 LD="${LD-ld} -64"
6647 esac
6649 esac
6651 rm -rf conftest*
6653 esac
6655 need_locks="$enable_libtool_lock"
6658 case $host_os in
6659 rhapsody* | darwin*)
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 if test -n "$DSYMUTIL"; then
6669 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6682 done
6683 done
6684 IFS=$as_save_IFS
6688 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6689 if test -n "$DSYMUTIL"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6691 $as_echo "$DSYMUTIL" >&6; }
6692 else
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6699 if test -z "$ac_cv_prog_DSYMUTIL"; then
6700 ac_ct_DSYMUTIL=$DSYMUTIL
6701 # Extract the first word of "dsymutil", so it can be a program name with args.
6702 set dummy dsymutil; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 if test -n "$ac_ct_DSYMUTIL"; then
6709 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6722 done
6723 done
6724 IFS=$as_save_IFS
6728 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6729 if test -n "$ac_ct_DSYMUTIL"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6731 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6737 if test "x$ac_ct_DSYMUTIL" = x; then
6738 DSYMUTIL=":"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6745 esac
6746 DSYMUTIL=$ac_ct_DSYMUTIL
6748 else
6749 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6752 if test -n "$ac_tool_prefix"; then
6753 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6754 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test -n "$NMEDIT"; then
6761 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6774 done
6775 done
6776 IFS=$as_save_IFS
6780 NMEDIT=$ac_cv_prog_NMEDIT
6781 if test -n "$NMEDIT"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6783 $as_echo "$NMEDIT" >&6; }
6784 else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6791 if test -z "$ac_cv_prog_NMEDIT"; then
6792 ac_ct_NMEDIT=$NMEDIT
6793 # Extract the first word of "nmedit", so it can be a program name with args.
6794 set dummy nmedit; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 if test -n "$ac_ct_NMEDIT"; then
6801 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6814 done
6815 done
6816 IFS=$as_save_IFS
6820 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6821 if test -n "$ac_ct_NMEDIT"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6823 $as_echo "$ac_ct_NMEDIT" >&6; }
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6829 if test "x$ac_ct_NMEDIT" = x; then
6830 NMEDIT=":"
6831 else
6832 case $cross_compiling:$ac_tool_warned in
6833 yes:)
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836 ac_tool_warned=yes ;;
6837 esac
6838 NMEDIT=$ac_ct_NMEDIT
6840 else
6841 NMEDIT="$ac_cv_prog_NMEDIT"
6844 if test -n "$ac_tool_prefix"; then
6845 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6846 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if test "${ac_cv_prog_LIPO+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$LIPO"; then
6853 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6866 done
6867 done
6868 IFS=$as_save_IFS
6872 LIPO=$ac_cv_prog_LIPO
6873 if test -n "$LIPO"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6875 $as_echo "$LIPO" >&6; }
6876 else
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6883 if test -z "$ac_cv_prog_LIPO"; then
6884 ac_ct_LIPO=$LIPO
6885 # Extract the first word of "lipo", so it can be a program name with args.
6886 set dummy lipo; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 if test -n "$ac_ct_LIPO"; then
6893 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_prog_ac_ct_LIPO="lipo"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6906 done
6907 done
6908 IFS=$as_save_IFS
6912 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6913 if test -n "$ac_ct_LIPO"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6915 $as_echo "$ac_ct_LIPO" >&6; }
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6921 if test "x$ac_ct_LIPO" = x; then
6922 LIPO=":"
6923 else
6924 case $cross_compiling:$ac_tool_warned in
6925 yes:)
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928 ac_tool_warned=yes ;;
6929 esac
6930 LIPO=$ac_ct_LIPO
6932 else
6933 LIPO="$ac_cv_prog_LIPO"
6936 if test -n "$ac_tool_prefix"; then
6937 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6938 set dummy ${ac_tool_prefix}otool; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$OTOOL"; then
6945 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6958 done
6959 done
6960 IFS=$as_save_IFS
6964 OTOOL=$ac_cv_prog_OTOOL
6965 if test -n "$OTOOL"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6967 $as_echo "$OTOOL" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6975 if test -z "$ac_cv_prog_OTOOL"; then
6976 ac_ct_OTOOL=$OTOOL
6977 # Extract the first word of "otool", so it can be a program name with args.
6978 set dummy otool; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 if test -n "$ac_ct_OTOOL"; then
6985 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994 ac_cv_prog_ac_ct_OTOOL="otool"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6998 done
6999 done
7000 IFS=$as_save_IFS
7004 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7005 if test -n "$ac_ct_OTOOL"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7007 $as_echo "$ac_ct_OTOOL" >&6; }
7008 else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7013 if test "x$ac_ct_OTOOL" = x; then
7014 OTOOL=":"
7015 else
7016 case $cross_compiling:$ac_tool_warned in
7017 yes:)
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7020 ac_tool_warned=yes ;;
7021 esac
7022 OTOOL=$ac_ct_OTOOL
7024 else
7025 OTOOL="$ac_cv_prog_OTOOL"
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$OTOOL64"; then
7037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7050 done
7051 done
7052 IFS=$as_save_IFS
7056 OTOOL64=$ac_cv_prog_OTOOL64
7057 if test -n "$OTOOL64"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7059 $as_echo "$OTOOL64" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7067 if test -z "$ac_cv_prog_OTOOL64"; then
7068 ac_ct_OTOOL64=$OTOOL64
7069 # Extract the first word of "otool64", so it can be a program name with args.
7070 set dummy otool64; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$ac_ct_OTOOL64"; then
7077 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_ac_ct_OTOOL64="otool64"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7096 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7097 if test -n "$ac_ct_OTOOL64"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7099 $as_echo "$ac_ct_OTOOL64" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7105 if test "x$ac_ct_OTOOL64" = x; then
7106 OTOOL64=":"
7107 else
7108 case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112 ac_tool_warned=yes ;;
7113 esac
7114 OTOOL64=$ac_ct_OTOOL64
7116 else
7117 OTOOL64="$ac_cv_prog_OTOOL64"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7147 $as_echo_n "checking for -single_module linker flag... " >&6; }
7148 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 lt_cv_apple_cc_single_mod=no
7152 if test -z "${LT_MULTI_MODULE}"; then
7153 # By default we will add the -single_module flag. You can override
7154 # by either setting the environment variable LT_MULTI_MODULE
7155 # non-empty at configure time, or by adding -multi_module to the
7156 # link flags.
7157 rm -rf libconftest.dylib*
7158 echo "int foo(void){return 1;}" > conftest.c
7159 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7160 -dynamiclib -Wl,-single_module conftest.c" >&5
7161 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7162 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7163 _lt_result=$?
7164 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7165 lt_cv_apple_cc_single_mod=yes
7166 else
7167 cat conftest.err >&5
7169 rm -rf libconftest.dylib*
7170 rm -f conftest.*
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7174 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7176 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7177 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 lt_cv_ld_exported_symbols_list=no
7181 save_LDFLAGS=$LDFLAGS
7182 echo "_main" > conftest.sym
7183 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7188 main ()
7192 return 0;
7194 _ACEOF
7195 if ac_fn_c_try_link "$LINENO"; then :
7196 lt_cv_ld_exported_symbols_list=yes
7197 else
7198 lt_cv_ld_exported_symbols_list=no
7200 rm -f core conftest.err conftest.$ac_objext \
7201 conftest$ac_exeext conftest.$ac_ext
7202 LDFLAGS="$save_LDFLAGS"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7206 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7208 $as_echo_n "checking for -force_load linker flag... " >&6; }
7209 if test "${lt_cv_ld_force_load+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 lt_cv_ld_force_load=no
7213 cat > conftest.c << _LT_EOF
7214 int forced_loaded() { return 2;}
7215 _LT_EOF
7216 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7217 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7218 echo "$AR cru libconftest.a conftest.o" >&5
7219 $AR cru libconftest.a conftest.o 2>&5
7220 cat > conftest.c << _LT_EOF
7221 int main() { return 0;}
7222 _LT_EOF
7223 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7224 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7225 _lt_result=$?
7226 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7227 lt_cv_ld_force_load=yes
7228 else
7229 cat conftest.err >&5
7231 rm -f conftest.err libconftest.a conftest conftest.c
7232 rm -rf conftest.dSYM
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7236 $as_echo "$lt_cv_ld_force_load" >&6; }
7237 case $host_os in
7238 rhapsody* | darwin1.[012])
7239 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7240 darwin1.*)
7241 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7242 darwin*) # darwin 5.x on
7243 # if running on 10.5 or later, the deployment target defaults
7244 # to the OS version, if on x86, and 10.4, the deployment
7245 # target defaults to 10.4. Don't you love it?
7246 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7247 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7248 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7249 10.[012]*)
7250 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7251 10.*)
7252 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7253 esac
7255 esac
7256 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7257 _lt_dar_single_mod='$single_module'
7259 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7260 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7261 else
7262 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7264 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7265 _lt_dsymutil='~$DSYMUTIL $lib || :'
7266 else
7267 _lt_dsymutil=
7270 esac
7272 ac_ext=c
7273 ac_cpp='$CPP $CPPFLAGS'
7274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7278 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7279 # On Suns, sometimes $CPP names a directory.
7280 if test -n "$CPP" && test -d "$CPP"; then
7281 CPP=
7283 if test -z "$CPP"; then
7284 if test "${ac_cv_prog_CPP+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 # Double quotes because CPP needs to be expanded
7288 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7290 ac_preproc_ok=false
7291 for ac_c_preproc_warn_flag in '' yes
7293 # Use a header file that comes with gcc, so configuring glibc
7294 # with a fresh cross-compiler works.
7295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296 # <limits.h> exists even on freestanding compilers.
7297 # On the NeXT, cc -E runs the code through the compiler's parser,
7298 # not just through cpp. "Syntax error" is here to catch this case.
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 #ifdef __STDC__
7302 # include <limits.h>
7303 #else
7304 # include <assert.h>
7305 #endif
7306 Syntax error
7307 _ACEOF
7308 if ac_fn_c_try_cpp "$LINENO"; then :
7310 else
7311 # Broken: fails on valid input.
7312 continue
7314 rm -f conftest.err conftest.$ac_ext
7316 # OK, works on sane cases. Now check whether nonexistent headers
7317 # can be detected and how.
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320 #include <ac_nonexistent.h>
7321 _ACEOF
7322 if ac_fn_c_try_cpp "$LINENO"; then :
7323 # Broken: success on invalid input.
7324 continue
7325 else
7326 # Passes both tests.
7327 ac_preproc_ok=:
7328 break
7330 rm -f conftest.err conftest.$ac_ext
7332 done
7333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7334 rm -f conftest.err conftest.$ac_ext
7335 if $ac_preproc_ok; then :
7336 break
7339 done
7340 ac_cv_prog_CPP=$CPP
7343 CPP=$ac_cv_prog_CPP
7344 else
7345 ac_cv_prog_CPP=$CPP
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7348 $as_echo "$CPP" >&6; }
7349 ac_preproc_ok=false
7350 for ac_c_preproc_warn_flag in '' yes
7352 # Use a header file that comes with gcc, so configuring glibc
7353 # with a fresh cross-compiler works.
7354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7355 # <limits.h> exists even on freestanding compilers.
7356 # On the NeXT, cc -E runs the code through the compiler's parser,
7357 # not just through cpp. "Syntax error" is here to catch this case.
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 #ifdef __STDC__
7361 # include <limits.h>
7362 #else
7363 # include <assert.h>
7364 #endif
7365 Syntax error
7366 _ACEOF
7367 if ac_fn_c_try_cpp "$LINENO"; then :
7369 else
7370 # Broken: fails on valid input.
7371 continue
7373 rm -f conftest.err conftest.$ac_ext
7375 # OK, works on sane cases. Now check whether nonexistent headers
7376 # can be detected and how.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #include <ac_nonexistent.h>
7380 _ACEOF
7381 if ac_fn_c_try_cpp "$LINENO"; then :
7382 # Broken: success on invalid input.
7383 continue
7384 else
7385 # Passes both tests.
7386 ac_preproc_ok=:
7387 break
7389 rm -f conftest.err conftest.$ac_ext
7391 done
7392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7393 rm -f conftest.err conftest.$ac_ext
7394 if $ac_preproc_ok; then :
7396 else
7397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7399 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7400 See \`config.log' for more details." "$LINENO" 5; }
7403 ac_ext=c
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7411 $as_echo_n "checking for ANSI C header files... " >&6; }
7412 if test "${ac_cv_header_stdc+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 #include <stdlib.h>
7418 #include <stdarg.h>
7419 #include <string.h>
7420 #include <float.h>
7423 main ()
7427 return 0;
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"; then :
7431 ac_cv_header_stdc=yes
7432 else
7433 ac_cv_header_stdc=no
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 if test $ac_cv_header_stdc = yes; then
7438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 #include <string.h>
7443 _ACEOF
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445 $EGREP "memchr" >/dev/null 2>&1; then :
7447 else
7448 ac_cv_header_stdc=no
7450 rm -f conftest*
7454 if test $ac_cv_header_stdc = yes; then
7455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458 #include <stdlib.h>
7460 _ACEOF
7461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7462 $EGREP "free" >/dev/null 2>&1; then :
7464 else
7465 ac_cv_header_stdc=no
7467 rm -f conftest*
7471 if test $ac_cv_header_stdc = yes; then
7472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7473 if test "$cross_compiling" = yes; then :
7475 else
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478 #include <ctype.h>
7479 #include <stdlib.h>
7480 #if ((' ' & 0x0FF) == 0x020)
7481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7483 #else
7484 # define ISLOWER(c) \
7485 (('a' <= (c) && (c) <= 'i') \
7486 || ('j' <= (c) && (c) <= 'r') \
7487 || ('s' <= (c) && (c) <= 'z'))
7488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7489 #endif
7491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7493 main ()
7495 int i;
7496 for (i = 0; i < 256; i++)
7497 if (XOR (islower (i), ISLOWER (i))
7498 || toupper (i) != TOUPPER (i))
7499 return 2;
7500 return 0;
7502 _ACEOF
7503 if ac_fn_c_try_run "$LINENO"; then :
7505 else
7506 ac_cv_header_stdc=no
7508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7509 conftest.$ac_objext conftest.beam conftest.$ac_ext
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7515 $as_echo "$ac_cv_header_stdc" >&6; }
7516 if test $ac_cv_header_stdc = yes; then
7518 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7522 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7524 inttypes.h stdint.h unistd.h
7525 do :
7526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7529 eval as_val=\$$as_ac_Header
7530 if test "x$as_val" = x""yes; then :
7531 cat >>confdefs.h <<_ACEOF
7532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7533 _ACEOF
7537 done
7540 for ac_header in dlfcn.h
7541 do :
7542 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7544 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7545 cat >>confdefs.h <<_ACEOF
7546 #define HAVE_DLFCN_H 1
7547 _ACEOF
7551 done
7553 if test -n "$ac_tool_prefix"; then
7554 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7555 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_GOC+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$GOC"; then
7562 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7581 GOC=$ac_cv_prog_GOC
7582 if test -n "$GOC"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7584 $as_echo "$GOC" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7592 if test -z "$ac_cv_prog_GOC"; then
7593 ac_ct_GOC=$GOC
7594 # Extract the first word of "gccgo", so it can be a program name with args.
7595 set dummy gccgo; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 if test -n "$ac_ct_GOC"; then
7602 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_ac_ct_GOC="gccgo"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7615 done
7616 done
7617 IFS=$as_save_IFS
7621 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7622 if test -n "$ac_ct_GOC"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7624 $as_echo "$ac_ct_GOC" >&6; }
7625 else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7630 if test "x$ac_ct_GOC" = x; then
7631 GOC=""
7632 else
7633 case $cross_compiling:$ac_tool_warned in
7634 yes:)
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7637 ac_tool_warned=yes ;;
7638 esac
7639 GOC=$ac_ct_GOC
7641 else
7642 GOC="$ac_cv_prog_GOC"
7650 # Set options
7655 enable_win32_dll=no
7658 # Check whether --enable-shared was given.
7659 if test "${enable_shared+set}" = set; then :
7660 enableval=$enable_shared; p=${PACKAGE-default}
7661 case $enableval in
7662 yes) enable_shared=yes ;;
7663 no) enable_shared=no ;;
7665 enable_shared=no
7666 # Look at the argument we got. We use all the common list separators.
7667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7668 for pkg in $enableval; do
7669 IFS="$lt_save_ifs"
7670 if test "X$pkg" = "X$p"; then
7671 enable_shared=yes
7673 done
7674 IFS="$lt_save_ifs"
7676 esac
7677 else
7678 enable_shared=yes
7689 # Check whether --enable-static was given.
7690 if test "${enable_static+set}" = set; then :
7691 enableval=$enable_static; p=${PACKAGE-default}
7692 case $enableval in
7693 yes) enable_static=yes ;;
7694 no) enable_static=no ;;
7696 enable_static=no
7697 # Look at the argument we got. We use all the common list separators.
7698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7699 for pkg in $enableval; do
7700 IFS="$lt_save_ifs"
7701 if test "X$pkg" = "X$p"; then
7702 enable_static=yes
7704 done
7705 IFS="$lt_save_ifs"
7707 esac
7708 else
7709 enable_static=yes
7721 # Check whether --with-pic was given.
7722 if test "${with_pic+set}" = set; then :
7723 withval=$with_pic; pic_mode="$withval"
7724 else
7725 pic_mode=default
7729 test -z "$pic_mode" && pic_mode=default
7737 # Check whether --enable-fast-install was given.
7738 if test "${enable_fast_install+set}" = set; then :
7739 enableval=$enable_fast_install; p=${PACKAGE-default}
7740 case $enableval in
7741 yes) enable_fast_install=yes ;;
7742 no) enable_fast_install=no ;;
7744 enable_fast_install=no
7745 # Look at the argument we got. We use all the common list separators.
7746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7747 for pkg in $enableval; do
7748 IFS="$lt_save_ifs"
7749 if test "X$pkg" = "X$p"; then
7750 enable_fast_install=yes
7752 done
7753 IFS="$lt_save_ifs"
7755 esac
7756 else
7757 enable_fast_install=yes
7770 # This can be used to rebuild libtool when needed
7771 LIBTOOL_DEPS="$ltmain"
7773 # Always use our own libtool.
7774 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7801 test -z "$LN_S" && LN_S="ln -s"
7816 if test -n "${ZSH_VERSION+set}" ; then
7817 setopt NO_GLOB_SUBST
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7821 $as_echo_n "checking for objdir... " >&6; }
7822 if test "${lt_cv_objdir+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 rm -f .libs 2>/dev/null
7826 mkdir .libs 2>/dev/null
7827 if test -d .libs; then
7828 lt_cv_objdir=.libs
7829 else
7830 # MS-DOS does not allow filenames that begin with a dot.
7831 lt_cv_objdir=_libs
7833 rmdir .libs 2>/dev/null
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7836 $as_echo "$lt_cv_objdir" >&6; }
7837 objdir=$lt_cv_objdir
7843 cat >>confdefs.h <<_ACEOF
7844 #define LT_OBJDIR "$lt_cv_objdir/"
7845 _ACEOF
7850 case $host_os in
7851 aix3*)
7852 # AIX sometimes has problems with the GCC collect2 program. For some
7853 # reason, if we set the COLLECT_NAMES environment variable, the problems
7854 # vanish in a puff of smoke.
7855 if test "X${COLLECT_NAMES+set}" != Xset; then
7856 COLLECT_NAMES=
7857 export COLLECT_NAMES
7860 esac
7862 # Global variables:
7863 ofile=libtool
7864 can_build_shared=yes
7866 # All known linkers require a `.a' archive for static linking (except MSVC,
7867 # which needs '.lib').
7868 libext=a
7870 with_gnu_ld="$lt_cv_prog_gnu_ld"
7872 old_CC="$CC"
7873 old_CFLAGS="$CFLAGS"
7875 # Set sane defaults for various variables
7876 test -z "$CC" && CC=cc
7877 test -z "$LTCC" && LTCC=$CC
7878 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7879 test -z "$LD" && LD=ld
7880 test -z "$ac_objext" && ac_objext=o
7882 for cc_temp in $compiler""; do
7883 case $cc_temp in
7884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7886 \-*) ;;
7887 *) break;;
7888 esac
7889 done
7890 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7893 # Only perform the check for file, if the check method requires it
7894 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7895 case $deplibs_check_method in
7896 file_magic*)
7897 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7899 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7900 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 case $MAGIC_CMD in
7904 [\\/*] | ?:[\\/]*)
7905 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7908 lt_save_MAGIC_CMD="$MAGIC_CMD"
7909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7910 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7911 for ac_dir in $ac_dummy; do
7912 IFS="$lt_save_ifs"
7913 test -z "$ac_dir" && ac_dir=.
7914 if test -f $ac_dir/${ac_tool_prefix}file; then
7915 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7916 if test -n "$file_magic_test_file"; then
7917 case $deplibs_check_method in
7918 "file_magic "*)
7919 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7922 $EGREP "$file_magic_regex" > /dev/null; then
7924 else
7925 cat <<_LT_EOF 1>&2
7927 *** Warning: the command libtool uses to detect shared libraries,
7928 *** $file_magic_cmd, produces output that libtool cannot recognize.
7929 *** The result is that libtool may fail to recognize shared libraries
7930 *** as such. This will affect the creation of libtool libraries that
7931 *** depend on shared libraries, but programs linked with such libtool
7932 *** libraries will work regardless of this problem. Nevertheless, you
7933 *** may want to report the problem to your system manager and/or to
7934 *** bug-libtool@gnu.org
7936 _LT_EOF
7937 fi ;;
7938 esac
7940 break
7942 done
7943 IFS="$lt_save_ifs"
7944 MAGIC_CMD="$lt_save_MAGIC_CMD"
7946 esac
7949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950 if test -n "$MAGIC_CMD"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7952 $as_echo "$MAGIC_CMD" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7962 if test -z "$lt_cv_path_MAGIC_CMD"; then
7963 if test -n "$ac_tool_prefix"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7965 $as_echo_n "checking for file... " >&6; }
7966 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 case $MAGIC_CMD in
7970 [\\/*] | ?:[\\/]*)
7971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7974 lt_save_MAGIC_CMD="$MAGIC_CMD"
7975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7976 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7977 for ac_dir in $ac_dummy; do
7978 IFS="$lt_save_ifs"
7979 test -z "$ac_dir" && ac_dir=.
7980 if test -f $ac_dir/file; then
7981 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7982 if test -n "$file_magic_test_file"; then
7983 case $deplibs_check_method in
7984 "file_magic "*)
7985 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7987 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7988 $EGREP "$file_magic_regex" > /dev/null; then
7990 else
7991 cat <<_LT_EOF 1>&2
7993 *** Warning: the command libtool uses to detect shared libraries,
7994 *** $file_magic_cmd, produces output that libtool cannot recognize.
7995 *** The result is that libtool may fail to recognize shared libraries
7996 *** as such. This will affect the creation of libtool libraries that
7997 *** depend on shared libraries, but programs linked with such libtool
7998 *** libraries will work regardless of this problem. Nevertheless, you
7999 *** may want to report the problem to your system manager and/or to
8000 *** bug-libtool@gnu.org
8002 _LT_EOF
8003 fi ;;
8004 esac
8006 break
8008 done
8009 IFS="$lt_save_ifs"
8010 MAGIC_CMD="$lt_save_MAGIC_CMD"
8012 esac
8015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8016 if test -n "$MAGIC_CMD"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8018 $as_echo "$MAGIC_CMD" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8025 else
8026 MAGIC_CMD=:
8032 esac
8034 # Use C for the default configuration in the libtool script
8036 lt_save_CC="$CC"
8037 ac_ext=c
8038 ac_cpp='$CPP $CPPFLAGS'
8039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044 # Source file extension for C test sources.
8045 ac_ext=c
8047 # Object file extension for compiled C test sources.
8048 objext=o
8049 objext=$objext
8051 # Code to be used in simple compile tests
8052 lt_simple_compile_test_code="int some_variable = 0;"
8054 # Code to be used in simple link tests
8055 lt_simple_link_test_code='int main(){return(0);}'
8063 # If no C compiler was specified, use CC.
8064 LTCC=${LTCC-"$CC"}
8066 # If no C compiler flags were specified, use CFLAGS.
8067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8069 # Allow CC to be a program name with arguments.
8070 compiler=$CC
8072 # Save the default compiler, since it gets overwritten when the other
8073 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8074 compiler_DEFAULT=$CC
8076 # save warnings/boilerplate of simple test code
8077 ac_outfile=conftest.$ac_objext
8078 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8080 _lt_compiler_boilerplate=`cat conftest.err`
8081 $RM conftest*
8083 ac_outfile=conftest.$ac_objext
8084 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8086 _lt_linker_boilerplate=`cat conftest.err`
8087 $RM -r conftest*
8090 ## CAVEAT EMPTOR:
8091 ## There is no encapsulation within the following macros, do not change
8092 ## the running order or otherwise move them around unless you know exactly
8093 ## what you are doing...
8094 if test -n "$compiler"; then
8096 lt_prog_compiler_no_builtin_flag=
8098 if test "$GCC" = yes; then
8099 case $cc_basename in
8100 nvcc*)
8101 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8103 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8104 esac
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8107 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8108 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 lt_cv_prog_compiler_rtti_exceptions=no
8112 ac_outfile=conftest.$ac_objext
8113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8114 lt_compiler_flag="-fno-rtti -fno-exceptions"
8115 # Insert the option either (1) after the last *FLAGS variable, or
8116 # (2) before a word containing "conftest.", or (3) at the end.
8117 # Note that $ac_compile itself does not contain backslashes and begins
8118 # with a dollar sign (not a hyphen), so the echo should work correctly.
8119 # The option is referenced via a variable to avoid confusing sed.
8120 lt_compile=`echo "$ac_compile" | $SED \
8121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8123 -e 's:$: $lt_compiler_flag:'`
8124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8125 (eval "$lt_compile" 2>conftest.err)
8126 ac_status=$?
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 if (exit $ac_status) && test -s "$ac_outfile"; then
8130 # The compiler can only warn and ignore the option if not recognized
8131 # So say no if there are warnings other than the usual output.
8132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8135 lt_cv_prog_compiler_rtti_exceptions=yes
8138 $RM conftest*
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8142 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8144 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8145 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8146 else
8157 lt_prog_compiler_wl=
8158 lt_prog_compiler_pic=
8159 lt_prog_compiler_static=
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8162 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8164 if test "$GCC" = yes; then
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_static='-static'
8168 case $host_os in
8169 aix*)
8170 # All AIX code is PIC.
8171 if test "$host_cpu" = ia64; then
8172 # AIX 5 now supports IA64 processor
8173 lt_prog_compiler_static='-Bstatic'
8177 amigaos*)
8178 case $host_cpu in
8179 powerpc)
8180 # see comment about AmigaOS4 .so support
8181 lt_prog_compiler_pic='-fPIC'
8183 m68k)
8184 # FIXME: we need at least 68020 code to build shared libraries, but
8185 # adding the `-m68020' flag to GCC prevents building anything better,
8186 # like `-m68040'.
8187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8189 esac
8192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8193 # PIC is the default for these OSes.
8196 mingw* | cygwin* | pw32* | os2* | cegcc*)
8197 # This hack is so that the source file can tell whether it is being
8198 # built for inclusion in a dll (and should export symbols for example).
8199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8200 # (--disable-auto-import) libraries
8201 lt_prog_compiler_pic='-DDLL_EXPORT'
8204 darwin* | rhapsody*)
8205 # PIC is the default on this platform
8206 # Common symbols not allowed in MH_DYLIB files
8207 lt_prog_compiler_pic='-fno-common'
8210 haiku*)
8211 # PIC is the default for Haiku.
8212 # The "-static" flag exists, but is broken.
8213 lt_prog_compiler_static=
8216 hpux*)
8217 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8218 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8219 # sets the default TLS model and affects inlining.
8220 case $host_cpu in
8221 hppa*64*)
8222 # +Z the default
8225 lt_prog_compiler_pic='-fPIC'
8227 esac
8230 interix[3-9]*)
8231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8232 # Instead, we relocate shared libraries at runtime.
8235 msdosdjgpp*)
8236 # Just because we use GCC doesn't mean we suddenly get shared libraries
8237 # on systems that don't support them.
8238 lt_prog_compiler_can_build_shared=no
8239 enable_shared=no
8242 *nto* | *qnx*)
8243 # QNX uses GNU C++, but need to define -shared option too, otherwise
8244 # it will coredump.
8245 lt_prog_compiler_pic='-fPIC -shared'
8248 sysv4*MP*)
8249 if test -d /usr/nec; then
8250 lt_prog_compiler_pic=-Kconform_pic
8255 lt_prog_compiler_pic='-fPIC'
8257 esac
8259 case $cc_basename in
8260 nvcc*) # Cuda Compiler Driver 2.2
8261 lt_prog_compiler_wl='-Xlinker '
8262 lt_prog_compiler_pic='-Xcompiler -fPIC'
8264 esac
8265 else
8266 # PORTME Check for flag to pass linker flags through the system compiler.
8267 case $host_os in
8268 aix*)
8269 lt_prog_compiler_wl='-Wl,'
8270 if test "$host_cpu" = ia64; then
8271 # AIX 5 now supports IA64 processor
8272 lt_prog_compiler_static='-Bstatic'
8273 else
8274 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8278 mingw* | cygwin* | pw32* | os2* | cegcc*)
8279 # This hack is so that the source file can tell whether it is being
8280 # built for inclusion in a dll (and should export symbols for example).
8281 lt_prog_compiler_pic='-DDLL_EXPORT'
8284 hpux9* | hpux10* | hpux11*)
8285 lt_prog_compiler_wl='-Wl,'
8286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8287 # not for PA HP-UX.
8288 case $host_cpu in
8289 hppa*64*|ia64*)
8290 # +Z the default
8293 lt_prog_compiler_pic='+Z'
8295 esac
8296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8297 lt_prog_compiler_static='${wl}-a ${wl}archive'
8300 irix5* | irix6* | nonstopux*)
8301 lt_prog_compiler_wl='-Wl,'
8302 # PIC (with -KPIC) is the default.
8303 lt_prog_compiler_static='-non_shared'
8306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8307 case $cc_basename in
8308 # old Intel for x86_64 which still supported -KPIC.
8309 ecc*)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='-KPIC'
8312 lt_prog_compiler_static='-static'
8314 # icc used to be incompatible with GCC.
8315 # ICC 10 doesn't accept -KPIC any more.
8316 icc* | ifort*)
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_pic='-fPIC'
8319 lt_prog_compiler_static='-static'
8321 # Lahey Fortran 8.1.
8322 lf95*)
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='--shared'
8325 lt_prog_compiler_static='--static'
8327 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8328 # Portland Group compilers (*not* the Pentium gcc compiler,
8329 # which looks to be a dead project)
8330 lt_prog_compiler_wl='-Wl,'
8331 lt_prog_compiler_pic='-fpic'
8332 lt_prog_compiler_static='-Bstatic'
8334 ccc*)
8335 lt_prog_compiler_wl='-Wl,'
8336 # All Alpha code is PIC.
8337 lt_prog_compiler_static='-non_shared'
8339 xl* | bgxl* | bgf* | mpixl*)
8340 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-qpic'
8343 lt_prog_compiler_static='-qstaticlink'
8346 case `$CC -V 2>&1 | sed 5q` in
8347 *Sun\ F* | *Sun*Fortran*)
8348 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 lt_prog_compiler_wl=''
8353 *Sun\ C*)
8354 # Sun C 5.9
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 lt_prog_compiler_wl='-Wl,'
8359 esac
8361 esac
8364 newsos6)
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8369 *nto* | *qnx*)
8370 # QNX uses GNU C++, but need to define -shared option too, otherwise
8371 # it will coredump.
8372 lt_prog_compiler_pic='-fPIC -shared'
8375 osf3* | osf4* | osf5*)
8376 lt_prog_compiler_wl='-Wl,'
8377 # All OSF/1 code is PIC.
8378 lt_prog_compiler_static='-non_shared'
8381 rdos*)
8382 lt_prog_compiler_static='-non_shared'
8385 solaris*)
8386 lt_prog_compiler_pic='-KPIC'
8387 lt_prog_compiler_static='-Bstatic'
8388 case $cc_basename in
8389 f77* | f90* | f95*)
8390 lt_prog_compiler_wl='-Qoption ld ';;
8392 lt_prog_compiler_wl='-Wl,';;
8393 esac
8396 sunos4*)
8397 lt_prog_compiler_wl='-Qoption ld '
8398 lt_prog_compiler_pic='-PIC'
8399 lt_prog_compiler_static='-Bstatic'
8402 sysv4 | sysv4.2uw2* | sysv4.3*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8408 sysv4*MP*)
8409 if test -d /usr/nec ;then
8410 lt_prog_compiler_pic='-Kconform_pic'
8411 lt_prog_compiler_static='-Bstatic'
8415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-KPIC'
8418 lt_prog_compiler_static='-Bstatic'
8421 unicos*)
8422 lt_prog_compiler_wl='-Wl,'
8423 lt_prog_compiler_can_build_shared=no
8426 uts4*)
8427 lt_prog_compiler_pic='-pic'
8428 lt_prog_compiler_static='-Bstatic'
8432 lt_prog_compiler_can_build_shared=no
8434 esac
8437 case $host_os in
8438 # For platforms which do not support PIC, -DPIC is meaningless:
8439 *djgpp*)
8440 lt_prog_compiler_pic=
8443 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8445 esac
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8447 $as_echo "$lt_prog_compiler_pic" >&6; }
8455 # Check to make sure the PIC flag actually works.
8457 if test -n "$lt_prog_compiler_pic"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8460 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463 lt_cv_prog_compiler_pic_works=no
8464 ac_outfile=conftest.$ac_objext
8465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8466 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8467 # Insert the option either (1) after the last *FLAGS variable, or
8468 # (2) before a word containing "conftest.", or (3) at the end.
8469 # Note that $ac_compile itself does not contain backslashes and begins
8470 # with a dollar sign (not a hyphen), so the echo should work correctly.
8471 # The option is referenced via a variable to avoid confusing sed.
8472 lt_compile=`echo "$ac_compile" | $SED \
8473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8475 -e 's:$: $lt_compiler_flag:'`
8476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8477 (eval "$lt_compile" 2>conftest.err)
8478 ac_status=$?
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 if (exit $ac_status) && test -s "$ac_outfile"; then
8482 # The compiler can only warn and ignore the option if not recognized
8483 # So say no if there are warnings other than the usual output.
8484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8487 lt_cv_prog_compiler_pic_works=yes
8490 $RM conftest*
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8494 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8496 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8497 case $lt_prog_compiler_pic in
8498 "" | " "*) ;;
8499 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8500 esac
8501 else
8502 lt_prog_compiler_pic=
8503 lt_prog_compiler_can_build_shared=no
8514 # Check to make sure the static flag actually works.
8516 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8518 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8519 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_prog_compiler_static_works=no
8523 save_LDFLAGS="$LDFLAGS"
8524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8525 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8527 # The linker can only warn and ignore the option if not recognized
8528 # So say no if there are warnings
8529 if test -s conftest.err; then
8530 # Append any errors to the config.log.
8531 cat conftest.err 1>&5
8532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8534 if diff conftest.exp conftest.er2 >/dev/null; then
8535 lt_cv_prog_compiler_static_works=yes
8537 else
8538 lt_cv_prog_compiler_static_works=yes
8541 $RM -r conftest*
8542 LDFLAGS="$save_LDFLAGS"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8546 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8548 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8550 else
8551 lt_prog_compiler_static=
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8562 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 lt_cv_prog_compiler_c_o=no
8566 $RM -r conftest 2>/dev/null
8567 mkdir conftest
8568 cd conftest
8569 mkdir out
8570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8572 lt_compiler_flag="-o out/conftest2.$ac_objext"
8573 # Insert the option either (1) after the last *FLAGS variable, or
8574 # (2) before a word containing "conftest.", or (3) at the end.
8575 # Note that $ac_compile itself does not contain backslashes and begins
8576 # with a dollar sign (not a hyphen), so the echo should work correctly.
8577 lt_compile=`echo "$ac_compile" | $SED \
8578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8580 -e 's:$: $lt_compiler_flag:'`
8581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8582 (eval "$lt_compile" 2>out/conftest.err)
8583 ac_status=$?
8584 cat out/conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8587 then
8588 # The compiler can only warn and ignore the option if not recognized
8589 # So say no if there are warnings
8590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8593 lt_cv_prog_compiler_c_o=yes
8596 chmod u+w . 2>&5
8597 $RM conftest*
8598 # SGI C++ compiler will create directory out/ii_files/ for
8599 # template instantiation
8600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8601 $RM out/* && rmdir out
8602 cd ..
8603 $RM -r conftest
8604 $RM conftest*
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8608 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8616 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8617 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 lt_cv_prog_compiler_c_o=no
8621 $RM -r conftest 2>/dev/null
8622 mkdir conftest
8623 cd conftest
8624 mkdir out
8625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8627 lt_compiler_flag="-o out/conftest2.$ac_objext"
8628 # Insert the option either (1) after the last *FLAGS variable, or
8629 # (2) before a word containing "conftest.", or (3) at the end.
8630 # Note that $ac_compile itself does not contain backslashes and begins
8631 # with a dollar sign (not a hyphen), so the echo should work correctly.
8632 lt_compile=`echo "$ac_compile" | $SED \
8633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8635 -e 's:$: $lt_compiler_flag:'`
8636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8637 (eval "$lt_compile" 2>out/conftest.err)
8638 ac_status=$?
8639 cat out/conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8642 then
8643 # The compiler can only warn and ignore the option if not recognized
8644 # So say no if there are warnings
8645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8648 lt_cv_prog_compiler_c_o=yes
8651 chmod u+w . 2>&5
8652 $RM conftest*
8653 # SGI C++ compiler will create directory out/ii_files/ for
8654 # template instantiation
8655 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8656 $RM out/* && rmdir out
8657 cd ..
8658 $RM -r conftest
8659 $RM conftest*
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8663 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8668 hard_links="nottested"
8669 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8670 # do not overwrite the value of need_locks provided by the user
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8672 $as_echo_n "checking if we can lock with hard links... " >&6; }
8673 hard_links=yes
8674 $RM conftest*
8675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8676 touch conftest.a
8677 ln conftest.a conftest.b 2>&5 || hard_links=no
8678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8680 $as_echo "$hard_links" >&6; }
8681 if test "$hard_links" = no; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8683 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8684 need_locks=warn
8686 else
8687 need_locks=no
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8696 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8698 runpath_var=
8699 allow_undefined_flag=
8700 always_export_symbols=no
8701 archive_cmds=
8702 archive_expsym_cmds=
8703 compiler_needs_object=no
8704 enable_shared_with_static_runtimes=no
8705 export_dynamic_flag_spec=
8706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8707 hardcode_automatic=no
8708 hardcode_direct=no
8709 hardcode_direct_absolute=no
8710 hardcode_libdir_flag_spec=
8711 hardcode_libdir_flag_spec_ld=
8712 hardcode_libdir_separator=
8713 hardcode_minus_L=no
8714 hardcode_shlibpath_var=unsupported
8715 inherit_rpath=no
8716 link_all_deplibs=unknown
8717 module_cmds=
8718 module_expsym_cmds=
8719 old_archive_from_new_cmds=
8720 old_archive_from_expsyms_cmds=
8721 thread_safe_flag_spec=
8722 whole_archive_flag_spec=
8723 # include_expsyms should be a list of space-separated symbols to be *always*
8724 # included in the symbol list
8725 include_expsyms=
8726 # exclude_expsyms can be an extended regexp of symbols to exclude
8727 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8729 # as well as any symbol that contains `d'.
8730 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8732 # platforms (ab)use it in PIC code, but their linkers get confused if
8733 # the symbol is explicitly referenced. Since portable code cannot
8734 # rely on this symbol name, it's probably fine to never include it in
8735 # preloaded symbol tables.
8736 # Exclude shared library initialization/finalization symbols.
8737 extract_expsyms_cmds=
8739 case $host_os in
8740 cygwin* | mingw* | pw32* | cegcc*)
8741 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8742 # When not using gcc, we currently assume that we are using
8743 # Microsoft Visual C++.
8744 if test "$GCC" != yes; then
8745 with_gnu_ld=no
8748 interix*)
8749 # we just hope/assume this is gcc and not c89 (= MSVC++)
8750 with_gnu_ld=yes
8752 openbsd*)
8753 with_gnu_ld=no
8755 esac
8757 ld_shlibs=yes
8759 # On some targets, GNU ld is compatible enough with the native linker
8760 # that we're better off using the native interface for both.
8761 lt_use_gnu_ld_interface=no
8762 if test "$with_gnu_ld" = yes; then
8763 case $host_os in
8764 aix*)
8765 # The AIX port of GNU ld has always aspired to compatibility
8766 # with the native linker. However, as the warning in the GNU ld
8767 # block says, versions before 2.19.5* couldn't really create working
8768 # shared libraries, regardless of the interface used.
8769 case `$LD -v 2>&1` in
8770 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8771 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8772 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8774 lt_use_gnu_ld_interface=yes
8776 esac
8779 lt_use_gnu_ld_interface=yes
8781 esac
8784 if test "$lt_use_gnu_ld_interface" = yes; then
8785 # If archive_cmds runs LD, not CC, wlarc should be empty
8786 wlarc='${wl}'
8788 # Set some defaults for GNU ld with shared library support. These
8789 # are reset later if shared libraries are not supported. Putting them
8790 # here allows them to be overridden if necessary.
8791 runpath_var=LD_RUN_PATH
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 export_dynamic_flag_spec='${wl}--export-dynamic'
8794 # ancient GNU ld didn't support --whole-archive et. al.
8795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8797 else
8798 whole_archive_flag_spec=
8800 supports_anon_versioning=no
8801 case `$LD -v 2>&1` in
8802 *GNU\ gold*) supports_anon_versioning=yes ;;
8803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806 *\ 2.11.*) ;; # other 2.11 versions
8807 *) supports_anon_versioning=yes ;;
8808 esac
8810 # See if GNU ld supports shared libraries.
8811 case $host_os in
8812 aix[3-9]*)
8813 # On AIX/PPC, the GNU linker is very broken
8814 if test "$host_cpu" != ia64; then
8815 ld_shlibs=no
8816 cat <<_LT_EOF 1>&2
8818 *** Warning: the GNU linker, at least up to release 2.19, is reported
8819 *** to be unable to reliably create shared libraries on AIX.
8820 *** Therefore, libtool is disabling shared libraries support. If you
8821 *** really care for shared libraries, you may want to install binutils
8822 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8823 *** You will then need to restart the configuration process.
8825 _LT_EOF
8829 amigaos*)
8830 case $host_cpu in
8831 powerpc)
8832 # see comment about AmigaOS4 .so support
8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 archive_expsym_cmds=''
8836 m68k)
8837 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)'
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_minus_L=yes
8841 esac
8844 beos*)
8845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846 allow_undefined_flag=unsupported
8847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8848 # support --undefined. This deserves some investigation. FIXME
8849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850 else
8851 ld_shlibs=no
8855 cygwin* | mingw* | pw32* | cegcc*)
8856 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8857 # as there is no search path for DLLs.
8858 hardcode_libdir_flag_spec='-L$libdir'
8859 export_dynamic_flag_spec='${wl}--export-all-symbols'
8860 allow_undefined_flag=unsupported
8861 always_export_symbols=no
8862 enable_shared_with_static_runtimes=yes
8863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8865 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8867 # If the export-symbols file already is a .def file (1st line
8868 # is EXPORTS), use it as is; otherwise, prepend...
8869 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8870 cp $export_symbols $output_objdir/$soname.def;
8871 else
8872 echo EXPORTS > $output_objdir/$soname.def;
8873 cat $export_symbols >> $output_objdir/$soname.def;
8875 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8876 else
8877 ld_shlibs=no
8881 haiku*)
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 link_all_deplibs=yes
8886 interix[3-9]*)
8887 hardcode_direct=no
8888 hardcode_shlibpath_var=no
8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8890 export_dynamic_flag_spec='${wl}-E'
8891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8892 # Instead, shared libraries are loaded at an image base (0x10000000 by
8893 # default) and relocated if they conflict, which is a slow very memory
8894 # consuming and fragmenting process. To avoid this, we pick a random,
8895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8898 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'
8901 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8902 tmp_diet=no
8903 if test "$host_os" = linux-dietlibc; then
8904 case $cc_basename in
8905 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8906 esac
8908 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8909 && test "$tmp_diet" = no
8910 then
8911 tmp_addflag=
8912 tmp_sharedflag='-shared'
8913 case $cc_basename,$host_cpu in
8914 pgcc*) # Portland Group C compiler
8915 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8916 tmp_addflag=' $pic_flag'
8918 pgf77* | pgf90* | pgf95* | pgfortran*)
8919 # Portland Group f77 and f90 compilers
8920 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'
8921 tmp_addflag=' $pic_flag -Mnomain' ;;
8922 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8923 tmp_addflag=' -i_dynamic' ;;
8924 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8925 tmp_addflag=' -i_dynamic -nofor_main' ;;
8926 ifc* | ifort*) # Intel Fortran compiler
8927 tmp_addflag=' -nofor_main' ;;
8928 lf95*) # Lahey Fortran 8.1
8929 whole_archive_flag_spec=
8930 tmp_sharedflag='--shared' ;;
8931 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8932 tmp_sharedflag='-qmkshrobj'
8933 tmp_addflag= ;;
8934 nvcc*) # Cuda Compiler Driver 2.2
8935 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'
8936 compiler_needs_object=yes
8938 esac
8939 case `$CC -V 2>&1 | sed 5q` in
8940 *Sun\ C*) # Sun C 5.9
8941 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'
8942 compiler_needs_object=yes
8943 tmp_sharedflag='-G' ;;
8944 *Sun\ F*) # Sun Fortran 8.3
8945 tmp_sharedflag='-G' ;;
8946 esac
8947 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8956 case $cc_basename in
8957 xlf* | bgf* | bgxlf* | mpixlf*)
8958 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8959 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8960 hardcode_libdir_flag_spec=
8961 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8962 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8963 if test "x$supports_anon_versioning" = xyes; then
8964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966 echo "local: *; };" >> $output_objdir/$libname.ver~
8967 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8970 esac
8971 else
8972 ld_shlibs=no
8976 netbsd*)
8977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8979 wlarc=
8980 else
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986 solaris*)
8987 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8988 ld_shlibs=no
8989 cat <<_LT_EOF 1>&2
8991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8992 *** create shared libraries on Solaris systems. Therefore, libtool
8993 *** is disabling shared libraries support. We urge you to upgrade GNU
8994 *** binutils to release 2.9.1 or newer. Another option is to modify
8995 *** your PATH or compiler configuration so that the native linker is
8996 *** used, and then restart.
8998 _LT_EOF
8999 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002 else
9003 ld_shlibs=no
9007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9008 case `$LD -v 2>&1` in
9009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9010 ld_shlibs=no
9011 cat <<_LT_EOF 1>&2
9013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9014 *** reliably create shared libraries on SCO systems. Therefore, libtool
9015 *** is disabling shared libraries support. We urge you to upgrade GNU
9016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9017 *** your PATH or compiler configuration so that the native linker is
9018 *** used, and then restart.
9020 _LT_EOF
9023 # For security reasons, it is highly recommended that you always
9024 # use absolute paths for naming shared libraries, and exclude the
9025 # DT_RUNPATH tag from executables and libraries. But doing so
9026 # requires that you compile everything twice, which is a pain.
9027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031 else
9032 ld_shlibs=no
9035 esac
9038 sunos4*)
9039 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040 wlarc=
9041 hardcode_direct=yes
9042 hardcode_shlibpath_var=no
9046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049 else
9050 ld_shlibs=no
9053 esac
9055 if test "$ld_shlibs" = no; then
9056 runpath_var=
9057 hardcode_libdir_flag_spec=
9058 export_dynamic_flag_spec=
9059 whole_archive_flag_spec=
9061 else
9062 # PORTME fill in a description of your system's linker (not GNU ld)
9063 case $host_os in
9064 aix3*)
9065 allow_undefined_flag=unsupported
9066 always_export_symbols=yes
9067 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'
9068 # Note: this linker hardcodes the directories in LIBPATH if there
9069 # are no directories specified by -L.
9070 hardcode_minus_L=yes
9071 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9072 # Neither direct hardcoding nor static linking is supported with a
9073 # broken collect2.
9074 hardcode_direct=unsupported
9078 aix[4-9]*)
9079 if test "$host_cpu" = ia64; then
9080 # On IA64, the linker does run time linking by default, so we don't
9081 # have to do anything special.
9082 aix_use_runtimelinking=no
9083 exp_sym_flag='-Bexport'
9084 no_entry_flag=""
9085 else
9086 # If we're using GNU nm, then we don't want the "-C" option.
9087 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9088 # Also, AIX nm treats weak defined symbols like other global
9089 # defined symbols, whereas GNU nm marks them as "W".
9090 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9091 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'
9092 else
9093 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'
9095 aix_use_runtimelinking=no
9097 # Test if we are trying to use run time linking or normal
9098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9099 # need to do runtime linking.
9100 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9101 for ld_flag in $LDFLAGS; do
9102 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9103 aix_use_runtimelinking=yes
9104 break
9106 done
9108 esac
9110 exp_sym_flag='-bexport'
9111 no_entry_flag='-bnoentry'
9114 # When large executables or shared objects are built, AIX ld can
9115 # have problems creating the table of contents. If linking a library
9116 # or program results in "error TOC overflow" add -mminimal-toc to
9117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9120 archive_cmds=''
9121 hardcode_direct=yes
9122 hardcode_direct_absolute=yes
9123 hardcode_libdir_separator=':'
9124 link_all_deplibs=yes
9125 file_list_spec='${wl}-f,'
9127 if test "$GCC" = yes; then
9128 case $host_os in aix4.[012]|aix4.[012].*)
9129 # We only want to do this on AIX 4.2 and lower, the check
9130 # below for broken collect2 doesn't work under 4.3+
9131 collect2name=`${CC} -print-prog-name=collect2`
9132 if test -f "$collect2name" &&
9133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9134 then
9135 # We have reworked collect2
9137 else
9138 # We have old collect2
9139 hardcode_direct=unsupported
9140 # It fails to find uninstalled libraries when the uninstalled
9141 # path is not listed in the libpath. Setting hardcode_minus_L
9142 # to unsupported forces relinking
9143 hardcode_minus_L=yes
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_libdir_separator=
9148 esac
9149 shared_flag='-shared'
9150 if test "$aix_use_runtimelinking" = yes; then
9151 shared_flag="$shared_flag "'${wl}-G'
9153 else
9154 # not using gcc
9155 if test "$host_cpu" = ia64; then
9156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9157 # chokes on -Wl,-G. The following line is correct:
9158 shared_flag='-G'
9159 else
9160 if test "$aix_use_runtimelinking" = yes; then
9161 shared_flag='${wl}-G'
9162 else
9163 shared_flag='${wl}-bM:SRE'
9168 export_dynamic_flag_spec='${wl}-bexpall'
9169 # It seems that -bexpall does not export symbols beginning with
9170 # underscore (_), so it is better to generate a list of symbols to export.
9171 always_export_symbols=yes
9172 if test "$aix_use_runtimelinking" = yes; then
9173 # Warning - without using the other runtime loading flags (-brtl),
9174 # -berok will link without error, but may produce a broken library.
9175 allow_undefined_flag='-berok'
9176 # Determine the default libpath from the value encoded in an
9177 # empty executable.
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9182 main ()
9186 return 0;
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9191 lt_aix_libpath_sed='
9192 /Import File Strings/,/^$/ {
9193 /^0/ {
9194 s/^0 *\(.*\)$/\1/
9198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199 # Check for a 64-bit object if we didn't find anything.
9200 if test -z "$aix_libpath"; then
9201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9209 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"
9210 else
9211 if test "$host_cpu" = ia64; then
9212 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9213 allow_undefined_flag="-z nodefs"
9214 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"
9215 else
9216 # Determine the default libpath from the value encoded in an
9217 # empty executable.
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9222 main ()
9226 return 0;
9228 _ACEOF
9229 if ac_fn_c_try_link "$LINENO"; then :
9231 lt_aix_libpath_sed='
9232 /Import File Strings/,/^$/ {
9233 /^0/ {
9234 s/^0 *\(.*\)$/\1/
9238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239 # Check for a 64-bit object if we didn't find anything.
9240 if test -z "$aix_libpath"; then
9241 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9244 rm -f core conftest.err conftest.$ac_objext \
9245 conftest$ac_exeext conftest.$ac_ext
9246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9249 # Warning - without using the other run time loading flags,
9250 # -berok will link without error, but may produce a broken library.
9251 no_undefined_flag=' ${wl}-bernotok'
9252 allow_undefined_flag=' ${wl}-berok'
9253 if test "$with_gnu_ld" = yes; then
9254 # We only use this code for GNU lds that support --whole-archive.
9255 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9256 else
9257 # Exported symbols can be pulled into shared objects from archives
9258 whole_archive_flag_spec='$convenience'
9260 archive_cmds_need_lc=yes
9261 # This is similar to how AIX traditionally builds its shared libraries.
9262 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'
9267 amigaos*)
9268 case $host_cpu in
9269 powerpc)
9270 # see comment about AmigaOS4 .so support
9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 archive_expsym_cmds=''
9274 m68k)
9275 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)'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9279 esac
9282 bsdi[45]*)
9283 export_dynamic_flag_spec=-rdynamic
9286 cygwin* | mingw* | pw32* | cegcc*)
9287 # When not using gcc, we currently assume that we are using
9288 # Microsoft Visual C++.
9289 # hardcode_libdir_flag_spec is actually meaningless, as there is
9290 # no search path for DLLs.
9291 hardcode_libdir_flag_spec=' '
9292 allow_undefined_flag=unsupported
9293 # Tell ltmain to make .lib files, not .a files.
9294 libext=lib
9295 # Tell ltmain to make .dll files, not .so files.
9296 shrext_cmds=".dll"
9297 # FIXME: Setting linknames here is a bad hack.
9298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9299 # The linker will automatically build a .lib file if we build a DLL.
9300 old_archive_from_new_cmds='true'
9301 # FIXME: Should let the user specify the lib program.
9302 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9303 fix_srcfile_path='`cygpath -w "$srcfile"`'
9304 enable_shared_with_static_runtimes=yes
9307 darwin* | rhapsody*)
9310 archive_cmds_need_lc=no
9311 hardcode_direct=no
9312 hardcode_automatic=yes
9313 hardcode_shlibpath_var=unsupported
9314 if test "$lt_cv_ld_force_load" = "yes"; then
9315 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\"`'
9316 else
9317 whole_archive_flag_spec=''
9319 link_all_deplibs=yes
9320 allow_undefined_flag="$_lt_dar_allow_undefined"
9321 case $cc_basename in
9322 ifort*) _lt_dar_can_shared=yes ;;
9323 *) _lt_dar_can_shared=$GCC ;;
9324 esac
9325 if test "$_lt_dar_can_shared" = "yes"; then
9326 output_verbose_link_cmd=func_echo_all
9327 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9328 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9329 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}"
9330 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}"
9332 else
9333 ld_shlibs=no
9338 dgux*)
9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_shlibpath_var=no
9344 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9345 # support. Future versions do this automatically, but an explicit c++rt0.o
9346 # does not break anything, and helps significantly (at the cost of a little
9347 # extra space).
9348 freebsd2.2*)
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_direct=yes
9352 hardcode_shlibpath_var=no
9355 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9356 freebsd2*)
9357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_direct=yes
9359 hardcode_minus_L=yes
9360 hardcode_shlibpath_var=no
9363 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9364 freebsd* | dragonfly*)
9365 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9366 hardcode_libdir_flag_spec='-R$libdir'
9367 hardcode_direct=yes
9368 hardcode_shlibpath_var=no
9371 hpux9*)
9372 if test "$GCC" = yes; then
9373 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'
9374 else
9375 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'
9377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9378 hardcode_libdir_separator=:
9379 hardcode_direct=yes
9381 # hardcode_minus_L: Not really in the search PATH,
9382 # but as the default location of the library.
9383 hardcode_minus_L=yes
9384 export_dynamic_flag_spec='${wl}-E'
9387 hpux10*)
9388 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9389 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9390 else
9391 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9393 if test "$with_gnu_ld" = no; then
9394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9395 hardcode_libdir_flag_spec_ld='+b $libdir'
9396 hardcode_libdir_separator=:
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 export_dynamic_flag_spec='${wl}-E'
9400 # hardcode_minus_L: Not really in the search PATH,
9401 # but as the default location of the library.
9402 hardcode_minus_L=yes
9406 hpux11*)
9407 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9408 case $host_cpu in
9409 hppa*64*)
9410 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 ia64*)
9413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418 esac
9419 else
9420 case $host_cpu in
9421 hppa*64*)
9422 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9424 ia64*)
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9429 # Older versions of the 11.00 compiler do not understand -b yet
9430 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9432 $as_echo_n "checking if $CC understands -b... " >&6; }
9433 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 lt_cv_prog_compiler__b=no
9437 save_LDFLAGS="$LDFLAGS"
9438 LDFLAGS="$LDFLAGS -b"
9439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9441 # The linker can only warn and ignore the option if not recognized
9442 # So say no if there are warnings
9443 if test -s conftest.err; then
9444 # Append any errors to the config.log.
9445 cat conftest.err 1>&5
9446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if diff conftest.exp conftest.er2 >/dev/null; then
9449 lt_cv_prog_compiler__b=yes
9451 else
9452 lt_cv_prog_compiler__b=yes
9455 $RM -r conftest*
9456 LDFLAGS="$save_LDFLAGS"
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9460 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9462 if test x"$lt_cv_prog_compiler__b" = xyes; then
9463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9464 else
9465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9469 esac
9471 if test "$with_gnu_ld" = no; then
9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_separator=:
9475 case $host_cpu in
9476 hppa*64*|ia64*)
9477 hardcode_direct=no
9478 hardcode_shlibpath_var=no
9481 hardcode_direct=yes
9482 hardcode_direct_absolute=yes
9483 export_dynamic_flag_spec='${wl}-E'
9485 # hardcode_minus_L: Not really in the search PATH,
9486 # but as the default location of the library.
9487 hardcode_minus_L=yes
9489 esac
9493 irix5* | irix6* | nonstopux*)
9494 if test "$GCC" = yes; then
9495 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'
9496 # Try to use the -exported_symbol ld option, if it does not
9497 # work, assume that -exports_file does not work either and
9498 # implicitly export all symbols.
9499 save_LDFLAGS="$LDFLAGS"
9500 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 int foo(void) {}
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 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'
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LDFLAGS="$save_LDFLAGS"
9512 else
9513 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'
9514 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'
9516 archive_cmds_need_lc='no'
9517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518 hardcode_libdir_separator=:
9519 inherit_rpath=yes
9520 link_all_deplibs=yes
9523 netbsd*)
9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9526 else
9527 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9529 hardcode_libdir_flag_spec='-R$libdir'
9530 hardcode_direct=yes
9531 hardcode_shlibpath_var=no
9534 newsos6)
9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_direct=yes
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 hardcode_libdir_separator=:
9539 hardcode_shlibpath_var=no
9542 *nto* | *qnx*)
9545 openbsd*)
9546 if test -f /usr/libexec/ld.so; then
9547 hardcode_direct=yes
9548 hardcode_shlibpath_var=no
9549 hardcode_direct_absolute=yes
9550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9554 export_dynamic_flag_spec='${wl}-E'
9555 else
9556 case $host_os in
9557 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_libdir_flag_spec='-R$libdir'
9562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9565 esac
9567 else
9568 ld_shlibs=no
9572 os2*)
9573 hardcode_libdir_flag_spec='-L$libdir'
9574 hardcode_minus_L=yes
9575 allow_undefined_flag=unsupported
9576 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'
9577 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9580 osf3*)
9581 if test "$GCC" = yes; then
9582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583 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'
9584 else
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9588 archive_cmds_need_lc='no'
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 hardcode_libdir_separator=:
9593 osf4* | osf5*) # as osf3* with the addition of -msym flag
9594 if test "$GCC" = yes; then
9595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596 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'
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598 else
9599 allow_undefined_flag=' -expect_unresolved \*'
9600 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'
9601 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~
9602 $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'
9604 # Both c and cxx compiler support -rpath directly
9605 hardcode_libdir_flag_spec='-rpath $libdir'
9607 archive_cmds_need_lc='no'
9608 hardcode_libdir_separator=:
9611 solaris*)
9612 no_undefined_flag=' -z defs'
9613 if test "$GCC" = yes; then
9614 wlarc='${wl}'
9615 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 else
9619 case `$CC -V 2>&1` in
9620 *"Compilers 5.0"*)
9621 wlarc=''
9622 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9627 wlarc='${wl}'
9628 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9630 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9632 esac
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_shlibpath_var=no
9636 case $host_os in
9637 solaris2.[0-5] | solaris2.[0-5].*) ;;
9639 # The compiler driver will combine and reorder linker options,
9640 # but understands `-z linker_flag'. GCC discards it without `$wl',
9641 # but is careful enough not to reorder.
9642 # Supported since Solaris 2.6 (maybe 2.5.1?)
9643 if test "$GCC" = yes; then
9644 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9645 else
9646 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9649 esac
9650 link_all_deplibs=yes
9653 sunos4*)
9654 if test "x$host_vendor" = xsequent; then
9655 # Use $CC to link under sequent, because it throws in some extra .o
9656 # files that make .init and .fini sections work.
9657 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9658 else
9659 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_direct=yes
9663 hardcode_minus_L=yes
9664 hardcode_shlibpath_var=no
9667 sysv4)
9668 case $host_vendor in
9669 sni)
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_direct=yes # is this really true???
9673 siemens)
9674 ## LD is ld it makes a PLAMLIB
9675 ## CC just makes a GrossModule.
9676 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9677 reload_cmds='$CC -r -o $output$reload_objs'
9678 hardcode_direct=no
9680 motorola)
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9684 esac
9685 runpath_var='LD_RUN_PATH'
9686 hardcode_shlibpath_var=no
9689 sysv4.3*)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_shlibpath_var=no
9692 export_dynamic_flag_spec='-Bexport'
9695 sysv4*MP*)
9696 if test -d /usr/nec; then
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_shlibpath_var=no
9699 runpath_var=LD_RUN_PATH
9700 hardcode_runpath_var=yes
9701 ld_shlibs=yes
9705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9706 no_undefined_flag='${wl}-z,text'
9707 archive_cmds_need_lc=no
9708 hardcode_shlibpath_var=no
9709 runpath_var='LD_RUN_PATH'
9711 if test "$GCC" = yes; then
9712 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 else
9715 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 sysv5* | sco3.2v5* | sco5v6*)
9721 # Note: We can NOT use -z defs as we might desire, because we do not
9722 # link with -lc, and that would cause any symbols used from libc to
9723 # always be unresolved, which means just about no library would
9724 # ever link correctly. If we're not using GNU ld we use -z text
9725 # though, which does catch some bad symbols but isn't as heavy-handed
9726 # as -z defs.
9727 no_undefined_flag='${wl}-z,text'
9728 allow_undefined_flag='${wl}-z,nodefs'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9732 hardcode_libdir_separator=':'
9733 link_all_deplibs=yes
9734 export_dynamic_flag_spec='${wl}-Bexport'
9735 runpath_var='LD_RUN_PATH'
9737 if test "$GCC" = yes; then
9738 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 else
9741 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 uts4*)
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_libdir_flag_spec='-L$libdir'
9749 hardcode_shlibpath_var=no
9753 ld_shlibs=no
9755 esac
9757 if test x$host_vendor = xsni; then
9758 case $host in
9759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9760 export_dynamic_flag_spec='${wl}-Blargedynsym'
9762 esac
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9767 $as_echo "$ld_shlibs" >&6; }
9768 test "$ld_shlibs" = no && can_build_shared=no
9770 with_gnu_ld=$with_gnu_ld
9787 # Do we need to explicitly link libc?
9789 case "x$archive_cmds_need_lc" in
9790 x|xyes)
9791 # Assume -lc should be added
9792 archive_cmds_need_lc=yes
9794 if test "$enable_shared" = yes && test "$GCC" = yes; then
9795 case $archive_cmds in
9796 *'~'*)
9797 # FIXME: we may have to deal with multi-command sequences.
9799 '$CC '*)
9800 # Test whether the compiler implicitly links with -lc since on some
9801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9802 # to ld, don't add -lc before -lgcc.
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9804 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9805 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 $RM conftest*
9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9812 (eval $ac_compile) 2>&5
9813 ac_status=$?
9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; } 2>conftest.err; then
9816 soname=conftest
9817 lib=conftest
9818 libobjs=conftest.$ac_objext
9819 deplibs=
9820 wl=$lt_prog_compiler_wl
9821 pic_flag=$lt_prog_compiler_pic
9822 compiler_flags=-v
9823 linker_flags=-v
9824 verstring=
9825 output_objdir=.
9826 libname=conftest
9827 lt_save_allow_undefined_flag=$allow_undefined_flag
9828 allow_undefined_flag=
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9830 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9831 ac_status=$?
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; }
9834 then
9835 lt_cv_archive_cmds_need_lc=no
9836 else
9837 lt_cv_archive_cmds_need_lc=yes
9839 allow_undefined_flag=$lt_save_allow_undefined_flag
9840 else
9841 cat conftest.err 1>&5
9843 $RM conftest*
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9847 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9848 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9850 esac
9853 esac
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10012 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10014 if test "$GCC" = yes; then
10015 case $host_os in
10016 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10017 *) lt_awk_arg="/^libraries:/" ;;
10018 esac
10019 case $host_os in
10020 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10021 *) lt_sed_strip_eq="s,=/,/,g" ;;
10022 esac
10023 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10024 case $lt_search_path_spec in
10025 *\;*)
10026 # if the path contains ";" then we assume it to be the separator
10027 # otherwise default to the standard path separator (i.e. ":") - it is
10028 # assumed that no part of a normal pathname contains ";" but that should
10029 # okay in the real world where ";" in dirpaths is itself problematic.
10030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10035 esac
10036 # Ok, now we have the path, separated by spaces, we can step through it
10037 # and add multilib dir if necessary.
10038 lt_tmp_lt_search_path_spec=
10039 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10040 for lt_sys_path in $lt_search_path_spec; do
10041 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10043 else
10044 test -d "$lt_sys_path" && \
10045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10047 done
10048 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10049 BEGIN {RS=" "; FS="/|\n";} {
10050 lt_foo="";
10051 lt_count=0;
10052 for (lt_i = NF; lt_i > 0; lt_i--) {
10053 if ($lt_i != "" && $lt_i != ".") {
10054 if ($lt_i == "..") {
10055 lt_count++;
10056 } else {
10057 if (lt_count == 0) {
10058 lt_foo="/" $lt_i lt_foo;
10059 } else {
10060 lt_count--;
10065 if (lt_foo != "") { lt_freq[lt_foo]++; }
10066 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10068 # AWK program above erroneously prepends '/' to C:/dos/paths
10069 # for these hosts.
10070 case $host_os in
10071 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10072 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10073 esac
10074 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10075 else
10076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10078 library_names_spec=
10079 libname_spec='lib$name'
10080 soname_spec=
10081 shrext_cmds=".so"
10082 postinstall_cmds=
10083 postuninstall_cmds=
10084 finish_cmds=
10085 finish_eval=
10086 shlibpath_var=
10087 shlibpath_overrides_runpath=unknown
10088 version_type=none
10089 dynamic_linker="$host_os ld.so"
10090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10091 need_lib_prefix=unknown
10092 hardcode_into_libs=no
10094 # when you set need_version to no, make sure it does not cause -set_version
10095 # flags to be left without arguments
10096 need_version=unknown
10098 case $host_os in
10099 aix3*)
10100 version_type=linux
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10102 shlibpath_var=LIBPATH
10104 # AIX 3 has no versioning support, so we append a major version to the name.
10105 soname_spec='${libname}${release}${shared_ext}$major'
10108 aix[4-9]*)
10109 version_type=linux
10110 need_lib_prefix=no
10111 need_version=no
10112 hardcode_into_libs=yes
10113 if test "$host_cpu" = ia64; then
10114 # AIX 5 supports IA64
10115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 else
10118 # With GCC up to 2.95.x, collect2 would create an import file
10119 # for dependence libraries. The import file would start with
10120 # the line `#! .'. This would cause the generated library to
10121 # depend on `.', always an invalid library. This was fixed in
10122 # development snapshots of GCC prior to 3.0.
10123 case $host_os in
10124 aix4 | aix4.[01] | aix4.[01].*)
10125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10126 echo ' yes '
10127 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10129 else
10130 can_build_shared=no
10133 esac
10134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10135 # soname into executable. Probably we can add versioning support to
10136 # collect2, so additional links can be useful in future.
10137 if test "$aix_use_runtimelinking" = yes; then
10138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10139 # instead of lib<name>.a to let people know that these are not
10140 # typical AIX shared libraries.
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 else
10143 # We preserve .a as extension for shared libraries through AIX4.2
10144 # and later when we are not doing run time linking.
10145 library_names_spec='${libname}${release}.a $libname.a'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10148 shlibpath_var=LIBPATH
10152 amigaos*)
10153 case $host_cpu in
10154 powerpc)
10155 # Since July 2007 AmigaOS4 officially supports .so libraries.
10156 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 m68k)
10160 library_names_spec='$libname.ixlibrary $libname.a'
10161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10162 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'
10164 esac
10167 beos*)
10168 library_names_spec='${libname}${shared_ext}'
10169 dynamic_linker="$host_os ld.so"
10170 shlibpath_var=LIBRARY_PATH
10173 bsdi[45]*)
10174 version_type=linux
10175 need_version=no
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10182 # the default ld.so.conf also contains /usr/contrib/lib and
10183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10184 # libtool to hard-code these into programs
10187 cygwin* | mingw* | pw32* | cegcc*)
10188 version_type=windows
10189 shrext_cmds=".dll"
10190 need_version=no
10191 need_lib_prefix=no
10193 case $GCC,$host_os in
10194 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10195 library_names_spec='$libname.dll.a'
10196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10197 postinstall_cmds='base_file=`basename \${file}`~
10198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10199 dldir=$destdir/`dirname \$dlpath`~
10200 test -d \$dldir || mkdir -p \$dldir~
10201 $install_prog $dir/$dlname \$dldir/$dlname~
10202 chmod a+x \$dldir/$dlname~
10203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10207 dlpath=$dir/\$dldll~
10208 $RM \$dlpath'
10209 shlibpath_overrides_runpath=yes
10211 case $host_os in
10212 cygwin*)
10213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10218 mingw* | cegcc*)
10219 # MinGW DLLs use traditional 'lib' prefix
10220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10222 pw32*)
10223 # pw32 DLLs use 'pw' prefix rather than 'lib'
10224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10226 esac
10230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10232 esac
10233 dynamic_linker='Win32 ld.exe'
10234 # FIXME: first we should search . and the directory the executable is in
10235 shlibpath_var=PATH
10238 darwin* | rhapsody*)
10239 dynamic_linker="$host_os dyld"
10240 version_type=darwin
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10244 soname_spec='${libname}${release}${major}$shared_ext'
10245 shlibpath_overrides_runpath=yes
10246 shlibpath_var=DYLD_LIBRARY_PATH
10247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10249 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10253 dgux*)
10254 version_type=linux
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 shlibpath_var=LD_LIBRARY_PATH
10262 freebsd* | dragonfly*)
10263 # DragonFly does not have aout. When/if they implement a new
10264 # versioning mechanism, adjust this.
10265 if test -x /usr/bin/objformat; then
10266 objformat=`/usr/bin/objformat`
10267 else
10268 case $host_os in
10269 freebsd[123]*) objformat=aout ;;
10270 *) objformat=elf ;;
10271 esac
10273 version_type=freebsd-$objformat
10274 case $version_type in
10275 freebsd-elf*)
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10277 need_version=no
10278 need_lib_prefix=no
10280 freebsd-*)
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10282 need_version=yes
10284 esac
10285 shlibpath_var=LD_LIBRARY_PATH
10286 case $host_os in
10287 freebsd2*)
10288 shlibpath_overrides_runpath=yes
10290 freebsd3.[01]* | freebsdelf3.[01]*)
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10296 shlibpath_overrides_runpath=no
10297 hardcode_into_libs=yes
10299 *) # from 4.6 on, and DragonFly
10300 shlibpath_overrides_runpath=yes
10301 hardcode_into_libs=yes
10303 esac
10306 gnu*)
10307 version_type=linux
10308 need_lib_prefix=no
10309 need_version=no
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 hardcode_into_libs=yes
10316 haiku*)
10317 version_type=linux
10318 need_lib_prefix=no
10319 need_version=no
10320 dynamic_linker="$host_os runtime_loader"
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10325 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10326 hardcode_into_libs=yes
10329 hpux9* | hpux10* | hpux11*)
10330 # Give a soname corresponding to the major version so that dld.sl refuses to
10331 # link against other versions.
10332 version_type=sunos
10333 need_lib_prefix=no
10334 need_version=no
10335 case $host_cpu in
10336 ia64*)
10337 shrext_cmds='.so'
10338 hardcode_into_libs=yes
10339 dynamic_linker="$host_os dld.so"
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 if test "X$HPUX_IA64_MODE" = X32; then
10345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10346 else
10347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10351 hppa*64*)
10352 shrext_cmds='.sl'
10353 hardcode_into_libs=yes
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10363 shrext_cmds='.sl'
10364 dynamic_linker="$host_os dld.sl"
10365 shlibpath_var=SHLIB_PATH
10366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10370 esac
10371 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10372 postinstall_cmds='chmod 555 $lib'
10373 # or fails outright, so override atomically:
10374 install_override_mode=555
10377 interix[3-9]*)
10378 version_type=linux
10379 need_lib_prefix=no
10380 need_version=no
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=no
10386 hardcode_into_libs=yes
10389 irix5* | irix6* | nonstopux*)
10390 case $host_os in
10391 nonstopux*) version_type=nonstopux ;;
10393 if test "$lt_cv_prog_gnu_ld" = yes; then
10394 version_type=linux
10395 else
10396 version_type=irix
10397 fi ;;
10398 esac
10399 need_lib_prefix=no
10400 need_version=no
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10403 case $host_os in
10404 irix5* | nonstopux*)
10405 libsuff= shlibsuff=
10408 case $LD in # libtool.m4 will add one of these switches to LD
10409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10410 libsuff= shlibsuff= libmagic=32-bit;;
10411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10412 libsuff=32 shlibsuff=N32 libmagic=N32;;
10413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10415 *) libsuff= shlibsuff= libmagic=never-match;;
10416 esac
10418 esac
10419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10420 shlibpath_overrides_runpath=no
10421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10423 hardcode_into_libs=yes
10426 # No shared lib support for Linux oldld, aout, or coff.
10427 linux*oldld* | linux*aout* | linux*coff*)
10428 dynamic_linker=no
10431 # This must be Linux ELF.
10432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10433 version_type=linux
10434 need_lib_prefix=no
10435 need_version=no
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=no
10442 # Some binutils ld are patched to set DT_RUNPATH
10443 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 lt_cv_shlibpath_overrides_runpath=no
10447 save_LDFLAGS=$LDFLAGS
10448 save_libdir=$libdir
10449 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10450 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10455 main ()
10459 return 0;
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10464 lt_cv_shlibpath_overrides_runpath=yes
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 LDFLAGS=$save_LDFLAGS
10470 libdir=$save_libdir
10474 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10476 # This implies no fast_install, which is unacceptable.
10477 # Some rework will be needed to allow for fast_install
10478 # before this can be enabled.
10479 hardcode_into_libs=yes
10481 # Append ld.so.conf contents to the search path
10482 if test -f /etc/ld.so.conf; then
10483 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' ' '`
10484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10487 # We used to test for /lib/ld.so.1 and disable shared libraries on
10488 # powerpc, because MkLinux only supported shared libraries with the
10489 # GNU dynamic linker. Since this was broken with cross compilers,
10490 # most powerpc-linux boxes support dynamic linking these days and
10491 # people can always --disable-shared, the test was removed, and we
10492 # assume the GNU/Linux dynamic linker is in use.
10493 dynamic_linker='GNU/Linux ld.so'
10496 netbsd*)
10497 version_type=sunos
10498 need_lib_prefix=no
10499 need_version=no
10500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10503 dynamic_linker='NetBSD (a.out) ld.so'
10504 else
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 dynamic_linker='NetBSD ld.elf_so'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 shlibpath_overrides_runpath=yes
10511 hardcode_into_libs=yes
10514 newsos6)
10515 version_type=linux
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes
10521 *nto* | *qnx*)
10522 version_type=qnx
10523 need_lib_prefix=no
10524 need_version=no
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=no
10529 hardcode_into_libs=yes
10530 dynamic_linker='ldqnx.so'
10533 openbsd*)
10534 version_type=sunos
10535 sys_lib_dlsearch_path_spec="/usr/lib"
10536 need_lib_prefix=no
10537 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10538 case $host_os in
10539 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10540 *) need_version=no ;;
10541 esac
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10546 case $host_os in
10547 openbsd2.[89] | openbsd2.[89].*)
10548 shlibpath_overrides_runpath=no
10551 shlibpath_overrides_runpath=yes
10553 esac
10554 else
10555 shlibpath_overrides_runpath=yes
10559 os2*)
10560 libname_spec='$name'
10561 shrext_cmds=".dll"
10562 need_lib_prefix=no
10563 library_names_spec='$libname${shared_ext} $libname.a'
10564 dynamic_linker='OS/2 ld.exe'
10565 shlibpath_var=LIBPATH
10568 osf3* | osf4* | osf5*)
10569 version_type=osf
10570 need_lib_prefix=no
10571 need_version=no
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10576 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10579 rdos*)
10580 dynamic_linker=no
10583 solaris*)
10584 version_type=linux
10585 need_lib_prefix=no
10586 need_version=no
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=yes
10591 hardcode_into_libs=yes
10592 # ldd complains unless libraries are executable
10593 postinstall_cmds='chmod +x $lib'
10596 sunos4*)
10597 version_type=sunos
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=yes
10602 if test "$with_gnu_ld" = yes; then
10603 need_lib_prefix=no
10605 need_version=yes
10608 sysv4 | sysv4.3*)
10609 version_type=linux
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 case $host_vendor in
10614 sni)
10615 shlibpath_overrides_runpath=no
10616 need_lib_prefix=no
10617 runpath_var=LD_RUN_PATH
10619 siemens)
10620 need_lib_prefix=no
10622 motorola)
10623 need_lib_prefix=no
10624 need_version=no
10625 shlibpath_overrides_runpath=no
10626 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10628 esac
10631 sysv4*MP*)
10632 if test -d /usr/nec ;then
10633 version_type=linux
10634 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10635 soname_spec='$libname${shared_ext}.$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10641 version_type=freebsd-elf
10642 need_lib_prefix=no
10643 need_version=no
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=yes
10648 hardcode_into_libs=yes
10649 if test "$with_gnu_ld" = yes; then
10650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10651 else
10652 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10653 case $host_os in
10654 sco3.2v5*)
10655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10657 esac
10659 sys_lib_dlsearch_path_spec='/usr/lib'
10662 tpf*)
10663 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10664 version_type=linux
10665 need_lib_prefix=no
10666 need_version=no
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 shlibpath_overrides_runpath=no
10670 hardcode_into_libs=yes
10673 uts4*)
10674 version_type=linux
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10681 dynamic_linker=no
10683 esac
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10685 $as_echo "$dynamic_linker" >&6; }
10686 test "$dynamic_linker" = no && can_build_shared=no
10688 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10689 if test "$GCC" = yes; then
10690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10693 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10694 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10696 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10697 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10792 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10793 hardcode_action=
10794 if test -n "$hardcode_libdir_flag_spec" ||
10795 test -n "$runpath_var" ||
10796 test "X$hardcode_automatic" = "Xyes" ; then
10798 # We can hardcode non-existent directories.
10799 if test "$hardcode_direct" != no &&
10800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10801 # have to relink, otherwise we might link with an installed library
10802 # when we should be linking with a yet-to-be-installed one
10803 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10804 test "$hardcode_minus_L" != no; then
10805 # Linking always hardcodes the temporary library directory.
10806 hardcode_action=relink
10807 else
10808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10809 hardcode_action=immediate
10811 else
10812 # We cannot hardcode anything, or else we can only hardcode existing
10813 # directories.
10814 hardcode_action=unsupported
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10817 $as_echo "$hardcode_action" >&6; }
10819 if test "$hardcode_action" = relink ||
10820 test "$inherit_rpath" = yes; then
10821 # Fast installation is not supported
10822 enable_fast_install=no
10823 elif test "$shlibpath_overrides_runpath" = yes ||
10824 test "$enable_shared" = no; then
10825 # Fast installation is not necessary
10826 enable_fast_install=needless
10834 if test "x$enable_dlopen" != xyes; then
10835 enable_dlopen=unknown
10836 enable_dlopen_self=unknown
10837 enable_dlopen_self_static=unknown
10838 else
10839 lt_cv_dlopen=no
10840 lt_cv_dlopen_libs=
10842 case $host_os in
10843 beos*)
10844 lt_cv_dlopen="load_add_on"
10845 lt_cv_dlopen_libs=
10846 lt_cv_dlopen_self=yes
10849 mingw* | pw32* | cegcc*)
10850 lt_cv_dlopen="LoadLibrary"
10851 lt_cv_dlopen_libs=
10854 cygwin*)
10855 lt_cv_dlopen="dlopen"
10856 lt_cv_dlopen_libs=
10859 darwin*)
10860 # if libdl is installed we need to link against it
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 ac_check_lib_save_LIBS=$LIBS
10867 LIBS="-ldl $LIBS"
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 char dlopen ();
10879 main ()
10881 return dlopen ();
10883 return 0;
10885 _ACEOF
10886 if ac_fn_c_try_link "$LINENO"; then :
10887 ac_cv_lib_dl_dlopen=yes
10888 else
10889 ac_cv_lib_dl_dlopen=no
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10897 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10899 else
10901 lt_cv_dlopen="dyld"
10902 lt_cv_dlopen_libs=
10903 lt_cv_dlopen_self=yes
10910 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10911 if test "x$ac_cv_func_shl_load" = x""yes; then :
10912 lt_cv_dlopen="shl_load"
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10915 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10916 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-ldld $LIBS"
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10924 /* Override any GCC internal prototype to avoid an error.
10925 Use char because int might match the return type of a GCC
10926 builtin and then its argument prototype would still apply. */
10927 #ifdef __cplusplus
10928 extern "C"
10929 #endif
10930 char shl_load ();
10932 main ()
10934 return shl_load ();
10936 return 0;
10938 _ACEOF
10939 if ac_fn_c_try_link "$LINENO"; then :
10940 ac_cv_lib_dld_shl_load=yes
10941 else
10942 ac_cv_lib_dld_shl_load=no
10944 rm -f core conftest.err conftest.$ac_objext \
10945 conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10949 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10950 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10951 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10952 else
10953 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10954 if test "x$ac_cv_func_dlopen" = x""yes; then :
10955 lt_cv_dlopen="dlopen"
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10958 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 ac_check_lib_save_LIBS=$LIBS
10963 LIBS="-ldl $LIBS"
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10967 /* Override any GCC internal prototype to avoid an error.
10968 Use char because int might match the return type of a GCC
10969 builtin and then its argument prototype would still apply. */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 char dlopen ();
10975 main ()
10977 return dlopen ();
10979 return 0;
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983 ac_cv_lib_dl_dlopen=yes
10984 else
10985 ac_cv_lib_dl_dlopen=no
10987 rm -f core conftest.err conftest.$ac_objext \
10988 conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10992 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10993 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10997 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-lsvld $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char dlopen ();
11014 main ()
11016 return dlopen ();
11018 return 0;
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_svld_dlopen=yes
11023 else
11024 ac_cv_lib_svld_dlopen=no
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11031 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11032 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11036 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11037 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-ldld $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char dld_link ();
11053 main ()
11055 return dld_link ();
11057 return 0;
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_dld_dld_link=yes
11062 else
11063 ac_cv_lib_dld_dld_link=no
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11070 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11071 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11072 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11091 esac
11093 if test "x$lt_cv_dlopen" != xno; then
11094 enable_dlopen=yes
11095 else
11096 enable_dlopen=no
11099 case $lt_cv_dlopen in
11100 dlopen)
11101 save_CPPFLAGS="$CPPFLAGS"
11102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11104 save_LDFLAGS="$LDFLAGS"
11105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11107 save_LIBS="$LIBS"
11108 LIBS="$lt_cv_dlopen_libs $LIBS"
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11111 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11112 if test "${lt_cv_dlopen_self+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 if test "$cross_compiling" = yes; then :
11116 lt_cv_dlopen_self=cross
11117 else
11118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11119 lt_status=$lt_dlunknown
11120 cat > conftest.$ac_ext <<_LT_EOF
11121 #line 11121 "configure"
11122 #include "confdefs.h"
11124 #if HAVE_DLFCN_H
11125 #include <dlfcn.h>
11126 #endif
11128 #include <stdio.h>
11130 #ifdef RTLD_GLOBAL
11131 # define LT_DLGLOBAL RTLD_GLOBAL
11132 #else
11133 # ifdef DL_GLOBAL
11134 # define LT_DLGLOBAL DL_GLOBAL
11135 # else
11136 # define LT_DLGLOBAL 0
11137 # endif
11138 #endif
11140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11141 find out it does not work in some platform. */
11142 #ifndef LT_DLLAZY_OR_NOW
11143 # ifdef RTLD_LAZY
11144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11145 # else
11146 # ifdef DL_LAZY
11147 # define LT_DLLAZY_OR_NOW DL_LAZY
11148 # else
11149 # ifdef RTLD_NOW
11150 # define LT_DLLAZY_OR_NOW RTLD_NOW
11151 # else
11152 # ifdef DL_NOW
11153 # define LT_DLLAZY_OR_NOW DL_NOW
11154 # else
11155 # define LT_DLLAZY_OR_NOW 0
11156 # endif
11157 # endif
11158 # endif
11159 # endif
11160 #endif
11162 /* When -fvisbility=hidden is used, assume the code has been annotated
11163 correspondingly for the symbols needed. */
11164 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11165 void fnord () __attribute__((visibility("default")));
11166 #endif
11168 void fnord () { int i=42; }
11169 int main ()
11171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11172 int status = $lt_dlunknown;
11174 if (self)
11176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11177 else
11179 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11180 else puts (dlerror ());
11182 /* dlclose (self); */
11184 else
11185 puts (dlerror ());
11187 return status;
11189 _LT_EOF
11190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11191 (eval $ac_link) 2>&5
11192 ac_status=$?
11193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11194 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11195 (./conftest; exit; ) >&5 2>/dev/null
11196 lt_status=$?
11197 case x$lt_status in
11198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11201 esac
11202 else :
11203 # compilation failed
11204 lt_cv_dlopen_self=no
11207 rm -fr conftest*
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11212 $as_echo "$lt_cv_dlopen_self" >&6; }
11214 if test "x$lt_cv_dlopen_self" = xyes; then
11215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11217 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self_static=cross
11223 else
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11230 #if HAVE_DLFCN_H
11231 #include <dlfcn.h>
11232 #endif
11234 #include <stdio.h>
11236 #ifdef RTLD_GLOBAL
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11238 #else
11239 # ifdef DL_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11241 # else
11242 # define LT_DLGLOBAL 0
11243 # endif
11244 #endif
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11249 # ifdef RTLD_LAZY
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11251 # else
11252 # ifdef DL_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11254 # else
11255 # ifdef RTLD_NOW
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11257 # else
11258 # ifdef DL_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11260 # else
11261 # define LT_DLLAZY_OR_NOW 0
11262 # endif
11263 # endif
11264 # endif
11265 # endif
11266 #endif
11268 /* When -fvisbility=hidden is used, assume the code has been annotated
11269 correspondingly for the symbols needed. */
11270 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11271 void fnord () __attribute__((visibility("default")));
11272 #endif
11274 void fnord () { int i=42; }
11275 int main ()
11277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11278 int status = $lt_dlunknown;
11280 if (self)
11282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11283 else
11285 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11286 else puts (dlerror ());
11288 /* dlclose (self); */
11290 else
11291 puts (dlerror ());
11293 return status;
11295 _LT_EOF
11296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11297 (eval $ac_link) 2>&5
11298 ac_status=$?
11299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11300 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11301 (./conftest; exit; ) >&5 2>/dev/null
11302 lt_status=$?
11303 case x$lt_status in
11304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11306 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11307 esac
11308 else :
11309 # compilation failed
11310 lt_cv_dlopen_self_static=no
11313 rm -fr conftest*
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11318 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11321 CPPFLAGS="$save_CPPFLAGS"
11322 LDFLAGS="$save_LDFLAGS"
11323 LIBS="$save_LIBS"
11325 esac
11327 case $lt_cv_dlopen_self in
11328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11329 *) enable_dlopen_self=unknown ;;
11330 esac
11332 case $lt_cv_dlopen_self_static in
11333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11334 *) enable_dlopen_self_static=unknown ;;
11335 esac
11354 striplib=
11355 old_striplib=
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11357 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11358 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11359 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11360 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11362 $as_echo "yes" >&6; }
11363 else
11364 # FIXME - insert some real tests, host_os isn't really good enough
11365 case $host_os in
11366 darwin*)
11367 if test -n "$STRIP" ; then
11368 striplib="$STRIP -x"
11369 old_striplib="$STRIP -S"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371 $as_echo "yes" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11381 esac
11395 # Report which library types will actually be built
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11397 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11399 $as_echo "$can_build_shared" >&6; }
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11402 $as_echo_n "checking whether to build shared libraries... " >&6; }
11403 test "$can_build_shared" = "no" && enable_shared=no
11405 # On AIX, shared libraries and static libraries use the same namespace, and
11406 # are all built from PIC.
11407 case $host_os in
11408 aix3*)
11409 test "$enable_shared" = yes && enable_static=no
11410 if test -n "$RANLIB"; then
11411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11412 postinstall_cmds='$RANLIB $lib'
11416 aix[4-9]*)
11417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11418 test "$enable_shared" = yes && enable_static=no
11421 esac
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11423 $as_echo "$enable_shared" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11426 $as_echo_n "checking whether to build static libraries... " >&6; }
11427 # Make sure either enable_shared or enable_static is yes.
11428 test "$enable_shared" = yes || enable_static=yes
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11430 $as_echo "$enable_static" >&6; }
11436 ac_ext=c
11437 ac_cpp='$CPP $CPPFLAGS'
11438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11442 CC="$lt_save_CC"
11456 # Source file extension for Go test sources.
11457 ac_ext=go
11459 # Object file extension for compiled Go test sources.
11460 objext=o
11461 objext_GO=$objext
11463 # Code to be used in simple compile tests
11464 lt_simple_compile_test_code="package main; func main() { }"
11466 # Code to be used in simple link tests
11467 lt_simple_link_test_code='package main; func main() { }'
11469 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11476 # If no C compiler was specified, use CC.
11477 LTCC=${LTCC-"$CC"}
11479 # If no C compiler flags were specified, use CFLAGS.
11480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11482 # Allow CC to be a program name with arguments.
11483 compiler=$CC
11486 # save warnings/boilerplate of simple test code
11487 ac_outfile=conftest.$ac_objext
11488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11490 _lt_compiler_boilerplate=`cat conftest.err`
11491 $RM conftest*
11493 ac_outfile=conftest.$ac_objext
11494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11496 _lt_linker_boilerplate=`cat conftest.err`
11497 $RM -r conftest*
11500 # Allow CC to be a program name with arguments.
11501 lt_save_CC="$CC"
11502 lt_save_GCC="$GCC"
11503 GCC=yes
11504 CC=${GOC-"gccgo"}
11505 compiler=$CC
11506 compiler_GO=$CC
11507 LD_GO="$LD"
11508 for cc_temp in $compiler""; do
11509 case $cc_temp in
11510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11512 \-*) ;;
11513 *) break;;
11514 esac
11515 done
11516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11519 # Go did not exist at the time GCC didn't implicitly link libc in.
11520 archive_cmds_need_lc_GO=no
11522 old_archive_cmds_GO=$old_archive_cmds
11524 ## CAVEAT EMPTOR:
11525 ## There is no encapsulation within the following macros, do not change
11526 ## the running order or otherwise move them around unless you know exactly
11527 ## what you are doing...
11528 if test -n "$compiler"; then
11530 lt_prog_compiler_no_builtin_flag_GO=
11532 if test "$GCC" = yes; then
11533 case $cc_basename in
11534 nvcc*)
11535 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11537 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11538 esac
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11541 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 lt_cv_prog_compiler_rtti_exceptions=no
11546 ac_outfile=conftest.$ac_objext
11547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11548 lt_compiler_flag="-fno-rtti -fno-exceptions"
11549 # Insert the option either (1) after the last *FLAGS variable, or
11550 # (2) before a word containing "conftest.", or (3) at the end.
11551 # Note that $ac_compile itself does not contain backslashes and begins
11552 # with a dollar sign (not a hyphen), so the echo should work correctly.
11553 # The option is referenced via a variable to avoid confusing sed.
11554 lt_compile=`echo "$ac_compile" | $SED \
11555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11557 -e 's:$: $lt_compiler_flag:'`
11558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11559 (eval "$lt_compile" 2>conftest.err)
11560 ac_status=$?
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 if (exit $ac_status) && test -s "$ac_outfile"; then
11564 # The compiler can only warn and ignore the option if not recognized
11565 # So say no if there are warnings other than the usual output.
11566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11569 lt_cv_prog_compiler_rtti_exceptions=yes
11572 $RM conftest*
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11576 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11578 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11579 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11580 else
11588 lt_prog_compiler_wl_GO=
11589 lt_prog_compiler_pic_GO=
11590 lt_prog_compiler_static_GO=
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11593 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11595 if test "$GCC" = yes; then
11596 lt_prog_compiler_wl_GO='-Wl,'
11597 lt_prog_compiler_static_GO='-static'
11599 case $host_os in
11600 aix*)
11601 # All AIX code is PIC.
11602 if test "$host_cpu" = ia64; then
11603 # AIX 5 now supports IA64 processor
11604 lt_prog_compiler_static_GO='-Bstatic'
11608 amigaos*)
11609 case $host_cpu in
11610 powerpc)
11611 # see comment about AmigaOS4 .so support
11612 lt_prog_compiler_pic_GO='-fPIC'
11614 m68k)
11615 # FIXME: we need at least 68020 code to build shared libraries, but
11616 # adding the `-m68020' flag to GCC prevents building anything better,
11617 # like `-m68040'.
11618 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11620 esac
11623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11624 # PIC is the default for these OSes.
11627 mingw* | cygwin* | pw32* | os2* | cegcc*)
11628 # This hack is so that the source file can tell whether it is being
11629 # built for inclusion in a dll (and should export symbols for example).
11630 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11631 # (--disable-auto-import) libraries
11632 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11635 darwin* | rhapsody*)
11636 # PIC is the default on this platform
11637 # Common symbols not allowed in MH_DYLIB files
11638 lt_prog_compiler_pic_GO='-fno-common'
11641 haiku*)
11642 # PIC is the default for Haiku.
11643 # The "-static" flag exists, but is broken.
11644 lt_prog_compiler_static_GO=
11647 hpux*)
11648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11650 # sets the default TLS model and affects inlining.
11651 case $host_cpu in
11652 hppa*64*)
11653 # +Z the default
11656 lt_prog_compiler_pic_GO='-fPIC'
11658 esac
11661 interix[3-9]*)
11662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11663 # Instead, we relocate shared libraries at runtime.
11666 msdosdjgpp*)
11667 # Just because we use GCC doesn't mean we suddenly get shared libraries
11668 # on systems that don't support them.
11669 lt_prog_compiler_can_build_shared_GO=no
11670 enable_shared=no
11673 *nto* | *qnx*)
11674 # QNX uses GNU C++, but need to define -shared option too, otherwise
11675 # it will coredump.
11676 lt_prog_compiler_pic_GO='-fPIC -shared'
11679 sysv4*MP*)
11680 if test -d /usr/nec; then
11681 lt_prog_compiler_pic_GO=-Kconform_pic
11686 lt_prog_compiler_pic_GO='-fPIC'
11688 esac
11690 case $cc_basename in
11691 nvcc*) # Cuda Compiler Driver 2.2
11692 lt_prog_compiler_wl_GO='-Xlinker '
11693 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11695 esac
11696 else
11697 # PORTME Check for flag to pass linker flags through the system compiler.
11698 case $host_os in
11699 aix*)
11700 lt_prog_compiler_wl_GO='-Wl,'
11701 if test "$host_cpu" = ia64; then
11702 # AIX 5 now supports IA64 processor
11703 lt_prog_compiler_static_GO='-Bstatic'
11704 else
11705 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11709 mingw* | cygwin* | pw32* | os2* | cegcc*)
11710 # This hack is so that the source file can tell whether it is being
11711 # built for inclusion in a dll (and should export symbols for example).
11712 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11715 hpux9* | hpux10* | hpux11*)
11716 lt_prog_compiler_wl_GO='-Wl,'
11717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11718 # not for PA HP-UX.
11719 case $host_cpu in
11720 hppa*64*|ia64*)
11721 # +Z the default
11724 lt_prog_compiler_pic_GO='+Z'
11726 esac
11727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11728 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11731 irix5* | irix6* | nonstopux*)
11732 lt_prog_compiler_wl_GO='-Wl,'
11733 # PIC (with -KPIC) is the default.
11734 lt_prog_compiler_static_GO='-non_shared'
11737 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11738 case $cc_basename in
11739 # old Intel for x86_64 which still supported -KPIC.
11740 ecc*)
11741 lt_prog_compiler_wl_GO='-Wl,'
11742 lt_prog_compiler_pic_GO='-KPIC'
11743 lt_prog_compiler_static_GO='-static'
11745 # icc used to be incompatible with GCC.
11746 # ICC 10 doesn't accept -KPIC any more.
11747 icc* | ifort*)
11748 lt_prog_compiler_wl_GO='-Wl,'
11749 lt_prog_compiler_pic_GO='-fPIC'
11750 lt_prog_compiler_static_GO='-static'
11752 # Lahey Fortran 8.1.
11753 lf95*)
11754 lt_prog_compiler_wl_GO='-Wl,'
11755 lt_prog_compiler_pic_GO='--shared'
11756 lt_prog_compiler_static_GO='--static'
11758 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11759 # Portland Group compilers (*not* the Pentium gcc compiler,
11760 # which looks to be a dead project)
11761 lt_prog_compiler_wl_GO='-Wl,'
11762 lt_prog_compiler_pic_GO='-fpic'
11763 lt_prog_compiler_static_GO='-Bstatic'
11765 ccc*)
11766 lt_prog_compiler_wl_GO='-Wl,'
11767 # All Alpha code is PIC.
11768 lt_prog_compiler_static_GO='-non_shared'
11770 xl* | bgxl* | bgf* | mpixl*)
11771 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11772 lt_prog_compiler_wl_GO='-Wl,'
11773 lt_prog_compiler_pic_GO='-qpic'
11774 lt_prog_compiler_static_GO='-qstaticlink'
11777 case `$CC -V 2>&1 | sed 5q` in
11778 *Sun\ F* | *Sun*Fortran*)
11779 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11780 lt_prog_compiler_pic_GO='-KPIC'
11781 lt_prog_compiler_static_GO='-Bstatic'
11782 lt_prog_compiler_wl_GO=''
11784 *Sun\ C*)
11785 # Sun C 5.9
11786 lt_prog_compiler_pic_GO='-KPIC'
11787 lt_prog_compiler_static_GO='-Bstatic'
11788 lt_prog_compiler_wl_GO='-Wl,'
11790 esac
11792 esac
11795 newsos6)
11796 lt_prog_compiler_pic_GO='-KPIC'
11797 lt_prog_compiler_static_GO='-Bstatic'
11800 *nto* | *qnx*)
11801 # QNX uses GNU C++, but need to define -shared option too, otherwise
11802 # it will coredump.
11803 lt_prog_compiler_pic_GO='-fPIC -shared'
11806 osf3* | osf4* | osf5*)
11807 lt_prog_compiler_wl_GO='-Wl,'
11808 # All OSF/1 code is PIC.
11809 lt_prog_compiler_static_GO='-non_shared'
11812 rdos*)
11813 lt_prog_compiler_static_GO='-non_shared'
11816 solaris*)
11817 lt_prog_compiler_pic_GO='-KPIC'
11818 lt_prog_compiler_static_GO='-Bstatic'
11819 case $cc_basename in
11820 f77* | f90* | f95*)
11821 lt_prog_compiler_wl_GO='-Qoption ld ';;
11823 lt_prog_compiler_wl_GO='-Wl,';;
11824 esac
11827 sunos4*)
11828 lt_prog_compiler_wl_GO='-Qoption ld '
11829 lt_prog_compiler_pic_GO='-PIC'
11830 lt_prog_compiler_static_GO='-Bstatic'
11833 sysv4 | sysv4.2uw2* | sysv4.3*)
11834 lt_prog_compiler_wl_GO='-Wl,'
11835 lt_prog_compiler_pic_GO='-KPIC'
11836 lt_prog_compiler_static_GO='-Bstatic'
11839 sysv4*MP*)
11840 if test -d /usr/nec ;then
11841 lt_prog_compiler_pic_GO='-Kconform_pic'
11842 lt_prog_compiler_static_GO='-Bstatic'
11846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11847 lt_prog_compiler_wl_GO='-Wl,'
11848 lt_prog_compiler_pic_GO='-KPIC'
11849 lt_prog_compiler_static_GO='-Bstatic'
11852 unicos*)
11853 lt_prog_compiler_wl_GO='-Wl,'
11854 lt_prog_compiler_can_build_shared_GO=no
11857 uts4*)
11858 lt_prog_compiler_pic_GO='-pic'
11859 lt_prog_compiler_static_GO='-Bstatic'
11863 lt_prog_compiler_can_build_shared_GO=no
11865 esac
11868 case $host_os in
11869 # For platforms which do not support PIC, -DPIC is meaningless:
11870 *djgpp*)
11871 lt_prog_compiler_pic_GO=
11874 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11876 esac
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11878 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11883 # Check to make sure the PIC flag actually works.
11885 if test -n "$lt_prog_compiler_pic_GO"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11887 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11888 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 lt_cv_prog_compiler_pic_works_GO=no
11892 ac_outfile=conftest.$ac_objext
11893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11894 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11895 # Insert the option either (1) after the last *FLAGS variable, or
11896 # (2) before a word containing "conftest.", or (3) at the end.
11897 # Note that $ac_compile itself does not contain backslashes and begins
11898 # with a dollar sign (not a hyphen), so the echo should work correctly.
11899 # The option is referenced via a variable to avoid confusing sed.
11900 lt_compile=`echo "$ac_compile" | $SED \
11901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11903 -e 's:$: $lt_compiler_flag:'`
11904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11905 (eval "$lt_compile" 2>conftest.err)
11906 ac_status=$?
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 if (exit $ac_status) && test -s "$ac_outfile"; then
11910 # The compiler can only warn and ignore the option if not recognized
11911 # So say no if there are warnings other than the usual output.
11912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11915 lt_cv_prog_compiler_pic_works_GO=yes
11918 $RM conftest*
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11922 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11924 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11925 case $lt_prog_compiler_pic_GO in
11926 "" | " "*) ;;
11927 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11928 esac
11929 else
11930 lt_prog_compiler_pic_GO=
11931 lt_prog_compiler_can_build_shared_GO=no
11939 # Check to make sure the static flag actually works.
11941 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11943 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11944 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 lt_cv_prog_compiler_static_works_GO=no
11948 save_LDFLAGS="$LDFLAGS"
11949 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11950 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11952 # The linker can only warn and ignore the option if not recognized
11953 # So say no if there are warnings
11954 if test -s conftest.err; then
11955 # Append any errors to the config.log.
11956 cat conftest.err 1>&5
11957 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11959 if diff conftest.exp conftest.er2 >/dev/null; then
11960 lt_cv_prog_compiler_static_works_GO=yes
11962 else
11963 lt_cv_prog_compiler_static_works_GO=yes
11966 $RM -r conftest*
11967 LDFLAGS="$save_LDFLAGS"
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11971 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11973 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11975 else
11976 lt_prog_compiler_static_GO=
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11983 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11984 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 lt_cv_prog_compiler_c_o_GO=no
11988 $RM -r conftest 2>/dev/null
11989 mkdir conftest
11990 cd conftest
11991 mkdir out
11992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11994 lt_compiler_flag="-o out/conftest2.$ac_objext"
11995 # Insert the option either (1) after the last *FLAGS variable, or
11996 # (2) before a word containing "conftest.", or (3) at the end.
11997 # Note that $ac_compile itself does not contain backslashes and begins
11998 # with a dollar sign (not a hyphen), so the echo should work correctly.
11999 lt_compile=`echo "$ac_compile" | $SED \
12000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12002 -e 's:$: $lt_compiler_flag:'`
12003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12004 (eval "$lt_compile" 2>out/conftest.err)
12005 ac_status=$?
12006 cat out/conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12009 then
12010 # The compiler can only warn and ignore the option if not recognized
12011 # So say no if there are warnings
12012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12015 lt_cv_prog_compiler_c_o_GO=yes
12018 chmod u+w . 2>&5
12019 $RM conftest*
12020 # SGI C++ compiler will create directory out/ii_files/ for
12021 # template instantiation
12022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12023 $RM out/* && rmdir out
12024 cd ..
12025 $RM -r conftest
12026 $RM conftest*
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12030 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12035 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12036 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 lt_cv_prog_compiler_c_o_GO=no
12040 $RM -r conftest 2>/dev/null
12041 mkdir conftest
12042 cd conftest
12043 mkdir out
12044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12046 lt_compiler_flag="-o out/conftest2.$ac_objext"
12047 # Insert the option either (1) after the last *FLAGS variable, or
12048 # (2) before a word containing "conftest.", or (3) at the end.
12049 # Note that $ac_compile itself does not contain backslashes and begins
12050 # with a dollar sign (not a hyphen), so the echo should work correctly.
12051 lt_compile=`echo "$ac_compile" | $SED \
12052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12054 -e 's:$: $lt_compiler_flag:'`
12055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12056 (eval "$lt_compile" 2>out/conftest.err)
12057 ac_status=$?
12058 cat out/conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12061 then
12062 # The compiler can only warn and ignore the option if not recognized
12063 # So say no if there are warnings
12064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12067 lt_cv_prog_compiler_c_o_GO=yes
12070 chmod u+w . 2>&5
12071 $RM conftest*
12072 # SGI C++ compiler will create directory out/ii_files/ for
12073 # template instantiation
12074 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12075 $RM out/* && rmdir out
12076 cd ..
12077 $RM -r conftest
12078 $RM conftest*
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12082 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12087 hard_links="nottested"
12088 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12089 # do not overwrite the value of need_locks provided by the user
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12091 $as_echo_n "checking if we can lock with hard links... " >&6; }
12092 hard_links=yes
12093 $RM conftest*
12094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095 touch conftest.a
12096 ln conftest.a conftest.b 2>&5 || hard_links=no
12097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12099 $as_echo "$hard_links" >&6; }
12100 if test "$hard_links" = no; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12102 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12103 need_locks=warn
12105 else
12106 need_locks=no
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12112 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12114 runpath_var=
12115 allow_undefined_flag_GO=
12116 always_export_symbols_GO=no
12117 archive_cmds_GO=
12118 archive_expsym_cmds_GO=
12119 compiler_needs_object_GO=no
12120 enable_shared_with_static_runtimes_GO=no
12121 export_dynamic_flag_spec_GO=
12122 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12123 hardcode_automatic_GO=no
12124 hardcode_direct_GO=no
12125 hardcode_direct_absolute_GO=no
12126 hardcode_libdir_flag_spec_GO=
12127 hardcode_libdir_flag_spec_ld_GO=
12128 hardcode_libdir_separator_GO=
12129 hardcode_minus_L_GO=no
12130 hardcode_shlibpath_var_GO=unsupported
12131 inherit_rpath_GO=no
12132 link_all_deplibs_GO=unknown
12133 module_cmds_GO=
12134 module_expsym_cmds_GO=
12135 old_archive_from_new_cmds_GO=
12136 old_archive_from_expsyms_cmds_GO=
12137 thread_safe_flag_spec_GO=
12138 whole_archive_flag_spec_GO=
12139 # include_expsyms should be a list of space-separated symbols to be *always*
12140 # included in the symbol list
12141 include_expsyms_GO=
12142 # exclude_expsyms can be an extended regexp of symbols to exclude
12143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12145 # as well as any symbol that contains `d'.
12146 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12148 # platforms (ab)use it in PIC code, but their linkers get confused if
12149 # the symbol is explicitly referenced. Since portable code cannot
12150 # rely on this symbol name, it's probably fine to never include it in
12151 # preloaded symbol tables.
12152 # Exclude shared library initialization/finalization symbols.
12153 extract_expsyms_cmds=
12155 case $host_os in
12156 cygwin* | mingw* | pw32* | cegcc*)
12157 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12158 # When not using gcc, we currently assume that we are using
12159 # Microsoft Visual C++.
12160 if test "$GCC" != yes; then
12161 with_gnu_ld=no
12164 interix*)
12165 # we just hope/assume this is gcc and not c89 (= MSVC++)
12166 with_gnu_ld=yes
12168 openbsd*)
12169 with_gnu_ld=no
12171 esac
12173 ld_shlibs_GO=yes
12175 # On some targets, GNU ld is compatible enough with the native linker
12176 # that we're better off using the native interface for both.
12177 lt_use_gnu_ld_interface=no
12178 if test "$with_gnu_ld" = yes; then
12179 case $host_os in
12180 aix*)
12181 # The AIX port of GNU ld has always aspired to compatibility
12182 # with the native linker. However, as the warning in the GNU ld
12183 # block says, versions before 2.19.5* couldn't really create working
12184 # shared libraries, regardless of the interface used.
12185 case `$LD -v 2>&1` in
12186 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12187 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12188 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12190 lt_use_gnu_ld_interface=yes
12192 esac
12195 lt_use_gnu_ld_interface=yes
12197 esac
12200 if test "$lt_use_gnu_ld_interface" = yes; then
12201 # If archive_cmds runs LD, not CC, wlarc should be empty
12202 wlarc='${wl}'
12204 # Set some defaults for GNU ld with shared library support. These
12205 # are reset later if shared libraries are not supported. Putting them
12206 # here allows them to be overridden if necessary.
12207 runpath_var=LD_RUN_PATH
12208 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12209 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12210 # ancient GNU ld didn't support --whole-archive et. al.
12211 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12212 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12213 else
12214 whole_archive_flag_spec_GO=
12216 supports_anon_versioning=no
12217 case `$LD -v 2>&1` in
12218 *GNU\ gold*) supports_anon_versioning=yes ;;
12219 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12220 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12221 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12222 *\ 2.11.*) ;; # other 2.11 versions
12223 *) supports_anon_versioning=yes ;;
12224 esac
12226 # See if GNU ld supports shared libraries.
12227 case $host_os in
12228 aix[3-9]*)
12229 # On AIX/PPC, the GNU linker is very broken
12230 if test "$host_cpu" != ia64; then
12231 ld_shlibs_GO=no
12232 cat <<_LT_EOF 1>&2
12234 *** Warning: the GNU linker, at least up to release 2.19, is reported
12235 *** to be unable to reliably create shared libraries on AIX.
12236 *** Therefore, libtool is disabling shared libraries support. If you
12237 *** really care for shared libraries, you may want to install binutils
12238 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12239 *** You will then need to restart the configuration process.
12241 _LT_EOF
12245 amigaos*)
12246 case $host_cpu in
12247 powerpc)
12248 # see comment about AmigaOS4 .so support
12249 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12250 archive_expsym_cmds_GO=''
12252 m68k)
12253 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)'
12254 hardcode_libdir_flag_spec_GO='-L$libdir'
12255 hardcode_minus_L_GO=yes
12257 esac
12260 beos*)
12261 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12262 allow_undefined_flag_GO=unsupported
12263 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12264 # support --undefined. This deserves some investigation. FIXME
12265 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266 else
12267 ld_shlibs_GO=no
12271 cygwin* | mingw* | pw32* | cegcc*)
12272 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12273 # as there is no search path for DLLs.
12274 hardcode_libdir_flag_spec_GO='-L$libdir'
12275 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12276 allow_undefined_flag_GO=unsupported
12277 always_export_symbols_GO=no
12278 enable_shared_with_static_runtimes_GO=yes
12279 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12281 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12282 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12283 # If the export-symbols file already is a .def file (1st line
12284 # is EXPORTS), use it as is; otherwise, prepend...
12285 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12286 cp $export_symbols $output_objdir/$soname.def;
12287 else
12288 echo EXPORTS > $output_objdir/$soname.def;
12289 cat $export_symbols >> $output_objdir/$soname.def;
12291 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12292 else
12293 ld_shlibs_GO=no
12297 haiku*)
12298 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299 link_all_deplibs_GO=yes
12302 interix[3-9]*)
12303 hardcode_direct_GO=no
12304 hardcode_shlibpath_var_GO=no
12305 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12306 export_dynamic_flag_spec_GO='${wl}-E'
12307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12308 # Instead, shared libraries are loaded at an image base (0x10000000 by
12309 # default) and relocated if they conflict, which is a slow very memory
12310 # consuming and fragmenting process. To avoid this, we pick a random,
12311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12312 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12313 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'
12314 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'
12317 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12318 tmp_diet=no
12319 if test "$host_os" = linux-dietlibc; then
12320 case $cc_basename in
12321 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12322 esac
12324 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12325 && test "$tmp_diet" = no
12326 then
12327 tmp_addflag=
12328 tmp_sharedflag='-shared'
12329 case $cc_basename,$host_cpu in
12330 pgcc*) # Portland Group C compiler
12331 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12332 tmp_addflag=' $pic_flag'
12334 pgf77* | pgf90* | pgf95* | pgfortran*)
12335 # Portland Group f77 and f90 compilers
12336 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'
12337 tmp_addflag=' $pic_flag -Mnomain' ;;
12338 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12339 tmp_addflag=' -i_dynamic' ;;
12340 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12341 tmp_addflag=' -i_dynamic -nofor_main' ;;
12342 ifc* | ifort*) # Intel Fortran compiler
12343 tmp_addflag=' -nofor_main' ;;
12344 lf95*) # Lahey Fortran 8.1
12345 whole_archive_flag_spec_GO=
12346 tmp_sharedflag='--shared' ;;
12347 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12348 tmp_sharedflag='-qmkshrobj'
12349 tmp_addflag= ;;
12350 nvcc*) # Cuda Compiler Driver 2.2
12351 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'
12352 compiler_needs_object_GO=yes
12354 esac
12355 case `$CC -V 2>&1 | sed 5q` in
12356 *Sun\ C*) # Sun C 5.9
12357 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'
12358 compiler_needs_object_GO=yes
12359 tmp_sharedflag='-G' ;;
12360 *Sun\ F*) # Sun Fortran 8.3
12361 tmp_sharedflag='-G' ;;
12362 esac
12363 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12365 if test "x$supports_anon_versioning" = xyes; then
12366 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12368 echo "local: *; };" >> $output_objdir/$libname.ver~
12369 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12372 case $cc_basename in
12373 xlf* | bgf* | bgxlf* | mpixlf*)
12374 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12375 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12376 hardcode_libdir_flag_spec_GO=
12377 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12378 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12379 if test "x$supports_anon_versioning" = xyes; then
12380 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12382 echo "local: *; };" >> $output_objdir/$libname.ver~
12383 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12386 esac
12387 else
12388 ld_shlibs_GO=no
12392 netbsd*)
12393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12394 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12395 wlarc=
12396 else
12397 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12398 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12402 solaris*)
12403 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12404 ld_shlibs_GO=no
12405 cat <<_LT_EOF 1>&2
12407 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12408 *** create shared libraries on Solaris systems. Therefore, libtool
12409 *** is disabling shared libraries support. We urge you to upgrade GNU
12410 *** binutils to release 2.9.1 or newer. Another option is to modify
12411 *** your PATH or compiler configuration so that the native linker is
12412 *** used, and then restart.
12414 _LT_EOF
12415 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12416 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12417 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12418 else
12419 ld_shlibs_GO=no
12423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12424 case `$LD -v 2>&1` in
12425 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12426 ld_shlibs_GO=no
12427 cat <<_LT_EOF 1>&2
12429 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12430 *** reliably create shared libraries on SCO systems. Therefore, libtool
12431 *** is disabling shared libraries support. We urge you to upgrade GNU
12432 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12433 *** your PATH or compiler configuration so that the native linker is
12434 *** used, and then restart.
12436 _LT_EOF
12439 # For security reasons, it is highly recommended that you always
12440 # use absolute paths for naming shared libraries, and exclude the
12441 # DT_RUNPATH tag from executables and libraries. But doing so
12442 # requires that you compile everything twice, which is a pain.
12443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12444 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12445 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12446 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12447 else
12448 ld_shlibs_GO=no
12451 esac
12454 sunos4*)
12455 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12456 wlarc=
12457 hardcode_direct_GO=yes
12458 hardcode_shlibpath_var_GO=no
12462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12463 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12464 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12465 else
12466 ld_shlibs_GO=no
12469 esac
12471 if test "$ld_shlibs_GO" = no; then
12472 runpath_var=
12473 hardcode_libdir_flag_spec_GO=
12474 export_dynamic_flag_spec_GO=
12475 whole_archive_flag_spec_GO=
12477 else
12478 # PORTME fill in a description of your system's linker (not GNU ld)
12479 case $host_os in
12480 aix3*)
12481 allow_undefined_flag_GO=unsupported
12482 always_export_symbols_GO=yes
12483 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'
12484 # Note: this linker hardcodes the directories in LIBPATH if there
12485 # are no directories specified by -L.
12486 hardcode_minus_L_GO=yes
12487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12488 # Neither direct hardcoding nor static linking is supported with a
12489 # broken collect2.
12490 hardcode_direct_GO=unsupported
12494 aix[4-9]*)
12495 if test "$host_cpu" = ia64; then
12496 # On IA64, the linker does run time linking by default, so we don't
12497 # have to do anything special.
12498 aix_use_runtimelinking=no
12499 exp_sym_flag='-Bexport'
12500 no_entry_flag=""
12501 else
12502 # If we're using GNU nm, then we don't want the "-C" option.
12503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12504 # Also, AIX nm treats weak defined symbols like other global
12505 # defined symbols, whereas GNU nm marks them as "W".
12506 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12507 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'
12508 else
12509 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'
12511 aix_use_runtimelinking=no
12513 # Test if we are trying to use run time linking or normal
12514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12515 # need to do runtime linking.
12516 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12517 for ld_flag in $LDFLAGS; do
12518 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12519 aix_use_runtimelinking=yes
12520 break
12522 done
12524 esac
12526 exp_sym_flag='-bexport'
12527 no_entry_flag='-bnoentry'
12530 # When large executables or shared objects are built, AIX ld can
12531 # have problems creating the table of contents. If linking a library
12532 # or program results in "error TOC overflow" add -mminimal-toc to
12533 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12534 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12536 archive_cmds_GO=''
12537 hardcode_direct_GO=yes
12538 hardcode_direct_absolute_GO=yes
12539 hardcode_libdir_separator_GO=':'
12540 link_all_deplibs_GO=yes
12541 file_list_spec_GO='${wl}-f,'
12543 if test "$GCC" = yes; then
12544 case $host_os in aix4.[012]|aix4.[012].*)
12545 # We only want to do this on AIX 4.2 and lower, the check
12546 # below for broken collect2 doesn't work under 4.3+
12547 collect2name=`${CC} -print-prog-name=collect2`
12548 if test -f "$collect2name" &&
12549 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12550 then
12551 # We have reworked collect2
12553 else
12554 # We have old collect2
12555 hardcode_direct_GO=unsupported
12556 # It fails to find uninstalled libraries when the uninstalled
12557 # path is not listed in the libpath. Setting hardcode_minus_L
12558 # to unsupported forces relinking
12559 hardcode_minus_L_GO=yes
12560 hardcode_libdir_flag_spec_GO='-L$libdir'
12561 hardcode_libdir_separator_GO=
12564 esac
12565 shared_flag='-shared'
12566 if test "$aix_use_runtimelinking" = yes; then
12567 shared_flag="$shared_flag "'${wl}-G'
12569 else
12570 # not using gcc
12571 if test "$host_cpu" = ia64; then
12572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12573 # chokes on -Wl,-G. The following line is correct:
12574 shared_flag='-G'
12575 else
12576 if test "$aix_use_runtimelinking" = yes; then
12577 shared_flag='${wl}-G'
12578 else
12579 shared_flag='${wl}-bM:SRE'
12584 export_dynamic_flag_spec_GO='${wl}-bexpall'
12585 # It seems that -bexpall does not export symbols beginning with
12586 # underscore (_), so it is better to generate a list of symbols to export.
12587 always_export_symbols_GO=yes
12588 if test "$aix_use_runtimelinking" = yes; then
12589 # Warning - without using the other runtime loading flags (-brtl),
12590 # -berok will link without error, but may produce a broken library.
12591 allow_undefined_flag_GO='-berok'
12592 # Determine the default libpath from the value encoded in an
12593 # empty executable.
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12598 main ()
12602 return 0;
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12607 lt_aix_libpath_sed='
12608 /Import File Strings/,/^$/ {
12609 /^0/ {
12610 s/^0 *\(.*\)$/\1/
12614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12615 # Check for a 64-bit object if we didn't find anything.
12616 if test -z "$aix_libpath"; then
12617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12620 rm -f core conftest.err conftest.$ac_objext \
12621 conftest$ac_exeext conftest.$ac_ext
12622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12624 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12625 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"
12626 else
12627 if test "$host_cpu" = ia64; then
12628 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12629 allow_undefined_flag_GO="-z nodefs"
12630 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"
12631 else
12632 # Determine the default libpath from the value encoded in an
12633 # empty executable.
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12638 main ()
12642 return 0;
12644 _ACEOF
12645 if ac_fn_c_try_link "$LINENO"; then :
12647 lt_aix_libpath_sed='
12648 /Import File Strings/,/^$/ {
12649 /^0/ {
12650 s/^0 *\(.*\)$/\1/
12654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12655 # Check for a 64-bit object if we didn't find anything.
12656 if test -z "$aix_libpath"; then
12657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12660 rm -f core conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12664 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12665 # Warning - without using the other run time loading flags,
12666 # -berok will link without error, but may produce a broken library.
12667 no_undefined_flag_GO=' ${wl}-bernotok'
12668 allow_undefined_flag_GO=' ${wl}-berok'
12669 if test "$with_gnu_ld" = yes; then
12670 # We only use this code for GNU lds that support --whole-archive.
12671 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12672 else
12673 # Exported symbols can be pulled into shared objects from archives
12674 whole_archive_flag_spec_GO='$convenience'
12676 archive_cmds_need_lc_GO=yes
12677 # This is similar to how AIX traditionally builds its shared libraries.
12678 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'
12683 amigaos*)
12684 case $host_cpu in
12685 powerpc)
12686 # see comment about AmigaOS4 .so support
12687 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688 archive_expsym_cmds_GO=''
12690 m68k)
12691 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)'
12692 hardcode_libdir_flag_spec_GO='-L$libdir'
12693 hardcode_minus_L_GO=yes
12695 esac
12698 bsdi[45]*)
12699 export_dynamic_flag_spec_GO=-rdynamic
12702 cygwin* | mingw* | pw32* | cegcc*)
12703 # When not using gcc, we currently assume that we are using
12704 # Microsoft Visual C++.
12705 # hardcode_libdir_flag_spec is actually meaningless, as there is
12706 # no search path for DLLs.
12707 hardcode_libdir_flag_spec_GO=' '
12708 allow_undefined_flag_GO=unsupported
12709 # Tell ltmain to make .lib files, not .a files.
12710 libext=lib
12711 # Tell ltmain to make .dll files, not .so files.
12712 shrext_cmds=".dll"
12713 # FIXME: Setting linknames here is a bad hack.
12714 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12715 # The linker will automatically build a .lib file if we build a DLL.
12716 old_archive_from_new_cmds_GO='true'
12717 # FIXME: Should let the user specify the lib program.
12718 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12719 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12720 enable_shared_with_static_runtimes_GO=yes
12723 darwin* | rhapsody*)
12726 archive_cmds_need_lc_GO=no
12727 hardcode_direct_GO=no
12728 hardcode_automatic_GO=yes
12729 hardcode_shlibpath_var_GO=unsupported
12730 if test "$lt_cv_ld_force_load" = "yes"; then
12731 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\"`'
12732 else
12733 whole_archive_flag_spec_GO=''
12735 link_all_deplibs_GO=yes
12736 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12737 case $cc_basename in
12738 ifort*) _lt_dar_can_shared=yes ;;
12739 *) _lt_dar_can_shared=$GCC ;;
12740 esac
12741 if test "$_lt_dar_can_shared" = "yes"; then
12742 output_verbose_link_cmd=func_echo_all
12743 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}"
12744 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12745 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}"
12746 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}"
12748 else
12749 ld_shlibs_GO=no
12754 dgux*)
12755 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12756 hardcode_libdir_flag_spec_GO='-L$libdir'
12757 hardcode_shlibpath_var_GO=no
12760 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12761 # support. Future versions do this automatically, but an explicit c++rt0.o
12762 # does not break anything, and helps significantly (at the cost of a little
12763 # extra space).
12764 freebsd2.2*)
12765 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12766 hardcode_libdir_flag_spec_GO='-R$libdir'
12767 hardcode_direct_GO=yes
12768 hardcode_shlibpath_var_GO=no
12771 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12772 freebsd2*)
12773 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12774 hardcode_direct_GO=yes
12775 hardcode_minus_L_GO=yes
12776 hardcode_shlibpath_var_GO=no
12779 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12780 freebsd* | dragonfly*)
12781 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12782 hardcode_libdir_flag_spec_GO='-R$libdir'
12783 hardcode_direct_GO=yes
12784 hardcode_shlibpath_var_GO=no
12787 hpux9*)
12788 if test "$GCC" = yes; then
12789 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'
12790 else
12791 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'
12793 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12794 hardcode_libdir_separator_GO=:
12795 hardcode_direct_GO=yes
12797 # hardcode_minus_L: Not really in the search PATH,
12798 # but as the default location of the library.
12799 hardcode_minus_L_GO=yes
12800 export_dynamic_flag_spec_GO='${wl}-E'
12803 hpux10*)
12804 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12805 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12806 else
12807 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12809 if test "$with_gnu_ld" = no; then
12810 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12811 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12812 hardcode_libdir_separator_GO=:
12813 hardcode_direct_GO=yes
12814 hardcode_direct_absolute_GO=yes
12815 export_dynamic_flag_spec_GO='${wl}-E'
12816 # hardcode_minus_L: Not really in the search PATH,
12817 # but as the default location of the library.
12818 hardcode_minus_L_GO=yes
12822 hpux11*)
12823 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12824 case $host_cpu in
12825 hppa*64*)
12826 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12828 ia64*)
12829 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12832 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12834 esac
12835 else
12836 case $host_cpu in
12837 hppa*64*)
12838 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12840 ia64*)
12841 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12844 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12846 esac
12848 if test "$with_gnu_ld" = no; then
12849 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12850 hardcode_libdir_separator_GO=:
12852 case $host_cpu in
12853 hppa*64*|ia64*)
12854 hardcode_direct_GO=no
12855 hardcode_shlibpath_var_GO=no
12858 hardcode_direct_GO=yes
12859 hardcode_direct_absolute_GO=yes
12860 export_dynamic_flag_spec_GO='${wl}-E'
12862 # hardcode_minus_L: Not really in the search PATH,
12863 # but as the default location of the library.
12864 hardcode_minus_L_GO=yes
12866 esac
12870 irix5* | irix6* | nonstopux*)
12871 if test "$GCC" = yes; then
12872 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'
12873 # Try to use the -exported_symbol ld option, if it does not
12874 # work, assume that -exports_file does not work either and
12875 # implicitly export all symbols.
12876 save_LDFLAGS="$LDFLAGS"
12877 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 int foo(void) {}
12881 _ACEOF
12882 if ac_fn_c_try_link "$LINENO"; then :
12883 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'
12886 rm -f core conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LDFLAGS="$save_LDFLAGS"
12889 else
12890 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'
12891 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'
12893 archive_cmds_need_lc_GO='no'
12894 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12895 hardcode_libdir_separator_GO=:
12896 inherit_rpath_GO=yes
12897 link_all_deplibs_GO=yes
12900 netbsd*)
12901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12902 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12903 else
12904 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12906 hardcode_libdir_flag_spec_GO='-R$libdir'
12907 hardcode_direct_GO=yes
12908 hardcode_shlibpath_var_GO=no
12911 newsos6)
12912 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913 hardcode_direct_GO=yes
12914 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12915 hardcode_libdir_separator_GO=:
12916 hardcode_shlibpath_var_GO=no
12919 *nto* | *qnx*)
12922 openbsd*)
12923 if test -f /usr/libexec/ld.so; then
12924 hardcode_direct_GO=yes
12925 hardcode_shlibpath_var_GO=no
12926 hardcode_direct_absolute_GO=yes
12927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12928 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12929 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12930 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12931 export_dynamic_flag_spec_GO='${wl}-E'
12932 else
12933 case $host_os in
12934 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12935 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12936 hardcode_libdir_flag_spec_GO='-R$libdir'
12939 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12940 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12942 esac
12944 else
12945 ld_shlibs_GO=no
12949 os2*)
12950 hardcode_libdir_flag_spec_GO='-L$libdir'
12951 hardcode_minus_L_GO=yes
12952 allow_undefined_flag_GO=unsupported
12953 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'
12954 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12957 osf3*)
12958 if test "$GCC" = yes; then
12959 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12960 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'
12961 else
12962 allow_undefined_flag_GO=' -expect_unresolved \*'
12963 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'
12965 archive_cmds_need_lc_GO='no'
12966 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12967 hardcode_libdir_separator_GO=:
12970 osf4* | osf5*) # as osf3* with the addition of -msym flag
12971 if test "$GCC" = yes; then
12972 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12973 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'
12974 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12975 else
12976 allow_undefined_flag_GO=' -expect_unresolved \*'
12977 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'
12978 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~
12979 $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'
12981 # Both c and cxx compiler support -rpath directly
12982 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12984 archive_cmds_need_lc_GO='no'
12985 hardcode_libdir_separator_GO=:
12988 solaris*)
12989 no_undefined_flag_GO=' -z defs'
12990 if test "$GCC" = yes; then
12991 wlarc='${wl}'
12992 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12993 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12994 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12995 else
12996 case `$CC -V 2>&1` in
12997 *"Compilers 5.0"*)
12998 wlarc=''
12999 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13000 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13004 wlarc='${wl}'
13005 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13006 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13007 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13009 esac
13011 hardcode_libdir_flag_spec_GO='-R$libdir'
13012 hardcode_shlibpath_var_GO=no
13013 case $host_os in
13014 solaris2.[0-5] | solaris2.[0-5].*) ;;
13016 # The compiler driver will combine and reorder linker options,
13017 # but understands `-z linker_flag'. GCC discards it without `$wl',
13018 # but is careful enough not to reorder.
13019 # Supported since Solaris 2.6 (maybe 2.5.1?)
13020 if test "$GCC" = yes; then
13021 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13022 else
13023 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13026 esac
13027 link_all_deplibs_GO=yes
13030 sunos4*)
13031 if test "x$host_vendor" = xsequent; then
13032 # Use $CC to link under sequent, because it throws in some extra .o
13033 # files that make .init and .fini sections work.
13034 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13035 else
13036 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13038 hardcode_libdir_flag_spec_GO='-L$libdir'
13039 hardcode_direct_GO=yes
13040 hardcode_minus_L_GO=yes
13041 hardcode_shlibpath_var_GO=no
13044 sysv4)
13045 case $host_vendor in
13046 sni)
13047 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048 hardcode_direct_GO=yes # is this really true???
13050 siemens)
13051 ## LD is ld it makes a PLAMLIB
13052 ## CC just makes a GrossModule.
13053 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13054 reload_cmds_GO='$CC -r -o $output$reload_objs'
13055 hardcode_direct_GO=no
13057 motorola)
13058 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13059 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13061 esac
13062 runpath_var='LD_RUN_PATH'
13063 hardcode_shlibpath_var_GO=no
13066 sysv4.3*)
13067 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13068 hardcode_shlibpath_var_GO=no
13069 export_dynamic_flag_spec_GO='-Bexport'
13072 sysv4*MP*)
13073 if test -d /usr/nec; then
13074 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13075 hardcode_shlibpath_var_GO=no
13076 runpath_var=LD_RUN_PATH
13077 hardcode_runpath_var=yes
13078 ld_shlibs_GO=yes
13082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13083 no_undefined_flag_GO='${wl}-z,text'
13084 archive_cmds_need_lc_GO=no
13085 hardcode_shlibpath_var_GO=no
13086 runpath_var='LD_RUN_PATH'
13088 if test "$GCC" = yes; then
13089 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091 else
13092 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13093 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 sysv5* | sco3.2v5* | sco5v6*)
13098 # Note: We can NOT use -z defs as we might desire, because we do not
13099 # link with -lc, and that would cause any symbols used from libc to
13100 # always be unresolved, which means just about no library would
13101 # ever link correctly. If we're not using GNU ld we use -z text
13102 # though, which does catch some bad symbols but isn't as heavy-handed
13103 # as -z defs.
13104 no_undefined_flag_GO='${wl}-z,text'
13105 allow_undefined_flag_GO='${wl}-z,nodefs'
13106 archive_cmds_need_lc_GO=no
13107 hardcode_shlibpath_var_GO=no
13108 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13109 hardcode_libdir_separator_GO=':'
13110 link_all_deplibs_GO=yes
13111 export_dynamic_flag_spec_GO='${wl}-Bexport'
13112 runpath_var='LD_RUN_PATH'
13114 if test "$GCC" = yes; then
13115 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13116 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13117 else
13118 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13119 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13123 uts4*)
13124 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13125 hardcode_libdir_flag_spec_GO='-L$libdir'
13126 hardcode_shlibpath_var_GO=no
13130 ld_shlibs_GO=no
13132 esac
13134 if test x$host_vendor = xsni; then
13135 case $host in
13136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13137 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13139 esac
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13144 $as_echo "$ld_shlibs_GO" >&6; }
13145 test "$ld_shlibs_GO" = no && can_build_shared=no
13147 with_gnu_ld_GO=$with_gnu_ld
13155 # Do we need to explicitly link libc?
13157 case "x$archive_cmds_need_lc_GO" in
13158 x|xyes)
13159 # Assume -lc should be added
13160 archive_cmds_need_lc_GO=yes
13162 if test "$enable_shared" = yes && test "$GCC" = yes; then
13163 case $archive_cmds_GO in
13164 *'~'*)
13165 # FIXME: we may have to deal with multi-command sequences.
13167 '$CC '*)
13168 # Test whether the compiler implicitly links with -lc since on some
13169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13170 # to ld, don't add -lc before -lgcc.
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13172 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13173 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 $RM conftest*
13177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13180 (eval $ac_compile) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183 test $ac_status = 0; } 2>conftest.err; then
13184 soname=conftest
13185 lib=conftest
13186 libobjs=conftest.$ac_objext
13187 deplibs=
13188 wl=$lt_prog_compiler_wl_GO
13189 pic_flag=$lt_prog_compiler_pic_GO
13190 compiler_flags=-v
13191 linker_flags=-v
13192 verstring=
13193 output_objdir=.
13194 libname=conftest
13195 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13196 allow_undefined_flag_GO=
13197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13198 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13199 ac_status=$?
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13201 test $ac_status = 0; }
13202 then
13203 lt_cv_archive_cmds_need_lc_GO=no
13204 else
13205 lt_cv_archive_cmds_need_lc_GO=yes
13207 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13208 else
13209 cat conftest.err 1>&5
13211 $RM conftest*
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13215 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13216 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13218 esac
13221 esac
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13287 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13288 hardcode_action_GO=
13289 if test -n "$hardcode_libdir_flag_spec_GO" ||
13290 test -n "$runpath_var_GO" ||
13291 test "X$hardcode_automatic_GO" = "Xyes" ; then
13293 # We can hardcode non-existent directories.
13294 if test "$hardcode_direct_GO" != no &&
13295 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13296 # have to relink, otherwise we might link with an installed library
13297 # when we should be linking with a yet-to-be-installed one
13298 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13299 test "$hardcode_minus_L_GO" != no; then
13300 # Linking always hardcodes the temporary library directory.
13301 hardcode_action_GO=relink
13302 else
13303 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13304 hardcode_action_GO=immediate
13306 else
13307 # We cannot hardcode anything, or else we can only hardcode existing
13308 # directories.
13309 hardcode_action_GO=unsupported
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13312 $as_echo "$hardcode_action_GO" >&6; }
13314 if test "$hardcode_action_GO" = relink ||
13315 test "$inherit_rpath_GO" = yes; then
13316 # Fast installation is not supported
13317 enable_fast_install=no
13318 elif test "$shlibpath_overrides_runpath" = yes ||
13319 test "$enable_shared" = no; then
13320 # Fast installation is not necessary
13321 enable_fast_install=needless
13332 ac_ext=c
13333 ac_cpp='$CPP $CPPFLAGS'
13334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13339 GCC=$lt_save_GCC
13340 CC="$lt_save_CC"
13345 ac_config_commands="$ac_config_commands libtool"
13350 # Only expand once:
13356 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13359 for ac_prog in gawk mawk nawk awk
13361 # Extract the first word of "$ac_prog", so it can be a program name with args.
13362 set dummy $ac_prog; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if test "${ac_cv_prog_AWK+set}" = set; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$AWK"; then
13369 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378 ac_cv_prog_AWK="$ac_prog"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13382 done
13383 done
13384 IFS=$as_save_IFS
13388 AWK=$ac_cv_prog_AWK
13389 if test -n "$AWK"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13391 $as_echo "$AWK" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13398 test -n "$AWK" && break
13399 done
13402 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13405 # Check whether --enable-werror was given.
13406 if test "${enable_werror+set}" = set; then :
13407 enableval=$enable_werror;
13410 if test "x$enable_werror" != "xno"; then
13411 WERROR="-Werror"
13415 glibgo_toolexecdir=no
13416 glibgo_toolexeclibdir=no
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13419 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13420 # Check whether --enable-version-specific-runtime-libs was given.
13421 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13422 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13423 yes) version_specific_libs=yes ;;
13424 no) version_specific_libs=no ;;
13425 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13426 esac
13427 else
13428 version_specific_libs=no
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13432 $as_echo "$version_specific_libs" >&6; }
13434 # Version-specific runtime libs processing.
13435 if test $version_specific_libs = yes; then
13436 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13437 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13440 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13441 # Install a library built with a cross compiler in tooldir, not libdir.
13442 if test -n "$with_cross_host" &&
13443 test x"$with_cross_host" != x"no"; then
13444 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13445 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13446 else
13447 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13448 nover_glibgo_toolexeclibdir='${libdir}'
13450 multi_os_directory=`$GOC -print-multi-os-directory`
13451 case $multi_os_directory in
13452 .) ;; # Avoid trailing /.
13453 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13454 esac
13456 if test x"$glibgo_toolexecdir" = x"no"; then
13457 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13458 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13465 # See if the user wants to configure without libffi. Some
13466 # architectures don't support it. FIXME: We should set a default
13467 # based on the host.
13469 # Check whether --with-libffi was given.
13470 if test "${with_libffi+set}" = set; then :
13471 withval=$with_libffi; :
13472 else
13473 with_libffi=${with_libffi_default-yes}
13477 LIBFFI=
13478 LIBFFIINCS=
13479 if test "$with_libffi" != no; then
13481 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13483 LIBFFI=../libffi/libffi_convenience.la
13484 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13489 # See if the user wants to configure without libatomic. This is useful if we are
13490 # on an architecture for which libgo does not need an atomic support library and
13491 # libatomic does not support our C compiler.
13493 # Check whether --with-libatomic was given.
13494 if test "${with_libatomic+set}" = set; then :
13495 withval=$with_libatomic; :
13496 else
13497 with_libatomic=${with_libatomic_default-yes}
13501 LIBATOMIC=
13502 if test "$with_libatomic" != no; then
13503 LIBATOMIC=../libatomic/libatomic_convenience.la
13507 # Used to tell GNU make to include a file without telling automake to
13508 # include it.
13509 go_include="-include"
13512 is_darwin=no
13513 is_freebsd=no
13514 is_irix=no
13515 is_linux=no
13516 is_netbsd=no
13517 is_openbsd=no
13518 is_dragonfly=no
13519 is_rtems=no
13520 is_solaris=no
13521 GOOS=unknown
13522 case ${host} in
13523 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13524 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13525 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13526 *-*-linux*) is_linux=yes; GOOS=linux ;;
13527 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13528 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13529 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13530 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13531 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13532 esac
13533 if test $is_darwin = yes; then
13534 LIBGO_IS_DARWIN_TRUE=
13535 LIBGO_IS_DARWIN_FALSE='#'
13536 else
13537 LIBGO_IS_DARWIN_TRUE='#'
13538 LIBGO_IS_DARWIN_FALSE=
13541 if test $is_freebsd = yes; then
13542 LIBGO_IS_FREEBSD_TRUE=
13543 LIBGO_IS_FREEBSD_FALSE='#'
13544 else
13545 LIBGO_IS_FREEBSD_TRUE='#'
13546 LIBGO_IS_FREEBSD_FALSE=
13549 if test $is_irix = yes; then
13550 LIBGO_IS_IRIX_TRUE=
13551 LIBGO_IS_IRIX_FALSE='#'
13552 else
13553 LIBGO_IS_IRIX_TRUE='#'
13554 LIBGO_IS_IRIX_FALSE=
13557 if test $is_linux = yes; then
13558 LIBGO_IS_LINUX_TRUE=
13559 LIBGO_IS_LINUX_FALSE='#'
13560 else
13561 LIBGO_IS_LINUX_TRUE='#'
13562 LIBGO_IS_LINUX_FALSE=
13565 if test $is_netbsd = yes; then
13566 LIBGO_IS_NETBSD_TRUE=
13567 LIBGO_IS_NETBSD_FALSE='#'
13568 else
13569 LIBGO_IS_NETBSD_TRUE='#'
13570 LIBGO_IS_NETBSD_FALSE=
13573 if test $is_openbsd = yes; then
13574 LIBGO_IS_OPENBSD_TRUE=
13575 LIBGO_IS_OPENBSD_FALSE='#'
13576 else
13577 LIBGO_IS_OPENBSD_TRUE='#'
13578 LIBGO_IS_OPENBSD_FALSE=
13581 if test $is_dragonfly = yes; then
13582 LIBGO_IS_DRAGONFLY_TRUE=
13583 LIBGO_IS_DRAGONFLY_FALSE='#'
13584 else
13585 LIBGO_IS_DRAGONFLY_TRUE='#'
13586 LIBGO_IS_DRAGONFLY_FALSE=
13589 if test $is_rtems = yes; then
13590 LIBGO_IS_RTEMS_TRUE=
13591 LIBGO_IS_RTEMS_FALSE='#'
13592 else
13593 LIBGO_IS_RTEMS_TRUE='#'
13594 LIBGO_IS_RTEMS_FALSE=
13597 if test $is_solaris = yes; then
13598 LIBGO_IS_SOLARIS_TRUE=
13599 LIBGO_IS_SOLARIS_FALSE='#'
13600 else
13601 LIBGO_IS_SOLARIS_TRUE='#'
13602 LIBGO_IS_SOLARIS_FALSE=
13607 USE_DEJAGNU=no
13608 case ${host} in
13609 *-*-rtems*) USE_DEJAGNU=yes ;;
13610 ${build}) ;;
13611 *) USE_DEJAGNU=yes ;;
13612 esac
13615 is_386=no
13616 is_alpha=no
13617 is_arm=no
13618 is_arm64=no
13619 is_m68k=no
13620 mips_abi=unknown
13621 is_ppc=no
13622 is_ppc64=no
13623 is_sparc=no
13624 is_sparc64=no
13625 is_x86_64=no
13626 GOARCH=unknown
13627 case ${host} in
13628 alpha*-*-*)
13629 is_alpha=yes
13630 GOARCH=alpha
13632 aarch64-*-*)
13633 is_arm64=yes
13634 GOARCH=arm64
13636 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13637 is_arm=yes
13638 GOARCH=arm
13640 i[34567]86-*-* | x86_64-*-*)
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13644 #ifdef __x86_64__
13645 #error 64-bit
13646 #endif
13647 _ACEOF
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 is_386=yes
13650 else
13651 is_x86_64=yes
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 if test "$is_386" = "yes"; then
13655 GOARCH=386
13656 else
13657 GOARCH=amd64
13660 m68k*-*-*)
13661 is_m68k=yes
13662 GOARCH=m68k
13664 mips*-*-*)
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13668 #if _MIPS_SIM != _ABIO32
13669 #error not o32
13670 #endif
13671 _ACEOF
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673 mips_abi="o32"
13674 else
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13678 #if _MIPS_SIM != _ABIN32
13679 #error not n32
13680 #endif
13681 _ACEOF
13682 if ac_fn_c_try_compile "$LINENO"; then :
13683 mips_abi="n32"
13684 else
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13688 #if _MIPS_SIM != _ABI64
13689 #error not n64
13690 #endif
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"; then :
13693 mips_abi="n64"
13694 else
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13698 #if _MIPS_SIM != _ABIO64
13699 #error not o64
13700 #endif
13701 _ACEOF
13702 if ac_fn_c_try_compile "$LINENO"; then :
13703 mips_abi="o64"
13704 else
13705 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13706 mips_abi="n32"
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 case "$mips_abi" in
13716 "o32") GOARCH=mipso32 ;;
13717 "n32") GOARCH=mipsn32 ;;
13718 "n64") GOARCH=mipsn64 ;;
13719 "o64") GOARCH=mipso64 ;;
13720 esac
13722 rs6000*-*-* | powerpc*-*-*)
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13726 #ifdef _ARCH_PPC64
13727 #error 64-bit
13728 #endif
13729 _ACEOF
13730 if ac_fn_c_try_compile "$LINENO"; then :
13731 is_ppc=yes
13732 else
13733 is_ppc64=yes
13735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 if test "$is_ppc" = "yes"; then
13737 GOARCH=ppc
13738 else
13739 GOARCH=ppc64
13742 sparc*-*-*)
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13746 #if defined(__sparcv9) || defined(__arch64__)
13747 #error 64-bit
13748 #endif
13749 _ACEOF
13750 if ac_fn_c_try_compile "$LINENO"; then :
13751 is_sparc=yes
13752 else
13753 is_sparc64=yes
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 if test "$is_sparc" = "yes"; then
13757 GOARCH=sparc
13758 else
13759 GOARCH=sparc64
13762 esac
13763 if test $is_386 = yes; then
13764 LIBGO_IS_386_TRUE=
13765 LIBGO_IS_386_FALSE='#'
13766 else
13767 LIBGO_IS_386_TRUE='#'
13768 LIBGO_IS_386_FALSE=
13771 if test $is_alpha = yes; then
13772 LIBGO_IS_ALPHA_TRUE=
13773 LIBGO_IS_ALPHA_FALSE='#'
13774 else
13775 LIBGO_IS_ALPHA_TRUE='#'
13776 LIBGO_IS_ALPHA_FALSE=
13779 if test $is_arm = yes; then
13780 LIBGO_IS_ARM_TRUE=
13781 LIBGO_IS_ARM_FALSE='#'
13782 else
13783 LIBGO_IS_ARM_TRUE='#'
13784 LIBGO_IS_ARM_FALSE=
13787 if test $is_arm64 = yes; then
13788 LIBGO_IS_ARM64_TRUE=
13789 LIBGO_IS_ARM64_FALSE='#'
13790 else
13791 LIBGO_IS_ARM64_TRUE='#'
13792 LIBGO_IS_ARM64_FALSE=
13795 if test $is_m68k = yes; then
13796 LIBGO_IS_M68K_TRUE=
13797 LIBGO_IS_M68K_FALSE='#'
13798 else
13799 LIBGO_IS_M68K_TRUE='#'
13800 LIBGO_IS_M68K_FALSE=
13803 if test $mips_abi != unknown; then
13804 LIBGO_IS_MIPS_TRUE=
13805 LIBGO_IS_MIPS_FALSE='#'
13806 else
13807 LIBGO_IS_MIPS_TRUE='#'
13808 LIBGO_IS_MIPS_FALSE=
13811 if test $mips_abi = o32; then
13812 LIBGO_IS_MIPSO32_TRUE=
13813 LIBGO_IS_MIPSO32_FALSE='#'
13814 else
13815 LIBGO_IS_MIPSO32_TRUE='#'
13816 LIBGO_IS_MIPSO32_FALSE=
13819 if test $mips_abi = n32; then
13820 LIBGO_IS_MIPSN32_TRUE=
13821 LIBGO_IS_MIPSN32_FALSE='#'
13822 else
13823 LIBGO_IS_MIPSN32_TRUE='#'
13824 LIBGO_IS_MIPSN32_FALSE=
13827 if test $mips_abi = n64; then
13828 LIBGO_IS_MIPSN64_TRUE=
13829 LIBGO_IS_MIPSN64_FALSE='#'
13830 else
13831 LIBGO_IS_MIPSN64_TRUE='#'
13832 LIBGO_IS_MIPSN64_FALSE=
13835 if test $mips_abi = o64; then
13836 LIBGO_IS_MIPSO64_TRUE=
13837 LIBGO_IS_MIPSO64_FALSE='#'
13838 else
13839 LIBGO_IS_MIPSO64_TRUE='#'
13840 LIBGO_IS_MIPSO64_FALSE=
13843 if test $is_ppc = yes; then
13844 LIBGO_IS_PPC_TRUE=
13845 LIBGO_IS_PPC_FALSE='#'
13846 else
13847 LIBGO_IS_PPC_TRUE='#'
13848 LIBGO_IS_PPC_FALSE=
13851 if test $is_ppc64 = yes; then
13852 LIBGO_IS_PPC64_TRUE=
13853 LIBGO_IS_PPC64_FALSE='#'
13854 else
13855 LIBGO_IS_PPC64_TRUE='#'
13856 LIBGO_IS_PPC64_FALSE=
13859 if test $is_sparc = yes; then
13860 LIBGO_IS_SPARC_TRUE=
13861 LIBGO_IS_SPARC_FALSE='#'
13862 else
13863 LIBGO_IS_SPARC_TRUE='#'
13864 LIBGO_IS_SPARC_FALSE=
13867 if test $is_sparc64 = yes; then
13868 LIBGO_IS_SPARC64_TRUE=
13869 LIBGO_IS_SPARC64_FALSE='#'
13870 else
13871 LIBGO_IS_SPARC64_TRUE='#'
13872 LIBGO_IS_SPARC64_FALSE=
13875 if test $is_x86_64 = yes; then
13876 LIBGO_IS_X86_64_TRUE=
13877 LIBGO_IS_X86_64_FALSE='#'
13878 else
13879 LIBGO_IS_X86_64_TRUE='#'
13880 LIBGO_IS_X86_64_FALSE=
13885 GO_LIBCALL_OS_FILE=
13886 GO_LIBCALL_OS_ARCH_FILE=
13887 GO_SYSCALL_OS_FILE=
13888 GO_SYSCALL_OS_ARCH_FILE=
13889 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13890 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13892 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13893 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13895 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13896 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13898 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13899 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13906 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13907 case "$target" in
13908 mips-sgi-irix6.5*)
13909 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13910 # msghdr in <sys/socket.h>.
13911 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13913 *-*-solaris2.1[01])
13914 # Solaris 10+ needs this so struct msghdr gets the msg_control
13915 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13916 # above doesn't work with C99.
13917 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13919 esac
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13923 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13924 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13925 $as_echo_n "(cached) " >&6
13926 else
13927 CFLAGS_hold=$CFLAGS
13928 CFLAGS="$CFLAGS -fsplit-stack"
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 int i;
13932 _ACEOF
13933 if ac_fn_c_try_compile "$LINENO"; then :
13934 libgo_cv_c_split_stack_supported=yes
13935 else
13936 libgo_cv_c_split_stack_supported=no
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 CFLAGS=$CFLAGS_hold
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13942 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13943 if test "$libgo_cv_c_split_stack_supported" = yes; then
13944 SPLIT_STACK=-fsplit-stack
13946 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13948 else
13949 SPLIT_STACK=
13952 if test "$libgo_cv_c_split_stack_supported" = yes; then
13953 USING_SPLIT_STACK_TRUE=
13954 USING_SPLIT_STACK_FALSE='#'
13955 else
13956 USING_SPLIT_STACK_TRUE='#'
13957 USING_SPLIT_STACK_FALSE=
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13962 $as_echo_n "checking whether linker supports split stack... " >&6; }
13963 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 libgo_cv_c_linker_supports_split_stack=no
13967 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13968 libgo_cv_c_linker_supports_split_stack=yes
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13972 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13973 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13975 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13979 MATH_LIBS=
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13981 $as_echo_n "checking for sqrt in -lm... " >&6; }
13982 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 ac_check_lib_save_LIBS=$LIBS
13986 LIBS="-lm $LIBS"
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13990 /* Override any GCC internal prototype to avoid an error.
13991 Use char because int might match the return type of a GCC
13992 builtin and then its argument prototype would still apply. */
13993 #ifdef __cplusplus
13994 extern "C"
13995 #endif
13996 char sqrt ();
13998 main ()
14000 return sqrt ();
14002 return 0;
14004 _ACEOF
14005 if ac_fn_c_try_link "$LINENO"; then :
14006 ac_cv_lib_m_sqrt=yes
14007 else
14008 ac_cv_lib_m_sqrt=no
14010 rm -f core conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012 LIBS=$ac_check_lib_save_LIBS
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14015 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14016 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14017 MATH_LIBS=-lm
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14023 $as_echo_n "checking for socket libraries... " >&6; }
14024 if test "${libgo_cv_lib_sockets+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 libgo_cv_lib_sockets=
14028 libgo_check_both=no
14029 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14030 if test "x$ac_cv_func_connect" = x""yes; then :
14031 libgo_check_socket=no
14032 else
14033 libgo_check_socket=yes
14036 if test "$libgo_check_socket" = "yes"; then
14037 unset ac_cv_func_connect
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14039 $as_echo_n "checking for main in -lsocket... " >&6; }
14040 if test "${ac_cv_lib_socket_main+set}" = set; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 ac_check_lib_save_LIBS=$LIBS
14044 LIBS="-lsocket $LIBS"
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14050 main ()
14052 return main ();
14054 return 0;
14056 _ACEOF
14057 if ac_fn_c_try_link "$LINENO"; then :
14058 ac_cv_lib_socket_main=yes
14059 else
14060 ac_cv_lib_socket_main=no
14062 rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext conftest.$ac_ext
14064 LIBS=$ac_check_lib_save_LIBS
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14067 $as_echo "$ac_cv_lib_socket_main" >&6; }
14068 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14069 libgo_cv_lib_sockets="-lsocket"
14070 else
14071 libgo_check_both=yes
14075 if test "$libgo_check_both" = "yes"; then
14076 libgo_old_libs=$LIBS
14077 LIBS="$LIBS -lsocket -lnsl"
14078 unset ac_cv_func_accept
14079 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14080 if test "x$ac_cv_func_accept" = x""yes; then :
14081 libgo_check_nsl=no
14082 libgo_cv_lib_sockets="-lsocket -lnsl"
14085 unset ac_cv_func_accept
14086 LIBS=$libgo_old_libs
14088 unset ac_cv_func_gethostbyname
14089 libgo_old_libs="$LIBS"
14090 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14091 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14095 $as_echo_n "checking for main in -lnsl... " >&6; }
14096 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 ac_check_lib_save_LIBS=$LIBS
14100 LIBS="-lnsl $LIBS"
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14106 main ()
14108 return main ();
14110 return 0;
14112 _ACEOF
14113 if ac_fn_c_try_link "$LINENO"; then :
14114 ac_cv_lib_nsl_main=yes
14115 else
14116 ac_cv_lib_nsl_main=no
14118 rm -f core conftest.err conftest.$ac_objext \
14119 conftest$ac_exeext conftest.$ac_ext
14120 LIBS=$ac_check_lib_save_LIBS
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14123 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14124 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14125 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14130 unset ac_cv_func_gethostbyname
14131 LIBS=$libgo_old_libs
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14135 $as_echo "$libgo_cv_lib_sockets" >&6; }
14136 NET_LIBS="$libgo_cv_lib_sockets"
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14140 $as_echo_n "checking whether -pthread is supported... " >&6; }
14141 if test "${libgo_cv_lib_pthread+set}" = set; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 CFLAGS_hold=$CFLAGS
14145 CFLAGS="$CFLAGS -pthread"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 int i;
14149 _ACEOF
14150 if ac_fn_c_try_compile "$LINENO"; then :
14151 libgo_cv_lib_pthread=yes
14152 else
14153 libgo_cv_lib_pthread=no
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14156 CFLAGS=$CFLAGS_hold
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14159 $as_echo "$libgo_cv_lib_pthread" >&6; }
14160 PTHREAD_CFLAGS=
14161 if test "$libgo_cv_lib_pthread" = yes; then
14162 PTHREAD_CFLAGS=-pthread
14166 PTHREAD_LIBS=
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14168 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14169 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 ac_check_lib_save_LIBS=$LIBS
14173 LIBS="-lpthread $LIBS"
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char pthread_create ();
14185 main ()
14187 return pthread_create ();
14189 return 0;
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 ac_cv_lib_pthread_pthread_create=yes
14194 else
14195 ac_cv_lib_pthread_pthread_create=no
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14202 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14203 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14204 PTHREAD_LIBS=-lpthread
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14210 $as_echo_n "checking for library containing sched_yield... " >&6; }
14211 if test "${ac_cv_search_sched_yield+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 ac_func_search_save_LIBS=$LIBS
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14218 /* Override any GCC internal prototype to avoid an error.
14219 Use char because int might match the return type of a GCC
14220 builtin and then its argument prototype would still apply. */
14221 #ifdef __cplusplus
14222 extern "C"
14223 #endif
14224 char sched_yield ();
14226 main ()
14228 return sched_yield ();
14230 return 0;
14232 _ACEOF
14233 for ac_lib in '' rt; do
14234 if test -z "$ac_lib"; then
14235 ac_res="none required"
14236 else
14237 ac_res=-l$ac_lib
14238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 ac_cv_search_sched_yield=$ac_res
14243 rm -f core conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext
14245 if test "${ac_cv_search_sched_yield+set}" = set; then :
14246 break
14248 done
14249 if test "${ac_cv_search_sched_yield+set}" = set; then :
14251 else
14252 ac_cv_search_sched_yield=no
14254 rm conftest.$ac_ext
14255 LIBS=$ac_func_search_save_LIBS
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14258 $as_echo "$ac_cv_search_sched_yield" >&6; }
14259 ac_res=$ac_cv_search_sched_yield
14260 if test "$ac_res" != no; then :
14261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14266 $as_echo_n "checking for library containing nanosleep... " >&6; }
14267 if test "${ac_cv_search_nanosleep+set}" = set; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 ac_func_search_save_LIBS=$LIBS
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14274 /* Override any GCC internal prototype to avoid an error.
14275 Use char because int might match the return type of a GCC
14276 builtin and then its argument prototype would still apply. */
14277 #ifdef __cplusplus
14278 extern "C"
14279 #endif
14280 char nanosleep ();
14282 main ()
14284 return nanosleep ();
14286 return 0;
14288 _ACEOF
14289 for ac_lib in '' rt; do
14290 if test -z "$ac_lib"; then
14291 ac_res="none required"
14292 else
14293 ac_res=-l$ac_lib
14294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14296 if ac_fn_c_try_link "$LINENO"; then :
14297 ac_cv_search_nanosleep=$ac_res
14299 rm -f core conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext
14301 if test "${ac_cv_search_nanosleep+set}" = set; then :
14302 break
14304 done
14305 if test "${ac_cv_search_nanosleep+set}" = set; then :
14307 else
14308 ac_cv_search_nanosleep=no
14310 rm conftest.$ac_ext
14311 LIBS=$ac_func_search_save_LIBS
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14314 $as_echo "$ac_cv_search_nanosleep" >&6; }
14315 ac_res=$ac_cv_search_nanosleep
14316 if test "$ac_res" != no; then :
14317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14323 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14324 if test "${ac_cv_c_bigendian+set}" = set; then :
14325 $as_echo_n "(cached) " >&6
14326 else
14327 ac_cv_c_bigendian=unknown
14328 # See if we're dealing with a universal compiler.
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331 #ifndef __APPLE_CC__
14332 not a universal capable compiler
14333 #endif
14334 typedef int dummy;
14336 _ACEOF
14337 if ac_fn_c_try_compile "$LINENO"; then :
14339 # Check for potential -arch flags. It is not universal unless
14340 # there are at least two -arch flags with different values.
14341 ac_arch=
14342 ac_prev=
14343 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14344 if test -n "$ac_prev"; then
14345 case $ac_word in
14346 i?86 | x86_64 | ppc | ppc64)
14347 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14348 ac_arch=$ac_word
14349 else
14350 ac_cv_c_bigendian=universal
14351 break
14354 esac
14355 ac_prev=
14356 elif test "x$ac_word" = "x-arch"; then
14357 ac_prev=arch
14359 done
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 if test $ac_cv_c_bigendian = unknown; then
14363 # See if sys/param.h defines the BYTE_ORDER macro.
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <sys/types.h>
14367 #include <sys/param.h>
14370 main ()
14372 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14373 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14374 && LITTLE_ENDIAN)
14375 bogus endian macros
14376 #endif
14379 return 0;
14381 _ACEOF
14382 if ac_fn_c_try_compile "$LINENO"; then :
14383 # It does; now see whether it defined to BIG_ENDIAN or not.
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386 #include <sys/types.h>
14387 #include <sys/param.h>
14390 main ()
14392 #if BYTE_ORDER != BIG_ENDIAN
14393 not big endian
14394 #endif
14397 return 0;
14399 _ACEOF
14400 if ac_fn_c_try_compile "$LINENO"; then :
14401 ac_cv_c_bigendian=yes
14402 else
14403 ac_cv_c_bigendian=no
14405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14409 if test $ac_cv_c_bigendian = unknown; then
14410 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413 #include <limits.h>
14416 main ()
14418 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14419 bogus endian macros
14420 #endif
14423 return 0;
14425 _ACEOF
14426 if ac_fn_c_try_compile "$LINENO"; then :
14427 # It does; now see whether it defined to _BIG_ENDIAN or not.
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430 #include <limits.h>
14433 main ()
14435 #ifndef _BIG_ENDIAN
14436 not big endian
14437 #endif
14440 return 0;
14442 _ACEOF
14443 if ac_fn_c_try_compile "$LINENO"; then :
14444 ac_cv_c_bigendian=yes
14445 else
14446 ac_cv_c_bigendian=no
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 if test $ac_cv_c_bigendian = unknown; then
14453 # Compile a test program.
14454 if test "$cross_compiling" = yes; then :
14455 # Try to guess by grepping values from an object file.
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 short int ascii_mm[] =
14459 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14460 short int ascii_ii[] =
14461 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14462 int use_ascii (int i) {
14463 return ascii_mm[i] + ascii_ii[i];
14465 short int ebcdic_ii[] =
14466 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14467 short int ebcdic_mm[] =
14468 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14469 int use_ebcdic (int i) {
14470 return ebcdic_mm[i] + ebcdic_ii[i];
14472 extern int foo;
14475 main ()
14477 return use_ascii (foo) == use_ebcdic (foo);
14479 return 0;
14481 _ACEOF
14482 if ac_fn_c_try_compile "$LINENO"; then :
14483 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14484 ac_cv_c_bigendian=yes
14486 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14487 if test "$ac_cv_c_bigendian" = unknown; then
14488 ac_cv_c_bigendian=no
14489 else
14490 # finding both strings is unlikely to happen, but who knows?
14491 ac_cv_c_bigendian=unknown
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 else
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499 $ac_includes_default
14501 main ()
14504 /* Are we little or big endian? From Harbison&Steele. */
14505 union
14507 long int l;
14508 char c[sizeof (long int)];
14509 } u;
14510 u.l = 1;
14511 return u.c[sizeof (long int) - 1] == 1;
14514 return 0;
14516 _ACEOF
14517 if ac_fn_c_try_run "$LINENO"; then :
14518 ac_cv_c_bigendian=no
14519 else
14520 ac_cv_c_bigendian=yes
14522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14523 conftest.$ac_objext conftest.beam conftest.$ac_ext
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14529 $as_echo "$ac_cv_c_bigendian" >&6; }
14530 case $ac_cv_c_bigendian in #(
14531 yes)
14532 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14533 ;; #(
14535 ;; #(
14536 universal)
14538 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14540 ;; #(
14542 as_fn_error "unknown endianness
14543 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14544 esac
14549 # Check whether --with-system-libunwind was given.
14550 if test "${with_system_libunwind+set}" = set; then :
14551 withval=$with_system_libunwind;
14554 # If system-libunwind was not specifically set, pick a default setting.
14555 if test x$with_system_libunwind = x; then
14556 case ${target} in
14557 ia64-*-hpux*) with_system_libunwind=yes ;;
14558 *) with_system_libunwind=no ;;
14559 esac
14561 # Based on system-libunwind and target, do we have ipinfo?
14562 if test x$with_system_libunwind = xyes; then
14563 case ${target} in
14564 ia64-*-*) have_unwind_getipinfo=no ;;
14565 *) have_unwind_getipinfo=yes ;;
14566 esac
14567 else
14568 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14570 case ${target} in
14571 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14572 *) have_unwind_getipinfo=yes ;;
14573 esac
14577 if test x$have_unwind_getipinfo = xyes; then
14579 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14584 # Check whether --enable-sjlj-exceptions was given.
14585 if test "${enable_sjlj_exceptions+set}" = set; then :
14586 enableval=$enable_sjlj_exceptions; case "$enableval" in
14587 yes|no|auto) ;;
14588 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14589 esac
14590 else
14591 enable_sjlj_exceptions=auto
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14596 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14597 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14603 void bar ();
14604 void clean (int *);
14605 void foo ()
14607 int i __attribute__ ((cleanup (clean)));
14608 bar();
14611 _ACEOF
14612 CFLAGS_hold=$CFLAGS
14613 CFLAGS="--save-temps -fexceptions"
14614 libgo_cv_lib_sjlj_exceptions=unknown
14615 if ac_fn_c_try_compile; then :
14616 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14617 libgo_cv_lib_sjlj_exceptions=yes
14618 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14619 libgo_cv_lib_sjlj_exceptions=no
14622 CFLAGS=$CFLAGS_hold
14623 rm -f conftest*
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14627 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14629 if test "$enable_sjlj_exceptions" = "auto"; then
14630 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14633 case $enable_sjlj_exceptions in
14634 yes)
14636 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14642 as_fn_error "unable to detect exception model" "$LINENO" 5
14644 esac
14646 for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14647 do :
14648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14649 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14650 eval as_val=\$$as_ac_Header
14651 if test "x$as_val" = x""yes; then :
14652 cat >>confdefs.h <<_ACEOF
14653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14654 _ACEOF
14658 done
14661 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
14662 do :
14663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14664 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14665 #include <sys/socket.h>
14666 #endif
14669 eval as_val=\$$as_ac_Header
14670 if test "x$as_val" = x""yes; then :
14671 cat >>confdefs.h <<_ACEOF
14672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14673 _ACEOF
14677 done
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14681 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14682 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 CFLAGS_hold=$CFLAGS
14686 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14690 #include <sys/types.h>
14691 #ifdef HAVE_LINUX_FILTER_H
14692 #include <linux/filter.h>
14693 #endif
14694 #include <ustat.h>
14696 _ACEOF
14697 if ac_fn_c_try_compile "$LINENO"; then :
14698 libgo_cv_c_ustat_h=yes
14699 else
14700 libgo_cv_c_ustat_h=no
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703 CFLAGS=$CFLAGS_hold
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14706 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14707 if test $libgo_cv_c_ustat_h = yes; then
14709 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14713 if test "$ac_cv_header_sys_mman_h" = yes; then
14714 HAVE_SYS_MMAN_H_TRUE=
14715 HAVE_SYS_MMAN_H_FALSE='#'
14716 else
14717 HAVE_SYS_MMAN_H_TRUE='#'
14718 HAVE_SYS_MMAN_H_FALSE=
14722 for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
14723 do :
14724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14725 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14726 eval as_val=\$$as_ac_var
14727 if test "x$as_val" = x""yes; then :
14728 cat >>confdefs.h <<_ACEOF
14729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14730 _ACEOF
14733 done
14735 if test "$ac_cv_func_strerror_r" = yes; then
14736 HAVE_STRERROR_R_TRUE=
14737 HAVE_STRERROR_R_FALSE='#'
14738 else
14739 HAVE_STRERROR_R_TRUE='#'
14740 HAVE_STRERROR_R_FALSE=
14743 if test "$ac_cv_func_wait4" = yes; then
14744 HAVE_WAIT4_TRUE=
14745 HAVE_WAIT4_FALSE='#'
14746 else
14747 HAVE_WAIT4_TRUE='#'
14748 HAVE_WAIT4_FALSE=
14752 for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
14753 do :
14754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14756 eval as_val=\$$as_ac_var
14757 if test "x$as_val" = x""yes; then :
14758 cat >>confdefs.h <<_ACEOF
14759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14760 _ACEOF
14763 done
14765 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14766 if test "x$ac_cv_type_off_t" = x""yes; then :
14768 else
14770 cat >>confdefs.h <<_ACEOF
14771 #define off_t long int
14772 _ACEOF
14776 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14777 if test "x$ac_cv_type_loff_t" = x""yes; then :
14779 cat >>confdefs.h <<_ACEOF
14780 #define HAVE_LOFF_T 1
14781 _ACEOF
14787 LIBS_hold="$LIBS"
14788 LIBS="$LIBS -lm"
14789 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14790 do :
14791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14792 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14793 eval as_val=\$$as_ac_var
14794 if test "x$as_val" = x""yes; then :
14795 cat >>confdefs.h <<_ACEOF
14796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14797 _ACEOF
14800 done
14802 LIBS="$LIBS_hold"
14804 CFLAGS_hold="$CFLAGS"
14805 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14806 LIBS_hold="$LIBS"
14807 LIBS="$LIBS $PTHREAD_LIBS"
14808 for ac_func in sem_timedwait
14809 do :
14810 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14811 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14812 cat >>confdefs.h <<_ACEOF
14813 #define HAVE_SEM_TIMEDWAIT 1
14814 _ACEOF
14817 done
14819 CFLAGS="$CFLAGS_hold"
14820 LIBS="$LIBS_hold"
14822 LIBS_hold="$LIBS"
14823 LIBS="$LIBS $MATH_LIBS"
14824 for ac_func in matherr
14825 do :
14826 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14827 if test "x$ac_cv_func_matherr" = x""yes; then :
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_MATHERR 1
14830 _ACEOF
14833 done
14835 LIBS="$LIBS_hold"
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14838 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14839 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14845 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14846 uint32 i;
14847 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14849 _ACEOF
14850 if ac_fn_c_try_link "$LINENO"; then :
14851 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14852 else
14853 libgo_cv_func___sync_bool_compare_and_swap_4=no
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14859 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14860 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14862 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14867 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14868 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14874 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14875 uint64 i;
14876 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14878 _ACEOF
14879 if ac_fn_c_try_link "$LINENO"; then :
14880 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14881 else
14882 libgo_cv_func___sync_bool_compare_and_swap_8=no
14884 rm -f core conftest.err conftest.$ac_objext \
14885 conftest$ac_exeext conftest.$ac_ext
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14888 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14889 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14891 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14896 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14897 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14898 $as_echo_n "(cached) " >&6
14899 else
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14903 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14904 uint32 i;
14905 int main() { return __sync_fetch_and_add (&i, 1); }
14907 _ACEOF
14908 if ac_fn_c_try_link "$LINENO"; then :
14909 libgo_cv_func___sync_fetch_and_add_4=yes
14910 else
14911 libgo_cv_func___sync_fetch_and_add_4=no
14913 rm -f core conftest.err conftest.$ac_objext \
14914 conftest$ac_exeext conftest.$ac_ext
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14917 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14918 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14920 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14925 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14926 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14932 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14933 uint64 i;
14934 int main() { return __sync_add_and_fetch (&i, 1); }
14936 _ACEOF
14937 if ac_fn_c_try_link "$LINENO"; then :
14938 libgo_cv_func___sync_add_and_fetch_8=yes
14939 else
14940 libgo_cv_func___sync_add_and_fetch_8=no
14942 rm -f core conftest.err conftest.$ac_objext \
14943 conftest$ac_exeext conftest.$ac_ext
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14946 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14947 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14949 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14954 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14955 if test "${libgo_cv_c_stringops+set}" = set; then :
14956 $as_echo_n "(cached) " >&6
14957 else
14958 CFLAGS_hold=$CFLAGS
14959 CFLAGS="$CFLAGS -minline-all-stringops"
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 int i;
14963 _ACEOF
14964 if ac_fn_c_try_compile "$LINENO"; then :
14965 libgo_cv_c_stringops=yes
14966 else
14967 libgo_cv_c_stringops=no
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 CFLAGS=$CFLAGS_hold
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14973 $as_echo "$libgo_cv_c_stringops" >&6; }
14974 STRINGOPS_FLAG=
14975 if test "$libgo_cv_c_stringops" = yes; then
14976 STRINGOPS_FLAG=-minline-all-stringops
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14981 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14982 if test "${libgo_cv_c_fancymath+set}" = set; then :
14983 $as_echo_n "(cached) " >&6
14984 else
14985 CFLAGS_hold=$CFLAGS
14986 CFLAGS="$CFLAGS -mfancy-math-387"
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14989 int i;
14990 _ACEOF
14991 if ac_fn_c_try_compile "$LINENO"; then :
14992 libgo_cv_c_fancymath=yes
14993 else
14994 libgo_cv_c_fancymath=no
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 CFLAGS=$CFLAGS_hold
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15000 $as_echo "$libgo_cv_c_fancymath" >&6; }
15001 MATH_FLAG=
15002 if test "$libgo_cv_c_fancymath" = yes; then
15003 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15004 else
15005 MATH_FLAG="-ffp-contract=off"
15009 CFLAGS_hold=$CFLAGS
15010 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15011 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15012 if test "x$ac_cv_type_off64_t" = x""yes; then :
15014 cat >>confdefs.h <<_ACEOF
15015 #define HAVE_OFF64_T 1
15016 _ACEOF
15021 CFLAGS=$CFLAGS_hold
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15024 $as_echo_n "checking epoll_event size... " >&6; }
15025 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15030 else
15031 libgo_cv_c_epoll_event_size=0
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15036 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15037 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15041 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15042 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15046 #include <sys/epoll.h>"; then :
15048 else
15049 libgo_cv_c_epoll_event_fd_offset=0
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15054 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15055 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15058 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15060 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15061 libgo_has_struct_exception=yes
15062 else
15063 libgo_has_struct_exception=no
15066 if test "$libgo_has_struct_exception" = "yes"; then
15068 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15073 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15074 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15075 $as_echo_n "(cached) " >&6
15076 else
15077 CFLAGS_hold="$CFLAGS"
15078 CFLAGS="$PTHREAD_CFLAGS"
15079 LIBS_hold="$LIBS"
15080 LIBS="$LIBS $PTHREAD_LIBS"
15081 # The cast to long int works around a bug in the HP C Compiler
15082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15084 # This bug is HP SR number 8606223364.
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15086 $as_echo_n "checking size of void *... " >&6; }
15087 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15092 else
15093 if test "$ac_cv_type_void_p" = yes; then
15094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15096 { as_fn_set_status 77
15097 as_fn_error "cannot compute sizeof (void *)
15098 See \`config.log' for more details." "$LINENO" 5; }; }
15099 else
15100 ac_cv_sizeof_void_p=0
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15106 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15110 cat >>confdefs.h <<_ACEOF
15111 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15112 _ACEOF
15115 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15116 if test "$cross_compiling" = yes; then :
15117 case "$target:$ptr_type_size" in
15118 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15119 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15121 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15122 esac
15124 else
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15128 #include <pthread.h>
15129 #include <stdlib.h>
15130 #include <ucontext.h>
15131 #include <unistd.h>
15133 __thread int tls;
15135 static char stack[10 * 1024 * 1024];
15136 static ucontext_t c;
15138 /* Called via makecontext/setcontext. */
15140 static void
15141 cfn (void)
15143 exit (tls);
15146 /* Called via pthread_create. */
15148 static void *
15149 tfn (void *dummy)
15151 /* The thread should still see this value after calling
15152 setcontext. */
15153 tls = 0;
15155 setcontext (&c);
15157 /* The call to setcontext should not return. */
15158 abort ();
15162 main ()
15164 pthread_t tid;
15166 /* The thread should not see this value. */
15167 tls = 1;
15169 if (getcontext (&c) < 0)
15170 abort ();
15172 c.uc_stack.ss_sp = stack;
15173 #ifdef MAKECONTEXT_STACK_TOP
15174 c.uc_stack.ss_sp += sizeof stack;
15175 #endif
15176 c.uc_stack.ss_flags = 0;
15177 c.uc_stack.ss_size = sizeof stack;
15178 c.uc_link = NULL;
15179 makecontext (&c, cfn, 0);
15181 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15182 abort ();
15184 if (pthread_join (tid, NULL) != 0)
15185 abort ();
15187 /* The thread should have called exit. */
15188 abort ();
15191 _ACEOF
15192 if ac_fn_c_try_run "$LINENO"; then :
15193 libgo_cv_lib_setcontext_clobbers_tls=no
15194 else
15195 libgo_cv_lib_setcontext_clobbers_tls=yes
15197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15198 conftest.$ac_objext conftest.beam conftest.$ac_ext
15201 CFLAGS="$CFLAGS_hold"
15202 LIBS="$LIBS_hold"
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15206 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15207 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15209 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15214 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15215 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15219 libgo_cv_ro_eh_frame=no
15220 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15221 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15222 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15223 libgo_cv_ro_eh_frame=yes
15224 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15225 | grep -v '#write' > /dev/null; then
15226 libgo_cv_ro_eh_frame=yes
15229 rm -f conftest.*
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15233 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15234 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15236 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15238 else
15240 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15245 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15246 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15247 $as_echo_n "(cached) " >&6
15248 else
15249 CFLAGS_hold=$CFLAGS
15250 CFLAGS="$CFLAGS -Qunused-arguments"
15251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h. */
15253 int i;
15254 _ACEOF
15255 if ac_fn_c_try_compile "$LINENO"; then :
15256 libgo_cv_c_unused_arguments=yes
15257 else
15258 libgo_cv_c_unused_arguments=no
15260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261 CFLAGS=$CFLAGS_hold
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15264 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15267 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15268 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15269 $as_echo_n "(cached) " >&6
15270 else
15272 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15273 CFLAGS_hold=$CFLAGS
15274 if test "$libgo_cv_c_unused_arguments" = yes; then
15275 CFLAGS="$CFLAGS -Qunused-arguments"
15277 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15278 libgo_cv_as_comdat_gnu=yes
15279 else
15280 libgo_cv_as_comdat_gnu=no
15282 CFLAGS=$CFLAGS_hold
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15286 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15287 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15289 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15294 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15295 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15296 $as_echo_n "(cached) " >&6
15297 else
15299 libgo_cv_as_x86_pcrel=yes
15300 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15301 CFLAGS_hold=$CFLAGS
15302 if test "$libgo_cv_c_unused_arguments" = yes; then
15303 CFLAGS="$CFLAGS -Qunused-arguments"
15305 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15306 libgo_cv_as_x86_pcrel=no
15308 CFLAGS=$CFLAGS_hold
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15312 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15313 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15315 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15320 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15321 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15322 $as_echo_n "(cached) " >&6
15323 else
15325 libgo_cv_as_x86_64_unwind_section_type=yes
15326 echo '.section .eh_frame,"a",@unwind' > conftest.s
15327 CFLAGS_hold=$CFLAGS
15328 if test "$libgo_cv_c_unused_arguments" = yes; then
15329 CFLAGS="$CFLAGS -Qunused-arguments"
15331 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15332 libgo_cv_as_x86_64_unwind_section_type=no
15334 CFLAGS=$CFLAGS_hold
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15338 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15339 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15341 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15345 cat >confcache <<\_ACEOF
15346 # This file is a shell script that caches the results of configure
15347 # tests run on this system so they can be shared between configure
15348 # scripts and configure runs, see configure's option --config-cache.
15349 # It is not useful on other systems. If it contains results you don't
15350 # want to keep, you may remove or edit it.
15352 # config.status only pays attention to the cache file if you give it
15353 # the --recheck option to rerun configure.
15355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15357 # following values.
15359 _ACEOF
15361 # The following way of writing the cache mishandles newlines in values,
15362 # but we know of no workaround that is simple, portable, and efficient.
15363 # So, we kill variables containing newlines.
15364 # Ultrix sh set writes to stderr and can't be redirected directly,
15365 # and sets the high bit in the cache file unless we assign to the vars.
15367 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15368 eval ac_val=\$$ac_var
15369 case $ac_val in #(
15370 *${as_nl}*)
15371 case $ac_var in #(
15372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15374 esac
15375 case $ac_var in #(
15376 _ | IFS | as_nl) ;; #(
15377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15378 *) { eval $ac_var=; unset $ac_var;} ;;
15379 esac ;;
15380 esac
15381 done
15383 (set) 2>&1 |
15384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15385 *${as_nl}ac_space=\ *)
15386 # `set' does not quote correctly, so add quotes: double-quote
15387 # substitution turns \\\\ into \\, and sed turns \\ into \.
15388 sed -n \
15389 "s/'/'\\\\''/g;
15390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15391 ;; #(
15393 # `set' quotes correctly as required by POSIX, so do not add quotes.
15394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15396 esac |
15397 sort
15399 sed '
15400 /^ac_cv_env_/b end
15401 t clear
15402 :clear
15403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15404 t end
15405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15406 :end' >>confcache
15407 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15408 if test -w "$cache_file"; then
15409 test "x$cache_file" != "x/dev/null" &&
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15411 $as_echo "$as_me: updating cache $cache_file" >&6;}
15412 cat confcache >$cache_file
15413 else
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15415 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15418 rm -f confcache
15420 if test ${multilib} = yes; then
15421 multilib_arg="--enable-multilib"
15422 else
15423 multilib_arg=
15426 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15429 ac_config_commands="$ac_config_commands default"
15432 cat >confcache <<\_ACEOF
15433 # This file is a shell script that caches the results of configure
15434 # tests run on this system so they can be shared between configure
15435 # scripts and configure runs, see configure's option --config-cache.
15436 # It is not useful on other systems. If it contains results you don't
15437 # want to keep, you may remove or edit it.
15439 # config.status only pays attention to the cache file if you give it
15440 # the --recheck option to rerun configure.
15442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15444 # following values.
15446 _ACEOF
15448 # The following way of writing the cache mishandles newlines in values,
15449 # but we know of no workaround that is simple, portable, and efficient.
15450 # So, we kill variables containing newlines.
15451 # Ultrix sh set writes to stderr and can't be redirected directly,
15452 # and sets the high bit in the cache file unless we assign to the vars.
15454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15455 eval ac_val=\$$ac_var
15456 case $ac_val in #(
15457 *${as_nl}*)
15458 case $ac_var in #(
15459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15460 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15461 esac
15462 case $ac_var in #(
15463 _ | IFS | as_nl) ;; #(
15464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15465 *) { eval $ac_var=; unset $ac_var;} ;;
15466 esac ;;
15467 esac
15468 done
15470 (set) 2>&1 |
15471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15472 *${as_nl}ac_space=\ *)
15473 # `set' does not quote correctly, so add quotes: double-quote
15474 # substitution turns \\\\ into \\, and sed turns \\ into \.
15475 sed -n \
15476 "s/'/'\\\\''/g;
15477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15478 ;; #(
15480 # `set' quotes correctly as required by POSIX, so do not add quotes.
15481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15483 esac |
15484 sort
15486 sed '
15487 /^ac_cv_env_/b end
15488 t clear
15489 :clear
15490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15491 t end
15492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15493 :end' >>confcache
15494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15495 if test -w "$cache_file"; then
15496 test "x$cache_file" != "x/dev/null" &&
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15498 $as_echo "$as_me: updating cache $cache_file" >&6;}
15499 cat confcache >$cache_file
15500 else
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15502 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15505 rm -f confcache
15507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15508 # Let make expand exec_prefix.
15509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15511 DEFS=-DHAVE_CONFIG_H
15513 ac_libobjs=
15514 ac_ltlibobjs=
15515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15516 # 1. Remove the extension, and $U if already installed.
15517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15518 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15520 # will be set to the directory where LIBOBJS objects are built.
15521 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15522 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15523 done
15524 LIBOBJS=$ac_libobjs
15526 LTLIBOBJS=$ac_ltlibobjs
15529 if test -n "$EXEEXT"; then
15530 am__EXEEXT_TRUE=
15531 am__EXEEXT_FALSE='#'
15532 else
15533 am__EXEEXT_TRUE='#'
15534 am__EXEEXT_FALSE=
15537 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15538 as_fn_error "conditional \"AMDEP\" was never defined.
15539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15541 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15542 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15545 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15546 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15549 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15550 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15553 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15554 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15557 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15558 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15561 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15562 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15565 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15566 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15569 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15570 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15573 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15574 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15577 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15578 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15581 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15582 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15585 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15586 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15589 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15590 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15593 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15594 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15597 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15598 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15601 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15602 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15605 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15606 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15609 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15610 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15613 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15614 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15617 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15618 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15621 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15622 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15625 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15626 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15629 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15630 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15633 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15634 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15637 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15638 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15641 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15642 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15645 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15646 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15651 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15655 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15659 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 : ${CONFIG_STATUS=./config.status}
15664 ac_write_fail=0
15665 ac_clean_files_save=$ac_clean_files
15666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15668 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15669 as_write_fail=0
15670 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15671 #! $SHELL
15672 # Generated by $as_me.
15673 # Run this file to recreate the current configuration.
15674 # Compiler output produced by configure, useful for debugging
15675 # configure, is in config.log if it exists.
15677 debug=false
15678 ac_cs_recheck=false
15679 ac_cs_silent=false
15681 SHELL=\${CONFIG_SHELL-$SHELL}
15682 export SHELL
15683 _ASEOF
15684 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15685 ## -------------------- ##
15686 ## M4sh Initialization. ##
15687 ## -------------------- ##
15689 # Be more Bourne compatible
15690 DUALCASE=1; export DUALCASE # for MKS sh
15691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15692 emulate sh
15693 NULLCMD=:
15694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15695 # is contrary to our usage. Disable this feature.
15696 alias -g '${1+"$@"}'='"$@"'
15697 setopt NO_GLOB_SUBST
15698 else
15699 case `(set -o) 2>/dev/null` in #(
15700 *posix*) :
15701 set -o posix ;; #(
15702 *) :
15704 esac
15708 as_nl='
15710 export as_nl
15711 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15712 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15715 # Prefer a ksh shell builtin over an external printf program on Solaris,
15716 # but without wasting forks for bash or zsh.
15717 if test -z "$BASH_VERSION$ZSH_VERSION" \
15718 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15719 as_echo='print -r --'
15720 as_echo_n='print -rn --'
15721 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15722 as_echo='printf %s\n'
15723 as_echo_n='printf %s'
15724 else
15725 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15726 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15727 as_echo_n='/usr/ucb/echo -n'
15728 else
15729 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15730 as_echo_n_body='eval
15731 arg=$1;
15732 case $arg in #(
15733 *"$as_nl"*)
15734 expr "X$arg" : "X\\(.*\\)$as_nl";
15735 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15736 esac;
15737 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15739 export as_echo_n_body
15740 as_echo_n='sh -c $as_echo_n_body as_echo'
15742 export as_echo_body
15743 as_echo='sh -c $as_echo_body as_echo'
15746 # The user is always right.
15747 if test "${PATH_SEPARATOR+set}" != set; then
15748 PATH_SEPARATOR=:
15749 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15750 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15751 PATH_SEPARATOR=';'
15756 # IFS
15757 # We need space, tab and new line, in precisely that order. Quoting is
15758 # there to prevent editors from complaining about space-tab.
15759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15760 # splitting by setting IFS to empty value.)
15761 IFS=" "" $as_nl"
15763 # Find who we are. Look in the path if we contain no directory separator.
15764 case $0 in #((
15765 *[\\/]* ) as_myself=$0 ;;
15766 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15767 for as_dir in $PATH
15769 IFS=$as_save_IFS
15770 test -z "$as_dir" && as_dir=.
15771 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15772 done
15773 IFS=$as_save_IFS
15776 esac
15777 # We did not find ourselves, most probably we were run as `sh COMMAND'
15778 # in which case we are not to be found in the path.
15779 if test "x$as_myself" = x; then
15780 as_myself=$0
15782 if test ! -f "$as_myself"; then
15783 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15784 exit 1
15787 # Unset variables that we do not need and which cause bugs (e.g. in
15788 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15789 # suppresses any "Segmentation fault" message there. '((' could
15790 # trigger a bug in pdksh 5.2.14.
15791 for as_var in BASH_ENV ENV MAIL MAILPATH
15792 do eval test x\${$as_var+set} = xset \
15793 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15794 done
15795 PS1='$ '
15796 PS2='> '
15797 PS4='+ '
15799 # NLS nuisances.
15800 LC_ALL=C
15801 export LC_ALL
15802 LANGUAGE=C
15803 export LANGUAGE
15805 # CDPATH.
15806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15809 # as_fn_error ERROR [LINENO LOG_FD]
15810 # ---------------------------------
15811 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15812 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15813 # script with status $?, using 1 if that was 0.
15814 as_fn_error ()
15816 as_status=$?; test $as_status -eq 0 && as_status=1
15817 if test "$3"; then
15818 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15819 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15821 $as_echo "$as_me: error: $1" >&2
15822 as_fn_exit $as_status
15823 } # as_fn_error
15826 # as_fn_set_status STATUS
15827 # -----------------------
15828 # Set $? to STATUS, without forking.
15829 as_fn_set_status ()
15831 return $1
15832 } # as_fn_set_status
15834 # as_fn_exit STATUS
15835 # -----------------
15836 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15837 as_fn_exit ()
15839 set +e
15840 as_fn_set_status $1
15841 exit $1
15842 } # as_fn_exit
15844 # as_fn_unset VAR
15845 # ---------------
15846 # Portably unset VAR.
15847 as_fn_unset ()
15849 { eval $1=; unset $1;}
15851 as_unset=as_fn_unset
15852 # as_fn_append VAR VALUE
15853 # ----------------------
15854 # Append the text in VALUE to the end of the definition contained in VAR. Take
15855 # advantage of any shell optimizations that allow amortized linear growth over
15856 # repeated appends, instead of the typical quadratic growth present in naive
15857 # implementations.
15858 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15859 eval 'as_fn_append ()
15861 eval $1+=\$2
15863 else
15864 as_fn_append ()
15866 eval $1=\$$1\$2
15868 fi # as_fn_append
15870 # as_fn_arith ARG...
15871 # ------------------
15872 # Perform arithmetic evaluation on the ARGs, and store the result in the
15873 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15874 # must be portable across $(()) and expr.
15875 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15876 eval 'as_fn_arith ()
15878 as_val=$(( $* ))
15880 else
15881 as_fn_arith ()
15883 as_val=`expr "$@" || test $? -eq 1`
15885 fi # as_fn_arith
15888 if expr a : '\(a\)' >/dev/null 2>&1 &&
15889 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15890 as_expr=expr
15891 else
15892 as_expr=false
15895 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15896 as_basename=basename
15897 else
15898 as_basename=false
15901 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15902 as_dirname=dirname
15903 else
15904 as_dirname=false
15907 as_me=`$as_basename -- "$0" ||
15908 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15909 X"$0" : 'X\(//\)$' \| \
15910 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15911 $as_echo X/"$0" |
15912 sed '/^.*\/\([^/][^/]*\)\/*$/{
15913 s//\1/
15916 /^X\/\(\/\/\)$/{
15917 s//\1/
15920 /^X\/\(\/\).*/{
15921 s//\1/
15924 s/.*/./; q'`
15926 # Avoid depending upon Character Ranges.
15927 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15928 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15929 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15930 as_cr_digits='0123456789'
15931 as_cr_alnum=$as_cr_Letters$as_cr_digits
15933 ECHO_C= ECHO_N= ECHO_T=
15934 case `echo -n x` in #(((((
15935 -n*)
15936 case `echo 'xy\c'` in
15937 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15938 xy) ECHO_C='\c';;
15939 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15940 ECHO_T=' ';;
15941 esac;;
15943 ECHO_N='-n';;
15944 esac
15946 rm -f conf$$ conf$$.exe conf$$.file
15947 if test -d conf$$.dir; then
15948 rm -f conf$$.dir/conf$$.file
15949 else
15950 rm -f conf$$.dir
15951 mkdir conf$$.dir 2>/dev/null
15953 if (echo >conf$$.file) 2>/dev/null; then
15954 if ln -s conf$$.file conf$$ 2>/dev/null; then
15955 as_ln_s='ln -s'
15956 # ... but there are two gotchas:
15957 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15958 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15959 # In both cases, we have to default to `cp -p'.
15960 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15961 as_ln_s='cp -p'
15962 elif ln conf$$.file conf$$ 2>/dev/null; then
15963 as_ln_s=ln
15964 else
15965 as_ln_s='cp -p'
15967 else
15968 as_ln_s='cp -p'
15970 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15971 rmdir conf$$.dir 2>/dev/null
15974 # as_fn_mkdir_p
15975 # -------------
15976 # Create "$as_dir" as a directory, including parents if necessary.
15977 as_fn_mkdir_p ()
15980 case $as_dir in #(
15981 -*) as_dir=./$as_dir;;
15982 esac
15983 test -d "$as_dir" || eval $as_mkdir_p || {
15984 as_dirs=
15985 while :; do
15986 case $as_dir in #(
15987 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15988 *) as_qdir=$as_dir;;
15989 esac
15990 as_dirs="'$as_qdir' $as_dirs"
15991 as_dir=`$as_dirname -- "$as_dir" ||
15992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15993 X"$as_dir" : 'X\(//\)[^/]' \| \
15994 X"$as_dir" : 'X\(//\)$' \| \
15995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15996 $as_echo X"$as_dir" |
15997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15998 s//\1/
16001 /^X\(\/\/\)[^/].*/{
16002 s//\1/
16005 /^X\(\/\/\)$/{
16006 s//\1/
16009 /^X\(\/\).*/{
16010 s//\1/
16013 s/.*/./; q'`
16014 test -d "$as_dir" && break
16015 done
16016 test -z "$as_dirs" || eval "mkdir $as_dirs"
16017 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16020 } # as_fn_mkdir_p
16021 if mkdir -p . 2>/dev/null; then
16022 as_mkdir_p='mkdir -p "$as_dir"'
16023 else
16024 test -d ./-p && rmdir ./-p
16025 as_mkdir_p=false
16028 if test -x / >/dev/null 2>&1; then
16029 as_test_x='test -x'
16030 else
16031 if ls -dL / >/dev/null 2>&1; then
16032 as_ls_L_option=L
16033 else
16034 as_ls_L_option=
16036 as_test_x='
16037 eval sh -c '\''
16038 if test -d "$1"; then
16039 test -d "$1/.";
16040 else
16041 case $1 in #(
16042 -*)set "./$1";;
16043 esac;
16044 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16045 ???[sx]*):;;*)false;;esac;fi
16046 '\'' sh
16049 as_executable_p=$as_test_x
16051 # Sed expression to map a string onto a valid CPP name.
16052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16054 # Sed expression to map a string onto a valid variable name.
16055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16058 exec 6>&1
16059 ## ----------------------------------- ##
16060 ## Main body of $CONFIG_STATUS script. ##
16061 ## ----------------------------------- ##
16062 _ASEOF
16063 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066 # Save the log message, to keep $0 and so on meaningful, and to
16067 # report actual input values of CONFIG_FILES etc. instead of their
16068 # values after options handling.
16069 ac_log="
16070 This file was extended by package-unused $as_me version-unused, which was
16071 generated by GNU Autoconf 2.64. Invocation command line was
16073 CONFIG_FILES = $CONFIG_FILES
16074 CONFIG_HEADERS = $CONFIG_HEADERS
16075 CONFIG_LINKS = $CONFIG_LINKS
16076 CONFIG_COMMANDS = $CONFIG_COMMANDS
16077 $ $0 $@
16079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16082 _ACEOF
16084 case $ac_config_files in *"
16085 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16086 esac
16088 case $ac_config_headers in *"
16089 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16090 esac
16093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16094 # Files that config.status was made for.
16095 config_files="$ac_config_files"
16096 config_headers="$ac_config_headers"
16097 config_commands="$ac_config_commands"
16099 _ACEOF
16101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16102 ac_cs_usage="\
16103 \`$as_me' instantiates files and other configuration actions
16104 from templates according to the current configuration. Unless the files
16105 and actions are specified as TAGs, all are instantiated by default.
16107 Usage: $0 [OPTION]... [TAG]...
16109 -h, --help print this help, then exit
16110 -V, --version print version number and configuration settings, then exit
16111 -q, --quiet, --silent
16112 do not print progress messages
16113 -d, --debug don't remove temporary files
16114 --recheck update $as_me by reconfiguring in the same conditions
16115 --file=FILE[:TEMPLATE]
16116 instantiate the configuration file FILE
16117 --header=FILE[:TEMPLATE]
16118 instantiate the configuration header FILE
16120 Configuration files:
16121 $config_files
16123 Configuration headers:
16124 $config_headers
16126 Configuration commands:
16127 $config_commands
16129 Report bugs to the package provider."
16131 _ACEOF
16132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16133 ac_cs_version="\\
16134 package-unused config.status version-unused
16135 configured by $0, generated by GNU Autoconf 2.64,
16136 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16138 Copyright (C) 2009 Free Software Foundation, Inc.
16139 This config.status script is free software; the Free Software Foundation
16140 gives unlimited permission to copy, distribute and modify it."
16142 ac_pwd='$ac_pwd'
16143 srcdir='$srcdir'
16144 INSTALL='$INSTALL'
16145 MKDIR_P='$MKDIR_P'
16146 AWK='$AWK'
16147 test -n "\$AWK" || AWK=awk
16148 _ACEOF
16150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16151 # The default lists apply if the user does not specify any file.
16152 ac_need_defaults=:
16153 while test $# != 0
16155 case $1 in
16156 --*=*)
16157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16159 ac_shift=:
16162 ac_option=$1
16163 ac_optarg=$2
16164 ac_shift=shift
16166 esac
16168 case $ac_option in
16169 # Handling of the options.
16170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16171 ac_cs_recheck=: ;;
16172 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16173 $as_echo "$ac_cs_version"; exit ;;
16174 --debug | --debu | --deb | --de | --d | -d )
16175 debug=: ;;
16176 --file | --fil | --fi | --f )
16177 $ac_shift
16178 case $ac_optarg in
16179 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16180 esac
16181 as_fn_append CONFIG_FILES " '$ac_optarg'"
16182 ac_need_defaults=false;;
16183 --header | --heade | --head | --hea )
16184 $ac_shift
16185 case $ac_optarg in
16186 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16187 esac
16188 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16189 ac_need_defaults=false;;
16190 --he | --h)
16191 # Conflict between --help and --header
16192 as_fn_error "ambiguous option: \`$1'
16193 Try \`$0 --help' for more information.";;
16194 --help | --hel | -h )
16195 $as_echo "$ac_cs_usage"; exit ;;
16196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16197 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16198 ac_cs_silent=: ;;
16200 # This is an error.
16201 -*) as_fn_error "unrecognized option: \`$1'
16202 Try \`$0 --help' for more information." ;;
16204 *) as_fn_append ac_config_targets " $1"
16205 ac_need_defaults=false ;;
16207 esac
16208 shift
16209 done
16211 ac_configure_extra_args=
16213 if $ac_cs_silent; then
16214 exec 6>/dev/null
16215 ac_configure_extra_args="$ac_configure_extra_args --silent"
16218 _ACEOF
16219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16220 if \$ac_cs_recheck; then
16221 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16222 shift
16223 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16224 CONFIG_SHELL='$SHELL'
16225 export CONFIG_SHELL
16226 exec "\$@"
16229 _ACEOF
16230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231 exec 5>>config.log
16233 echo
16234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16235 ## Running $as_me. ##
16236 _ASBOX
16237 $as_echo "$ac_log"
16238 } >&5
16240 _ACEOF
16241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243 # INIT-COMMANDS
16246 srcdir="$srcdir"
16247 host="$host"
16248 target="$target"
16249 with_multisubdir="$with_multisubdir"
16250 with_multisrctop="$with_multisrctop"
16251 with_target_subdir="$with_target_subdir"
16252 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16253 multi_basedir="$multi_basedir"
16254 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16255 CC="$CC"
16256 CXX="$CXX"
16257 GFORTRAN="$GFORTRAN"
16258 GCJ="$GCJ"
16259 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16262 # The HP-UX ksh and POSIX shell print the target directory to stdout
16263 # if CDPATH is set.
16264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16266 sed_quote_subst='$sed_quote_subst'
16267 double_quote_subst='$double_quote_subst'
16268 delay_variable_subst='$delay_variable_subst'
16269 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16270 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16271 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16272 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16273 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16274 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16275 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16276 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16277 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16278 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16279 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16280 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16281 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16282 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16283 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16284 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16285 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16286 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16287 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16288 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16289 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16290 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16291 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16292 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16293 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16294 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16295 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16296 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16297 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16298 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16299 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16300 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16301 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16302 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16303 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16304 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16305 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16306 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16307 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16308 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16309 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16310 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16311 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16312 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16313 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16314 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16315 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16316 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16317 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"`'
16318 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16319 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16320 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16321 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16322 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16323 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16324 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16325 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16326 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16327 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16328 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16329 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16330 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16331 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16332 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16333 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16334 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16335 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16336 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16337 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16338 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16339 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16340 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16341 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16342 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16343 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16344 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16345 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16346 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16347 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16348 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16349 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16350 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16351 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16352 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16353 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16354 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16355 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16356 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16357 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16358 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16359 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16360 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16361 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16362 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16363 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16364 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16365 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16366 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16367 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16368 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16369 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16370 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16371 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16372 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16373 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16374 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16375 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16376 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16377 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16378 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16379 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16380 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16381 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16382 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16383 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16384 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16385 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16386 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16387 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16388 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16389 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16390 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16391 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16392 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16393 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16394 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16395 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16396 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16397 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16398 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16399 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16400 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16401 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16402 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16403 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16404 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16405 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16406 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16407 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16408 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16409 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16410 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16411 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16412 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16413 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16414 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16415 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16416 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16417 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16418 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16419 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16420 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16421 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16422 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16423 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16424 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16425 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16426 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16427 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16428 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16429 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16430 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16431 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16433 LTCC='$LTCC'
16434 LTCFLAGS='$LTCFLAGS'
16435 compiler='$compiler_DEFAULT'
16437 # A function that is used when there is no print builtin or printf.
16438 func_fallback_echo ()
16440 eval 'cat <<_LTECHO_EOF
16442 _LTECHO_EOF'
16445 # Quote evaled strings.
16446 for var in SED \
16447 GREP \
16448 EGREP \
16449 FGREP \
16450 SHELL \
16451 ECHO \
16452 LD \
16453 NM \
16454 LN_S \
16455 lt_SP2NL \
16456 lt_NL2SP \
16457 reload_flag \
16458 OBJDUMP \
16459 deplibs_check_method \
16460 file_magic_cmd \
16461 AR \
16462 AR_FLAGS \
16463 STRIP \
16464 RANLIB \
16465 CC \
16466 CFLAGS \
16467 compiler \
16468 lt_cv_sys_global_symbol_pipe \
16469 lt_cv_sys_global_symbol_to_cdecl \
16470 lt_cv_sys_global_symbol_to_c_name_address \
16471 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16472 lt_prog_compiler_no_builtin_flag \
16473 lt_prog_compiler_wl \
16474 lt_prog_compiler_pic \
16475 lt_prog_compiler_static \
16476 lt_cv_prog_compiler_c_o \
16477 need_locks \
16478 DSYMUTIL \
16479 NMEDIT \
16480 LIPO \
16481 OTOOL \
16482 OTOOL64 \
16483 shrext_cmds \
16484 export_dynamic_flag_spec \
16485 whole_archive_flag_spec \
16486 compiler_needs_object \
16487 with_gnu_ld \
16488 allow_undefined_flag \
16489 no_undefined_flag \
16490 hardcode_libdir_flag_spec \
16491 hardcode_libdir_flag_spec_ld \
16492 hardcode_libdir_separator \
16493 fix_srcfile_path \
16494 exclude_expsyms \
16495 include_expsyms \
16496 file_list_spec \
16497 variables_saved_for_relink \
16498 libname_spec \
16499 library_names_spec \
16500 soname_spec \
16501 install_override_mode \
16502 finish_eval \
16503 old_striplib \
16504 striplib \
16505 LD_GO \
16506 reload_flag_GO \
16507 compiler_GO \
16508 lt_prog_compiler_no_builtin_flag_GO \
16509 lt_prog_compiler_wl_GO \
16510 lt_prog_compiler_pic_GO \
16511 lt_prog_compiler_static_GO \
16512 lt_cv_prog_compiler_c_o_GO \
16513 export_dynamic_flag_spec_GO \
16514 whole_archive_flag_spec_GO \
16515 compiler_needs_object_GO \
16516 with_gnu_ld_GO \
16517 allow_undefined_flag_GO \
16518 no_undefined_flag_GO \
16519 hardcode_libdir_flag_spec_GO \
16520 hardcode_libdir_flag_spec_ld_GO \
16521 hardcode_libdir_separator_GO \
16522 fix_srcfile_path_GO \
16523 exclude_expsyms_GO \
16524 include_expsyms_GO \
16525 file_list_spec_GO; do
16526 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16527 *[\\\\\\\`\\"\\\$]*)
16528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16533 esac
16534 done
16536 # Double-quote double-evaled strings.
16537 for var in reload_cmds \
16538 old_postinstall_cmds \
16539 old_postuninstall_cmds \
16540 old_archive_cmds \
16541 extract_expsyms_cmds \
16542 old_archive_from_new_cmds \
16543 old_archive_from_expsyms_cmds \
16544 archive_cmds \
16545 archive_expsym_cmds \
16546 module_cmds \
16547 module_expsym_cmds \
16548 export_symbols_cmds \
16549 prelink_cmds \
16550 postinstall_cmds \
16551 postuninstall_cmds \
16552 finish_cmds \
16553 sys_lib_search_path_spec \
16554 sys_lib_dlsearch_path_spec \
16555 reload_cmds_GO \
16556 old_archive_cmds_GO \
16557 old_archive_from_new_cmds_GO \
16558 old_archive_from_expsyms_cmds_GO \
16559 archive_cmds_GO \
16560 archive_expsym_cmds_GO \
16561 module_cmds_GO \
16562 module_expsym_cmds_GO \
16563 export_symbols_cmds_GO \
16564 prelink_cmds_GO; do
16565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16566 *[\\\\\\\`\\"\\\$]*)
16567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16572 esac
16573 done
16575 ac_aux_dir='$ac_aux_dir'
16576 xsi_shell='$xsi_shell'
16577 lt_shell_append='$lt_shell_append'
16579 # See if we are running on zsh, and set the options which allow our
16580 # commands through without removal of \ escapes INIT.
16581 if test -n "\${ZSH_VERSION+set}" ; then
16582 setopt NO_GLOB_SUBST
16586 PACKAGE='$PACKAGE'
16587 VERSION='$VERSION'
16588 TIMESTAMP='$TIMESTAMP'
16589 RM='$RM'
16590 ofile='$ofile'
16597 # Variables needed in config.status (file generation) which aren't already
16598 # passed by autoconf.
16599 SUBDIRS="$SUBDIRS"
16602 _ACEOF
16604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16606 # Handling of arguments.
16607 for ac_config_target in $ac_config_targets
16609 case $ac_config_target in
16610 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16611 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16612 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16613 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16614 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16615 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16616 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16618 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16619 esac
16620 done
16623 # If the user did not use the arguments to specify the items to instantiate,
16624 # then the envvar interface is used. Set only those that are not.
16625 # We use the long form for the default assignment because of an extremely
16626 # bizarre bug on SunOS 4.1.3.
16627 if $ac_need_defaults; then
16628 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16629 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16630 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16633 # Have a temporary directory for convenience. Make it in the build tree
16634 # simply because there is no reason against having it here, and in addition,
16635 # creating and moving files from /tmp can sometimes cause problems.
16636 # Hook for its removal unless debugging.
16637 # Note that there is a small window in which the directory will not be cleaned:
16638 # after its creation but before its name has been assigned to `$tmp'.
16639 $debug ||
16641 tmp=
16642 trap 'exit_status=$?
16643 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16645 trap 'as_fn_exit 1' 1 2 13 15
16647 # Create a (secure) tmp directory for tmp files.
16650 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16651 test -n "$tmp" && test -d "$tmp"
16652 } ||
16654 tmp=./conf$$-$RANDOM
16655 (umask 077 && mkdir "$tmp")
16656 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16658 # Set up the scripts for CONFIG_FILES section.
16659 # No need to generate them if there are no CONFIG_FILES.
16660 # This happens for instance with `./config.status config.h'.
16661 if test -n "$CONFIG_FILES"; then
16664 ac_cr=`echo X | tr X '\015'`
16665 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16666 # But we know of no other shell where ac_cr would be empty at this
16667 # point, so we can use a bashism as a fallback.
16668 if test "x$ac_cr" = x; then
16669 eval ac_cr=\$\'\\r\'
16671 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16672 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16673 ac_cs_awk_cr='\r'
16674 else
16675 ac_cs_awk_cr=$ac_cr
16678 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16679 _ACEOF
16683 echo "cat >conf$$subs.awk <<_ACEOF" &&
16684 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16685 echo "_ACEOF"
16686 } >conf$$subs.sh ||
16687 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16688 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16689 ac_delim='%!_!# '
16690 for ac_last_try in false false false false false :; do
16691 . ./conf$$subs.sh ||
16692 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16694 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16695 if test $ac_delim_n = $ac_delim_num; then
16696 break
16697 elif $ac_last_try; then
16698 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16699 else
16700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16702 done
16703 rm -f conf$$subs.sh
16705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16706 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16707 _ACEOF
16708 sed -n '
16710 s/^/S["/; s/!.*/"]=/
16713 s/^[^!]*!//
16714 :repl
16715 t repl
16716 s/'"$ac_delim"'$//
16717 t delim
16720 s/\(.\{148\}\).*/\1/
16721 t more1
16722 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16725 b repl
16726 :more1
16727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16730 s/.\{148\}//
16731 t nl
16732 :delim
16734 s/\(.\{148\}\).*/\1/
16735 t more2
16736 s/["\\]/\\&/g; s/^/"/; s/$/"/
16739 :more2
16740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16743 s/.\{148\}//
16744 t delim
16745 ' <conf$$subs.awk | sed '
16746 /^[^""]/{
16748 s/\n//
16750 ' >>$CONFIG_STATUS || ac_write_fail=1
16751 rm -f conf$$subs.awk
16752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16753 _ACAWK
16754 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16755 for (key in S) S_is_set[key] = 1
16756 FS = "\a"
16760 line = $ 0
16761 nfields = split(line, field, "@")
16762 substed = 0
16763 len = length(field[1])
16764 for (i = 2; i < nfields; i++) {
16765 key = field[i]
16766 keylen = length(key)
16767 if (S_is_set[key]) {
16768 value = S[key]
16769 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16770 len += length(value) + length(field[++i])
16771 substed = 1
16772 } else
16773 len += 1 + keylen
16776 print line
16779 _ACAWK
16780 _ACEOF
16781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16782 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16783 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16784 else
16786 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16787 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16788 _ACEOF
16790 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16791 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16792 # trailing colons and then remove the whole line if VPATH becomes empty
16793 # (actually we leave an empty line to preserve line numbers).
16794 if test "x$srcdir" = x.; then
16795 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16796 s/:*\$(srcdir):*/:/
16797 s/:*\${srcdir}:*/:/
16798 s/:*@srcdir@:*/:/
16799 s/^\([^=]*=[ ]*\):*/\1/
16800 s/:*$//
16801 s/^[^=]*=[ ]*$//
16805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16806 fi # test -n "$CONFIG_FILES"
16808 # Set up the scripts for CONFIG_HEADERS section.
16809 # No need to generate them if there are no CONFIG_HEADERS.
16810 # This happens for instance with `./config.status Makefile'.
16811 if test -n "$CONFIG_HEADERS"; then
16812 cat >"$tmp/defines.awk" <<\_ACAWK ||
16813 BEGIN {
16814 _ACEOF
16816 # Transform confdefs.h into an awk script `defines.awk', embedded as
16817 # here-document in config.status, that substitutes the proper values into
16818 # config.h.in to produce config.h.
16820 # Create a delimiter string that does not exist in confdefs.h, to ease
16821 # handling of long lines.
16822 ac_delim='%!_!# '
16823 for ac_last_try in false false :; do
16824 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16825 if test -z "$ac_t"; then
16826 break
16827 elif $ac_last_try; then
16828 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16829 else
16830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16832 done
16834 # For the awk script, D is an array of macro values keyed by name,
16835 # likewise P contains macro parameters if any. Preserve backslash
16836 # newline sequences.
16838 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16839 sed -n '
16840 s/.\{148\}/&'"$ac_delim"'/g
16841 t rset
16842 :rset
16843 s/^[ ]*#[ ]*define[ ][ ]*/ /
16844 t def
16846 :def
16847 s/\\$//
16848 t bsnl
16849 s/["\\]/\\&/g
16850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16851 D["\1"]=" \3"/p
16852 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16854 :bsnl
16855 s/["\\]/\\&/g
16856 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16857 D["\1"]=" \3\\\\\\n"\\/p
16858 t cont
16859 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16860 t cont
16862 :cont
16864 s/.\{148\}/&'"$ac_delim"'/g
16865 t clear
16866 :clear
16867 s/\\$//
16868 t bsnlc
16869 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16871 :bsnlc
16872 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16873 b cont
16874 ' <confdefs.h | sed '
16875 s/'"$ac_delim"'/"\\\
16876 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16879 for (key in D) D_is_set[key] = 1
16880 FS = "\a"
16882 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16883 line = \$ 0
16884 split(line, arg, " ")
16885 if (arg[1] == "#") {
16886 defundef = arg[2]
16887 mac1 = arg[3]
16888 } else {
16889 defundef = substr(arg[1], 2)
16890 mac1 = arg[2]
16892 split(mac1, mac2, "(") #)
16893 macro = mac2[1]
16894 prefix = substr(line, 1, index(line, defundef) - 1)
16895 if (D_is_set[macro]) {
16896 # Preserve the white space surrounding the "#".
16897 print prefix "define", macro P[macro] D[macro]
16898 next
16899 } else {
16900 # Replace #undef with comments. This is necessary, for example,
16901 # in the case of _POSIX_SOURCE, which is predefined and required
16902 # on some systems where configure will not decide to define it.
16903 if (defundef == "undef") {
16904 print "/*", prefix defundef, macro, "*/"
16905 next
16909 { print }
16910 _ACAWK
16911 _ACEOF
16912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16913 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16914 fi # test -n "$CONFIG_HEADERS"
16917 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16918 shift
16919 for ac_tag
16921 case $ac_tag in
16922 :[FHLC]) ac_mode=$ac_tag; continue;;
16923 esac
16924 case $ac_mode$ac_tag in
16925 :[FHL]*:*);;
16926 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16927 :[FH]-) ac_tag=-:-;;
16928 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16929 esac
16930 ac_save_IFS=$IFS
16931 IFS=:
16932 set x $ac_tag
16933 IFS=$ac_save_IFS
16934 shift
16935 ac_file=$1
16936 shift
16938 case $ac_mode in
16939 :L) ac_source=$1;;
16940 :[FH])
16941 ac_file_inputs=
16942 for ac_f
16944 case $ac_f in
16945 -) ac_f="$tmp/stdin";;
16946 *) # Look for the file first in the build tree, then in the source tree
16947 # (if the path is not absolute). The absolute path cannot be DOS-style,
16948 # because $ac_f cannot contain `:'.
16949 test -f "$ac_f" ||
16950 case $ac_f in
16951 [\\/$]*) false;;
16952 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16953 esac ||
16954 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16955 esac
16956 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16957 as_fn_append ac_file_inputs " '$ac_f'"
16958 done
16960 # Let's still pretend it is `configure' which instantiates (i.e., don't
16961 # use $as_me), people would be surprised to read:
16962 # /* config.h. Generated by config.status. */
16963 configure_input='Generated from '`
16964 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16965 `' by configure.'
16966 if test x"$ac_file" != x-; then
16967 configure_input="$ac_file. $configure_input"
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16969 $as_echo "$as_me: creating $ac_file" >&6;}
16971 # Neutralize special characters interpreted by sed in replacement strings.
16972 case $configure_input in #(
16973 *\&* | *\|* | *\\* )
16974 ac_sed_conf_input=`$as_echo "$configure_input" |
16975 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16976 *) ac_sed_conf_input=$configure_input;;
16977 esac
16979 case $ac_tag in
16980 *:-:* | *:-) cat >"$tmp/stdin" \
16981 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16982 esac
16984 esac
16986 ac_dir=`$as_dirname -- "$ac_file" ||
16987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16988 X"$ac_file" : 'X\(//\)[^/]' \| \
16989 X"$ac_file" : 'X\(//\)$' \| \
16990 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16991 $as_echo X"$ac_file" |
16992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16993 s//\1/
16996 /^X\(\/\/\)[^/].*/{
16997 s//\1/
17000 /^X\(\/\/\)$/{
17001 s//\1/
17004 /^X\(\/\).*/{
17005 s//\1/
17008 s/.*/./; q'`
17009 as_dir="$ac_dir"; as_fn_mkdir_p
17010 ac_builddir=.
17012 case "$ac_dir" in
17013 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17015 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17016 # A ".." for each directory in $ac_dir_suffix.
17017 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17018 case $ac_top_builddir_sub in
17019 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17020 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17021 esac ;;
17022 esac
17023 ac_abs_top_builddir=$ac_pwd
17024 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17025 # for backward compatibility:
17026 ac_top_builddir=$ac_top_build_prefix
17028 case $srcdir in
17029 .) # We are building in place.
17030 ac_srcdir=.
17031 ac_top_srcdir=$ac_top_builddir_sub
17032 ac_abs_top_srcdir=$ac_pwd ;;
17033 [\\/]* | ?:[\\/]* ) # Absolute name.
17034 ac_srcdir=$srcdir$ac_dir_suffix;
17035 ac_top_srcdir=$srcdir
17036 ac_abs_top_srcdir=$srcdir ;;
17037 *) # Relative name.
17038 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17039 ac_top_srcdir=$ac_top_build_prefix$srcdir
17040 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17041 esac
17042 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17045 case $ac_mode in
17048 # CONFIG_FILE
17051 case $INSTALL in
17052 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17053 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17054 esac
17055 ac_MKDIR_P=$MKDIR_P
17056 case $MKDIR_P in
17057 [\\/$]* | ?:[\\/]* ) ;;
17058 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17059 esac
17060 _ACEOF
17062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17063 # If the template does not know about datarootdir, expand it.
17064 # FIXME: This hack should be removed a few years after 2.60.
17065 ac_datarootdir_hack=; ac_datarootdir_seen=
17066 ac_sed_dataroot='
17067 /datarootdir/ {
17071 /@datadir@/p
17072 /@docdir@/p
17073 /@infodir@/p
17074 /@localedir@/p
17075 /@mandir@/p'
17076 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17077 *datarootdir*) ac_datarootdir_seen=yes;;
17078 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17080 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17081 _ACEOF
17082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17083 ac_datarootdir_hack='
17084 s&@datadir@&$datadir&g
17085 s&@docdir@&$docdir&g
17086 s&@infodir@&$infodir&g
17087 s&@localedir@&$localedir&g
17088 s&@mandir@&$mandir&g
17089 s&\\\${datarootdir}&$datarootdir&g' ;;
17090 esac
17091 _ACEOF
17093 # Neutralize VPATH when `$srcdir' = `.'.
17094 # Shell code in configure.ac might set extrasub.
17095 # FIXME: do we really want to maintain this feature?
17096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17097 ac_sed_extra="$ac_vpsub
17098 $extrasub
17099 _ACEOF
17100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17103 s|@configure_input@|$ac_sed_conf_input|;t t
17104 s&@top_builddir@&$ac_top_builddir_sub&;t t
17105 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17106 s&@srcdir@&$ac_srcdir&;t t
17107 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17108 s&@top_srcdir@&$ac_top_srcdir&;t t
17109 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17110 s&@builddir@&$ac_builddir&;t t
17111 s&@abs_builddir@&$ac_abs_builddir&;t t
17112 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17113 s&@INSTALL@&$ac_INSTALL&;t t
17114 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17115 $ac_datarootdir_hack
17117 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17118 || as_fn_error "could not create $ac_file" "$LINENO" 5
17120 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17121 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17122 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17124 which seems to be undefined. Please make sure it is defined." >&5
17125 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17126 which seems to be undefined. Please make sure it is defined." >&2;}
17128 rm -f "$tmp/stdin"
17129 case $ac_file in
17130 -) cat "$tmp/out" && rm -f "$tmp/out";;
17131 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17132 esac \
17133 || as_fn_error "could not create $ac_file" "$LINENO" 5
17137 # CONFIG_HEADER
17139 if test x"$ac_file" != x-; then
17141 $as_echo "/* $configure_input */" \
17142 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17143 } >"$tmp/config.h" \
17144 || as_fn_error "could not create $ac_file" "$LINENO" 5
17145 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17147 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17148 else
17149 rm -f "$ac_file"
17150 mv "$tmp/config.h" "$ac_file" \
17151 || as_fn_error "could not create $ac_file" "$LINENO" 5
17153 else
17154 $as_echo "/* $configure_input */" \
17155 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17156 || as_fn_error "could not create -" "$LINENO" 5
17158 # Compute "$ac_file"'s index in $config_headers.
17159 _am_arg="$ac_file"
17160 _am_stamp_count=1
17161 for _am_header in $config_headers :; do
17162 case $_am_header in
17163 $_am_arg | $_am_arg:* )
17164 break ;;
17166 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17167 esac
17168 done
17169 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17170 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17171 X"$_am_arg" : 'X\(//\)[^/]' \| \
17172 X"$_am_arg" : 'X\(//\)$' \| \
17173 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17174 $as_echo X"$_am_arg" |
17175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17176 s//\1/
17179 /^X\(\/\/\)[^/].*/{
17180 s//\1/
17183 /^X\(\/\/\)$/{
17184 s//\1/
17187 /^X\(\/\).*/{
17188 s//\1/
17191 s/.*/./; q'`/stamp-h$_am_stamp_count
17194 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17195 $as_echo "$as_me: executing $ac_file commands" >&6;}
17197 esac
17200 case $ac_file$ac_mode in
17201 "default-1":C)
17202 # Only add multilib support code if we just rebuilt the top-level
17203 # Makefile.
17204 case " $CONFIG_FILES " in
17205 *" Makefile "*)
17206 ac_file=Makefile . ${multi_basedir}/config-ml.in
17208 esac ;;
17209 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17210 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17211 # are listed without --file. Let's play safe and only enable the eval
17212 # if we detect the quoting.
17213 case $CONFIG_FILES in
17214 *\'*) eval set x "$CONFIG_FILES" ;;
17215 *) set x $CONFIG_FILES ;;
17216 esac
17217 shift
17218 for mf
17220 # Strip MF so we end up with the name of the file.
17221 mf=`echo "$mf" | sed -e 's/:.*$//'`
17222 # Check whether this is an Automake generated Makefile or not.
17223 # We used to match only the files named `Makefile.in', but
17224 # some people rename them; so instead we look at the file content.
17225 # Grep'ing the first line is not enough: some people post-process
17226 # each Makefile.in and add a new line on top of each file to say so.
17227 # Grep'ing the whole file is not good either: AIX grep has a line
17228 # limit of 2048, but all sed's we know have understand at least 4000.
17229 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17230 dirpart=`$as_dirname -- "$mf" ||
17231 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17232 X"$mf" : 'X\(//\)[^/]' \| \
17233 X"$mf" : 'X\(//\)$' \| \
17234 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17235 $as_echo X"$mf" |
17236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17237 s//\1/
17240 /^X\(\/\/\)[^/].*/{
17241 s//\1/
17244 /^X\(\/\/\)$/{
17245 s//\1/
17248 /^X\(\/\).*/{
17249 s//\1/
17252 s/.*/./; q'`
17253 else
17254 continue
17256 # Extract the definition of DEPDIR, am__include, and am__quote
17257 # from the Makefile without running `make'.
17258 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17259 test -z "$DEPDIR" && continue
17260 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17261 test -z "am__include" && continue
17262 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17263 # When using ansi2knr, U may be empty or an underscore; expand it
17264 U=`sed -n 's/^U = //p' < "$mf"`
17265 # Find all dependency output files, they are included files with
17266 # $(DEPDIR) in their names. We invoke sed twice because it is the
17267 # simplest approach to changing $(DEPDIR) to its actual value in the
17268 # expansion.
17269 for file in `sed -n "
17270 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17271 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17272 # Make sure the directory exists.
17273 test -f "$dirpart/$file" && continue
17274 fdir=`$as_dirname -- "$file" ||
17275 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17276 X"$file" : 'X\(//\)[^/]' \| \
17277 X"$file" : 'X\(//\)$' \| \
17278 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17279 $as_echo X"$file" |
17280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17281 s//\1/
17284 /^X\(\/\/\)[^/].*/{
17285 s//\1/
17288 /^X\(\/\/\)$/{
17289 s//\1/
17292 /^X\(\/\).*/{
17293 s//\1/
17296 s/.*/./; q'`
17297 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17298 # echo "creating $dirpart/$file"
17299 echo '# dummy' > "$dirpart/$file"
17300 done
17301 done
17304 "libtool":C)
17306 # See if we are running on zsh, and set the options which allow our
17307 # commands through without removal of \ escapes.
17308 if test -n "${ZSH_VERSION+set}" ; then
17309 setopt NO_GLOB_SUBST
17312 cfgfile="${ofile}T"
17313 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17314 $RM "$cfgfile"
17316 cat <<_LT_EOF >> "$cfgfile"
17317 #! $SHELL
17319 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17320 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17321 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17322 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17324 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17325 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17326 # Written by Gordon Matzigkeit, 1996
17328 # This file is part of GNU Libtool.
17330 # GNU Libtool is free software; you can redistribute it and/or
17331 # modify it under the terms of the GNU General Public License as
17332 # published by the Free Software Foundation; either version 2 of
17333 # the License, or (at your option) any later version.
17335 # As a special exception to the GNU General Public License,
17336 # if you distribute this file as part of a program or library that
17337 # is built using GNU Libtool, you may include this file under the
17338 # same distribution terms that you use for the rest of that program.
17340 # GNU Libtool is distributed in the hope that it will be useful,
17341 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17342 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17343 # GNU General Public License for more details.
17345 # You should have received a copy of the GNU General Public License
17346 # along with GNU Libtool; see the file COPYING. If not, a copy
17347 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17348 # obtained by writing to the Free Software Foundation, Inc.,
17349 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17352 # The names of the tagged configurations supported by this script.
17353 available_tags="GO "
17355 # ### BEGIN LIBTOOL CONFIG
17357 # A sed program that does not truncate output.
17358 SED=$lt_SED
17360 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17361 Xsed="\$SED -e 1s/^X//"
17363 # A grep program that handles long lines.
17364 GREP=$lt_GREP
17366 # An ERE matcher.
17367 EGREP=$lt_EGREP
17369 # A literal string matcher.
17370 FGREP=$lt_FGREP
17372 # Shell to use when invoking shell scripts.
17373 SHELL=$lt_SHELL
17375 # An echo program that protects backslashes.
17376 ECHO=$lt_ECHO
17378 # Which release of libtool.m4 was used?
17379 macro_version=$macro_version
17380 macro_revision=$macro_revision
17382 # Whether or not to build shared libraries.
17383 build_libtool_libs=$enable_shared
17385 # Whether or not to build static libraries.
17386 build_old_libs=$enable_static
17388 # What type of objects to build.
17389 pic_mode=$pic_mode
17391 # Whether or not to optimize for fast installation.
17392 fast_install=$enable_fast_install
17394 # The host system.
17395 host_alias=$host_alias
17396 host=$host
17397 host_os=$host_os
17399 # The build system.
17400 build_alias=$build_alias
17401 build=$build
17402 build_os=$build_os
17404 # A BSD- or MS-compatible name lister.
17405 NM=$lt_NM
17407 # Whether we need soft or hard links.
17408 LN_S=$lt_LN_S
17410 # What is the maximum length of a command?
17411 max_cmd_len=$max_cmd_len
17413 # Object file suffix (normally "o").
17414 objext=$ac_objext
17416 # Executable file suffix (normally "").
17417 exeext=$exeext
17419 # whether the shell understands "unset".
17420 lt_unset=$lt_unset
17422 # turn spaces into newlines.
17423 SP2NL=$lt_lt_SP2NL
17425 # turn newlines into spaces.
17426 NL2SP=$lt_lt_NL2SP
17428 # An object symbol dumper.
17429 OBJDUMP=$lt_OBJDUMP
17431 # Method to check whether dependent libraries are shared objects.
17432 deplibs_check_method=$lt_deplibs_check_method
17434 # Command to use when deplibs_check_method == "file_magic".
17435 file_magic_cmd=$lt_file_magic_cmd
17437 # The archiver.
17438 AR=$lt_AR
17439 AR_FLAGS=$lt_AR_FLAGS
17441 # A symbol stripping program.
17442 STRIP=$lt_STRIP
17444 # Commands used to install an old-style archive.
17445 RANLIB=$lt_RANLIB
17446 old_postinstall_cmds=$lt_old_postinstall_cmds
17447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17449 # Whether to use a lock for old archive extraction.
17450 lock_old_archive_extraction=$lock_old_archive_extraction
17452 # A C compiler.
17453 LTCC=$lt_CC
17455 # LTCC compiler flags.
17456 LTCFLAGS=$lt_CFLAGS
17458 # Take the output of nm and produce a listing of raw symbols and C names.
17459 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17461 # Transform the output of nm in a proper C declaration.
17462 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17464 # Transform the output of nm in a C name address pair.
17465 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17467 # Transform the output of nm in a C name address pair when lib prefix is needed.
17468 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17470 # The name of the directory that contains temporary libtool files.
17471 objdir=$objdir
17473 # Used to examine libraries when file_magic_cmd begins with "file".
17474 MAGIC_CMD=$MAGIC_CMD
17476 # Must we lock files when doing compilation?
17477 need_locks=$lt_need_locks
17479 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17480 DSYMUTIL=$lt_DSYMUTIL
17482 # Tool to change global to local symbols on Mac OS X.
17483 NMEDIT=$lt_NMEDIT
17485 # Tool to manipulate fat objects and archives on Mac OS X.
17486 LIPO=$lt_LIPO
17488 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17489 OTOOL=$lt_OTOOL
17491 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17492 OTOOL64=$lt_OTOOL64
17494 # Old archive suffix (normally "a").
17495 libext=$libext
17497 # Shared library suffix (normally ".so").
17498 shrext_cmds=$lt_shrext_cmds
17500 # The commands to extract the exported symbol list from a shared archive.
17501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17503 # Variables whose values should be saved in libtool wrapper scripts and
17504 # restored at link time.
17505 variables_saved_for_relink=$lt_variables_saved_for_relink
17507 # Do we need the "lib" prefix for modules?
17508 need_lib_prefix=$need_lib_prefix
17510 # Do we need a version for libraries?
17511 need_version=$need_version
17513 # Library versioning type.
17514 version_type=$version_type
17516 # Shared library runtime path variable.
17517 runpath_var=$runpath_var
17519 # Shared library path variable.
17520 shlibpath_var=$shlibpath_var
17522 # Is shlibpath searched before the hard-coded library search path?
17523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17525 # Format of library name prefix.
17526 libname_spec=$lt_libname_spec
17528 # List of archive names. First name is the real one, the rest are links.
17529 # The last name is the one that the linker finds with -lNAME
17530 library_names_spec=$lt_library_names_spec
17532 # The coded name of the library, if different from the real name.
17533 soname_spec=$lt_soname_spec
17535 # Permission mode override for installation of shared libraries.
17536 install_override_mode=$lt_install_override_mode
17538 # Command to use after installation of a shared archive.
17539 postinstall_cmds=$lt_postinstall_cmds
17541 # Command to use after uninstallation of a shared archive.
17542 postuninstall_cmds=$lt_postuninstall_cmds
17544 # Commands used to finish a libtool library installation in a directory.
17545 finish_cmds=$lt_finish_cmds
17547 # As "finish_cmds", except a single script fragment to be evaled but
17548 # not shown.
17549 finish_eval=$lt_finish_eval
17551 # Whether we should hardcode library paths into libraries.
17552 hardcode_into_libs=$hardcode_into_libs
17554 # Compile-time system search path for libraries.
17555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17557 # Run-time system search path for libraries.
17558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17560 # Whether dlopen is supported.
17561 dlopen_support=$enable_dlopen
17563 # Whether dlopen of programs is supported.
17564 dlopen_self=$enable_dlopen_self
17566 # Whether dlopen of statically linked programs is supported.
17567 dlopen_self_static=$enable_dlopen_self_static
17569 # Commands to strip libraries.
17570 old_striplib=$lt_old_striplib
17571 striplib=$lt_striplib
17574 # The linker used to build libraries.
17575 LD=$lt_LD
17577 # How to create reloadable object files.
17578 reload_flag=$lt_reload_flag
17579 reload_cmds=$lt_reload_cmds
17581 # Commands used to build an old-style archive.
17582 old_archive_cmds=$lt_old_archive_cmds
17584 # A language specific compiler.
17585 CC=$lt_compiler
17587 # Is the compiler the GNU compiler?
17588 with_gcc=$GCC
17590 # Compiler flag to turn off builtin functions.
17591 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17593 # How to pass a linker flag through the compiler.
17594 wl=$lt_lt_prog_compiler_wl
17596 # Additional compiler flags for building library objects.
17597 pic_flag=$lt_lt_prog_compiler_pic
17599 # Compiler flag to prevent dynamic linking.
17600 link_static_flag=$lt_lt_prog_compiler_static
17602 # Does compiler simultaneously support -c and -o options?
17603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17605 # Whether or not to add -lc for building shared libraries.
17606 build_libtool_need_lc=$archive_cmds_need_lc
17608 # Whether or not to disallow shared libs when runtime libs are static.
17609 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17611 # Compiler flag to allow reflexive dlopens.
17612 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17614 # Compiler flag to generate shared objects directly from archives.
17615 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17617 # Whether the compiler copes with passing no objects directly.
17618 compiler_needs_object=$lt_compiler_needs_object
17620 # Create an old-style archive from a shared archive.
17621 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17623 # Create a temporary old-style archive to link instead of a shared archive.
17624 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17626 # Commands used to build a shared archive.
17627 archive_cmds=$lt_archive_cmds
17628 archive_expsym_cmds=$lt_archive_expsym_cmds
17630 # Commands used to build a loadable module if different from building
17631 # a shared archive.
17632 module_cmds=$lt_module_cmds
17633 module_expsym_cmds=$lt_module_expsym_cmds
17635 # Whether we are building with GNU ld or not.
17636 with_gnu_ld=$lt_with_gnu_ld
17638 # Flag that allows shared libraries with undefined symbols to be built.
17639 allow_undefined_flag=$lt_allow_undefined_flag
17641 # Flag that enforces no undefined symbols.
17642 no_undefined_flag=$lt_no_undefined_flag
17644 # Flag to hardcode \$libdir into a binary during linking.
17645 # This must work even if \$libdir does not exist
17646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17648 # If ld is used when linking, flag to hardcode \$libdir into a binary
17649 # during linking. This must work even if \$libdir does not exist.
17650 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17652 # Whether we need a single "-rpath" flag with a separated argument.
17653 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17655 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17656 # DIR into the resulting binary.
17657 hardcode_direct=$hardcode_direct
17659 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17660 # DIR into the resulting binary and the resulting library dependency is
17661 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17662 # library is relocated.
17663 hardcode_direct_absolute=$hardcode_direct_absolute
17665 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17666 # into the resulting binary.
17667 hardcode_minus_L=$hardcode_minus_L
17669 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17670 # into the resulting binary.
17671 hardcode_shlibpath_var=$hardcode_shlibpath_var
17673 # Set to "yes" if building a shared library automatically hardcodes DIR
17674 # into the library and all subsequent libraries and executables linked
17675 # against it.
17676 hardcode_automatic=$hardcode_automatic
17678 # Set to yes if linker adds runtime paths of dependent libraries
17679 # to runtime path list.
17680 inherit_rpath=$inherit_rpath
17682 # Whether libtool must link a program against all its dependency libraries.
17683 link_all_deplibs=$link_all_deplibs
17685 # Fix the shell variable \$srcfile for the compiler.
17686 fix_srcfile_path=$lt_fix_srcfile_path
17688 # Set to "yes" if exported symbols are required.
17689 always_export_symbols=$always_export_symbols
17691 # The commands to list exported symbols.
17692 export_symbols_cmds=$lt_export_symbols_cmds
17694 # Symbols that should not be listed in the preloaded symbols.
17695 exclude_expsyms=$lt_exclude_expsyms
17697 # Symbols that must always be exported.
17698 include_expsyms=$lt_include_expsyms
17700 # Commands necessary for linking programs (against libraries) with templates.
17701 prelink_cmds=$lt_prelink_cmds
17703 # Specify filename containing input files.
17704 file_list_spec=$lt_file_list_spec
17706 # How to hardcode a shared library path into an executable.
17707 hardcode_action=$hardcode_action
17709 # ### END LIBTOOL CONFIG
17711 _LT_EOF
17713 case $host_os in
17714 aix3*)
17715 cat <<\_LT_EOF >> "$cfgfile"
17716 # AIX sometimes has problems with the GCC collect2 program. For some
17717 # reason, if we set the COLLECT_NAMES environment variable, the problems
17718 # vanish in a puff of smoke.
17719 if test "X${COLLECT_NAMES+set}" != Xset; then
17720 COLLECT_NAMES=
17721 export COLLECT_NAMES
17723 _LT_EOF
17725 esac
17728 ltmain="$ac_aux_dir/ltmain.sh"
17731 # We use sed instead of cat because bash on DJGPP gets confused if
17732 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17733 # text mode, it properly converts lines to CR/LF. This bash problem
17734 # is reportedly fixed, but why not run on old versions too?
17735 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17736 || (rm -f "$cfgfile"; exit 1)
17738 case $xsi_shell in
17739 yes)
17740 cat << \_LT_EOF >> "$cfgfile"
17742 # func_dirname file append nondir_replacement
17743 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17744 # otherwise set result to NONDIR_REPLACEMENT.
17745 func_dirname ()
17747 case ${1} in
17748 */*) func_dirname_result="${1%/*}${2}" ;;
17749 * ) func_dirname_result="${3}" ;;
17750 esac
17753 # func_basename file
17754 func_basename ()
17756 func_basename_result="${1##*/}"
17759 # func_dirname_and_basename file append nondir_replacement
17760 # perform func_basename and func_dirname in a single function
17761 # call:
17762 # dirname: Compute the dirname of FILE. If nonempty,
17763 # add APPEND to the result, otherwise set result
17764 # to NONDIR_REPLACEMENT.
17765 # value returned in "$func_dirname_result"
17766 # basename: Compute filename of FILE.
17767 # value retuned in "$func_basename_result"
17768 # Implementation must be kept synchronized with func_dirname
17769 # and func_basename. For efficiency, we do not delegate to
17770 # those functions but instead duplicate the functionality here.
17771 func_dirname_and_basename ()
17773 case ${1} in
17774 */*) func_dirname_result="${1%/*}${2}" ;;
17775 * ) func_dirname_result="${3}" ;;
17776 esac
17777 func_basename_result="${1##*/}"
17780 # func_stripname prefix suffix name
17781 # strip PREFIX and SUFFIX off of NAME.
17782 # PREFIX and SUFFIX must not contain globbing or regex special
17783 # characters, hashes, percent signs, but SUFFIX may contain a leading
17784 # dot (in which case that matches only a dot).
17785 func_stripname ()
17787 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17788 # positional parameters, so assign one to ordinary parameter first.
17789 func_stripname_result=${3}
17790 func_stripname_result=${func_stripname_result#"${1}"}
17791 func_stripname_result=${func_stripname_result%"${2}"}
17794 # func_opt_split
17795 func_opt_split ()
17797 func_opt_split_opt=${1%%=*}
17798 func_opt_split_arg=${1#*=}
17801 # func_lo2o object
17802 func_lo2o ()
17804 case ${1} in
17805 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17806 *) func_lo2o_result=${1} ;;
17807 esac
17810 # func_xform libobj-or-source
17811 func_xform ()
17813 func_xform_result=${1%.*}.lo
17816 # func_arith arithmetic-term...
17817 func_arith ()
17819 func_arith_result=$(( $* ))
17822 # func_len string
17823 # STRING may not start with a hyphen.
17824 func_len ()
17826 func_len_result=${#1}
17829 _LT_EOF
17831 *) # Bourne compatible functions.
17832 cat << \_LT_EOF >> "$cfgfile"
17834 # func_dirname file append nondir_replacement
17835 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17836 # otherwise set result to NONDIR_REPLACEMENT.
17837 func_dirname ()
17839 # Extract subdirectory from the argument.
17840 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17841 if test "X$func_dirname_result" = "X${1}"; then
17842 func_dirname_result="${3}"
17843 else
17844 func_dirname_result="$func_dirname_result${2}"
17848 # func_basename file
17849 func_basename ()
17851 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17855 # func_stripname prefix suffix name
17856 # strip PREFIX and SUFFIX off of NAME.
17857 # PREFIX and SUFFIX must not contain globbing or regex special
17858 # characters, hashes, percent signs, but SUFFIX may contain a leading
17859 # dot (in which case that matches only a dot).
17860 # func_strip_suffix prefix name
17861 func_stripname ()
17863 case ${2} in
17864 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17865 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17866 esac
17869 # sed scripts:
17870 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17871 my_sed_long_arg='1s/^-[^=]*=//'
17873 # func_opt_split
17874 func_opt_split ()
17876 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17877 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17880 # func_lo2o object
17881 func_lo2o ()
17883 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17886 # func_xform libobj-or-source
17887 func_xform ()
17889 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17892 # func_arith arithmetic-term...
17893 func_arith ()
17895 func_arith_result=`expr "$@"`
17898 # func_len string
17899 # STRING may not start with a hyphen.
17900 func_len ()
17902 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17905 _LT_EOF
17906 esac
17908 case $lt_shell_append in
17909 yes)
17910 cat << \_LT_EOF >> "$cfgfile"
17912 # func_append var value
17913 # Append VALUE to the end of shell variable VAR.
17914 func_append ()
17916 eval "$1+=\$2"
17918 _LT_EOF
17921 cat << \_LT_EOF >> "$cfgfile"
17923 # func_append var value
17924 # Append VALUE to the end of shell variable VAR.
17925 func_append ()
17927 eval "$1=\$$1\$2"
17930 _LT_EOF
17932 esac
17935 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17936 || (rm -f "$cfgfile"; exit 1)
17938 mv -f "$cfgfile" "$ofile" ||
17939 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17940 chmod +x "$ofile"
17943 cat <<_LT_EOF >> "$ofile"
17945 # ### BEGIN LIBTOOL TAG CONFIG: GO
17947 # The linker used to build libraries.
17948 LD=$lt_LD_GO
17950 # How to create reloadable object files.
17951 reload_flag=$lt_reload_flag_GO
17952 reload_cmds=$lt_reload_cmds_GO
17954 # Commands used to build an old-style archive.
17955 old_archive_cmds=$lt_old_archive_cmds_GO
17957 # A language specific compiler.
17958 CC=$lt_compiler_GO
17960 # Is the compiler the GNU compiler?
17961 with_gcc=$GCC_GO
17963 # Compiler flag to turn off builtin functions.
17964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17966 # How to pass a linker flag through the compiler.
17967 wl=$lt_lt_prog_compiler_wl_GO
17969 # Additional compiler flags for building library objects.
17970 pic_flag=$lt_lt_prog_compiler_pic_GO
17972 # Compiler flag to prevent dynamic linking.
17973 link_static_flag=$lt_lt_prog_compiler_static_GO
17975 # Does compiler simultaneously support -c and -o options?
17976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17978 # Whether or not to add -lc for building shared libraries.
17979 build_libtool_need_lc=$archive_cmds_need_lc_GO
17981 # Whether or not to disallow shared libs when runtime libs are static.
17982 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17984 # Compiler flag to allow reflexive dlopens.
17985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17987 # Compiler flag to generate shared objects directly from archives.
17988 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17990 # Whether the compiler copes with passing no objects directly.
17991 compiler_needs_object=$lt_compiler_needs_object_GO
17993 # Create an old-style archive from a shared archive.
17994 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17996 # Create a temporary old-style archive to link instead of a shared archive.
17997 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17999 # Commands used to build a shared archive.
18000 archive_cmds=$lt_archive_cmds_GO
18001 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18003 # Commands used to build a loadable module if different from building
18004 # a shared archive.
18005 module_cmds=$lt_module_cmds_GO
18006 module_expsym_cmds=$lt_module_expsym_cmds_GO
18008 # Whether we are building with GNU ld or not.
18009 with_gnu_ld=$lt_with_gnu_ld_GO
18011 # Flag that allows shared libraries with undefined symbols to be built.
18012 allow_undefined_flag=$lt_allow_undefined_flag_GO
18014 # Flag that enforces no undefined symbols.
18015 no_undefined_flag=$lt_no_undefined_flag_GO
18017 # Flag to hardcode \$libdir into a binary during linking.
18018 # This must work even if \$libdir does not exist
18019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18021 # If ld is used when linking, flag to hardcode \$libdir into a binary
18022 # during linking. This must work even if \$libdir does not exist.
18023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18025 # Whether we need a single "-rpath" flag with a separated argument.
18026 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18028 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18029 # DIR into the resulting binary.
18030 hardcode_direct=$hardcode_direct_GO
18032 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18033 # DIR into the resulting binary and the resulting library dependency is
18034 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18035 # library is relocated.
18036 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18038 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18039 # into the resulting binary.
18040 hardcode_minus_L=$hardcode_minus_L_GO
18042 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18043 # into the resulting binary.
18044 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18046 # Set to "yes" if building a shared library automatically hardcodes DIR
18047 # into the library and all subsequent libraries and executables linked
18048 # against it.
18049 hardcode_automatic=$hardcode_automatic_GO
18051 # Set to yes if linker adds runtime paths of dependent libraries
18052 # to runtime path list.
18053 inherit_rpath=$inherit_rpath_GO
18055 # Whether libtool must link a program against all its dependency libraries.
18056 link_all_deplibs=$link_all_deplibs_GO
18058 # Fix the shell variable \$srcfile for the compiler.
18059 fix_srcfile_path=$lt_fix_srcfile_path_GO
18061 # Set to "yes" if exported symbols are required.
18062 always_export_symbols=$always_export_symbols_GO
18064 # The commands to list exported symbols.
18065 export_symbols_cmds=$lt_export_symbols_cmds_GO
18067 # Symbols that should not be listed in the preloaded symbols.
18068 exclude_expsyms=$lt_exclude_expsyms_GO
18070 # Symbols that must always be exported.
18071 include_expsyms=$lt_include_expsyms_GO
18073 # Commands necessary for linking programs (against libraries) with templates.
18074 prelink_cmds=$lt_prelink_cmds_GO
18076 # Specify filename containing input files.
18077 file_list_spec=$lt_file_list_spec_GO
18079 # How to hardcode a shared library path into an executable.
18080 hardcode_action=$hardcode_action_GO
18082 # ### END LIBTOOL TAG CONFIG: GO
18083 _LT_EOF
18086 "default":C) if test -n "$CONFIG_FILES"; then
18087 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18088 # that multilib installs will end up installed in the correct place.
18089 # The testsuite needs it for multilib-aware ABI baseline files.
18090 # To work around this not being passed down from config-ml.in ->
18091 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18092 # append it here. Only modify Makefiles that have just been created.
18094 # Also, get rid of this simulated-VPATH thing that automake does.
18095 cat > vpsed << \_EOF
18096 s!`test -f '$<' || echo '$(srcdir)/'`!!
18097 _EOF
18098 for i in $SUBDIRS; do
18099 case $CONFIG_FILES in
18100 *${i}/Makefile*)
18101 #echo "Adding MULTISUBDIR to $i/Makefile"
18102 sed -f vpsed $i/Makefile > tmp
18103 grep '^MULTISUBDIR =' Makefile >> tmp
18104 mv tmp $i/Makefile
18106 esac
18107 done
18108 rm vpsed
18112 esac
18113 done # for ac_tag
18116 as_fn_exit 0
18117 _ACEOF
18118 ac_clean_files=$ac_clean_files_save
18120 test $ac_write_fail = 0 ||
18121 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18124 # configure is writing to config.log, and then calls config.status.
18125 # config.status does its own redirection, appending to config.log.
18126 # Unfortunately, on DOS this fails, as config.log is still kept open
18127 # by configure, so config.status won't be able to write to it; its
18128 # output is simply discarded. So we exec the FD to /dev/null,
18129 # effectively closing config.log, so it can be properly (re)opened and
18130 # appended to by config.status. When coming back to configure, we
18131 # need to make the FD available again.
18132 if test "$no_create" != yes; then
18133 ac_cs_success=:
18134 ac_config_status_args=
18135 test "$silent" = yes &&
18136 ac_config_status_args="$ac_config_status_args --quiet"
18137 exec 5>/dev/null
18138 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18139 exec 5>>config.log
18140 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18141 # would make configure fail if this is the last instruction.
18142 $ac_cs_success || as_fn_exit $?
18144 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18146 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}