Restore 2012 entries that hasn't been saved.
[official-gcc.git] / libgo / configure
blobc1ee7bac0826e77fe7ca8307a71dae5c52285175
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 STRINGOPS_FLAG
608 HAVE_WAIT4_FALSE
609 HAVE_WAIT4_TRUE
610 HAVE_STRERROR_R_FALSE
611 HAVE_STRERROR_R_TRUE
612 HAVE_SYS_MMAN_H_FALSE
613 HAVE_SYS_MMAN_H_TRUE
614 PTHREAD_LIBS
615 PTHREAD_CFLAGS
616 NET_LIBS
617 MATH_LIBS
618 USING_SPLIT_STACK_FALSE
619 USING_SPLIT_STACK_TRUE
620 SPLIT_STACK
621 OSCFLAGS
622 GO_SYSCALL_OS_ARCH_FILE
623 GO_SYSCALL_OS_FILE
624 GO_LIBCALL_OS_ARCH_FILE
625 GO_LIBCALL_OS_FILE
626 GOARCH
627 LIBGO_IS_X86_64_FALSE
628 LIBGO_IS_X86_64_TRUE
629 LIBGO_IS_SPARC64_FALSE
630 LIBGO_IS_SPARC64_TRUE
631 LIBGO_IS_SPARC_FALSE
632 LIBGO_IS_SPARC_TRUE
633 LIBGO_IS_PPC64_FALSE
634 LIBGO_IS_PPC64_TRUE
635 LIBGO_IS_PPC_FALSE
636 LIBGO_IS_PPC_TRUE
637 LIBGO_IS_MIPSO64_FALSE
638 LIBGO_IS_MIPSO64_TRUE
639 LIBGO_IS_MIPSN64_FALSE
640 LIBGO_IS_MIPSN64_TRUE
641 LIBGO_IS_MIPSN32_FALSE
642 LIBGO_IS_MIPSN32_TRUE
643 LIBGO_IS_MIPSO32_FALSE
644 LIBGO_IS_MIPSO32_TRUE
645 LIBGO_IS_MIPS_FALSE
646 LIBGO_IS_MIPS_TRUE
647 LIBGO_IS_M68K_FALSE
648 LIBGO_IS_M68K_TRUE
649 LIBGO_IS_ARM_FALSE
650 LIBGO_IS_ARM_TRUE
651 LIBGO_IS_ALPHA_FALSE
652 LIBGO_IS_ALPHA_TRUE
653 LIBGO_IS_386_FALSE
654 LIBGO_IS_386_TRUE
655 GOOS
656 LIBGO_IS_SOLARIS_FALSE
657 LIBGO_IS_SOLARIS_TRUE
658 LIBGO_IS_RTEMS_FALSE
659 LIBGO_IS_RTEMS_TRUE
660 LIBGO_IS_LINUX_FALSE
661 LIBGO_IS_LINUX_TRUE
662 LIBGO_IS_IRIX_FALSE
663 LIBGO_IS_IRIX_TRUE
664 LIBGO_IS_FREEBSD_FALSE
665 LIBGO_IS_FREEBSD_TRUE
666 LIBGO_IS_DARWIN_FALSE
667 LIBGO_IS_DARWIN_TRUE
668 go_include
669 LIBFFIINCS
670 LIBFFI
671 glibgo_toolexeclibdir
672 glibgo_toolexecdir
673 glibgo_prefixdir
674 WERROR
675 WARN_FLAGS
676 CC_FOR_BUILD
677 enable_static
678 enable_shared
680 OTOOL64
681 OTOOL
682 LIPO
683 NMEDIT
684 DSYMUTIL
686 OBJDUMP
687 LN_S
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LIBTOOL
692 OBJCOPY
693 RANLIB
695 FGREP
696 EGREP
697 GREP
699 MAINT
700 MAINTAINER_MODE_FALSE
701 MAINTAINER_MODE_TRUE
702 GOCFLAGS
704 am__fastdepCC_FALSE
705 am__fastdepCC_TRUE
706 CCDEPMODE
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__quote
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
720 am__untar
721 am__tar
722 AMTAR
723 am__leading_dot
724 SET_MAKE
726 mkdir_p
727 MKDIR_P
728 INSTALL_STRIP_PROGRAM
729 STRIP
730 install_sh
731 MAKEINFO
732 AUTOHEADER
733 AUTOMAKE
734 AUTOCONF
735 ACLOCAL
736 VERSION
737 PACKAGE
738 CYGPATH_W
739 am__isrc
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 target_os
744 target_vendor
745 target_cpu
746 target
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 multi_basedir
756 libtool_VERSION
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 enable_multilib
799 enable_dependency_tracking
800 enable_maintainer_mode
801 with_gnu_ld
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 enable_libtool_lock
807 enable_version_specific_runtime_libs
808 with_libffi
809 with_system_libunwind
810 enable_sjlj_exceptions
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
816 CPPFLAGS'
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
867 ac_prev=
868 ac_dashdash=
869 for ac_option
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
887 ac_dashdash=yes ;;
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
906 --config-cache | -C)
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information."
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1223 esac
1224 done
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error "missing argument to $ac_option"
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281 test "$silent" = yes && exec 6>/dev/null
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1310 /^X\(\/\/\)$/{
1311 s//\1/
1314 /^X\(\/\).*/{
1315 s//\1/
1318 s/.*/./; q'`
1319 srcdir=$ac_confdir
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 srcdir=..
1323 else
1324 ac_srcdir_defaulted=no
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333 pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1352 # Report the --help message.
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
1358 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1367 Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 [PREFIX]
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411 _ACEOF
1413 cat <<\_ACEOF
1415 Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420 System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 --target=TARGET configure for building compilers for TARGET [HOST]
1424 _ACEOF
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of package-unused version-unused:";;
1430 esac
1431 cat <<\_ACEOF
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-multilib build many library versions (default)
1438 --disable-dependency-tracking speeds up one-time build
1439 --enable-dependency-tracking do not reject slow dependency extractors
1440 --enable-maintainer-mode enable make rules and dependencies not useful
1441 (and sometimes confusing) to the casual installer
1442 --enable-shared[=PKGS] build shared libraries [default=yes]
1443 --enable-static[=PKGS] build static libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --enable-version-specific-runtime-libs
1448 Specify that runtime libraries should be installed
1449 in a compiler-specific directory
1450 --enable-sjlj-exceptions
1451 force use of builtin_setjmp for exceptions
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-pic try to use only PIC/non-PIC objects [default=use
1458 both]
1459 --without-libffi don't use libffi
1460 --with-system-libunwind use installed libunwind
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 GOC Go compiler command
1471 GOCFLAGS Go compiler flags
1472 CPP C preprocessor
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1477 Report bugs to the package provider.
1478 _ACEOF
1479 ac_status=$?
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 package-unused configure version-unused
1541 generated by GNU Autoconf 2.64
1543 Copyright (C) 2009 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1585 ac_retval=1
1587 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588 return $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_c_try_link LINENO
1593 # -----------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_link ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest$ac_exeext
1599 if { { ac_try="$ac_link"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest$ac_exeext && {
1618 test "$cross_compiling" = yes ||
1619 $as_test_x conftest$ac_exeext
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1626 ac_retval=1
1628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630 # interfere with the next link command; also delete a directory that is
1631 # left behind by Apple's compiler. We do this before executing the actions.
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 return $ac_retval
1636 } # ac_fn_c_try_link
1638 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639 # -------------------------------------------------------
1640 # Tests whether HEADER exists and can be compiled using the include files in
1641 # INCLUDES, setting the cache variable VAR accordingly.
1642 ac_fn_c_check_header_compile ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648 $as_echo_n "(cached) " >&6
1649 else
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656 eval "$3=yes"
1657 else
1658 eval "$3=no"
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667 } # ac_fn_c_check_header_compile
1669 # ac_fn_c_try_cpp LINENO
1670 # ----------------------
1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_cpp ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } >/dev/null && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=1
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 return $ac_retval
1704 } # ac_fn_c_try_cpp
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1710 ac_fn_c_try_run ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=$ac_status
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1746 } # ac_fn_c_try_run
1748 # ac_fn_c_check_func LINENO FUNC VAR
1749 # ----------------------------------
1750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1751 ac_fn_c_check_func ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1763 #define $2 innocuous_$2
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $2 (); below.
1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1768 <limits.h> exists even on freestanding compilers. */
1770 #ifdef __STDC__
1771 # include <limits.h>
1772 #else
1773 # include <assert.h>
1774 #endif
1776 #undef $2
1778 /* Override any GCC internal prototype to avoid an error.
1779 Use char because int might match the return type of a GCC
1780 builtin and then its argument prototype would still apply. */
1781 #ifdef __cplusplus
1782 extern "C"
1783 #endif
1784 char $2 ();
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined __stub_$2 || defined __stub___$2
1789 choke me
1790 #endif
1793 main ()
1795 return $2 ();
1797 return 0;
1799 _ACEOF
1800 if ac_fn_c_try_link "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1805 rm -f core conftest.err conftest.$ac_objext \
1806 conftest$ac_exeext conftest.$ac_ext
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 } # ac_fn_c_check_func
1815 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1818 # the include files in INCLUDES and setting the cache variable VAR
1819 # accordingly.
1820 ac_fn_c_check_header_mongrel ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 $as_echo_n "(cached) " >&6
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 else
1833 # Is the header compilable?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1835 $as_echo_n "checking $2 usability... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_header_compiler=yes
1843 else
1844 ac_header_compiler=no
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1848 $as_echo "$ac_header_compiler" >&6; }
1850 # Is the header present?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1852 $as_echo_n "checking $2 presence... " >&6; }
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_cpp "$LINENO"; then :
1858 ac_header_preproc=yes
1859 else
1860 ac_header_preproc=no
1862 rm -f conftest.err conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1864 $as_echo "$ac_header_preproc" >&6; }
1866 # So? What about this header?
1867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1868 yes:no: )
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1870 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 no:yes:* )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1876 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1878 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1880 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1882 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 esac
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890 $as_echo_n "(cached) " >&6
1891 else
1892 eval "$3=\$ac_header_compiler"
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 } # ac_fn_c_check_header_mongrel
1902 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1903 # -------------------------------------------
1904 # Tests whether TYPE exists after having included INCLUDES, setting cache
1905 # variable VAR accordingly.
1906 ac_fn_c_check_type ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 eval "$3=no"
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1919 main ()
1921 if (sizeof ($2))
1922 return 0;
1924 return 0;
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1932 main ()
1934 if (sizeof (($2)))
1935 return 0;
1937 return 0;
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1942 else
1943 eval "$3=yes"
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954 } # ac_fn_c_check_type
1956 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1957 # --------------------------------------------
1958 # Tries to find the compile-time value of EXPR in a program that includes
1959 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1960 # computed
1961 ac_fn_c_compute_int ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if test "$cross_compiling" = yes; then
1965 # Depending upon the size, compute the lo and hi bounds.
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 main ()
1972 static int test_array [1 - 2 * !(($2) >= 0)];
1973 test_array [0] = 0
1976 return 0;
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_lo=0 ac_mid=0
1981 while :; do
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 main ()
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989 test_array [0] = 0
1992 return 0;
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_hi=$ac_mid; break
1997 else
1998 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1999 if test $ac_lo -le $ac_mid; then
2000 ac_lo= ac_hi=
2001 break
2003 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 done
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2012 main ()
2014 static int test_array [1 - 2 * !(($2) < 0)];
2015 test_array [0] = 0
2018 return 0;
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 ac_hi=-1 ac_mid=-1
2023 while :; do
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2028 main ()
2030 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2031 test_array [0] = 0
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_lo=$ac_mid; break
2039 else
2040 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2041 if test $ac_mid -le $ac_hi; then
2042 ac_lo= ac_hi=
2043 break
2045 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 done
2049 else
2050 ac_lo= ac_hi=
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 # Binary search between lo and hi bounds.
2056 while test "x$ac_lo" != "x$ac_hi"; do
2057 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2062 main ()
2064 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065 test_array [0] = 0
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_hi=$ac_mid
2073 else
2074 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 done
2078 case $ac_lo in #((
2079 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2080 '') ac_retval=1 ;;
2081 esac
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2086 static long int longval () { return $2; }
2087 static unsigned long int ulongval () { return $2; }
2088 #include <stdio.h>
2089 #include <stdlib.h>
2091 main ()
2094 FILE *f = fopen ("conftest.val", "w");
2095 if (! f)
2096 return 1;
2097 if (($2) < 0)
2099 long int i = longval ();
2100 if (i != ($2))
2101 return 1;
2102 fprintf (f, "%ld", i);
2104 else
2106 unsigned long int i = ulongval ();
2107 if (i != ($2))
2108 return 1;
2109 fprintf (f, "%lu", i);
2111 /* Do not output a trailing newline, as this causes \r\n confusion
2112 on some platforms. */
2113 return ferror (f) || fclose (f) != 0;
2116 return 0;
2118 _ACEOF
2119 if ac_fn_c_try_run "$LINENO"; then :
2120 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2121 else
2122 ac_retval=1
2124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2125 conftest.$ac_objext conftest.beam conftest.$ac_ext
2126 rm -f conftest.val
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 return $ac_retval
2132 } # ac_fn_c_compute_int
2133 cat >config.log <<_ACEOF
2134 This file contains any messages produced by compilers while
2135 running configure, to aid debugging if configure makes a mistake.
2137 It was created by package-unused $as_me version-unused, which was
2138 generated by GNU Autoconf 2.64. Invocation command line was
2140 $ $0 $@
2142 _ACEOF
2143 exec 5>>config.log
2145 cat <<_ASUNAME
2146 ## --------- ##
2147 ## Platform. ##
2148 ## --------- ##
2150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2167 _ASUNAME
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 $as_echo "PATH: $as_dir"
2175 done
2176 IFS=$as_save_IFS
2178 } >&5
2180 cat >&5 <<_ACEOF
2183 ## ----------- ##
2184 ## Core tests. ##
2185 ## ----------- ##
2187 _ACEOF
2190 # Keep a trace of the command line.
2191 # Strip out --no-create and --no-recursion so they do not pile up.
2192 # Strip out --silent because we don't want to record it for future runs.
2193 # Also quote any args containing shell meta-characters.
2194 # Make two passes to allow for proper duplicate-argument suppression.
2195 ac_configure_args=
2196 ac_configure_args0=
2197 ac_configure_args1=
2198 ac_must_keep_next=false
2199 for ac_pass in 1 2
2201 for ac_arg
2203 case $ac_arg in
2204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2206 | -silent | --silent | --silen | --sile | --sil)
2207 continue ;;
2208 *\'*)
2209 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 esac
2211 case $ac_pass in
2212 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214 as_fn_append ac_configure_args1 " '$ac_arg'"
2215 if test $ac_must_keep_next = true; then
2216 ac_must_keep_next=false # Got value, back to normal.
2217 else
2218 case $ac_arg in
2219 *=* | --config-cache | -C | -disable-* | --disable-* \
2220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2222 | -with-* | --with-* | -without-* | --without-* | --x)
2223 case "$ac_configure_args0 " in
2224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2225 esac
2227 -* ) ac_must_keep_next=true ;;
2228 esac
2230 as_fn_append ac_configure_args " '$ac_arg'"
2232 esac
2233 done
2234 done
2235 { ac_configure_args0=; unset ac_configure_args0;}
2236 { ac_configure_args1=; unset ac_configure_args1;}
2238 # When interrupted or exit'd, cleanup temporary files, and complete
2239 # config.log. We remove comments because anyway the quotes in there
2240 # would cause problems or look ugly.
2241 # WARNING: Use '\'' to represent an apostrophe within the trap.
2242 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2243 trap 'exit_status=$?
2244 # Save into config.log some information that might help in debugging.
2246 echo
2248 cat <<\_ASBOX
2249 ## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##
2252 _ASBOX
2253 echo
2254 # The following way of writing the cache mishandles newlines in values,
2256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in #(
2259 *${as_nl}*)
2260 case $ac_var in #(
2261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2263 esac
2264 case $ac_var in #(
2265 _ | IFS | as_nl) ;; #(
2266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2267 *) { eval $ac_var=; unset $ac_var;} ;;
2268 esac ;;
2269 esac
2270 done
2271 (set) 2>&1 |
2272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2273 *${as_nl}ac_space=\ *)
2274 sed -n \
2275 "s/'\''/'\''\\\\'\'''\''/g;
2276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2277 ;; #(
2279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2281 esac |
2282 sort
2284 echo
2286 cat <<\_ASBOX
2287 ## ----------------- ##
2288 ## Output variables. ##
2289 ## ----------------- ##
2290 _ASBOX
2291 echo
2292 for ac_var in $ac_subst_vars
2294 eval ac_val=\$$ac_var
2295 case $ac_val in
2296 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 esac
2298 $as_echo "$ac_var='\''$ac_val'\''"
2299 done | sort
2300 echo
2302 if test -n "$ac_subst_files"; then
2303 cat <<\_ASBOX
2304 ## ------------------- ##
2305 ## File substitutions. ##
2306 ## ------------------- ##
2307 _ASBOX
2308 echo
2309 for ac_var in $ac_subst_files
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 $as_echo "$ac_var='\''$ac_val'\''"
2316 done | sort
2317 echo
2320 if test -s confdefs.h; then
2321 cat <<\_ASBOX
2322 ## ----------- ##
2323 ## confdefs.h. ##
2324 ## ----------- ##
2325 _ASBOX
2326 echo
2327 cat confdefs.h
2328 echo
2330 test "$ac_signal" != 0 &&
2331 $as_echo "$as_me: caught signal $ac_signal"
2332 $as_echo "$as_me: exit $exit_status"
2333 } >&5
2334 rm -f core *.core core.conftest.* &&
2335 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336 exit $exit_status
2338 for ac_signal in 1 2 13 15; do
2339 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2340 done
2341 ac_signal=0
2343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2344 rm -f -r conftest* confdefs.h
2346 $as_echo "/* confdefs.h */" > confdefs.h
2348 # Predefined preprocessor variables.
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_NAME "$PACKAGE_NAME"
2352 _ACEOF
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356 _ACEOF
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2360 _ACEOF
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_STRING "$PACKAGE_STRING"
2364 _ACEOF
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368 _ACEOF
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_URL "$PACKAGE_URL"
2372 _ACEOF
2375 # Let the site file select an alternate cache file if it wants to.
2376 # Prefer an explicitly selected file to automatically selected ones.
2377 ac_site_file1=NONE
2378 ac_site_file2=NONE
2379 if test -n "$CONFIG_SITE"; then
2380 ac_site_file1=$CONFIG_SITE
2381 elif test "x$prefix" != xNONE; then
2382 ac_site_file1=$prefix/share/config.site
2383 ac_site_file2=$prefix/etc/config.site
2384 else
2385 ac_site_file1=$ac_default_prefix/share/config.site
2386 ac_site_file2=$ac_default_prefix/etc/config.site
2388 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2390 test "x$ac_site_file" = xNONE && continue
2391 if test -r "$ac_site_file"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2393 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2394 sed 's/^/| /' "$ac_site_file" >&5
2395 . "$ac_site_file"
2397 done
2399 if test -r "$cache_file"; then
2400 # Some versions of bash will fail to source /dev/null (special
2401 # files actually), so we avoid doing that.
2402 if test -f "$cache_file"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404 $as_echo "$as_me: loading cache $cache_file" >&6;}
2405 case $cache_file in
2406 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407 *) . "./$cache_file";;
2408 esac
2410 else
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412 $as_echo "$as_me: creating cache $cache_file" >&6;}
2413 >$cache_file
2416 # Check that the precious variables saved in the cache have kept the same
2417 # value.
2418 ac_cache_corrupted=false
2419 for ac_var in $ac_precious_vars; do
2420 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2421 eval ac_new_set=\$ac_env_${ac_var}_set
2422 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2423 eval ac_new_val=\$ac_env_${ac_var}_value
2424 case $ac_old_set,$ac_new_set in
2425 set,)
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2427 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2428 ac_cache_corrupted=: ;;
2429 ,set)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2431 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2432 ac_cache_corrupted=: ;;
2433 ,);;
2435 if test "x$ac_old_val" != "x$ac_new_val"; then
2436 # differences in whitespace do not lead to failure.
2437 ac_old_val_w=`echo x $ac_old_val`
2438 ac_new_val_w=`echo x $ac_new_val`
2439 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2441 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2442 ac_cache_corrupted=:
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2445 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2446 eval $ac_var=\$ac_old_val
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2449 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2451 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2452 fi;;
2453 esac
2454 # Pass precious variables to config.status.
2455 if test "$ac_new_set" = set; then
2456 case $ac_new_val in
2457 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2458 *) ac_arg=$ac_var=$ac_new_val ;;
2459 esac
2460 case " $ac_configure_args " in
2461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2462 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463 esac
2465 done
2466 if $ac_cache_corrupted; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2470 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2471 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2473 ## -------------------- ##
2474 ## Main body of script. ##
2475 ## -------------------- ##
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 ac_config_headers="$ac_config_headers config.h"
2491 libtool_VERSION=1:0:0
2494 # Default to --enable-multilib
2495 # Check whether --enable-multilib was given.
2496 if test "${enable_multilib+set}" = set; then :
2497 enableval=$enable_multilib; case "$enableval" in
2498 yes) multilib=yes ;;
2499 no) multilib=no ;;
2500 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2501 esac
2502 else
2503 multilib=yes
2507 # We may get other options which we leave undocumented:
2508 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2509 # See config-ml.in if you want the gory details.
2511 if test "$srcdir" = "."; then
2512 if test "$with_target_subdir" != "."; then
2513 multi_basedir="$srcdir/$with_multisrctop../.."
2514 else
2515 multi_basedir="$srcdir/$with_multisrctop.."
2517 else
2518 multi_basedir="$srcdir/.."
2522 # Even if the default multilib is not a cross compilation,
2523 # it may be that some of the other multilibs are.
2524 if test $cross_compiling = no && test $multilib = yes \
2525 && test "x${with_multisubdir}" != x ; then
2526 cross_compiling=maybe
2529 ac_config_commands="$ac_config_commands default-1"
2532 ac_aux_dir=
2533 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2534 for ac_t in install-sh install.sh shtool; do
2535 if test -f "$ac_dir/$ac_t"; then
2536 ac_aux_dir=$ac_dir
2537 ac_install_sh="$ac_aux_dir/$ac_t -c"
2538 break 2
2540 done
2541 done
2542 if test -z "$ac_aux_dir"; then
2543 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2546 # These three variables are undocumented and unsupported,
2547 # and are intended to be withdrawn in a future Autoconf release.
2548 # They can cause serious problems if a builder's source tree is in a directory
2549 # whose full name contains unusual characters.
2550 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2551 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2552 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2555 # Make sure we can run config.sub.
2556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2557 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2560 $as_echo_n "checking build system type... " >&6; }
2561 if test "${ac_cv_build+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 ac_build_alias=$build_alias
2565 test "x$ac_build_alias" = x &&
2566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2567 test "x$ac_build_alias" = x &&
2568 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2570 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2574 $as_echo "$ac_cv_build" >&6; }
2575 case $ac_cv_build in
2576 *-*-*) ;;
2577 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2578 esac
2579 build=$ac_cv_build
2580 ac_save_IFS=$IFS; IFS='-'
2581 set x $ac_cv_build
2582 shift
2583 build_cpu=$1
2584 build_vendor=$2
2585 shift; shift
2586 # Remember, the first character of IFS is used to create $*,
2587 # except with old shells:
2588 build_os=$*
2589 IFS=$ac_save_IFS
2590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2594 $as_echo_n "checking host system type... " >&6; }
2595 if test "${ac_cv_host+set}" = set; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test "x$host_alias" = x; then
2599 ac_cv_host=$ac_cv_build
2600 else
2601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2602 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2607 $as_echo "$ac_cv_host" >&6; }
2608 case $ac_cv_host in
2609 *-*-*) ;;
2610 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2611 esac
2612 host=$ac_cv_host
2613 ac_save_IFS=$IFS; IFS='-'
2614 set x $ac_cv_host
2615 shift
2616 host_cpu=$1
2617 host_vendor=$2
2618 shift; shift
2619 # Remember, the first character of IFS is used to create $*,
2620 # except with old shells:
2621 host_os=$*
2622 IFS=$ac_save_IFS
2623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2627 $as_echo_n "checking target system type... " >&6; }
2628 if test "${ac_cv_target+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 if test "x$target_alias" = x; then
2632 ac_cv_target=$ac_cv_host
2633 else
2634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2635 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2640 $as_echo "$ac_cv_target" >&6; }
2641 case $ac_cv_target in
2642 *-*-*) ;;
2643 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2644 esac
2645 target=$ac_cv_target
2646 ac_save_IFS=$IFS; IFS='-'
2647 set x $ac_cv_target
2648 shift
2649 target_cpu=$1
2650 target_vendor=$2
2651 shift; shift
2652 # Remember, the first character of IFS is used to create $*,
2653 # except with old shells:
2654 target_os=$*
2655 IFS=$ac_save_IFS
2656 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2659 # The aliases save the names the user supplied, while $host etc.
2660 # will get canonicalized.
2661 test -n "$target_alias" &&
2662 test "$program_prefix$program_suffix$program_transform_name" = \
2663 NONENONEs,x,x, &&
2664 program_prefix=${target_alias}-
2666 target_alias=${target_alias-$host_alias}
2668 am__api_version='1.11'
2670 # Find a good install program. We prefer a C program (faster),
2671 # so one script is as good as another. But avoid the broken or
2672 # incompatible versions:
2673 # SysV /etc/install, /usr/sbin/install
2674 # SunOS /usr/etc/install
2675 # IRIX /sbin/install
2676 # AIX /bin/install
2677 # AmigaOS /C/install, which installs bootblocks on floppy discs
2678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681 # OS/2's system install, which has a completely different semantic
2682 # ./install, which can be erroneously created by make from ./install.sh.
2683 # Reject install programs that cannot install multiple files.
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2685 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2686 if test -z "$INSTALL"; then
2687 if test "${ac_cv_path_install+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696 case $as_dir/ in #((
2697 ./ | .// | /[cC]/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2700 /usr/ucb/* ) ;;
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2716 else
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2731 done
2732 done
2734 esac
2736 done
2737 IFS=$as_save_IFS
2739 rm -rf conftest.one conftest.two conftest.dir
2742 if test "${ac_cv_path_install+set}" = set; then
2743 INSTALL=$ac_cv_path_install
2744 else
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
2747 # break other packages using the cache if that directory is
2748 # removed, or if the value is a relative name.
2749 INSTALL=$ac_install_sh
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2753 $as_echo "$INSTALL" >&6; }
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2764 $as_echo_n "checking whether build environment is sane... " >&6; }
2765 # Just in case
2766 sleep 1
2767 echo timestamp > conftest.file
2768 # Reject unsafe characters in $srcdir or the absolute working directory
2769 # name. Accept space and tab only in the latter.
2770 am_lf='
2772 case `pwd` in
2773 *[\\\"\#\$\&\'\`$am_lf]*)
2774 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2775 esac
2776 case $srcdir in
2777 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2778 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2779 esac
2781 # Do `set' in a subshell so we don't clobber the current shell's
2782 # arguments. Must try -L first in case configure is actually a
2783 # symlink; some systems play weird games with the mod time of symlinks
2784 # (eg FreeBSD returns the mod time of the symlink's containing
2785 # directory).
2786 if (
2787 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2788 if test "$*" = "X"; then
2789 # -L didn't work.
2790 set X `ls -t "$srcdir/configure" conftest.file`
2792 rm -f conftest.file
2793 if test "$*" != "X $srcdir/configure conftest.file" \
2794 && test "$*" != "X conftest.file $srcdir/configure"; then
2796 # If neither matched, then we have a broken ls. This can happen
2797 # if, for instance, CONFIG_SHELL is bash and it inherits a
2798 # broken ls alias from the environment. This has actually
2799 # happened. Such a system could not be considered "sane".
2800 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2801 alias in your environment" "$LINENO" 5
2804 test "$2" = conftest.file
2806 then
2807 # Ok.
2809 else
2810 as_fn_error "newly created file is older than distributed files!
2811 Check your system clock" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814 $as_echo "yes" >&6; }
2815 test "$program_prefix" != NONE &&
2816 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2817 # Use a double $ so make ignores it.
2818 test "$program_suffix" != NONE &&
2819 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2820 # Double any \ or $.
2821 # By default was `s,x,x', remove it if useless.
2822 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2823 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2825 # expand $ac_aux_dir to an absolute path
2826 am_aux_dir=`cd $ac_aux_dir && pwd`
2828 if test x"${MISSING+set}" != xset; then
2829 case $am_aux_dir in
2830 *\ * | *\ *)
2831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2833 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2834 esac
2836 # Use eval to expand $SHELL
2837 if eval "$MISSING --run true"; then
2838 am_missing_run="$MISSING --run "
2839 else
2840 am_missing_run=
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2842 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2845 if test x"${install_sh}" != xset; then
2846 case $am_aux_dir in
2847 *\ * | *\ *)
2848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2850 install_sh="\${SHELL} $am_aux_dir/install-sh"
2851 esac
2854 # Installed binaries are usually stripped using `strip' when the user
2855 # run `make install-strip'. However `strip' might not be the right
2856 # tool to use in cross-compilation environments, therefore Automake
2857 # will honor the `STRIP' environment variable to overrule this program.
2858 if test "$cross_compiling" != no; then
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}strip; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if test "${ac_cv_prog_STRIP+set}" = set; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$STRIP"; then
2868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2881 done
2882 done
2883 IFS=$as_save_IFS
2887 STRIP=$ac_cv_prog_STRIP
2888 if test -n "$STRIP"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2890 $as_echo "$STRIP" >&6; }
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2898 if test -z "$ac_cv_prog_STRIP"; then
2899 ac_ct_STRIP=$STRIP
2900 # Extract the first word of "strip", so it can be a program name with args.
2901 set dummy strip; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$ac_ct_STRIP"; then
2908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_STRIP="strip"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2923 IFS=$as_save_IFS
2927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2928 if test -n "$ac_ct_STRIP"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2930 $as_echo "$ac_ct_STRIP" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2936 if test "x$ac_ct_STRIP" = x; then
2937 STRIP=":"
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940 yes:)
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned=yes ;;
2944 esac
2945 STRIP=$ac_ct_STRIP
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2952 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2955 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2956 if test -z "$MKDIR_P"; then
2957 if test "${ac_cv_path_mkdir+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_prog in mkdir gmkdir; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2969 'mkdir (GNU coreutils) '* | \
2970 'mkdir (coreutils) '* | \
2971 'mkdir (fileutils) '4.1*)
2972 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2973 break 3;;
2974 esac
2975 done
2976 done
2977 done
2978 IFS=$as_save_IFS
2982 if test "${ac_cv_path_mkdir+set}" = set; then
2983 MKDIR_P="$ac_cv_path_mkdir -p"
2984 else
2985 # As a last resort, use the slow shell script. Don't cache a
2986 # value for MKDIR_P within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the value is a relative name.
2989 test -d ./--version && rmdir ./--version
2990 MKDIR_P="$ac_install_sh -d"
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2994 $as_echo "$MKDIR_P" >&6; }
2996 mkdir_p="$MKDIR_P"
2997 case $mkdir_p in
2998 [\\/$]* | ?:[\\/]*) ;;
2999 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3000 esac
3002 for ac_prog in gawk mawk nawk awk
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_AWK+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$AWK"; then
3012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_AWK="$ac_prog"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3025 done
3026 done
3027 IFS=$as_save_IFS
3031 AWK=$ac_cv_prog_AWK
3032 if test -n "$AWK"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3034 $as_echo "$AWK" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3041 test -n "$AWK" && break
3042 done
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3045 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3046 set x ${MAKE-make}
3047 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3048 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 cat >conftest.make <<\_ACEOF
3052 SHELL = /bin/sh
3053 all:
3054 @echo '@@@%%%=$(MAKE)=@@@%%%'
3055 _ACEOF
3056 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3057 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3058 *@@@%%%=?*=@@@%%%*)
3059 eval ac_cv_prog_make_${ac_make}_set=yes;;
3061 eval ac_cv_prog_make_${ac_make}_set=no;;
3062 esac
3063 rm -f conftest.make
3065 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067 $as_echo "yes" >&6; }
3068 SET_MAKE=
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 SET_MAKE="MAKE=${MAKE-make}"
3075 rm -rf .tst 2>/dev/null
3076 mkdir .tst 2>/dev/null
3077 if test -d .tst; then
3078 am__leading_dot=.
3079 else
3080 am__leading_dot=_
3082 rmdir .tst 2>/dev/null
3084 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3085 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3086 # is not polluted with repeated "-I."
3087 am__isrc=' -I$(srcdir)'
3088 # test to see if srcdir already configured
3089 if test -f $srcdir/config.status; then
3090 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3094 # test whether we have cygpath
3095 if test -z "$CYGPATH_W"; then
3096 if (cygpath --version) >/dev/null 2>/dev/null; then
3097 CYGPATH_W='cygpath -w'
3098 else
3099 CYGPATH_W=echo
3104 # Define the identity of the package.
3105 PACKAGE='libgo'
3106 VERSION='version-unused'
3109 # Some tools Automake needs.
3111 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3114 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3117 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3120 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3123 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3125 # We need awk for the "check" target. The system "awk" is bad on
3126 # some platforms.
3127 # Always define AMTAR for backward compatibility.
3129 AMTAR=${AMTAR-"${am_missing_run}tar"}
3131 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 if test -n "$ac_tool_prefix"; then
3148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3169 done
3170 done
3171 IFS=$as_save_IFS
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3186 if test -z "$ac_cv_prog_CC"; then
3187 ac_ct_CC=$CC
3188 # Extract the first word of "gcc", so it can be a program name with args.
3189 set dummy gcc; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3194 else
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_ac_ct_CC="gcc"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3209 done
3210 done
3211 IFS=$as_save_IFS
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3218 $as_echo "$ac_ct_CC" >&6; }
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3224 if test "x$ac_ct_CC" = x; then
3225 CC=""
3226 else
3227 case $cross_compiling:$ac_tool_warned in
3228 yes:)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231 ac_tool_warned=yes ;;
3232 esac
3233 CC=$ac_ct_CC
3235 else
3236 CC="$ac_cv_prog_CC"
3239 if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}cc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_CC+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_CC="${ac_tool_prefix}cc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3264 IFS=$as_save_IFS
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3280 if test -z "$CC"; then
3281 # Extract the first word of "cc", so it can be a program name with args.
3282 set dummy cc; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_CC+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 else
3291 ac_prog_rejected=no
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3300 ac_prog_rejected=yes
3301 continue
3303 ac_cv_prog_CC="cc"
3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3307 done
3308 done
3309 IFS=$as_save_IFS
3311 if test $ac_prog_rejected = yes; then
3312 # We found a bogon in the path, so make sure we never use it.
3313 set dummy $ac_cv_prog_CC
3314 shift
3315 if test $# != 0; then
3316 # We chose a different compiler from the bogus one.
3317 # However, it has the same basename, so the bogon will be chosen
3318 # first if we set CC to just the basename; use the full file name.
3319 shift
3320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3336 if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 for ac_prog in cl.exe
3340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3361 done
3362 done
3363 IFS=$as_save_IFS
3367 CC=$ac_cv_prog_CC
3368 if test -n "$CC"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3371 else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3377 test -n "$CC" && break
3378 done
3380 if test -z "$CC"; then
3381 ac_ct_CC=$CC
3382 for ac_prog in cl.exe
3384 # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy $ac_prog; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_CC="$ac_prog"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3405 done
3406 done
3407 IFS=$as_save_IFS
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3421 test -n "$ac_ct_CC" && break
3422 done
3424 if test "x$ac_ct_CC" = x; then
3425 CC=""
3426 else
3427 case $cross_compiling:$ac_tool_warned in
3428 yes:)
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3432 esac
3433 CC=$ac_ct_CC
3440 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error "no acceptable C compiler found in \$PATH
3443 See \`config.log' for more details." "$LINENO" 5; }
3445 # Provide some information about the compiler.
3446 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3447 set X $ac_compile
3448 ac_compiler=$2
3449 for ac_option in --version -v -V -qversion; do
3450 { { ac_try="$ac_compiler $ac_option >&5"
3451 case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3458 ac_status=$?
3459 if test -s conftest.err; then
3460 sed '10a\
3461 ... rest of stderr output deleted ...
3462 10q' conftest.err >conftest.er1
3463 cat conftest.er1 >&5
3464 rm -f conftest.er1 conftest.err
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }
3468 done
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3474 main ()
3478 return 0;
3480 _ACEOF
3481 ac_clean_files_save=$ac_clean_files
3482 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3483 # Try to create an executable without -o first, disregard a.out.
3484 # It will help us diagnose broken compilers, and finding out an intuition
3485 # of exeext.
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3490 # The possible output files:
3491 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3493 ac_rmfiles=
3494 for ac_file in $ac_files
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3499 esac
3500 done
3501 rm -f $ac_rmfiles
3503 if { { ac_try="$ac_link_default"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_link_default") 2>&5
3511 ac_status=$?
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; then :
3514 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3515 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3516 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3517 # so that the user can short-circuit this test for compilers unknown to
3518 # Autoconf.
3519 for ac_file in $ac_files ''
3521 test -f "$ac_file" || continue
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3525 [ab].out )
3526 # We found the default executable, but exeext='' is most
3527 # certainly right.
3528 break;;
3529 *.* )
3530 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3531 then :; else
3532 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534 # We set ac_cv_exeext here because the later test for it is not
3535 # safe: cross compilers may not add the suffix if given an `-o'
3536 # argument, so we may need to know it at that point already.
3537 # Even if this section looks crufty: it has the advantage of
3538 # actually working.
3539 break;;
3541 break;;
3542 esac
3543 done
3544 test "$ac_cv_exeext" = no && ac_cv_exeext=
3546 else
3547 ac_file=''
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3550 $as_echo "$ac_file" >&6; }
3551 if test -z "$ac_file"; then :
3552 $as_echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 { as_fn_set_status 77
3558 as_fn_error "C compiler cannot create executables
3559 See \`config.log' for more details." "$LINENO" 5; }; }
3561 ac_exeext=$ac_cv_exeext
3563 # Check that the compiler produces executables we can run. If not, either
3564 # the compiler is broken, or we cross compile.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566 $as_echo_n "checking whether the C compiler works... " >&6; }
3567 # If not cross compiling, check that we can run a simple program.
3568 if test "$cross_compiling" != yes; then
3569 if { ac_try='./$ac_file'
3570 { { case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_try") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; }; then
3580 cross_compiling=no
3581 else
3582 if test "$cross_compiling" = maybe; then
3583 cross_compiling=yes
3584 else
3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 as_fn_error "cannot run C compiled programs.
3588 If you meant to cross compile, use \`--host'.
3589 See \`config.log' for more details." "$LINENO" 5; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3596 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3597 ac_clean_files=$ac_clean_files_save
3598 # Check that the compiler produces executables we can run. If not, either
3599 # the compiler is broken, or we cross compile.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3601 $as_echo_n "checking whether we are cross compiling... " >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3603 $as_echo "$cross_compiling" >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3606 $as_echo_n "checking for suffix of executables... " >&6; }
3607 if { { ac_try="$ac_link"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_link") 2>&5
3615 ac_status=$?
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }; then :
3618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3620 # work properly (i.e., refer to `conftest.exe'), while it won't with
3621 # `rm'.
3622 for ac_file in conftest.exe conftest conftest.*; do
3623 test -f "$ac_file" || continue
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627 break;;
3628 * ) break;;
3629 esac
3630 done
3631 else
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error "cannot compute suffix of executables: cannot compile and link
3635 See \`config.log' for more details." "$LINENO" 5; }
3637 rm -f conftest$ac_cv_exeext
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3639 $as_echo "$ac_cv_exeext" >&6; }
3641 rm -f conftest.$ac_ext
3642 EXEEXT=$ac_cv_exeext
3643 ac_exeext=$EXEEXT
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645 $as_echo_n "checking for suffix of object files... " >&6; }
3646 if test "${ac_cv_objext+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3653 main ()
3657 return 0;
3659 _ACEOF
3660 rm -f conftest.o conftest.obj
3661 if { { ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_compile") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 for ac_file in conftest.o conftest.obj conftest.*; do
3673 test -f "$ac_file" || continue;
3674 case $ac_file in
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 break;;
3678 esac
3679 done
3680 else
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error "cannot compute suffix of object files: cannot compile
3687 See \`config.log' for more details." "$LINENO" 5; }
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3694 ac_objext=$OBJEXT
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3704 main ()
3706 #ifndef __GNUC__
3707 choke me
3708 #endif
3711 return 0;
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_compiler_gnu=yes
3716 else
3717 ac_compiler_gnu=no
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725 if test $ac_compiler_gnu = yes; then
3726 GCC=yes
3727 else
3728 GCC=
3730 ac_test_CFLAGS=${CFLAGS+set}
3731 ac_save_CFLAGS=$CFLAGS
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3734 if test "${ac_cv_prog_cc_g+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 ac_save_c_werror_flag=$ac_c_werror_flag
3738 ac_c_werror_flag=yes
3739 ac_cv_prog_cc_g=no
3740 CFLAGS="-g"
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3745 main ()
3749 return 0;
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_g=yes
3754 else
3755 CFLAGS=""
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 :
3769 else
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3771 CFLAGS="-g"
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3776 main ()
3780 return 0;
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_cv_prog_cc_g=yes
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794 $as_echo "$ac_cv_prog_cc_g" >&6; }
3795 if test "$ac_test_CFLAGS" = set; then
3796 CFLAGS=$ac_save_CFLAGS
3797 elif test $ac_cv_prog_cc_g = yes; then
3798 if test "$GCC" = yes; then
3799 CFLAGS="-g -O2"
3800 else
3801 CFLAGS="-g"
3803 else
3804 if test "$GCC" = yes; then
3805 CFLAGS="-O2"
3806 else
3807 CFLAGS=
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3812 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 ac_cv_prog_cc_c89=no
3816 ac_save_CC=$CC
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #include <stdarg.h>
3820 #include <stdio.h>
3821 #include <sys/types.h>
3822 #include <sys/stat.h>
3823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3824 struct buf { int x; };
3825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3826 static char *e (p, i)
3827 char **p;
3828 int i;
3830 return p[i];
3832 static char *f (char * (*g) (char **, int), char **p, ...)
3834 char *s;
3835 va_list v;
3836 va_start (v,p);
3837 s = g (p, va_arg (v,int));
3838 va_end (v);
3839 return s;
3842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3843 function prototypes and stuff, but not '\xHH' hex character constants.
3844 These don't provoke an error unfortunately, instead are silently treated
3845 as 'x'. The following induces an error, until -std is added to get
3846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3847 array size at least. It's necessary to write '\x00'==0 to get something
3848 that's true only with -std. */
3849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3852 inside strings and character constants. */
3853 #define FOO(x) 'x'
3854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3856 int test (int i, double x);
3857 struct s1 {int (*f) (int a);};
3858 struct s2 {int (*f) (double a);};
3859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3860 int argc;
3861 char **argv;
3863 main ()
3865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3867 return 0;
3869 _ACEOF
3870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3873 CC="$ac_save_CC $ac_arg"
3874 if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_c89=$ac_arg
3877 rm -f core conftest.err conftest.$ac_objext
3878 test "x$ac_cv_prog_cc_c89" != "xno" && break
3879 done
3880 rm -f conftest.$ac_ext
3881 CC=$ac_save_CC
3884 # AC_CACHE_VAL
3885 case "x$ac_cv_prog_cc_c89" in
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3888 $as_echo "none needed" >&6; } ;;
3889 xno)
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3891 $as_echo "unsupported" >&6; } ;;
3893 CC="$CC $ac_cv_prog_cc_c89"
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3895 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3896 esac
3897 if test "x$ac_cv_prog_cc_c89" != xno; then :
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 DEPDIR="${am__leading_dot}deps"
3908 ac_config_commands="$ac_config_commands depfiles"
3911 am_make=${MAKE-make}
3912 cat > confinc << 'END'
3913 am__doit:
3914 @echo this is the am__doit target
3915 .PHONY: am__doit
3917 # If we don't find an include directive, just comment out the code.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3919 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3920 am__include="#"
3921 am__quote=
3922 _am_result=none
3923 # First try GNU make style include.
3924 echo "include confinc" > confmf
3925 # Ignore all kinds of additional output from `make'.
3926 case `$am_make -s -f confmf 2> /dev/null` in #(
3927 *the\ am__doit\ target*)
3928 am__include=include
3929 am__quote=
3930 _am_result=GNU
3932 esac
3933 # Now try BSD make style include.
3934 if test "$am__include" = "#"; then
3935 echo '.include "confinc"' > confmf
3936 case `$am_make -s -f confmf 2> /dev/null` in #(
3937 *the\ am__doit\ target*)
3938 am__include=.include
3939 am__quote="\""
3940 _am_result=BSD
3942 esac
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3947 $as_echo "$_am_result" >&6; }
3948 rm -f confinc confmf
3950 # Check whether --enable-dependency-tracking was given.
3951 if test "${enable_dependency_tracking+set}" = set; then :
3952 enableval=$enable_dependency_tracking;
3955 if test "x$enable_dependency_tracking" != xno; then
3956 am_depcomp="$ac_aux_dir/depcomp"
3957 AMDEPBACKSLASH='\'
3959 if test "x$enable_dependency_tracking" != xno; then
3960 AMDEP_TRUE=
3961 AMDEP_FALSE='#'
3962 else
3963 AMDEP_TRUE='#'
3964 AMDEP_FALSE=
3969 depcc="$CC" am_compiler_list=
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3972 $as_echo_n "checking dependency style of $depcc... " >&6; }
3973 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3977 # We make a subdir and do the tests there. Otherwise we can end up
3978 # making bogus files that we don't know about and never remove. For
3979 # instance it was reported that on HP-UX the gcc test will end up
3980 # making a dummy file named `D' -- because `-MD' means `put the output
3981 # in D'.
3982 mkdir conftest.dir
3983 # Copy depcomp to subdir because otherwise we won't find it if we're
3984 # using a relative directory.
3985 cp "$am_depcomp" conftest.dir
3986 cd conftest.dir
3987 # We will build objects and dependencies in a subdirectory because
3988 # it helps to detect inapplicable dependency modes. For instance
3989 # both Tru64's cc and ICC support -MD to output dependencies as a
3990 # side effect of compilation, but ICC will put the dependencies in
3991 # the current directory while Tru64 will put them in the object
3992 # directory.
3993 mkdir sub
3995 am_cv_CC_dependencies_compiler_type=none
3996 if test "$am_compiler_list" = ""; then
3997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3999 am__universal=false
4000 case " $depcc " in #(
4001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4002 esac
4004 for depmode in $am_compiler_list; do
4005 # Setup a source with many dependencies, because some compilers
4006 # like to wrap large dependency lists on column 80 (with \), and
4007 # we should not choose a depcomp mode which is confused by this.
4009 # We need to recreate these files for each test, as the compiler may
4010 # overwrite some of them when testing with obscure command lines.
4011 # This happens at least with the AIX C compiler.
4012 : > sub/conftest.c
4013 for i in 1 2 3 4 5 6; do
4014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4015 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4016 # Solaris 8's {/usr,}/bin/sh.
4017 touch sub/conftst$i.h
4018 done
4019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4021 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4022 # mode. It turns out that the SunPro C++ compiler does not properly
4023 # handle `-M -o', and we need to detect this. Also, some Intel
4024 # versions had trouble with output in subdirs
4025 am__obj=sub/conftest.${OBJEXT-o}
4026 am__minus_obj="-o $am__obj"
4027 case $depmode in
4028 gcc)
4029 # This depmode causes a compiler race in universal mode.
4030 test "$am__universal" = false || continue
4032 nosideeffect)
4033 # after this tag, mechanisms are not by side-effect, so they'll
4034 # only be used when explicitly requested
4035 if test "x$enable_dependency_tracking" = xyes; then
4036 continue
4037 else
4038 break
4041 msvisualcpp | msvcmsys)
4042 # This compiler won't grok `-c -o', but also, the minuso test has
4043 # not run yet. These depmodes are late enough in the game, and
4044 # so weak that their functioning should not be impacted.
4045 am__obj=conftest.${OBJEXT-o}
4046 am__minus_obj=
4048 none) break ;;
4049 esac
4050 if depmode=$depmode \
4051 source=sub/conftest.c object=$am__obj \
4052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4054 >/dev/null 2>conftest.err &&
4055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059 # icc doesn't choke on unknown options, it will just issue warnings
4060 # or remarks (even with -Werror). So we grep stderr for any message
4061 # that says an option was ignored or not supported.
4062 # When given -MP, icc 7.0 and 7.1 complain thusly:
4063 # icc: Command line warning: ignoring option '-M'; no argument required
4064 # The diagnosis changed in icc 8.0:
4065 # icc: Command line remark: option '-MP' not supported
4066 if (grep 'ignoring option' conftest.err ||
4067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068 am_cv_CC_dependencies_compiler_type=$depmode
4069 break
4072 done
4074 cd ..
4075 rm -rf conftest.dir
4076 else
4077 am_cv_CC_dependencies_compiler_type=none
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4082 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4083 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4086 test "x$enable_dependency_tracking" != xno \
4087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4088 am__fastdepCC_TRUE=
4089 am__fastdepCC_FALSE='#'
4090 else
4091 am__fastdepCC_TRUE='#'
4092 am__fastdepCC_FALSE=
4096 ac_ext=go
4097 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4098 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compile_gnu=yes
4100 if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if test "${ac_cv_prog_GOC+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -n "$GOC"; then
4109 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4122 done
4123 done
4124 IFS=$as_save_IFS
4128 GOC=$ac_cv_prog_GOC
4129 if test -n "$GOC"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4131 $as_echo "$GOC" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4139 if test -z "$ac_cv_prog_GOC"; then
4140 ac_ct_GOC=$GOC
4141 # Extract the first word of "gccgo", so it can be a program name with args.
4142 set dummy gccgo; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$ac_ct_GOC"; then
4149 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_ac_ct_GOC="gccgo"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4162 done
4163 done
4164 IFS=$as_save_IFS
4168 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4169 if test -n "$ac_ct_GOC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4171 $as_echo "$ac_ct_GOC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4177 if test "x$ac_ct_GOC" = x; then
4178 GOC=""
4179 else
4180 case $cross_compiling:$ac_tool_warned in
4181 yes:)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4185 esac
4186 GOC=$ac_ct_GOC
4188 else
4189 GOC="$ac_cv_prog_GOC"
4192 if test -z "$GOC"; then
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if test "${ac_cv_prog_GOC+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$GOC"; then
4202 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 GOC=$ac_cv_prog_GOC
4222 if test -n "$GOC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4224 $as_echo "$GOC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4233 if test -z "$GOC"; then
4234 # Extract the first word of "gccgo", so it can be a program name with args.
4235 set dummy gccgo; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if test "${ac_cv_prog_GOC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$GOC"; then
4242 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4243 else
4244 ac_prog_rejected=no
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4253 ac_prog_rejected=yes
4254 continue
4256 ac_cv_prog_GOC="gccgo"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4260 done
4261 done
4262 IFS=$as_save_IFS
4264 if test $ac_prog_rejected = yes; then
4265 # We found a bogon in the path, so make sure we never use it.
4266 set dummy $ac_cv_prog_GOC
4267 shift
4268 if test $# != 0; then
4269 # We chose a different compiler from the bogus one.
4270 # However, it has the same basename, so the bogon will be chosen
4271 # first if we set GOC to just the basename; use the full file name.
4272 shift
4273 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4278 GOC=$ac_cv_prog_GOC
4279 if test -n "$GOC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4281 $as_echo "$GOC" >&6; }
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4291 # Provide some information about the compiler.
4292 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4293 set X $ac_compile
4294 ac_compiler=$2
4295 { { ac_try="$ac_compiler --version >&5"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compiler --version >&5") 2>conftest.err
4303 ac_status=$?
4304 if test -s conftest.err; then
4305 sed '10a\
4306 ... rest of stderr output deleted ...
4307 10q' conftest.err >conftest.er1
4308 cat conftest.er1 >&5
4309 rm -f conftest.er1 conftest.err
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }
4313 GOCFLAGS="-g -O2"
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4326 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4327 # Check whether --enable-maintainer-mode was given.
4328 if test "${enable_maintainer_mode+set}" = set; then :
4329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4330 else
4331 USE_MAINTAINER_MODE=no
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4335 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4336 if test $USE_MAINTAINER_MODE = yes; then
4337 MAINTAINER_MODE_TRUE=
4338 MAINTAINER_MODE_FALSE='#'
4339 else
4340 MAINTAINER_MODE_TRUE='#'
4341 MAINTAINER_MODE_FALSE=
4344 MAINT=$MAINTAINER_MODE_TRUE
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4349 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4350 if test "${ac_cv_path_SED+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4354 for ac_i in 1 2 3 4 5 6 7; do
4355 ac_script="$ac_script$as_nl$ac_script"
4356 done
4357 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4358 { ac_script=; unset ac_script;}
4359 if test -z "$SED"; then
4360 ac_path_SED_found=false
4361 # Loop through the user's path and test for each of PROGNAME-LIST
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in sed gsed; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4371 # Check for GNU ac_path_SED and select it if it is found.
4372 # Check for GNU $ac_path_SED
4373 case `"$ac_path_SED" --version 2>&1` in
4374 *GNU*)
4375 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4377 ac_count=0
4378 $as_echo_n 0123456789 >"conftest.in"
4379 while :
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 $as_echo '' >> "conftest.nl"
4385 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 as_fn_arith $ac_count + 1 && ac_count=$as_val
4388 if test $ac_count -gt ${ac_path_SED_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_SED="$ac_path_SED"
4391 ac_path_SED_max=$ac_count
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4395 done
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397 esac
4399 $ac_path_SED_found && break 3
4400 done
4401 done
4402 done
4403 IFS=$as_save_IFS
4404 if test -z "$ac_cv_path_SED"; then
4405 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4407 else
4408 ac_cv_path_SED=$SED
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4413 $as_echo "$ac_cv_path_SED" >&6; }
4414 SED="$ac_cv_path_SED"
4415 rm -f conftest.sed
4417 test -z "$SED" && SED=sed
4418 Xsed="$SED -e 1s/^X//"
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4431 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4432 if test "${ac_cv_path_GREP+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -z "$GREP"; then
4436 ac_path_GREP_found=false
4437 # Loop through the user's path and test for each of PROGNAME-LIST
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_prog in grep ggrep; do
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4446 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4447 # Check for GNU ac_path_GREP and select it if it is found.
4448 # Check for GNU $ac_path_GREP
4449 case `"$ac_path_GREP" --version 2>&1` in
4450 *GNU*)
4451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4453 ac_count=0
4454 $as_echo_n 0123456789 >"conftest.in"
4455 while :
4457 cat "conftest.in" "conftest.in" >"conftest.tmp"
4458 mv "conftest.tmp" "conftest.in"
4459 cp "conftest.in" "conftest.nl"
4460 $as_echo 'GREP' >> "conftest.nl"
4461 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4463 as_fn_arith $ac_count + 1 && ac_count=$as_val
4464 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4465 # Best one so far, save it but keep looking for a better one
4466 ac_cv_path_GREP="$ac_path_GREP"
4467 ac_path_GREP_max=$ac_count
4469 # 10*(2^10) chars as input seems more than enough
4470 test $ac_count -gt 10 && break
4471 done
4472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4473 esac
4475 $ac_path_GREP_found && break 3
4476 done
4477 done
4478 done
4479 IFS=$as_save_IFS
4480 if test -z "$ac_cv_path_GREP"; then
4481 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4483 else
4484 ac_cv_path_GREP=$GREP
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4489 $as_echo "$ac_cv_path_GREP" >&6; }
4490 GREP="$ac_cv_path_GREP"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4494 $as_echo_n "checking for egrep... " >&6; }
4495 if test "${ac_cv_path_EGREP+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4499 then ac_cv_path_EGREP="$GREP -E"
4500 else
4501 if test -z "$EGREP"; then
4502 ac_path_EGREP_found=false
4503 # Loop through the user's path and test for each of PROGNAME-LIST
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_prog in egrep; do
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4512 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4513 # Check for GNU ac_path_EGREP and select it if it is found.
4514 # Check for GNU $ac_path_EGREP
4515 case `"$ac_path_EGREP" --version 2>&1` in
4516 *GNU*)
4517 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4519 ac_count=0
4520 $as_echo_n 0123456789 >"conftest.in"
4521 while :
4523 cat "conftest.in" "conftest.in" >"conftest.tmp"
4524 mv "conftest.tmp" "conftest.in"
4525 cp "conftest.in" "conftest.nl"
4526 $as_echo 'EGREP' >> "conftest.nl"
4527 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4528 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4529 as_fn_arith $ac_count + 1 && ac_count=$as_val
4530 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4531 # Best one so far, save it but keep looking for a better one
4532 ac_cv_path_EGREP="$ac_path_EGREP"
4533 ac_path_EGREP_max=$ac_count
4535 # 10*(2^10) chars as input seems more than enough
4536 test $ac_count -gt 10 && break
4537 done
4538 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4539 esac
4541 $ac_path_EGREP_found && break 3
4542 done
4543 done
4544 done
4545 IFS=$as_save_IFS
4546 if test -z "$ac_cv_path_EGREP"; then
4547 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549 else
4550 ac_cv_path_EGREP=$EGREP
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4556 $as_echo "$ac_cv_path_EGREP" >&6; }
4557 EGREP="$ac_cv_path_EGREP"
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4561 $as_echo_n "checking for fgrep... " >&6; }
4562 if test "${ac_cv_path_FGREP+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4566 then ac_cv_path_FGREP="$GREP -F"
4567 else
4568 if test -z "$FGREP"; then
4569 ac_path_FGREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in fgrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4579 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4580 # Check for GNU ac_path_FGREP and select it if it is found.
4581 # Check for GNU $ac_path_FGREP
4582 case `"$ac_path_FGREP" --version 2>&1` in
4583 *GNU*)
4584 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4586 ac_count=0
4587 $as_echo_n 0123456789 >"conftest.in"
4588 while :
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 $as_echo 'FGREP' >> "conftest.nl"
4594 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 as_fn_arith $ac_count + 1 && ac_count=$as_val
4597 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_FGREP="$ac_path_FGREP"
4600 ac_path_FGREP_max=$ac_count
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4604 done
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 esac
4608 $ac_path_FGREP_found && break 3
4609 done
4610 done
4611 done
4612 IFS=$as_save_IFS
4613 if test -z "$ac_cv_path_FGREP"; then
4614 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616 else
4617 ac_cv_path_FGREP=$FGREP
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4623 $as_echo "$ac_cv_path_FGREP" >&6; }
4624 FGREP="$ac_cv_path_FGREP"
4627 test -z "$GREP" && GREP=grep
4645 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4646 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4647 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4650 $as_echo_n "checking how to print strings... " >&6; }
4651 # Test print first, because it will be a builtin if present.
4652 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4653 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4654 ECHO='print -r --'
4655 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4656 ECHO='printf %s\n'
4657 else
4658 # Use this function as a fallback that always works.
4659 func_fallback_echo ()
4661 eval 'cat <<_LTECHO_EOF
4663 _LTECHO_EOF'
4665 ECHO='func_fallback_echo'
4668 # func_echo_all arg...
4669 # Invoke $ECHO with all args, space-separated.
4670 func_echo_all ()
4672 $ECHO ""
4675 case "$ECHO" in
4676 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4677 $as_echo "printf" >&6; } ;;
4678 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4679 $as_echo "print -r" >&6; } ;;
4680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4681 $as_echo "cat" >&6; } ;;
4682 esac
4699 # Check whether --with-gnu-ld was given.
4700 if test "${with_gnu_ld+set}" = set; then :
4701 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4702 else
4703 with_gnu_ld=no
4706 ac_prog=ld
4707 if test "$GCC" = yes; then
4708 # Check if gcc -print-prog-name=ld gives a path.
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4710 $as_echo_n "checking for ld used by $CC... " >&6; }
4711 case $host in
4712 *-*-mingw*)
4713 # gcc leaves a trailing carriage return which upsets mingw
4714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4717 esac
4718 case $ac_prog in
4719 # Accept absolute paths.
4720 [\\/]* | ?:[\\/]*)
4721 re_direlt='/[^/][^/]*/\.\./'
4722 # Canonicalize the pathname of ld
4723 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4724 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4725 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4726 done
4727 test -z "$LD" && LD="$ac_prog"
4730 # If it fails, then pretend we aren't using GCC.
4731 ac_prog=ld
4734 # If it is relative, then search for the first ld in PATH.
4735 with_gnu_ld=unknown
4737 esac
4738 elif test "$with_gnu_ld" = yes; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4740 $as_echo_n "checking for GNU ld... " >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4743 $as_echo_n "checking for non-GNU ld... " >&6; }
4745 if test "${lt_cv_path_LD+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test -z "$LD"; then
4749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4750 for ac_dir in $PATH; do
4751 IFS="$lt_save_ifs"
4752 test -z "$ac_dir" && ac_dir=.
4753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4754 lt_cv_path_LD="$ac_dir/$ac_prog"
4755 # Check to see if the program is GNU ld. I'd rather use --version,
4756 # but apparently some variants of GNU ld only accept -v.
4757 # Break only if it was the GNU/non-GNU ld that we prefer.
4758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4759 *GNU* | *'with BFD'*)
4760 test "$with_gnu_ld" != no && break
4763 test "$with_gnu_ld" != yes && break
4765 esac
4767 done
4768 IFS="$lt_save_ifs"
4769 else
4770 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4774 LD="$lt_cv_path_LD"
4775 if test -n "$LD"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4777 $as_echo "$LD" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4782 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4784 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4785 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4789 case `$LD -v 2>&1 </dev/null` in
4790 *GNU* | *'with BFD'*)
4791 lt_cv_prog_gnu_ld=yes
4794 lt_cv_prog_gnu_ld=no
4796 esac
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4799 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4800 with_gnu_ld=$lt_cv_prog_gnu_ld
4810 if test -n "$ac_tool_prefix"; then
4811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$RANLIB"; then
4819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4834 IFS=$as_save_IFS
4838 RANLIB=$ac_cv_prog_RANLIB
4839 if test -n "$RANLIB"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4841 $as_echo "$RANLIB" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4849 if test -z "$ac_cv_prog_RANLIB"; then
4850 ac_ct_RANLIB=$RANLIB
4851 # Extract the first word of "ranlib", so it can be a program name with args.
4852 set dummy ranlib; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$ac_ct_RANLIB"; then
4859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_ac_ct_RANLIB="ranlib"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4879 if test -n "$ac_ct_RANLIB"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4881 $as_echo "$ac_ct_RANLIB" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4887 if test "x$ac_ct_RANLIB" = x; then
4888 RANLIB=":"
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4895 esac
4896 RANLIB=$ac_ct_RANLIB
4898 else
4899 RANLIB="$ac_cv_prog_RANLIB"
4902 if test -n "$ac_tool_prefix"; then
4903 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4904 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$OBJCOPY"; then
4911 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 OBJCOPY=$ac_cv_prog_OBJCOPY
4931 if test -n "$OBJCOPY"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4933 $as_echo "$OBJCOPY" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4941 if test -z "$ac_cv_prog_OBJCOPY"; then
4942 ac_ct_OBJCOPY=$OBJCOPY
4943 # Extract the first word of "objcopy", so it can be a program name with args.
4944 set dummy objcopy; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$ac_ct_OBJCOPY"; then
4951 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4964 done
4965 done
4966 IFS=$as_save_IFS
4970 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4971 if test -n "$ac_ct_OBJCOPY"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4973 $as_echo "$ac_ct_OBJCOPY" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4979 if test "x$ac_ct_OBJCOPY" = x; then
4980 OBJCOPY="missing-objcopy"
4981 else
4982 case $cross_compiling:$ac_tool_warned in
4983 yes:)
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4986 ac_tool_warned=yes ;;
4987 esac
4988 OBJCOPY=$ac_ct_OBJCOPY
4990 else
4991 OBJCOPY="$ac_cv_prog_OBJCOPY"
4995 enable_dlopen=yes
4999 case `pwd` in
5000 *\ * | *\ *)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5002 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5003 esac
5007 macro_version='2.2.7a'
5008 macro_revision='1.3134'
5022 ltmain="$ac_aux_dir/ltmain.sh"
5024 # Backslashify metacharacters that are still active within
5025 # double-quoted strings.
5026 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5028 # Same as above, but do not quote variable references.
5029 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5031 # Sed substitution to delay expansion of an escaped shell variable in a
5032 # double_quote_subst'ed string.
5033 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5035 # Sed substitution to delay expansion of an escaped single quote.
5036 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5038 # Sed substitution to avoid accidental globbing in evaled expressions
5039 no_glob_subst='s/\*/\\\*/g'
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5042 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5043 if test "${lt_cv_path_NM+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$NM"; then
5047 # Let the user override the test.
5048 lt_cv_path_NM="$NM"
5049 else
5050 lt_nm_to_check="${ac_tool_prefix}nm"
5051 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5052 lt_nm_to_check="$lt_nm_to_check nm"
5054 for lt_tmp_nm in $lt_nm_to_check; do
5055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5056 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5057 IFS="$lt_save_ifs"
5058 test -z "$ac_dir" && ac_dir=.
5059 tmp_nm="$ac_dir/$lt_tmp_nm"
5060 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5061 # Check to see if the nm accepts a BSD-compat flag.
5062 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5063 # nm: unknown option "B" ignored
5064 # Tru64's nm complains that /dev/null is an invalid object file
5065 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5066 */dev/null* | *'Invalid file or object type'*)
5067 lt_cv_path_NM="$tmp_nm -B"
5068 break
5071 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5072 */dev/null*)
5073 lt_cv_path_NM="$tmp_nm -p"
5074 break
5077 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5078 continue # so that we can try to find one that supports BSD flags
5080 esac
5082 esac
5084 done
5085 IFS="$lt_save_ifs"
5086 done
5087 : ${lt_cv_path_NM=no}
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5091 $as_echo "$lt_cv_path_NM" >&6; }
5092 if test "$lt_cv_path_NM" != "no"; then
5093 NM="$lt_cv_path_NM"
5094 else
5095 # Didn't find any BSD compatible name lister, look for dumpbin.
5096 if test -n "$DUMPBIN"; then :
5097 # Let the user override the test.
5098 else
5099 if test -n "$ac_tool_prefix"; then
5100 for ac_prog in dumpbin "link -dump"
5102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -n "$DUMPBIN"; then
5110 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5123 done
5124 done
5125 IFS=$as_save_IFS
5129 DUMPBIN=$ac_cv_prog_DUMPBIN
5130 if test -n "$DUMPBIN"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5132 $as_echo "$DUMPBIN" >&6; }
5133 else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5139 test -n "$DUMPBIN" && break
5140 done
5142 if test -z "$DUMPBIN"; then
5143 ac_ct_DUMPBIN=$DUMPBIN
5144 for ac_prog in dumpbin "link -dump"
5146 # Extract the first word of "$ac_prog", so it can be a program name with args.
5147 set dummy $ac_prog; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$ac_ct_DUMPBIN"; then
5154 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5173 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5174 if test -n "$ac_ct_DUMPBIN"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5176 $as_echo "$ac_ct_DUMPBIN" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 test -n "$ac_ct_DUMPBIN" && break
5184 done
5186 if test "x$ac_ct_DUMPBIN" = x; then
5187 DUMPBIN=":"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195 DUMPBIN=$ac_ct_DUMPBIN
5199 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5200 *COFF*)
5201 DUMPBIN="$DUMPBIN -symbols"
5204 DUMPBIN=:
5206 esac
5209 if test "$DUMPBIN" != ":"; then
5210 NM="$DUMPBIN"
5213 test -z "$NM" && NM=nm
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5221 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5222 if test "${lt_cv_nm_interface+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 lt_cv_nm_interface="BSD nm"
5226 echo "int some_variable = 0;" > conftest.$ac_ext
5227 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5228 (eval "$ac_compile" 2>conftest.err)
5229 cat conftest.err >&5
5230 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5231 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5232 cat conftest.err >&5
5233 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5234 cat conftest.out >&5
5235 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5236 lt_cv_nm_interface="MS dumpbin"
5238 rm -f conftest*
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5241 $as_echo "$lt_cv_nm_interface" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5244 $as_echo_n "checking whether ln -s works... " >&6; }
5245 LN_S=$as_ln_s
5246 if test "$LN_S" = "ln -s"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5248 $as_echo "yes" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5251 $as_echo "no, using $LN_S" >&6; }
5254 # find the maximum length of command line arguments
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5256 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5257 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5261 teststring="ABCD"
5263 case $build_os in
5264 msdosdjgpp*)
5265 # On DJGPP, this test can blow up pretty badly due to problems in libc
5266 # (any single argument exceeding 2000 bytes causes a buffer overrun
5267 # during glob expansion). Even if it were fixed, the result of this
5268 # check would be larger than it should be.
5269 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5272 gnu*)
5273 # Under GNU Hurd, this test is not required because there is
5274 # no limit to the length of command line arguments.
5275 # Libtool will interpret -1 as no limit whatsoever
5276 lt_cv_sys_max_cmd_len=-1;
5279 cygwin* | mingw* | cegcc*)
5280 # On Win9x/ME, this test blows up -- it succeeds, but takes
5281 # about 5 minutes as the teststring grows exponentially.
5282 # Worse, since 9x/ME are not pre-emptively multitasking,
5283 # you end up with a "frozen" computer, even though with patience
5284 # the test eventually succeeds (with a max line length of 256k).
5285 # Instead, let's just punt: use the minimum linelength reported by
5286 # all of the supported platforms: 8192 (on NT/2K/XP).
5287 lt_cv_sys_max_cmd_len=8192;
5290 mint*)
5291 # On MiNT this can take a long time and run out of memory.
5292 lt_cv_sys_max_cmd_len=8192;
5295 amigaos*)
5296 # On AmigaOS with pdksh, this test takes hours, literally.
5297 # So we just punt and use a minimum line length of 8192.
5298 lt_cv_sys_max_cmd_len=8192;
5301 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5302 # This has been around since 386BSD, at least. Likely further.
5303 if test -x /sbin/sysctl; then
5304 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5305 elif test -x /usr/sbin/sysctl; then
5306 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5307 else
5308 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5310 # And add a safety zone
5311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5315 interix*)
5316 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5317 lt_cv_sys_max_cmd_len=196608
5320 osf*)
5321 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5322 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5323 # nice to cause kernel panics so lets avoid the loop below.
5324 # First set a reasonable default.
5325 lt_cv_sys_max_cmd_len=16384
5327 if test -x /sbin/sysconfig; then
5328 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5329 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5330 esac
5333 sco3.2v5*)
5334 lt_cv_sys_max_cmd_len=102400
5336 sysv5* | sco5v6* | sysv4.2uw2*)
5337 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5338 if test -n "$kargmax"; then
5339 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5340 else
5341 lt_cv_sys_max_cmd_len=32768
5345 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5346 if test -n "$lt_cv_sys_max_cmd_len"; then
5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5349 else
5350 # Make teststring a little bigger before we do anything with it.
5351 # a 1K string should be a reasonable start.
5352 for i in 1 2 3 4 5 6 7 8 ; do
5353 teststring=$teststring$teststring
5354 done
5355 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5356 # If test is not a shell built-in, we'll probably end up computing a
5357 # maximum length that is only half of the actual maximum length, but
5358 # we can't tell.
5359 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5360 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5361 test $i != 17 # 1/2 MB should be enough
5363 i=`expr $i + 1`
5364 teststring=$teststring$teststring
5365 done
5366 # Only check the string length outside the loop.
5367 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5368 teststring=
5369 # Add a significant safety factor because C++ compilers can tack on
5370 # massive amounts of additional arguments before passing them to the
5371 # linker. It appears as though 1/2 is a usable value.
5372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5375 esac
5379 if test -n $lt_cv_sys_max_cmd_len ; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5381 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5384 $as_echo "none" >&6; }
5386 max_cmd_len=$lt_cv_sys_max_cmd_len
5393 : ${CP="cp -f"}
5394 : ${MV="mv -f"}
5395 : ${RM="rm -f"}
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5398 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5399 # Try some XSI features
5400 xsi_shell=no
5401 ( _lt_dummy="a/b/c"
5402 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5403 = c,a/b,, \
5404 && eval 'test $(( 1 + 1 )) -eq 2 \
5405 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5406 && xsi_shell=yes
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5408 $as_echo "$xsi_shell" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5412 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5413 lt_shell_append=no
5414 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5415 >/dev/null 2>&1 \
5416 && lt_shell_append=yes
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5418 $as_echo "$lt_shell_append" >&6; }
5421 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5422 lt_unset=unset
5423 else
5424 lt_unset=false
5431 # test EBCDIC or ASCII
5432 case `echo X|tr X '\101'` in
5433 A) # ASCII based system
5434 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5435 lt_SP2NL='tr \040 \012'
5436 lt_NL2SP='tr \015\012 \040\040'
5438 *) # EBCDIC based system
5439 lt_SP2NL='tr \100 \n'
5440 lt_NL2SP='tr \r\n \100\100'
5442 esac
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5453 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5454 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 lt_cv_ld_reload_flag='-r'
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5460 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5461 reload_flag=$lt_cv_ld_reload_flag
5462 case $reload_flag in
5463 "" | " "*) ;;
5464 *) reload_flag=" $reload_flag" ;;
5465 esac
5466 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5467 case $host_os in
5468 darwin*)
5469 if test "$GCC" = yes; then
5470 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5471 else
5472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5475 esac
5485 if test -n "$ac_tool_prefix"; then
5486 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5487 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$OBJDUMP"; then
5494 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5507 done
5508 done
5509 IFS=$as_save_IFS
5513 OBJDUMP=$ac_cv_prog_OBJDUMP
5514 if test -n "$OBJDUMP"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5516 $as_echo "$OBJDUMP" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5524 if test -z "$ac_cv_prog_OBJDUMP"; then
5525 ac_ct_OBJDUMP=$OBJDUMP
5526 # Extract the first word of "objdump", so it can be a program name with args.
5527 set dummy objdump; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$ac_ct_OBJDUMP"; then
5534 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5547 done
5548 done
5549 IFS=$as_save_IFS
5553 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5554 if test -n "$ac_ct_OBJDUMP"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5556 $as_echo "$ac_ct_OBJDUMP" >&6; }
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5562 if test "x$ac_ct_OBJDUMP" = x; then
5563 OBJDUMP="false"
5564 else
5565 case $cross_compiling:$ac_tool_warned in
5566 yes:)
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569 ac_tool_warned=yes ;;
5570 esac
5571 OBJDUMP=$ac_ct_OBJDUMP
5573 else
5574 OBJDUMP="$ac_cv_prog_OBJDUMP"
5577 test -z "$OBJDUMP" && OBJDUMP=objdump
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5588 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5589 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 lt_cv_file_magic_cmd='$MAGIC_CMD'
5593 lt_cv_file_magic_test_file=
5594 lt_cv_deplibs_check_method='unknown'
5595 # Need to set the preceding variable on all platforms that support
5596 # interlibrary dependencies.
5597 # 'none' -- dependencies not supported.
5598 # `unknown' -- same as none, but documents that we really don't know.
5599 # 'pass_all' -- all dependencies passed with no checks.
5600 # 'test_compile' -- check by making test program.
5601 # 'file_magic [[regex]]' -- check by looking for files in library path
5602 # which responds to the $file_magic_cmd with a given extended regex.
5603 # If you have `file' or equivalent on your system and you're not sure
5604 # whether `pass_all' will *always* work, you probably want this one.
5606 case $host_os in
5607 aix[4-9]*)
5608 lt_cv_deplibs_check_method=pass_all
5611 beos*)
5612 lt_cv_deplibs_check_method=pass_all
5615 bsdi[45]*)
5616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5617 lt_cv_file_magic_cmd='/usr/bin/file -L'
5618 lt_cv_file_magic_test_file=/shlib/libc.so
5621 cygwin*)
5622 # func_win32_libid is a shell function defined in ltmain.sh
5623 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5624 lt_cv_file_magic_cmd='func_win32_libid'
5627 mingw* | pw32*)
5628 # Base MSYS/MinGW do not provide the 'file' command needed by
5629 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5630 # unless we find 'file', for example because we are cross-compiling.
5631 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5632 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5634 lt_cv_file_magic_cmd='func_win32_libid'
5635 else
5636 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5637 lt_cv_file_magic_cmd='$OBJDUMP -f'
5641 cegcc*)
5642 # use the weaker test based on 'objdump'. See mingw*.
5643 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5644 lt_cv_file_magic_cmd='$OBJDUMP -f'
5647 darwin* | rhapsody*)
5648 lt_cv_deplibs_check_method=pass_all
5651 freebsd* | dragonfly*)
5652 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5653 case $host_cpu in
5654 i*86 )
5655 # Not sure whether the presence of OpenBSD here was a mistake.
5656 # Let's accept both of them until this is cleared up.
5657 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5658 lt_cv_file_magic_cmd=/usr/bin/file
5659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5661 esac
5662 else
5663 lt_cv_deplibs_check_method=pass_all
5667 gnu*)
5668 lt_cv_deplibs_check_method=pass_all
5671 haiku*)
5672 lt_cv_deplibs_check_method=pass_all
5675 hpux10.20* | hpux11*)
5676 lt_cv_file_magic_cmd=/usr/bin/file
5677 case $host_cpu in
5678 ia64*)
5679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5680 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5682 hppa*64*)
5683 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]'
5684 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5688 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5690 esac
5693 interix[3-9]*)
5694 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5698 irix5* | irix6* | nonstopux*)
5699 case $LD in
5700 *-32|*"-32 ") libmagic=32-bit;;
5701 *-n32|*"-n32 ") libmagic=N32;;
5702 *-64|*"-64 ") libmagic=64-bit;;
5703 *) libmagic=never-match;;
5704 esac
5705 lt_cv_deplibs_check_method=pass_all
5708 # This must be Linux ELF.
5709 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5710 lt_cv_deplibs_check_method=pass_all
5713 netbsd*)
5714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5716 else
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5721 newos6*)
5722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5723 lt_cv_file_magic_cmd=/usr/bin/file
5724 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5727 *nto* | *qnx*)
5728 lt_cv_deplibs_check_method=pass_all
5731 openbsd*)
5732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5734 else
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5739 osf3* | osf4* | osf5*)
5740 lt_cv_deplibs_check_method=pass_all
5743 rdos*)
5744 lt_cv_deplibs_check_method=pass_all
5747 solaris*)
5748 lt_cv_deplibs_check_method=pass_all
5751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5752 lt_cv_deplibs_check_method=pass_all
5755 sysv4 | sysv4.3*)
5756 case $host_vendor in
5757 motorola)
5758 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]'
5759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5761 ncr)
5762 lt_cv_deplibs_check_method=pass_all
5764 sequent)
5765 lt_cv_file_magic_cmd='/bin/file'
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5768 sni)
5769 lt_cv_file_magic_cmd='/bin/file'
5770 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5771 lt_cv_file_magic_test_file=/lib/libc.so
5773 siemens)
5774 lt_cv_deplibs_check_method=pass_all
5777 lt_cv_deplibs_check_method=pass_all
5779 esac
5782 tpf*)
5783 lt_cv_deplibs_check_method=pass_all
5785 esac
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5789 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5790 file_magic_cmd=$lt_cv_file_magic_cmd
5791 deplibs_check_method=$lt_cv_deplibs_check_method
5792 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5805 if test -n "$ac_tool_prefix"; then
5806 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5807 set dummy ${ac_tool_prefix}ar; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_prog_AR+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 if test -n "$AR"; then
5814 ac_cv_prog_AR="$AR" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_AR="${ac_tool_prefix}ar"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5827 done
5828 done
5829 IFS=$as_save_IFS
5833 AR=$ac_cv_prog_AR
5834 if test -n "$AR"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5836 $as_echo "$AR" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5844 if test -z "$ac_cv_prog_AR"; then
5845 ac_ct_AR=$AR
5846 # Extract the first word of "ar", so it can be a program name with args.
5847 set dummy ar; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$ac_ct_AR"; then
5854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_ac_ct_AR="ar"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5867 done
5868 done
5869 IFS=$as_save_IFS
5873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5874 if test -n "$ac_ct_AR"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5876 $as_echo "$ac_ct_AR" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5882 if test "x$ac_ct_AR" = x; then
5883 AR="false"
5884 else
5885 case $cross_compiling:$ac_tool_warned in
5886 yes:)
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5889 ac_tool_warned=yes ;;
5890 esac
5891 AR=$ac_ct_AR
5893 else
5894 AR="$ac_cv_prog_AR"
5897 test -z "$AR" && AR=ar
5898 test -z "$AR_FLAGS" && AR_FLAGS=cru
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}strip; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_STRIP+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test -n "$STRIP"; then
5919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5932 done
5933 done
5934 IFS=$as_save_IFS
5938 STRIP=$ac_cv_prog_STRIP
5939 if test -n "$STRIP"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5941 $as_echo "$STRIP" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5949 if test -z "$ac_cv_prog_STRIP"; then
5950 ac_ct_STRIP=$STRIP
5951 # Extract the first word of "strip", so it can be a program name with args.
5952 set dummy strip; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if test -n "$ac_ct_STRIP"; then
5959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_prog_ac_ct_STRIP="strip"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5972 done
5973 done
5974 IFS=$as_save_IFS
5978 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979 if test -n "$ac_ct_STRIP"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5981 $as_echo "$ac_ct_STRIP" >&6; }
5982 else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5987 if test "x$ac_ct_STRIP" = x; then
5988 STRIP=":"
5989 else
5990 case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996 STRIP=$ac_ct_STRIP
5998 else
5999 STRIP="$ac_cv_prog_STRIP"
6002 test -z "$STRIP" && STRIP=:
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test -n "$RANLIB"; then
6018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6031 done
6032 done
6033 IFS=$as_save_IFS
6037 RANLIB=$ac_cv_prog_RANLIB
6038 if test -n "$RANLIB"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6040 $as_echo "$RANLIB" >&6; }
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6048 if test -z "$ac_cv_prog_RANLIB"; then
6049 ac_ct_RANLIB=$RANLIB
6050 # Extract the first word of "ranlib", so it can be a program name with args.
6051 set dummy ranlib; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$ac_ct_RANLIB"; then
6058 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_RANLIB="ranlib"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6071 done
6072 done
6073 IFS=$as_save_IFS
6077 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6078 if test -n "$ac_ct_RANLIB"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6080 $as_echo "$ac_ct_RANLIB" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6086 if test "x$ac_ct_RANLIB" = x; then
6087 RANLIB=":"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090 yes:)
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093 ac_tool_warned=yes ;;
6094 esac
6095 RANLIB=$ac_ct_RANLIB
6097 else
6098 RANLIB="$ac_cv_prog_RANLIB"
6101 test -z "$RANLIB" && RANLIB=:
6108 # Determine commands to create old-style static archives.
6109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6110 old_postinstall_cmds='chmod 644 $oldlib'
6111 old_postuninstall_cmds=
6113 if test -n "$RANLIB"; then
6114 case $host_os in
6115 openbsd*)
6116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6121 esac
6122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6125 case $host_os in
6126 darwin*)
6127 lock_old_archive_extraction=yes ;;
6129 lock_old_archive_extraction=no ;;
6130 esac
6170 # If no C compiler was specified, use CC.
6171 LTCC=${LTCC-"$CC"}
6173 # If no C compiler flags were specified, use CFLAGS.
6174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6176 # Allow CC to be a program name with arguments.
6177 compiler=$CC
6180 # Check for command to grab the raw symbol name followed by C symbol from nm.
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6182 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6183 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6187 # These are sane defaults that work on at least a few old systems.
6188 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6190 # Character class describing NM global symbol codes.
6191 symcode='[BCDEGRST]'
6193 # Regexp to match symbols that can be accessed directly from C.
6194 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6196 # Define system-specific variables.
6197 case $host_os in
6198 aix*)
6199 symcode='[BCDT]'
6201 cygwin* | mingw* | pw32* | cegcc*)
6202 symcode='[ABCDGISTW]'
6204 hpux*)
6205 if test "$host_cpu" = ia64; then
6206 symcode='[ABCDEGRST]'
6209 irix* | nonstopux*)
6210 symcode='[BCDEGRST]'
6212 osf*)
6213 symcode='[BCDEGQRST]'
6215 solaris*)
6216 symcode='[BDRT]'
6218 sco3.2v5*)
6219 symcode='[DT]'
6221 sysv4.2uw2*)
6222 symcode='[DT]'
6224 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6225 symcode='[ABDT]'
6227 sysv4)
6228 symcode='[DFNSTU]'
6230 esac
6232 # If we're using GNU nm, then use its standard symbol codes.
6233 case `$NM -V 2>&1` in
6234 *GNU* | *'with BFD'*)
6235 symcode='[ABCDGIRSTW]' ;;
6236 esac
6238 # Transform an extracted symbol line into a proper C declaration.
6239 # Some systems (esp. on ia64) link data and code symbols differently,
6240 # so use this general approach.
6241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6243 # Transform an extracted symbol line into symbol name and symbol address
6244 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6245 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'"
6247 # Handle CRLF in mingw tool chain
6248 opt_cr=
6249 case $build_os in
6250 mingw*)
6251 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6253 esac
6255 # Try without a prefix underscore, then with it.
6256 for ac_symprfx in "" "_"; do
6258 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6259 symxfrm="\\1 $ac_symprfx\\2 \\2"
6261 # Write the raw and C identifiers.
6262 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6263 # Fake it for dumpbin and say T for any non-static function
6264 # and D for any global variable.
6265 # Also find C++ and __fastcall symbols from MSVC++,
6266 # which start with @ or ?.
6267 lt_cv_sys_global_symbol_pipe="$AWK '"\
6268 " {last_section=section; section=\$ 3};"\
6269 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6270 " \$ 0!~/External *\|/{next};"\
6271 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6272 " {if(hide[section]) next};"\
6273 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6274 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6275 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6276 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6277 " ' prfx=^$ac_symprfx"
6278 else
6279 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6282 # Check to see that the pipe works correctly.
6283 pipe_works=no
6285 rm -f conftest*
6286 cat > conftest.$ac_ext <<_LT_EOF
6287 #ifdef __cplusplus
6288 extern "C" {
6289 #endif
6290 char nm_test_var;
6291 void nm_test_func(void);
6292 void nm_test_func(void){}
6293 #ifdef __cplusplus
6295 #endif
6296 int main(){nm_test_var='a';nm_test_func();return(0);}
6297 _LT_EOF
6299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6300 (eval $ac_compile) 2>&5
6301 ac_status=$?
6302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6303 test $ac_status = 0; }; then
6304 # Now try to grab the symbols.
6305 nlist=conftest.nm
6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6307 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; } && test -s "$nlist"; then
6311 # Try sorting and uniquifying the output.
6312 if sort "$nlist" | uniq > "$nlist"T; then
6313 mv -f "$nlist"T "$nlist"
6314 else
6315 rm -f "$nlist"T
6318 # Make sure that we snagged all the symbols we need.
6319 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6320 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6321 cat <<_LT_EOF > conftest.$ac_ext
6322 #ifdef __cplusplus
6323 extern "C" {
6324 #endif
6326 _LT_EOF
6327 # Now generate the symbol file.
6328 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6330 cat <<_LT_EOF >> conftest.$ac_ext
6332 /* The mapping between symbol names and symbols. */
6333 const struct {
6334 const char *name;
6335 void *address;
6337 lt__PROGRAM__LTX_preloaded_symbols[] =
6339 { "@PROGRAM@", (void *) 0 },
6340 _LT_EOF
6341 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6342 cat <<\_LT_EOF >> conftest.$ac_ext
6343 {0, (void *) 0}
6346 /* This works around a problem in FreeBSD linker */
6347 #ifdef FREEBSD_WORKAROUND
6348 static const void *lt_preloaded_setup() {
6349 return lt__PROGRAM__LTX_preloaded_symbols;
6351 #endif
6353 #ifdef __cplusplus
6355 #endif
6356 _LT_EOF
6357 # Now try linking the two files.
6358 mv conftest.$ac_objext conftstm.$ac_objext
6359 lt_save_LIBS="$LIBS"
6360 lt_save_CFLAGS="$CFLAGS"
6361 LIBS="conftstm.$ac_objext"
6362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6364 (eval $ac_link) 2>&5
6365 ac_status=$?
6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6368 pipe_works=yes
6370 LIBS="$lt_save_LIBS"
6371 CFLAGS="$lt_save_CFLAGS"
6372 else
6373 echo "cannot find nm_test_func in $nlist" >&5
6375 else
6376 echo "cannot find nm_test_var in $nlist" >&5
6378 else
6379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6381 else
6382 echo "$progname: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6385 rm -rf conftest* conftst*
6387 # Do not use the global_symbol_pipe unless it works.
6388 if test "$pipe_works" = yes; then
6389 break
6390 else
6391 lt_cv_sys_global_symbol_pipe=
6393 done
6397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6398 lt_cv_sys_global_symbol_to_cdecl=
6400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6402 $as_echo "failed" >&6; }
6403 else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6405 $as_echo "ok" >&6; }
6430 # Check whether --enable-libtool-lock was given.
6431 if test "${enable_libtool_lock+set}" = set; then :
6432 enableval=$enable_libtool_lock;
6435 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6437 # Some flags need to be propagated to the compiler or linker for good
6438 # libtool support.
6439 case $host in
6440 ia64-*-hpux*)
6441 # Find out which ABI we are using.
6442 echo 'int i;' > conftest.$ac_ext
6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444 (eval $ac_compile) 2>&5
6445 ac_status=$?
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }; then
6448 case `/usr/bin/file conftest.$ac_objext` in
6449 *ELF-32*)
6450 HPUX_IA64_MODE="32"
6452 *ELF-64*)
6453 HPUX_IA64_MODE="64"
6455 esac
6457 rm -rf conftest*
6459 *-*-irix6*)
6460 # Find out which ABI we are using.
6461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6464 ac_status=$?
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 if test "$lt_cv_prog_gnu_ld" = yes; then
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *32-bit*)
6470 LD="${LD-ld} -melf32bsmip"
6472 *N32*)
6473 LD="${LD-ld} -melf32bmipn32"
6475 *64-bit*)
6476 LD="${LD-ld} -melf64bmip"
6478 esac
6479 else
6480 case `/usr/bin/file conftest.$ac_objext` in
6481 *32-bit*)
6482 LD="${LD-ld} -32"
6484 *N32*)
6485 LD="${LD-ld} -n32"
6487 *64-bit*)
6488 LD="${LD-ld} -64"
6490 esac
6493 rm -rf conftest*
6496 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6497 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6498 # Find out which ABI we are using.
6499 echo 'int i;' > conftest.$ac_ext
6500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6501 (eval $ac_compile) 2>&5
6502 ac_status=$?
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504 test $ac_status = 0; }; then
6505 case `/usr/bin/file conftest.o` in
6506 *32-bit*)
6507 case $host in
6508 x86_64-*kfreebsd*-gnu)
6509 LD="${LD-ld} -m elf_i386_fbsd"
6511 x86_64-*linux*)
6512 LD="${LD-ld} -m elf_i386"
6514 ppc64-*linux*|powerpc64-*linux*)
6515 LD="${LD-ld} -m elf32ppclinux"
6517 s390x-*linux*)
6518 LD="${LD-ld} -m elf_s390"
6520 sparc64-*linux*)
6521 LD="${LD-ld} -m elf32_sparc"
6523 esac
6525 *64-bit*)
6526 case $host in
6527 x86_64-*kfreebsd*-gnu)
6528 LD="${LD-ld} -m elf_x86_64_fbsd"
6530 x86_64-*linux*)
6531 LD="${LD-ld} -m elf_x86_64"
6533 ppc*-*linux*|powerpc*-*linux*)
6534 LD="${LD-ld} -m elf64ppc"
6536 s390*-*linux*|s390*-*tpf*)
6537 LD="${LD-ld} -m elf64_s390"
6539 sparc*-*linux*)
6540 LD="${LD-ld} -m elf64_sparc"
6542 esac
6544 esac
6546 rm -rf conftest*
6549 *-*-sco3.2v5*)
6550 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6551 SAVE_CFLAGS="$CFLAGS"
6552 CFLAGS="$CFLAGS -belf"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6554 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6555 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 ac_ext=c
6559 ac_cpp='$CPP $CPPFLAGS'
6560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6568 main ()
6572 return 0;
6574 _ACEOF
6575 if ac_fn_c_try_link "$LINENO"; then :
6576 lt_cv_cc_needs_belf=yes
6577 else
6578 lt_cv_cc_needs_belf=no
6580 rm -f core conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582 ac_ext=c
6583 ac_cpp='$CPP $CPPFLAGS'
6584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6590 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6591 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6592 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6593 CFLAGS="$SAVE_CFLAGS"
6596 *-*solaris*)
6597 # Find out which ABI we are using.
6598 echo 'int i;' > conftest.$ac_ext
6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6601 ac_status=$?
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 case `/usr/bin/file conftest.o` in
6605 *64-bit*)
6606 case $lt_cv_prog_gnu_ld in
6607 yes*)
6608 case $host in
6609 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6610 LD="${LD-ld} -m elf_x86_64"
6612 sparc*-*-solaris*)
6613 LD="${LD-ld} -m elf64_sparc"
6615 esac
6616 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6617 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6618 LD="${LD-ld}_sol2"
6622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6623 LD="${LD-ld} -64"
6626 esac
6628 esac
6630 rm -rf conftest*
6632 esac
6634 need_locks="$enable_libtool_lock"
6637 case $host_os in
6638 rhapsody* | darwin*)
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$DSYMUTIL"; then
6648 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6661 done
6662 done
6663 IFS=$as_save_IFS
6667 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6668 if test -n "$DSYMUTIL"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6670 $as_echo "$DSYMUTIL" >&6; }
6671 else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6678 if test -z "$ac_cv_prog_DSYMUTIL"; then
6679 ac_ct_DSYMUTIL=$DSYMUTIL
6680 # Extract the first word of "dsymutil", so it can be a program name with args.
6681 set dummy dsymutil; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 if test -n "$ac_ct_DSYMUTIL"; then
6688 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6707 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6708 if test -n "$ac_ct_DSYMUTIL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6710 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6711 else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6716 if test "x$ac_ct_DSYMUTIL" = x; then
6717 DSYMUTIL=":"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725 DSYMUTIL=$ac_ct_DSYMUTIL
6727 else
6728 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$NMEDIT"; then
6740 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6759 NMEDIT=$ac_cv_prog_NMEDIT
6760 if test -n "$NMEDIT"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6762 $as_echo "$NMEDIT" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test -z "$ac_cv_prog_NMEDIT"; then
6771 ac_ct_NMEDIT=$NMEDIT
6772 # Extract the first word of "nmedit", so it can be a program name with args.
6773 set dummy nmedit; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$ac_ct_NMEDIT"; then
6780 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6793 done
6794 done
6795 IFS=$as_save_IFS
6799 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6800 if test -n "$ac_ct_NMEDIT"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6802 $as_echo "$ac_ct_NMEDIT" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6808 if test "x$ac_ct_NMEDIT" = x; then
6809 NMEDIT=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817 NMEDIT=$ac_ct_NMEDIT
6819 else
6820 NMEDIT="$ac_cv_prog_NMEDIT"
6823 if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_LIPO+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test -n "$LIPO"; then
6832 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6845 done
6846 done
6847 IFS=$as_save_IFS
6851 LIPO=$ac_cv_prog_LIPO
6852 if test -n "$LIPO"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6854 $as_echo "$LIPO" >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6862 if test -z "$ac_cv_prog_LIPO"; then
6863 ac_ct_LIPO=$LIPO
6864 # Extract the first word of "lipo", so it can be a program name with args.
6865 set dummy lipo; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$ac_ct_LIPO"; then
6872 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_prog_ac_ct_LIPO="lipo"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6885 done
6886 done
6887 IFS=$as_save_IFS
6891 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6892 if test -n "$ac_ct_LIPO"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6894 $as_echo "$ac_ct_LIPO" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6900 if test "x$ac_ct_LIPO" = x; then
6901 LIPO=":"
6902 else
6903 case $cross_compiling:$ac_tool_warned in
6904 yes:)
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6907 ac_tool_warned=yes ;;
6908 esac
6909 LIPO=$ac_ct_LIPO
6911 else
6912 LIPO="$ac_cv_prog_LIPO"
6915 if test -n "$ac_tool_prefix"; then
6916 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6917 set dummy ${ac_tool_prefix}otool; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$OTOOL"; then
6924 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6937 done
6938 done
6939 IFS=$as_save_IFS
6943 OTOOL=$ac_cv_prog_OTOOL
6944 if test -n "$OTOOL"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6946 $as_echo "$OTOOL" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6954 if test -z "$ac_cv_prog_OTOOL"; then
6955 ac_ct_OTOOL=$OTOOL
6956 # Extract the first word of "otool", so it can be a program name with args.
6957 set dummy otool; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$ac_ct_OTOOL"; then
6964 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_prog_ac_ct_OTOOL="otool"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6983 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6984 if test -n "$ac_ct_OTOOL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6986 $as_echo "$ac_ct_OTOOL" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6992 if test "x$ac_ct_OTOOL" = x; then
6993 OTOOL=":"
6994 else
6995 case $cross_compiling:$ac_tool_warned in
6996 yes:)
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6999 ac_tool_warned=yes ;;
7000 esac
7001 OTOOL=$ac_ct_OTOOL
7003 else
7004 OTOOL="$ac_cv_prog_OTOOL"
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7009 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$OTOOL64"; then
7016 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7029 done
7030 done
7031 IFS=$as_save_IFS
7035 OTOOL64=$ac_cv_prog_OTOOL64
7036 if test -n "$OTOOL64"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7038 $as_echo "$OTOOL64" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7046 if test -z "$ac_cv_prog_OTOOL64"; then
7047 ac_ct_OTOOL64=$OTOOL64
7048 # Extract the first word of "otool64", so it can be a program name with args.
7049 set dummy otool64; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$ac_ct_OTOOL64"; then
7056 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_prog_ac_ct_OTOOL64="otool64"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7069 done
7070 done
7071 IFS=$as_save_IFS
7075 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7076 if test -n "$ac_ct_OTOOL64"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7078 $as_echo "$ac_ct_OTOOL64" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7084 if test "x$ac_ct_OTOOL64" = x; then
7085 OTOOL64=":"
7086 else
7087 case $cross_compiling:$ac_tool_warned in
7088 yes:)
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7091 ac_tool_warned=yes ;;
7092 esac
7093 OTOOL64=$ac_ct_OTOOL64
7095 else
7096 OTOOL64="$ac_cv_prog_OTOOL64"
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7126 $as_echo_n "checking for -single_module linker flag... " >&6; }
7127 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 lt_cv_apple_cc_single_mod=no
7131 if test -z "${LT_MULTI_MODULE}"; then
7132 # By default we will add the -single_module flag. You can override
7133 # by either setting the environment variable LT_MULTI_MODULE
7134 # non-empty at configure time, or by adding -multi_module to the
7135 # link flags.
7136 rm -rf libconftest.dylib*
7137 echo "int foo(void){return 1;}" > conftest.c
7138 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7139 -dynamiclib -Wl,-single_module conftest.c" >&5
7140 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7141 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7142 _lt_result=$?
7143 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7144 lt_cv_apple_cc_single_mod=yes
7145 else
7146 cat conftest.err >&5
7148 rm -rf libconftest.dylib*
7149 rm -f conftest.*
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7153 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7155 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7156 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 lt_cv_ld_exported_symbols_list=no
7160 save_LDFLAGS=$LDFLAGS
7161 echo "_main" > conftest.sym
7162 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7167 main ()
7171 return 0;
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"; then :
7175 lt_cv_ld_exported_symbols_list=yes
7176 else
7177 lt_cv_ld_exported_symbols_list=no
7179 rm -f core conftest.err conftest.$ac_objext \
7180 conftest$ac_exeext conftest.$ac_ext
7181 LDFLAGS="$save_LDFLAGS"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7185 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7187 $as_echo_n "checking for -force_load linker flag... " >&6; }
7188 if test "${lt_cv_ld_force_load+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 lt_cv_ld_force_load=no
7192 cat > conftest.c << _LT_EOF
7193 int forced_loaded() { return 2;}
7194 _LT_EOF
7195 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7196 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7197 echo "$AR cru libconftest.a conftest.o" >&5
7198 $AR cru libconftest.a conftest.o 2>&5
7199 cat > conftest.c << _LT_EOF
7200 int main() { return 0;}
7201 _LT_EOF
7202 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7203 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7204 _lt_result=$?
7205 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7206 lt_cv_ld_force_load=yes
7207 else
7208 cat conftest.err >&5
7210 rm -f conftest.err libconftest.a conftest conftest.c
7211 rm -rf conftest.dSYM
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7215 $as_echo "$lt_cv_ld_force_load" >&6; }
7216 case $host_os in
7217 rhapsody* | darwin1.[012])
7218 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7219 darwin1.*)
7220 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7221 darwin*) # darwin 5.x on
7222 # if running on 10.5 or later, the deployment target defaults
7223 # to the OS version, if on x86, and 10.4, the deployment
7224 # target defaults to 10.4. Don't you love it?
7225 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7226 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7227 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7228 10.[012]*)
7229 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7230 10.*)
7231 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7232 esac
7234 esac
7235 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7236 _lt_dar_single_mod='$single_module'
7238 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7239 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7240 else
7241 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7243 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7244 _lt_dsymutil='~$DSYMUTIL $lib || :'
7245 else
7246 _lt_dsymutil=
7249 esac
7251 ac_ext=c
7252 ac_cpp='$CPP $CPPFLAGS'
7253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7257 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7258 # On Suns, sometimes $CPP names a directory.
7259 if test -n "$CPP" && test -d "$CPP"; then
7260 CPP=
7262 if test -z "$CPP"; then
7263 if test "${ac_cv_prog_CPP+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 # Double quotes because CPP needs to be expanded
7267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7269 ac_preproc_ok=false
7270 for ac_c_preproc_warn_flag in '' yes
7272 # Use a header file that comes with gcc, so configuring glibc
7273 # with a fresh cross-compiler works.
7274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7275 # <limits.h> exists even on freestanding compilers.
7276 # On the NeXT, cc -E runs the code through the compiler's parser,
7277 # not just through cpp. "Syntax error" is here to catch this case.
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7280 #ifdef __STDC__
7281 # include <limits.h>
7282 #else
7283 # include <assert.h>
7284 #endif
7285 Syntax error
7286 _ACEOF
7287 if ac_fn_c_try_cpp "$LINENO"; then :
7289 else
7290 # Broken: fails on valid input.
7291 continue
7293 rm -f conftest.err conftest.$ac_ext
7295 # OK, works on sane cases. Now check whether nonexistent headers
7296 # can be detected and how.
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 #include <ac_nonexistent.h>
7300 _ACEOF
7301 if ac_fn_c_try_cpp "$LINENO"; then :
7302 # Broken: success on invalid input.
7303 continue
7304 else
7305 # Passes both tests.
7306 ac_preproc_ok=:
7307 break
7309 rm -f conftest.err conftest.$ac_ext
7311 done
7312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7313 rm -f conftest.err conftest.$ac_ext
7314 if $ac_preproc_ok; then :
7315 break
7318 done
7319 ac_cv_prog_CPP=$CPP
7322 CPP=$ac_cv_prog_CPP
7323 else
7324 ac_cv_prog_CPP=$CPP
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7327 $as_echo "$CPP" >&6; }
7328 ac_preproc_ok=false
7329 for ac_c_preproc_warn_flag in '' yes
7331 # Use a header file that comes with gcc, so configuring glibc
7332 # with a fresh cross-compiler works.
7333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7334 # <limits.h> exists even on freestanding compilers.
7335 # On the NeXT, cc -E runs the code through the compiler's parser,
7336 # not just through cpp. "Syntax error" is here to catch this case.
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 #ifdef __STDC__
7340 # include <limits.h>
7341 #else
7342 # include <assert.h>
7343 #endif
7344 Syntax error
7345 _ACEOF
7346 if ac_fn_c_try_cpp "$LINENO"; then :
7348 else
7349 # Broken: fails on valid input.
7350 continue
7352 rm -f conftest.err conftest.$ac_ext
7354 # OK, works on sane cases. Now check whether nonexistent headers
7355 # can be detected and how.
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358 #include <ac_nonexistent.h>
7359 _ACEOF
7360 if ac_fn_c_try_cpp "$LINENO"; then :
7361 # Broken: success on invalid input.
7362 continue
7363 else
7364 # Passes both tests.
7365 ac_preproc_ok=:
7366 break
7368 rm -f conftest.err conftest.$ac_ext
7370 done
7371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7372 rm -f conftest.err conftest.$ac_ext
7373 if $ac_preproc_ok; then :
7375 else
7376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7378 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7379 See \`config.log' for more details." "$LINENO" 5; }
7382 ac_ext=c
7383 ac_cpp='$CPP $CPPFLAGS'
7384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7390 $as_echo_n "checking for ANSI C header files... " >&6; }
7391 if test "${ac_cv_header_stdc+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7396 #include <stdlib.h>
7397 #include <stdarg.h>
7398 #include <string.h>
7399 #include <float.h>
7402 main ()
7406 return 0;
7408 _ACEOF
7409 if ac_fn_c_try_compile "$LINENO"; then :
7410 ac_cv_header_stdc=yes
7411 else
7412 ac_cv_header_stdc=no
7414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416 if test $ac_cv_header_stdc = yes; then
7417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7420 #include <string.h>
7422 _ACEOF
7423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7424 $EGREP "memchr" >/dev/null 2>&1; then :
7426 else
7427 ac_cv_header_stdc=no
7429 rm -f conftest*
7433 if test $ac_cv_header_stdc = yes; then
7434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 #include <stdlib.h>
7439 _ACEOF
7440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7441 $EGREP "free" >/dev/null 2>&1; then :
7443 else
7444 ac_cv_header_stdc=no
7446 rm -f conftest*
7450 if test $ac_cv_header_stdc = yes; then
7451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7452 if test "$cross_compiling" = yes; then :
7454 else
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 #include <ctype.h>
7458 #include <stdlib.h>
7459 #if ((' ' & 0x0FF) == 0x020)
7460 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7461 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7462 #else
7463 # define ISLOWER(c) \
7464 (('a' <= (c) && (c) <= 'i') \
7465 || ('j' <= (c) && (c) <= 'r') \
7466 || ('s' <= (c) && (c) <= 'z'))
7467 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7468 #endif
7470 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7472 main ()
7474 int i;
7475 for (i = 0; i < 256; i++)
7476 if (XOR (islower (i), ISLOWER (i))
7477 || toupper (i) != TOUPPER (i))
7478 return 2;
7479 return 0;
7481 _ACEOF
7482 if ac_fn_c_try_run "$LINENO"; then :
7484 else
7485 ac_cv_header_stdc=no
7487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7488 conftest.$ac_objext conftest.beam conftest.$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7494 $as_echo "$ac_cv_header_stdc" >&6; }
7495 if test $ac_cv_header_stdc = yes; then
7497 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7501 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7502 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7503 inttypes.h stdint.h unistd.h
7504 do :
7505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7506 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7508 eval as_val=\$$as_ac_Header
7509 if test "x$as_val" = x""yes; then :
7510 cat >>confdefs.h <<_ACEOF
7511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7512 _ACEOF
7516 done
7519 for ac_header in dlfcn.h
7520 do :
7521 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7523 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7524 cat >>confdefs.h <<_ACEOF
7525 #define HAVE_DLFCN_H 1
7526 _ACEOF
7530 done
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if test "${ac_cv_prog_GOC+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$GOC"; then
7541 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7554 done
7555 done
7556 IFS=$as_save_IFS
7560 GOC=$ac_cv_prog_GOC
7561 if test -n "$GOC"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7563 $as_echo "$GOC" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7571 if test -z "$ac_cv_prog_GOC"; then
7572 ac_ct_GOC=$GOC
7573 # Extract the first word of "gccgo", so it can be a program name with args.
7574 set dummy gccgo; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 if test -n "$ac_ct_GOC"; then
7581 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_ac_ct_GOC="gccgo"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7594 done
7595 done
7596 IFS=$as_save_IFS
7600 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7601 if test -n "$ac_ct_GOC"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7603 $as_echo "$ac_ct_GOC" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7609 if test "x$ac_ct_GOC" = x; then
7610 GOC=""
7611 else
7612 case $cross_compiling:$ac_tool_warned in
7613 yes:)
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616 ac_tool_warned=yes ;;
7617 esac
7618 GOC=$ac_ct_GOC
7620 else
7621 GOC="$ac_cv_prog_GOC"
7629 # Set options
7634 enable_win32_dll=no
7637 # Check whether --enable-shared was given.
7638 if test "${enable_shared+set}" = set; then :
7639 enableval=$enable_shared; p=${PACKAGE-default}
7640 case $enableval in
7641 yes) enable_shared=yes ;;
7642 no) enable_shared=no ;;
7644 enable_shared=no
7645 # Look at the argument we got. We use all the common list separators.
7646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7647 for pkg in $enableval; do
7648 IFS="$lt_save_ifs"
7649 if test "X$pkg" = "X$p"; then
7650 enable_shared=yes
7652 done
7653 IFS="$lt_save_ifs"
7655 esac
7656 else
7657 enable_shared=yes
7668 # Check whether --enable-static was given.
7669 if test "${enable_static+set}" = set; then :
7670 enableval=$enable_static; p=${PACKAGE-default}
7671 case $enableval in
7672 yes) enable_static=yes ;;
7673 no) enable_static=no ;;
7675 enable_static=no
7676 # Look at the argument we got. We use all the common list separators.
7677 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7678 for pkg in $enableval; do
7679 IFS="$lt_save_ifs"
7680 if test "X$pkg" = "X$p"; then
7681 enable_static=yes
7683 done
7684 IFS="$lt_save_ifs"
7686 esac
7687 else
7688 enable_static=yes
7700 # Check whether --with-pic was given.
7701 if test "${with_pic+set}" = set; then :
7702 withval=$with_pic; pic_mode="$withval"
7703 else
7704 pic_mode=default
7708 test -z "$pic_mode" && pic_mode=default
7716 # Check whether --enable-fast-install was given.
7717 if test "${enable_fast_install+set}" = set; then :
7718 enableval=$enable_fast_install; p=${PACKAGE-default}
7719 case $enableval in
7720 yes) enable_fast_install=yes ;;
7721 no) enable_fast_install=no ;;
7723 enable_fast_install=no
7724 # Look at the argument we got. We use all the common list separators.
7725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7726 for pkg in $enableval; do
7727 IFS="$lt_save_ifs"
7728 if test "X$pkg" = "X$p"; then
7729 enable_fast_install=yes
7731 done
7732 IFS="$lt_save_ifs"
7734 esac
7735 else
7736 enable_fast_install=yes
7749 # This can be used to rebuild libtool when needed
7750 LIBTOOL_DEPS="$ltmain"
7752 # Always use our own libtool.
7753 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7780 test -z "$LN_S" && LN_S="ln -s"
7795 if test -n "${ZSH_VERSION+set}" ; then
7796 setopt NO_GLOB_SUBST
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7800 $as_echo_n "checking for objdir... " >&6; }
7801 if test "${lt_cv_objdir+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 rm -f .libs 2>/dev/null
7805 mkdir .libs 2>/dev/null
7806 if test -d .libs; then
7807 lt_cv_objdir=.libs
7808 else
7809 # MS-DOS does not allow filenames that begin with a dot.
7810 lt_cv_objdir=_libs
7812 rmdir .libs 2>/dev/null
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7815 $as_echo "$lt_cv_objdir" >&6; }
7816 objdir=$lt_cv_objdir
7822 cat >>confdefs.h <<_ACEOF
7823 #define LT_OBJDIR "$lt_cv_objdir/"
7824 _ACEOF
7829 case $host_os in
7830 aix3*)
7831 # AIX sometimes has problems with the GCC collect2 program. For some
7832 # reason, if we set the COLLECT_NAMES environment variable, the problems
7833 # vanish in a puff of smoke.
7834 if test "X${COLLECT_NAMES+set}" != Xset; then
7835 COLLECT_NAMES=
7836 export COLLECT_NAMES
7839 esac
7841 # Global variables:
7842 ofile=libtool
7843 can_build_shared=yes
7845 # All known linkers require a `.a' archive for static linking (except MSVC,
7846 # which needs '.lib').
7847 libext=a
7849 with_gnu_ld="$lt_cv_prog_gnu_ld"
7851 old_CC="$CC"
7852 old_CFLAGS="$CFLAGS"
7854 # Set sane defaults for various variables
7855 test -z "$CC" && CC=cc
7856 test -z "$LTCC" && LTCC=$CC
7857 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7858 test -z "$LD" && LD=ld
7859 test -z "$ac_objext" && ac_objext=o
7861 for cc_temp in $compiler""; do
7862 case $cc_temp in
7863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7865 \-*) ;;
7866 *) break;;
7867 esac
7868 done
7869 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7872 # Only perform the check for file, if the check method requires it
7873 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7874 case $deplibs_check_method in
7875 file_magic*)
7876 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7878 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 case $MAGIC_CMD in
7883 [\\/*] | ?:[\\/]*)
7884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7887 lt_save_MAGIC_CMD="$MAGIC_CMD"
7888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7890 for ac_dir in $ac_dummy; do
7891 IFS="$lt_save_ifs"
7892 test -z "$ac_dir" && ac_dir=.
7893 if test -f $ac_dir/${ac_tool_prefix}file; then
7894 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7895 if test -n "$file_magic_test_file"; then
7896 case $deplibs_check_method in
7897 "file_magic "*)
7898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7901 $EGREP "$file_magic_regex" > /dev/null; then
7903 else
7904 cat <<_LT_EOF 1>&2
7906 *** Warning: the command libtool uses to detect shared libraries,
7907 *** $file_magic_cmd, produces output that libtool cannot recognize.
7908 *** The result is that libtool may fail to recognize shared libraries
7909 *** as such. This will affect the creation of libtool libraries that
7910 *** depend on shared libraries, but programs linked with such libtool
7911 *** libraries will work regardless of this problem. Nevertheless, you
7912 *** may want to report the problem to your system manager and/or to
7913 *** bug-libtool@gnu.org
7915 _LT_EOF
7916 fi ;;
7917 esac
7919 break
7921 done
7922 IFS="$lt_save_ifs"
7923 MAGIC_CMD="$lt_save_MAGIC_CMD"
7925 esac
7928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7929 if test -n "$MAGIC_CMD"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7931 $as_echo "$MAGIC_CMD" >&6; }
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7941 if test -z "$lt_cv_path_MAGIC_CMD"; then
7942 if test -n "$ac_tool_prefix"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7944 $as_echo_n "checking for file... " >&6; }
7945 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 case $MAGIC_CMD in
7949 [\\/*] | ?:[\\/]*)
7950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7953 lt_save_MAGIC_CMD="$MAGIC_CMD"
7954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7955 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7956 for ac_dir in $ac_dummy; do
7957 IFS="$lt_save_ifs"
7958 test -z "$ac_dir" && ac_dir=.
7959 if test -f $ac_dir/file; then
7960 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7961 if test -n "$file_magic_test_file"; then
7962 case $deplibs_check_method in
7963 "file_magic "*)
7964 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7967 $EGREP "$file_magic_regex" > /dev/null; then
7969 else
7970 cat <<_LT_EOF 1>&2
7972 *** Warning: the command libtool uses to detect shared libraries,
7973 *** $file_magic_cmd, produces output that libtool cannot recognize.
7974 *** The result is that libtool may fail to recognize shared libraries
7975 *** as such. This will affect the creation of libtool libraries that
7976 *** depend on shared libraries, but programs linked with such libtool
7977 *** libraries will work regardless of this problem. Nevertheless, you
7978 *** may want to report the problem to your system manager and/or to
7979 *** bug-libtool@gnu.org
7981 _LT_EOF
7982 fi ;;
7983 esac
7985 break
7987 done
7988 IFS="$lt_save_ifs"
7989 MAGIC_CMD="$lt_save_MAGIC_CMD"
7991 esac
7994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995 if test -n "$MAGIC_CMD"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7997 $as_echo "$MAGIC_CMD" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8004 else
8005 MAGIC_CMD=:
8011 esac
8013 # Use C for the default configuration in the libtool script
8015 lt_save_CC="$CC"
8016 ac_ext=c
8017 ac_cpp='$CPP $CPPFLAGS'
8018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023 # Source file extension for C test sources.
8024 ac_ext=c
8026 # Object file extension for compiled C test sources.
8027 objext=o
8028 objext=$objext
8030 # Code to be used in simple compile tests
8031 lt_simple_compile_test_code="int some_variable = 0;"
8033 # Code to be used in simple link tests
8034 lt_simple_link_test_code='int main(){return(0);}'
8042 # If no C compiler was specified, use CC.
8043 LTCC=${LTCC-"$CC"}
8045 # If no C compiler flags were specified, use CFLAGS.
8046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8048 # Allow CC to be a program name with arguments.
8049 compiler=$CC
8051 # Save the default compiler, since it gets overwritten when the other
8052 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8053 compiler_DEFAULT=$CC
8055 # save warnings/boilerplate of simple test code
8056 ac_outfile=conftest.$ac_objext
8057 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8058 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8059 _lt_compiler_boilerplate=`cat conftest.err`
8060 $RM conftest*
8062 ac_outfile=conftest.$ac_objext
8063 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8064 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8065 _lt_linker_boilerplate=`cat conftest.err`
8066 $RM -r conftest*
8069 ## CAVEAT EMPTOR:
8070 ## There is no encapsulation within the following macros, do not change
8071 ## the running order or otherwise move them around unless you know exactly
8072 ## what you are doing...
8073 if test -n "$compiler"; then
8075 lt_prog_compiler_no_builtin_flag=
8077 if test "$GCC" = yes; then
8078 case $cc_basename in
8079 nvcc*)
8080 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8082 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8083 esac
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8086 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8087 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 lt_cv_prog_compiler_rtti_exceptions=no
8091 ac_outfile=conftest.$ac_objext
8092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8093 lt_compiler_flag="-fno-rtti -fno-exceptions"
8094 # Insert the option either (1) after the last *FLAGS variable, or
8095 # (2) before a word containing "conftest.", or (3) at the end.
8096 # Note that $ac_compile itself does not contain backslashes and begins
8097 # with a dollar sign (not a hyphen), so the echo should work correctly.
8098 # The option is referenced via a variable to avoid confusing sed.
8099 lt_compile=`echo "$ac_compile" | $SED \
8100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8102 -e 's:$: $lt_compiler_flag:'`
8103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8104 (eval "$lt_compile" 2>conftest.err)
8105 ac_status=$?
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 if (exit $ac_status) && test -s "$ac_outfile"; then
8109 # The compiler can only warn and ignore the option if not recognized
8110 # So say no if there are warnings other than the usual output.
8111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8114 lt_cv_prog_compiler_rtti_exceptions=yes
8117 $RM conftest*
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8121 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8123 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8124 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8125 else
8136 lt_prog_compiler_wl=
8137 lt_prog_compiler_pic=
8138 lt_prog_compiler_static=
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8141 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8143 if test "$GCC" = yes; then
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_static='-static'
8147 case $host_os in
8148 aix*)
8149 # All AIX code is PIC.
8150 if test "$host_cpu" = ia64; then
8151 # AIX 5 now supports IA64 processor
8152 lt_prog_compiler_static='-Bstatic'
8156 amigaos*)
8157 case $host_cpu in
8158 powerpc)
8159 # see comment about AmigaOS4 .so support
8160 lt_prog_compiler_pic='-fPIC'
8162 m68k)
8163 # FIXME: we need at least 68020 code to build shared libraries, but
8164 # adding the `-m68020' flag to GCC prevents building anything better,
8165 # like `-m68040'.
8166 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8168 esac
8171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8172 # PIC is the default for these OSes.
8175 mingw* | cygwin* | pw32* | os2* | cegcc*)
8176 # This hack is so that the source file can tell whether it is being
8177 # built for inclusion in a dll (and should export symbols for example).
8178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8179 # (--disable-auto-import) libraries
8180 lt_prog_compiler_pic='-DDLL_EXPORT'
8183 darwin* | rhapsody*)
8184 # PIC is the default on this platform
8185 # Common symbols not allowed in MH_DYLIB files
8186 lt_prog_compiler_pic='-fno-common'
8189 haiku*)
8190 # PIC is the default for Haiku.
8191 # The "-static" flag exists, but is broken.
8192 lt_prog_compiler_static=
8195 hpux*)
8196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8198 # sets the default TLS model and affects inlining.
8199 case $host_cpu in
8200 hppa*64*)
8201 # +Z the default
8204 lt_prog_compiler_pic='-fPIC'
8206 esac
8209 interix[3-9]*)
8210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8211 # Instead, we relocate shared libraries at runtime.
8214 msdosdjgpp*)
8215 # Just because we use GCC doesn't mean we suddenly get shared libraries
8216 # on systems that don't support them.
8217 lt_prog_compiler_can_build_shared=no
8218 enable_shared=no
8221 *nto* | *qnx*)
8222 # QNX uses GNU C++, but need to define -shared option too, otherwise
8223 # it will coredump.
8224 lt_prog_compiler_pic='-fPIC -shared'
8227 sysv4*MP*)
8228 if test -d /usr/nec; then
8229 lt_prog_compiler_pic=-Kconform_pic
8234 lt_prog_compiler_pic='-fPIC'
8236 esac
8238 case $cc_basename in
8239 nvcc*) # Cuda Compiler Driver 2.2
8240 lt_prog_compiler_wl='-Xlinker '
8241 lt_prog_compiler_pic='-Xcompiler -fPIC'
8243 esac
8244 else
8245 # PORTME Check for flag to pass linker flags through the system compiler.
8246 case $host_os in
8247 aix*)
8248 lt_prog_compiler_wl='-Wl,'
8249 if test "$host_cpu" = ia64; then
8250 # AIX 5 now supports IA64 processor
8251 lt_prog_compiler_static='-Bstatic'
8252 else
8253 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8257 mingw* | cygwin* | pw32* | os2* | cegcc*)
8258 # This hack is so that the source file can tell whether it is being
8259 # built for inclusion in a dll (and should export symbols for example).
8260 lt_prog_compiler_pic='-DDLL_EXPORT'
8263 hpux9* | hpux10* | hpux11*)
8264 lt_prog_compiler_wl='-Wl,'
8265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8266 # not for PA HP-UX.
8267 case $host_cpu in
8268 hppa*64*|ia64*)
8269 # +Z the default
8272 lt_prog_compiler_pic='+Z'
8274 esac
8275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8276 lt_prog_compiler_static='${wl}-a ${wl}archive'
8279 irix5* | irix6* | nonstopux*)
8280 lt_prog_compiler_wl='-Wl,'
8281 # PIC (with -KPIC) is the default.
8282 lt_prog_compiler_static='-non_shared'
8285 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8286 case $cc_basename in
8287 # old Intel for x86_64 which still supported -KPIC.
8288 ecc*)
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_pic='-KPIC'
8291 lt_prog_compiler_static='-static'
8293 # icc used to be incompatible with GCC.
8294 # ICC 10 doesn't accept -KPIC any more.
8295 icc* | ifort*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-fPIC'
8298 lt_prog_compiler_static='-static'
8300 # Lahey Fortran 8.1.
8301 lf95*)
8302 lt_prog_compiler_wl='-Wl,'
8303 lt_prog_compiler_pic='--shared'
8304 lt_prog_compiler_static='--static'
8306 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8307 # Portland Group compilers (*not* the Pentium gcc compiler,
8308 # which looks to be a dead project)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='-fpic'
8311 lt_prog_compiler_static='-Bstatic'
8313 ccc*)
8314 lt_prog_compiler_wl='-Wl,'
8315 # All Alpha code is PIC.
8316 lt_prog_compiler_static='-non_shared'
8318 xl* | bgxl* | bgf* | mpixl*)
8319 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-qpic'
8322 lt_prog_compiler_static='-qstaticlink'
8325 case `$CC -V 2>&1 | sed 5q` in
8326 *Sun\ F* | *Sun*Fortran*)
8327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8328 lt_prog_compiler_pic='-KPIC'
8329 lt_prog_compiler_static='-Bstatic'
8330 lt_prog_compiler_wl=''
8332 *Sun\ C*)
8333 # Sun C 5.9
8334 lt_prog_compiler_pic='-KPIC'
8335 lt_prog_compiler_static='-Bstatic'
8336 lt_prog_compiler_wl='-Wl,'
8338 esac
8340 esac
8343 newsos6)
8344 lt_prog_compiler_pic='-KPIC'
8345 lt_prog_compiler_static='-Bstatic'
8348 *nto* | *qnx*)
8349 # QNX uses GNU C++, but need to define -shared option too, otherwise
8350 # it will coredump.
8351 lt_prog_compiler_pic='-fPIC -shared'
8354 osf3* | osf4* | osf5*)
8355 lt_prog_compiler_wl='-Wl,'
8356 # All OSF/1 code is PIC.
8357 lt_prog_compiler_static='-non_shared'
8360 rdos*)
8361 lt_prog_compiler_static='-non_shared'
8364 solaris*)
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 case $cc_basename in
8368 f77* | f90* | f95*)
8369 lt_prog_compiler_wl='-Qoption ld ';;
8371 lt_prog_compiler_wl='-Wl,';;
8372 esac
8375 sunos4*)
8376 lt_prog_compiler_wl='-Qoption ld '
8377 lt_prog_compiler_pic='-PIC'
8378 lt_prog_compiler_static='-Bstatic'
8381 sysv4 | sysv4.2uw2* | sysv4.3*)
8382 lt_prog_compiler_wl='-Wl,'
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8387 sysv4*MP*)
8388 if test -d /usr/nec ;then
8389 lt_prog_compiler_pic='-Kconform_pic'
8390 lt_prog_compiler_static='-Bstatic'
8394 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8400 unicos*)
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_can_build_shared=no
8405 uts4*)
8406 lt_prog_compiler_pic='-pic'
8407 lt_prog_compiler_static='-Bstatic'
8411 lt_prog_compiler_can_build_shared=no
8413 esac
8416 case $host_os in
8417 # For platforms which do not support PIC, -DPIC is meaningless:
8418 *djgpp*)
8419 lt_prog_compiler_pic=
8422 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8424 esac
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8426 $as_echo "$lt_prog_compiler_pic" >&6; }
8434 # Check to make sure the PIC flag actually works.
8436 if test -n "$lt_prog_compiler_pic"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8438 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8439 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 lt_cv_prog_compiler_pic_works=no
8443 ac_outfile=conftest.$ac_objext
8444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8445 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8446 # Insert the option either (1) after the last *FLAGS variable, or
8447 # (2) before a word containing "conftest.", or (3) at the end.
8448 # Note that $ac_compile itself does not contain backslashes and begins
8449 # with a dollar sign (not a hyphen), so the echo should work correctly.
8450 # The option is referenced via a variable to avoid confusing sed.
8451 lt_compile=`echo "$ac_compile" | $SED \
8452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8454 -e 's:$: $lt_compiler_flag:'`
8455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8456 (eval "$lt_compile" 2>conftest.err)
8457 ac_status=$?
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 if (exit $ac_status) && test -s "$ac_outfile"; then
8461 # The compiler can only warn and ignore the option if not recognized
8462 # So say no if there are warnings other than the usual output.
8463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8466 lt_cv_prog_compiler_pic_works=yes
8469 $RM conftest*
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8473 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8475 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8476 case $lt_prog_compiler_pic in
8477 "" | " "*) ;;
8478 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8479 esac
8480 else
8481 lt_prog_compiler_pic=
8482 lt_prog_compiler_can_build_shared=no
8493 # Check to make sure the static flag actually works.
8495 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8497 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8498 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 lt_cv_prog_compiler_static_works=no
8502 save_LDFLAGS="$LDFLAGS"
8503 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8506 # The linker can only warn and ignore the option if not recognized
8507 # So say no if there are warnings
8508 if test -s conftest.err; then
8509 # Append any errors to the config.log.
8510 cat conftest.err 1>&5
8511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513 if diff conftest.exp conftest.er2 >/dev/null; then
8514 lt_cv_prog_compiler_static_works=yes
8516 else
8517 lt_cv_prog_compiler_static_works=yes
8520 $RM -r conftest*
8521 LDFLAGS="$save_LDFLAGS"
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8525 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8527 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8529 else
8530 lt_prog_compiler_static=
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8540 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8541 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 lt_cv_prog_compiler_c_o=no
8545 $RM -r conftest 2>/dev/null
8546 mkdir conftest
8547 cd conftest
8548 mkdir out
8549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8551 lt_compiler_flag="-o out/conftest2.$ac_objext"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 lt_compile=`echo "$ac_compile" | $SED \
8557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559 -e 's:$: $lt_compiler_flag:'`
8560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8561 (eval "$lt_compile" 2>out/conftest.err)
8562 ac_status=$?
8563 cat out/conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8566 then
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings
8569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8572 lt_cv_prog_compiler_c_o=yes
8575 chmod u+w . 2>&5
8576 $RM conftest*
8577 # SGI C++ compiler will create directory out/ii_files/ for
8578 # template instantiation
8579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8580 $RM out/* && rmdir out
8581 cd ..
8582 $RM -r conftest
8583 $RM conftest*
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8587 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8595 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8596 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 lt_cv_prog_compiler_c_o=no
8600 $RM -r conftest 2>/dev/null
8601 mkdir conftest
8602 cd conftest
8603 mkdir out
8604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8606 lt_compiler_flag="-o out/conftest2.$ac_objext"
8607 # Insert the option either (1) after the last *FLAGS variable, or
8608 # (2) before a word containing "conftest.", or (3) at the end.
8609 # Note that $ac_compile itself does not contain backslashes and begins
8610 # with a dollar sign (not a hyphen), so the echo should work correctly.
8611 lt_compile=`echo "$ac_compile" | $SED \
8612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8614 -e 's:$: $lt_compiler_flag:'`
8615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8616 (eval "$lt_compile" 2>out/conftest.err)
8617 ac_status=$?
8618 cat out/conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8621 then
8622 # The compiler can only warn and ignore the option if not recognized
8623 # So say no if there are warnings
8624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8627 lt_cv_prog_compiler_c_o=yes
8630 chmod u+w . 2>&5
8631 $RM conftest*
8632 # SGI C++ compiler will create directory out/ii_files/ for
8633 # template instantiation
8634 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8635 $RM out/* && rmdir out
8636 cd ..
8637 $RM -r conftest
8638 $RM conftest*
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8642 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8647 hard_links="nottested"
8648 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8649 # do not overwrite the value of need_locks provided by the user
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8651 $as_echo_n "checking if we can lock with hard links... " >&6; }
8652 hard_links=yes
8653 $RM conftest*
8654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8655 touch conftest.a
8656 ln conftest.a conftest.b 2>&5 || hard_links=no
8657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8659 $as_echo "$hard_links" >&6; }
8660 if test "$hard_links" = no; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8662 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8663 need_locks=warn
8665 else
8666 need_locks=no
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8675 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8677 runpath_var=
8678 allow_undefined_flag=
8679 always_export_symbols=no
8680 archive_cmds=
8681 archive_expsym_cmds=
8682 compiler_needs_object=no
8683 enable_shared_with_static_runtimes=no
8684 export_dynamic_flag_spec=
8685 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8686 hardcode_automatic=no
8687 hardcode_direct=no
8688 hardcode_direct_absolute=no
8689 hardcode_libdir_flag_spec=
8690 hardcode_libdir_flag_spec_ld=
8691 hardcode_libdir_separator=
8692 hardcode_minus_L=no
8693 hardcode_shlibpath_var=unsupported
8694 inherit_rpath=no
8695 link_all_deplibs=unknown
8696 module_cmds=
8697 module_expsym_cmds=
8698 old_archive_from_new_cmds=
8699 old_archive_from_expsyms_cmds=
8700 thread_safe_flag_spec=
8701 whole_archive_flag_spec=
8702 # include_expsyms should be a list of space-separated symbols to be *always*
8703 # included in the symbol list
8704 include_expsyms=
8705 # exclude_expsyms can be an extended regexp of symbols to exclude
8706 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8707 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8708 # as well as any symbol that contains `d'.
8709 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8711 # platforms (ab)use it in PIC code, but their linkers get confused if
8712 # the symbol is explicitly referenced. Since portable code cannot
8713 # rely on this symbol name, it's probably fine to never include it in
8714 # preloaded symbol tables.
8715 # Exclude shared library initialization/finalization symbols.
8716 extract_expsyms_cmds=
8718 case $host_os in
8719 cygwin* | mingw* | pw32* | cegcc*)
8720 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8721 # When not using gcc, we currently assume that we are using
8722 # Microsoft Visual C++.
8723 if test "$GCC" != yes; then
8724 with_gnu_ld=no
8727 interix*)
8728 # we just hope/assume this is gcc and not c89 (= MSVC++)
8729 with_gnu_ld=yes
8731 openbsd*)
8732 with_gnu_ld=no
8734 esac
8736 ld_shlibs=yes
8738 # On some targets, GNU ld is compatible enough with the native linker
8739 # that we're better off using the native interface for both.
8740 lt_use_gnu_ld_interface=no
8741 if test "$with_gnu_ld" = yes; then
8742 case $host_os in
8743 aix*)
8744 # The AIX port of GNU ld has always aspired to compatibility
8745 # with the native linker. However, as the warning in the GNU ld
8746 # block says, versions before 2.19.5* couldn't really create working
8747 # shared libraries, regardless of the interface used.
8748 case `$LD -v 2>&1` in
8749 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8750 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8751 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8753 lt_use_gnu_ld_interface=yes
8755 esac
8758 lt_use_gnu_ld_interface=yes
8760 esac
8763 if test "$lt_use_gnu_ld_interface" = yes; then
8764 # If archive_cmds runs LD, not CC, wlarc should be empty
8765 wlarc='${wl}'
8767 # Set some defaults for GNU ld with shared library support. These
8768 # are reset later if shared libraries are not supported. Putting them
8769 # here allows them to be overridden if necessary.
8770 runpath_var=LD_RUN_PATH
8771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8772 export_dynamic_flag_spec='${wl}--export-dynamic'
8773 # ancient GNU ld didn't support --whole-archive et. al.
8774 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8775 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8776 else
8777 whole_archive_flag_spec=
8779 supports_anon_versioning=no
8780 case `$LD -v 2>&1` in
8781 *GNU\ gold*) supports_anon_versioning=yes ;;
8782 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8783 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8784 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8785 *\ 2.11.*) ;; # other 2.11 versions
8786 *) supports_anon_versioning=yes ;;
8787 esac
8789 # See if GNU ld supports shared libraries.
8790 case $host_os in
8791 aix[3-9]*)
8792 # On AIX/PPC, the GNU linker is very broken
8793 if test "$host_cpu" != ia64; then
8794 ld_shlibs=no
8795 cat <<_LT_EOF 1>&2
8797 *** Warning: the GNU linker, at least up to release 2.19, is reported
8798 *** to be unable to reliably create shared libraries on AIX.
8799 *** Therefore, libtool is disabling shared libraries support. If you
8800 *** really care for shared libraries, you may want to install binutils
8801 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8802 *** You will then need to restart the configuration process.
8804 _LT_EOF
8808 amigaos*)
8809 case $host_cpu in
8810 powerpc)
8811 # see comment about AmigaOS4 .so support
8812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813 archive_expsym_cmds=''
8815 m68k)
8816 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)'
8817 hardcode_libdir_flag_spec='-L$libdir'
8818 hardcode_minus_L=yes
8820 esac
8823 beos*)
8824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8825 allow_undefined_flag=unsupported
8826 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8827 # support --undefined. This deserves some investigation. FIXME
8828 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829 else
8830 ld_shlibs=no
8834 cygwin* | mingw* | pw32* | cegcc*)
8835 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8836 # as there is no search path for DLLs.
8837 hardcode_libdir_flag_spec='-L$libdir'
8838 export_dynamic_flag_spec='${wl}--export-all-symbols'
8839 allow_undefined_flag=unsupported
8840 always_export_symbols=no
8841 enable_shared_with_static_runtimes=yes
8842 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8844 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8846 # If the export-symbols file already is a .def file (1st line
8847 # is EXPORTS), use it as is; otherwise, prepend...
8848 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8849 cp $export_symbols $output_objdir/$soname.def;
8850 else
8851 echo EXPORTS > $output_objdir/$soname.def;
8852 cat $export_symbols >> $output_objdir/$soname.def;
8854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8855 else
8856 ld_shlibs=no
8860 haiku*)
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 link_all_deplibs=yes
8865 interix[3-9]*)
8866 hardcode_direct=no
8867 hardcode_shlibpath_var=no
8868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8869 export_dynamic_flag_spec='${wl}-E'
8870 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8871 # Instead, shared libraries are loaded at an image base (0x10000000 by
8872 # default) and relocated if they conflict, which is a slow very memory
8873 # consuming and fragmenting process. To avoid this, we pick a random,
8874 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8875 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8877 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'
8880 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8881 tmp_diet=no
8882 if test "$host_os" = linux-dietlibc; then
8883 case $cc_basename in
8884 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8885 esac
8887 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8888 && test "$tmp_diet" = no
8889 then
8890 tmp_addflag=
8891 tmp_sharedflag='-shared'
8892 case $cc_basename,$host_cpu in
8893 pgcc*) # Portland Group C compiler
8894 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'
8895 tmp_addflag=' $pic_flag'
8897 pgf77* | pgf90* | pgf95* | pgfortran*)
8898 # Portland Group f77 and f90 compilers
8899 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8900 tmp_addflag=' $pic_flag -Mnomain' ;;
8901 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8902 tmp_addflag=' -i_dynamic' ;;
8903 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8904 tmp_addflag=' -i_dynamic -nofor_main' ;;
8905 ifc* | ifort*) # Intel Fortran compiler
8906 tmp_addflag=' -nofor_main' ;;
8907 lf95*) # Lahey Fortran 8.1
8908 whole_archive_flag_spec=
8909 tmp_sharedflag='--shared' ;;
8910 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8911 tmp_sharedflag='-qmkshrobj'
8912 tmp_addflag= ;;
8913 nvcc*) # Cuda Compiler Driver 2.2
8914 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'
8915 compiler_needs_object=yes
8917 esac
8918 case `$CC -V 2>&1 | sed 5q` in
8919 *Sun\ C*) # Sun C 5.9
8920 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'
8921 compiler_needs_object=yes
8922 tmp_sharedflag='-G' ;;
8923 *Sun\ F*) # Sun Fortran 8.3
8924 tmp_sharedflag='-G' ;;
8925 esac
8926 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8928 if test "x$supports_anon_versioning" = xyes; then
8929 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8930 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8931 echo "local: *; };" >> $output_objdir/$libname.ver~
8932 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8935 case $cc_basename in
8936 xlf* | bgf* | bgxlf* | mpixlf*)
8937 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8938 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8939 hardcode_libdir_flag_spec=
8940 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8941 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8942 if test "x$supports_anon_versioning" = xyes; then
8943 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8945 echo "local: *; };" >> $output_objdir/$libname.ver~
8946 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8949 esac
8950 else
8951 ld_shlibs=no
8955 netbsd*)
8956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8957 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8958 wlarc=
8959 else
8960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8965 solaris*)
8966 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8967 ld_shlibs=no
8968 cat <<_LT_EOF 1>&2
8970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8971 *** create shared libraries on Solaris systems. Therefore, libtool
8972 *** is disabling shared libraries support. We urge you to upgrade GNU
8973 *** binutils to release 2.9.1 or newer. Another option is to modify
8974 *** your PATH or compiler configuration so that the native linker is
8975 *** used, and then restart.
8977 _LT_EOF
8978 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8981 else
8982 ld_shlibs=no
8986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8987 case `$LD -v 2>&1` in
8988 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8989 ld_shlibs=no
8990 cat <<_LT_EOF 1>&2
8992 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8993 *** reliably create shared libraries on SCO systems. Therefore, libtool
8994 *** is disabling shared libraries support. We urge you to upgrade GNU
8995 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8996 *** your PATH or compiler configuration so that the native linker is
8997 *** used, and then restart.
8999 _LT_EOF
9002 # For security reasons, it is highly recommended that you always
9003 # use absolute paths for naming shared libraries, and exclude the
9004 # DT_RUNPATH tag from executables and libraries. But doing so
9005 # requires that you compile everything twice, which is a pain.
9006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 else
9011 ld_shlibs=no
9014 esac
9017 sunos4*)
9018 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9019 wlarc=
9020 hardcode_direct=yes
9021 hardcode_shlibpath_var=no
9025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9028 else
9029 ld_shlibs=no
9032 esac
9034 if test "$ld_shlibs" = no; then
9035 runpath_var=
9036 hardcode_libdir_flag_spec=
9037 export_dynamic_flag_spec=
9038 whole_archive_flag_spec=
9040 else
9041 # PORTME fill in a description of your system's linker (not GNU ld)
9042 case $host_os in
9043 aix3*)
9044 allow_undefined_flag=unsupported
9045 always_export_symbols=yes
9046 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'
9047 # Note: this linker hardcodes the directories in LIBPATH if there
9048 # are no directories specified by -L.
9049 hardcode_minus_L=yes
9050 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9051 # Neither direct hardcoding nor static linking is supported with a
9052 # broken collect2.
9053 hardcode_direct=unsupported
9057 aix[4-9]*)
9058 if test "$host_cpu" = ia64; then
9059 # On IA64, the linker does run time linking by default, so we don't
9060 # have to do anything special.
9061 aix_use_runtimelinking=no
9062 exp_sym_flag='-Bexport'
9063 no_entry_flag=""
9064 else
9065 # If we're using GNU nm, then we don't want the "-C" option.
9066 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9067 # Also, AIX nm treats weak defined symbols like other global
9068 # defined symbols, whereas GNU nm marks them as "W".
9069 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9070 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'
9071 else
9072 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'
9074 aix_use_runtimelinking=no
9076 # Test if we are trying to use run time linking or normal
9077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9078 # need to do runtime linking.
9079 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9080 for ld_flag in $LDFLAGS; do
9081 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9082 aix_use_runtimelinking=yes
9083 break
9085 done
9087 esac
9089 exp_sym_flag='-bexport'
9090 no_entry_flag='-bnoentry'
9093 # When large executables or shared objects are built, AIX ld can
9094 # have problems creating the table of contents. If linking a library
9095 # or program results in "error TOC overflow" add -mminimal-toc to
9096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9099 archive_cmds=''
9100 hardcode_direct=yes
9101 hardcode_direct_absolute=yes
9102 hardcode_libdir_separator=':'
9103 link_all_deplibs=yes
9104 file_list_spec='${wl}-f,'
9106 if test "$GCC" = yes; then
9107 case $host_os in aix4.[012]|aix4.[012].*)
9108 # We only want to do this on AIX 4.2 and lower, the check
9109 # below for broken collect2 doesn't work under 4.3+
9110 collect2name=`${CC} -print-prog-name=collect2`
9111 if test -f "$collect2name" &&
9112 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9113 then
9114 # We have reworked collect2
9116 else
9117 # We have old collect2
9118 hardcode_direct=unsupported
9119 # It fails to find uninstalled libraries when the uninstalled
9120 # path is not listed in the libpath. Setting hardcode_minus_L
9121 # to unsupported forces relinking
9122 hardcode_minus_L=yes
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 hardcode_libdir_separator=
9127 esac
9128 shared_flag='-shared'
9129 if test "$aix_use_runtimelinking" = yes; then
9130 shared_flag="$shared_flag "'${wl}-G'
9132 else
9133 # not using gcc
9134 if test "$host_cpu" = ia64; then
9135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9136 # chokes on -Wl,-G. The following line is correct:
9137 shared_flag='-G'
9138 else
9139 if test "$aix_use_runtimelinking" = yes; then
9140 shared_flag='${wl}-G'
9141 else
9142 shared_flag='${wl}-bM:SRE'
9147 export_dynamic_flag_spec='${wl}-bexpall'
9148 # It seems that -bexpall does not export symbols beginning with
9149 # underscore (_), so it is better to generate a list of symbols to export.
9150 always_export_symbols=yes
9151 if test "$aix_use_runtimelinking" = yes; then
9152 # Warning - without using the other runtime loading flags (-brtl),
9153 # -berok will link without error, but may produce a broken library.
9154 allow_undefined_flag='-berok'
9155 # Determine the default libpath from the value encoded in an
9156 # empty executable.
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9161 main ()
9165 return 0;
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"; then :
9170 lt_aix_libpath_sed='
9171 /Import File Strings/,/^$/ {
9172 /^0/ {
9173 s/^0 *\(.*\)$/\1/
9177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9178 # Check for a 64-bit object if we didn't find anything.
9179 if test -z "$aix_libpath"; then
9180 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183 rm -f core conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9187 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9188 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"
9189 else
9190 if test "$host_cpu" = ia64; then
9191 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9192 allow_undefined_flag="-z nodefs"
9193 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"
9194 else
9195 # Determine the default libpath from the value encoded in an
9196 # empty executable.
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9201 main ()
9205 return 0;
9207 _ACEOF
9208 if ac_fn_c_try_link "$LINENO"; then :
9210 lt_aix_libpath_sed='
9211 /Import File Strings/,/^$/ {
9212 /^0/ {
9213 s/^0 *\(.*\)$/\1/
9217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9218 # Check for a 64-bit object if we didn't find anything.
9219 if test -z "$aix_libpath"; then
9220 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9223 rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9227 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9228 # Warning - without using the other run time loading flags,
9229 # -berok will link without error, but may produce a broken library.
9230 no_undefined_flag=' ${wl}-bernotok'
9231 allow_undefined_flag=' ${wl}-berok'
9232 if test "$with_gnu_ld" = yes; then
9233 # We only use this code for GNU lds that support --whole-archive.
9234 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9235 else
9236 # Exported symbols can be pulled into shared objects from archives
9237 whole_archive_flag_spec='$convenience'
9239 archive_cmds_need_lc=yes
9240 # This is similar to how AIX traditionally builds its shared libraries.
9241 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'
9246 amigaos*)
9247 case $host_cpu in
9248 powerpc)
9249 # see comment about AmigaOS4 .so support
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 archive_expsym_cmds=''
9253 m68k)
9254 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)'
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_minus_L=yes
9258 esac
9261 bsdi[45]*)
9262 export_dynamic_flag_spec=-rdynamic
9265 cygwin* | mingw* | pw32* | cegcc*)
9266 # When not using gcc, we currently assume that we are using
9267 # Microsoft Visual C++.
9268 # hardcode_libdir_flag_spec is actually meaningless, as there is
9269 # no search path for DLLs.
9270 hardcode_libdir_flag_spec=' '
9271 allow_undefined_flag=unsupported
9272 # Tell ltmain to make .lib files, not .a files.
9273 libext=lib
9274 # Tell ltmain to make .dll files, not .so files.
9275 shrext_cmds=".dll"
9276 # FIXME: Setting linknames here is a bad hack.
9277 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9278 # The linker will automatically build a .lib file if we build a DLL.
9279 old_archive_from_new_cmds='true'
9280 # FIXME: Should let the user specify the lib program.
9281 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9282 fix_srcfile_path='`cygpath -w "$srcfile"`'
9283 enable_shared_with_static_runtimes=yes
9286 darwin* | rhapsody*)
9289 archive_cmds_need_lc=no
9290 hardcode_direct=no
9291 hardcode_automatic=yes
9292 hardcode_shlibpath_var=unsupported
9293 if test "$lt_cv_ld_force_load" = "yes"; then
9294 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\"`'
9295 else
9296 whole_archive_flag_spec=''
9298 link_all_deplibs=yes
9299 allow_undefined_flag="$_lt_dar_allow_undefined"
9300 case $cc_basename in
9301 ifort*) _lt_dar_can_shared=yes ;;
9302 *) _lt_dar_can_shared=$GCC ;;
9303 esac
9304 if test "$_lt_dar_can_shared" = "yes"; then
9305 output_verbose_link_cmd=func_echo_all
9306 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9307 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9308 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}"
9309 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}"
9311 else
9312 ld_shlibs=no
9317 dgux*)
9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_libdir_flag_spec='-L$libdir'
9320 hardcode_shlibpath_var=no
9323 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9324 # support. Future versions do this automatically, but an explicit c++rt0.o
9325 # does not break anything, and helps significantly (at the cost of a little
9326 # extra space).
9327 freebsd2.2*)
9328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9329 hardcode_libdir_flag_spec='-R$libdir'
9330 hardcode_direct=yes
9331 hardcode_shlibpath_var=no
9334 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9335 freebsd2*)
9336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_direct=yes
9338 hardcode_minus_L=yes
9339 hardcode_shlibpath_var=no
9342 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9343 freebsd* | dragonfly*)
9344 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9345 hardcode_libdir_flag_spec='-R$libdir'
9346 hardcode_direct=yes
9347 hardcode_shlibpath_var=no
9350 hpux9*)
9351 if test "$GCC" = yes; then
9352 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'
9353 else
9354 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'
9356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357 hardcode_libdir_separator=:
9358 hardcode_direct=yes
9360 # hardcode_minus_L: Not really in the search PATH,
9361 # but as the default location of the library.
9362 hardcode_minus_L=yes
9363 export_dynamic_flag_spec='${wl}-E'
9366 hpux10*)
9367 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9368 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9369 else
9370 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9372 if test "$with_gnu_ld" = no; then
9373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9374 hardcode_libdir_flag_spec_ld='+b $libdir'
9375 hardcode_libdir_separator=:
9376 hardcode_direct=yes
9377 hardcode_direct_absolute=yes
9378 export_dynamic_flag_spec='${wl}-E'
9379 # hardcode_minus_L: Not really in the search PATH,
9380 # but as the default location of the library.
9381 hardcode_minus_L=yes
9385 hpux11*)
9386 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9387 case $host_cpu in
9388 hppa*64*)
9389 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 ia64*)
9392 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9397 esac
9398 else
9399 case $host_cpu in
9400 hppa*64*)
9401 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 ia64*)
9404 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9408 # Older versions of the 11.00 compiler do not understand -b yet
9409 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9411 $as_echo_n "checking if $CC understands -b... " >&6; }
9412 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 lt_cv_prog_compiler__b=no
9416 save_LDFLAGS="$LDFLAGS"
9417 LDFLAGS="$LDFLAGS -b"
9418 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9419 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9420 # The linker can only warn and ignore the option if not recognized
9421 # So say no if there are warnings
9422 if test -s conftest.err; then
9423 # Append any errors to the config.log.
9424 cat conftest.err 1>&5
9425 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9427 if diff conftest.exp conftest.er2 >/dev/null; then
9428 lt_cv_prog_compiler__b=yes
9430 else
9431 lt_cv_prog_compiler__b=yes
9434 $RM -r conftest*
9435 LDFLAGS="$save_LDFLAGS"
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9439 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9441 if test x"$lt_cv_prog_compiler__b" = xyes; then
9442 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9443 else
9444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9448 esac
9450 if test "$with_gnu_ld" = no; then
9451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9452 hardcode_libdir_separator=:
9454 case $host_cpu in
9455 hppa*64*|ia64*)
9456 hardcode_direct=no
9457 hardcode_shlibpath_var=no
9460 hardcode_direct=yes
9461 hardcode_direct_absolute=yes
9462 export_dynamic_flag_spec='${wl}-E'
9464 # hardcode_minus_L: Not really in the search PATH,
9465 # but as the default location of the library.
9466 hardcode_minus_L=yes
9468 esac
9472 irix5* | irix6* | nonstopux*)
9473 if test "$GCC" = yes; then
9474 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'
9475 # Try to use the -exported_symbol ld option, if it does not
9476 # work, assume that -exports_file does not work either and
9477 # implicitly export all symbols.
9478 save_LDFLAGS="$LDFLAGS"
9479 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 int foo(void) {}
9483 _ACEOF
9484 if ac_fn_c_try_link "$LINENO"; then :
9485 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'
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 LDFLAGS="$save_LDFLAGS"
9491 else
9492 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'
9493 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'
9495 archive_cmds_need_lc='no'
9496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9497 hardcode_libdir_separator=:
9498 inherit_rpath=yes
9499 link_all_deplibs=yes
9502 netbsd*)
9503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9505 else
9506 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9508 hardcode_libdir_flag_spec='-R$libdir'
9509 hardcode_direct=yes
9510 hardcode_shlibpath_var=no
9513 newsos6)
9514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515 hardcode_direct=yes
9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517 hardcode_libdir_separator=:
9518 hardcode_shlibpath_var=no
9521 *nto* | *qnx*)
9524 openbsd*)
9525 if test -f /usr/libexec/ld.so; then
9526 hardcode_direct=yes
9527 hardcode_shlibpath_var=no
9528 hardcode_direct_absolute=yes
9529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9531 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9533 export_dynamic_flag_spec='${wl}-E'
9534 else
9535 case $host_os in
9536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9538 hardcode_libdir_flag_spec='-R$libdir'
9541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9544 esac
9546 else
9547 ld_shlibs=no
9551 os2*)
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_minus_L=yes
9554 allow_undefined_flag=unsupported
9555 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'
9556 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9559 osf3*)
9560 if test "$GCC" = yes; then
9561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9562 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'
9563 else
9564 allow_undefined_flag=' -expect_unresolved \*'
9565 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'
9567 archive_cmds_need_lc='no'
9568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569 hardcode_libdir_separator=:
9572 osf4* | osf5*) # as osf3* with the addition of -msym flag
9573 if test "$GCC" = yes; then
9574 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9575 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'
9576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577 else
9578 allow_undefined_flag=' -expect_unresolved \*'
9579 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'
9580 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~
9581 $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'
9583 # Both c and cxx compiler support -rpath directly
9584 hardcode_libdir_flag_spec='-rpath $libdir'
9586 archive_cmds_need_lc='no'
9587 hardcode_libdir_separator=:
9590 solaris*)
9591 no_undefined_flag=' -z defs'
9592 if test "$GCC" = yes; then
9593 wlarc='${wl}'
9594 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9596 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9597 else
9598 case `$CC -V 2>&1` in
9599 *"Compilers 5.0"*)
9600 wlarc=''
9601 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9606 wlarc='${wl}'
9607 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9609 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9611 esac
9613 hardcode_libdir_flag_spec='-R$libdir'
9614 hardcode_shlibpath_var=no
9615 case $host_os in
9616 solaris2.[0-5] | solaris2.[0-5].*) ;;
9618 # The compiler driver will combine and reorder linker options,
9619 # but understands `-z linker_flag'. GCC discards it without `$wl',
9620 # but is careful enough not to reorder.
9621 # Supported since Solaris 2.6 (maybe 2.5.1?)
9622 if test "$GCC" = yes; then
9623 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9624 else
9625 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9628 esac
9629 link_all_deplibs=yes
9632 sunos4*)
9633 if test "x$host_vendor" = xsequent; then
9634 # Use $CC to link under sequent, because it throws in some extra .o
9635 # files that make .init and .fini sections work.
9636 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9637 else
9638 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_libdir_flag_spec='-L$libdir'
9641 hardcode_direct=yes
9642 hardcode_minus_L=yes
9643 hardcode_shlibpath_var=no
9646 sysv4)
9647 case $host_vendor in
9648 sni)
9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_direct=yes # is this really true???
9652 siemens)
9653 ## LD is ld it makes a PLAMLIB
9654 ## CC just makes a GrossModule.
9655 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9656 reload_cmds='$CC -r -o $output$reload_objs'
9657 hardcode_direct=no
9659 motorola)
9660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9663 esac
9664 runpath_var='LD_RUN_PATH'
9665 hardcode_shlibpath_var=no
9668 sysv4.3*)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_shlibpath_var=no
9671 export_dynamic_flag_spec='-Bexport'
9674 sysv4*MP*)
9675 if test -d /usr/nec; then
9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_shlibpath_var=no
9678 runpath_var=LD_RUN_PATH
9679 hardcode_runpath_var=yes
9680 ld_shlibs=yes
9684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9685 no_undefined_flag='${wl}-z,text'
9686 archive_cmds_need_lc=no
9687 hardcode_shlibpath_var=no
9688 runpath_var='LD_RUN_PATH'
9690 if test "$GCC" = yes; then
9691 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 else
9694 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 sysv5* | sco3.2v5* | sco5v6*)
9700 # Note: We can NOT use -z defs as we might desire, because we do not
9701 # link with -lc, and that would cause any symbols used from libc to
9702 # always be unresolved, which means just about no library would
9703 # ever link correctly. If we're not using GNU ld we use -z text
9704 # though, which does catch some bad symbols but isn't as heavy-handed
9705 # as -z defs.
9706 no_undefined_flag='${wl}-z,text'
9707 allow_undefined_flag='${wl}-z,nodefs'
9708 archive_cmds_need_lc=no
9709 hardcode_shlibpath_var=no
9710 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9711 hardcode_libdir_separator=':'
9712 link_all_deplibs=yes
9713 export_dynamic_flag_spec='${wl}-Bexport'
9714 runpath_var='LD_RUN_PATH'
9716 if test "$GCC" = yes; then
9717 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 else
9720 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 uts4*)
9726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_libdir_flag_spec='-L$libdir'
9728 hardcode_shlibpath_var=no
9732 ld_shlibs=no
9734 esac
9736 if test x$host_vendor = xsni; then
9737 case $host in
9738 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9739 export_dynamic_flag_spec='${wl}-Blargedynsym'
9741 esac
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9746 $as_echo "$ld_shlibs" >&6; }
9747 test "$ld_shlibs" = no && can_build_shared=no
9749 with_gnu_ld=$with_gnu_ld
9766 # Do we need to explicitly link libc?
9768 case "x$archive_cmds_need_lc" in
9769 x|xyes)
9770 # Assume -lc should be added
9771 archive_cmds_need_lc=yes
9773 if test "$enable_shared" = yes && test "$GCC" = yes; then
9774 case $archive_cmds in
9775 *'~'*)
9776 # FIXME: we may have to deal with multi-command sequences.
9778 '$CC '*)
9779 # Test whether the compiler implicitly links with -lc since on some
9780 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9781 # to ld, don't add -lc before -lgcc.
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9783 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9784 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 $RM conftest*
9788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9791 (eval $ac_compile) 2>&5
9792 ac_status=$?
9793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794 test $ac_status = 0; } 2>conftest.err; then
9795 soname=conftest
9796 lib=conftest
9797 libobjs=conftest.$ac_objext
9798 deplibs=
9799 wl=$lt_prog_compiler_wl
9800 pic_flag=$lt_prog_compiler_pic
9801 compiler_flags=-v
9802 linker_flags=-v
9803 verstring=
9804 output_objdir=.
9805 libname=conftest
9806 lt_save_allow_undefined_flag=$allow_undefined_flag
9807 allow_undefined_flag=
9808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9809 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9810 ac_status=$?
9811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9812 test $ac_status = 0; }
9813 then
9814 lt_cv_archive_cmds_need_lc=no
9815 else
9816 lt_cv_archive_cmds_need_lc=yes
9818 allow_undefined_flag=$lt_save_allow_undefined_flag
9819 else
9820 cat conftest.err 1>&5
9822 $RM conftest*
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9826 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9827 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9829 esac
9832 esac
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9991 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9993 if test "$GCC" = yes; then
9994 case $host_os in
9995 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9996 *) lt_awk_arg="/^libraries:/" ;;
9997 esac
9998 case $host_os in
9999 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10000 *) lt_sed_strip_eq="s,=/,/,g" ;;
10001 esac
10002 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10003 case $lt_search_path_spec in
10004 *\;*)
10005 # if the path contains ";" then we assume it to be the separator
10006 # otherwise default to the standard path separator (i.e. ":") - it is
10007 # assumed that no part of a normal pathname contains ";" but that should
10008 # okay in the real world where ";" in dirpaths is itself problematic.
10009 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10012 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10014 esac
10015 # Ok, now we have the path, separated by spaces, we can step through it
10016 # and add multilib dir if necessary.
10017 lt_tmp_lt_search_path_spec=
10018 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10019 for lt_sys_path in $lt_search_path_spec; do
10020 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10021 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10022 else
10023 test -d "$lt_sys_path" && \
10024 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10026 done
10027 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10028 BEGIN {RS=" "; FS="/|\n";} {
10029 lt_foo="";
10030 lt_count=0;
10031 for (lt_i = NF; lt_i > 0; lt_i--) {
10032 if ($lt_i != "" && $lt_i != ".") {
10033 if ($lt_i == "..") {
10034 lt_count++;
10035 } else {
10036 if (lt_count == 0) {
10037 lt_foo="/" $lt_i lt_foo;
10038 } else {
10039 lt_count--;
10044 if (lt_foo != "") { lt_freq[lt_foo]++; }
10045 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10047 # AWK program above erroneously prepends '/' to C:/dos/paths
10048 # for these hosts.
10049 case $host_os in
10050 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10051 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10052 esac
10053 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10054 else
10055 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10057 library_names_spec=
10058 libname_spec='lib$name'
10059 soname_spec=
10060 shrext_cmds=".so"
10061 postinstall_cmds=
10062 postuninstall_cmds=
10063 finish_cmds=
10064 finish_eval=
10065 shlibpath_var=
10066 shlibpath_overrides_runpath=unknown
10067 version_type=none
10068 dynamic_linker="$host_os ld.so"
10069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10070 need_lib_prefix=unknown
10071 hardcode_into_libs=no
10073 # when you set need_version to no, make sure it does not cause -set_version
10074 # flags to be left without arguments
10075 need_version=unknown
10077 case $host_os in
10078 aix3*)
10079 version_type=linux
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10081 shlibpath_var=LIBPATH
10083 # AIX 3 has no versioning support, so we append a major version to the name.
10084 soname_spec='${libname}${release}${shared_ext}$major'
10087 aix[4-9]*)
10088 version_type=linux
10089 need_lib_prefix=no
10090 need_version=no
10091 hardcode_into_libs=yes
10092 if test "$host_cpu" = ia64; then
10093 # AIX 5 supports IA64
10094 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 else
10097 # With GCC up to 2.95.x, collect2 would create an import file
10098 # for dependence libraries. The import file would start with
10099 # the line `#! .'. This would cause the generated library to
10100 # depend on `.', always an invalid library. This was fixed in
10101 # development snapshots of GCC prior to 3.0.
10102 case $host_os in
10103 aix4 | aix4.[01] | aix4.[01].*)
10104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10105 echo ' yes '
10106 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10108 else
10109 can_build_shared=no
10112 esac
10113 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10114 # soname into executable. Probably we can add versioning support to
10115 # collect2, so additional links can be useful in future.
10116 if test "$aix_use_runtimelinking" = yes; then
10117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10118 # instead of lib<name>.a to let people know that these are not
10119 # typical AIX shared libraries.
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 else
10122 # We preserve .a as extension for shared libraries through AIX4.2
10123 # and later when we are not doing run time linking.
10124 library_names_spec='${libname}${release}.a $libname.a'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10127 shlibpath_var=LIBPATH
10131 amigaos*)
10132 case $host_cpu in
10133 powerpc)
10134 # Since July 2007 AmigaOS4 officially supports .so libraries.
10135 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 m68k)
10139 library_names_spec='$libname.ixlibrary $libname.a'
10140 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10141 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'
10143 esac
10146 beos*)
10147 library_names_spec='${libname}${shared_ext}'
10148 dynamic_linker="$host_os ld.so"
10149 shlibpath_var=LIBRARY_PATH
10152 bsdi[45]*)
10153 version_type=linux
10154 need_version=no
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10161 # the default ld.so.conf also contains /usr/contrib/lib and
10162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10163 # libtool to hard-code these into programs
10166 cygwin* | mingw* | pw32* | cegcc*)
10167 version_type=windows
10168 shrext_cmds=".dll"
10169 need_version=no
10170 need_lib_prefix=no
10172 case $GCC,$host_os in
10173 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10174 library_names_spec='$libname.dll.a'
10175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10176 postinstall_cmds='base_file=`basename \${file}`~
10177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10178 dldir=$destdir/`dirname \$dlpath`~
10179 test -d \$dldir || mkdir -p \$dldir~
10180 $install_prog $dir/$dlname \$dldir/$dlname~
10181 chmod a+x \$dldir/$dlname~
10182 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10183 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10186 dlpath=$dir/\$dldll~
10187 $RM \$dlpath'
10188 shlibpath_overrides_runpath=yes
10190 case $host_os in
10191 cygwin*)
10192 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10193 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10197 mingw* | cegcc*)
10198 # MinGW DLLs use traditional 'lib' prefix
10199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10201 pw32*)
10202 # pw32 DLLs use 'pw' prefix rather than 'lib'
10203 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205 esac
10209 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10211 esac
10212 dynamic_linker='Win32 ld.exe'
10213 # FIXME: first we should search . and the directory the executable is in
10214 shlibpath_var=PATH
10217 darwin* | rhapsody*)
10218 dynamic_linker="$host_os dyld"
10219 version_type=darwin
10220 need_lib_prefix=no
10221 need_version=no
10222 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10223 soname_spec='${libname}${release}${major}$shared_ext'
10224 shlibpath_overrides_runpath=yes
10225 shlibpath_var=DYLD_LIBRARY_PATH
10226 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10229 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10232 dgux*)
10233 version_type=linux
10234 need_lib_prefix=no
10235 need_version=no
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 shlibpath_var=LD_LIBRARY_PATH
10241 freebsd* | dragonfly*)
10242 # DragonFly does not have aout. When/if they implement a new
10243 # versioning mechanism, adjust this.
10244 if test -x /usr/bin/objformat; then
10245 objformat=`/usr/bin/objformat`
10246 else
10247 case $host_os in
10248 freebsd[123]*) objformat=aout ;;
10249 *) objformat=elf ;;
10250 esac
10252 version_type=freebsd-$objformat
10253 case $version_type in
10254 freebsd-elf*)
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10256 need_version=no
10257 need_lib_prefix=no
10259 freebsd-*)
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10261 need_version=yes
10263 esac
10264 shlibpath_var=LD_LIBRARY_PATH
10265 case $host_os in
10266 freebsd2*)
10267 shlibpath_overrides_runpath=yes
10269 freebsd3.[01]* | freebsdelf3.[01]*)
10270 shlibpath_overrides_runpath=yes
10271 hardcode_into_libs=yes
10273 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10274 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10275 shlibpath_overrides_runpath=no
10276 hardcode_into_libs=yes
10278 *) # from 4.6 on, and DragonFly
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10282 esac
10285 gnu*)
10286 version_type=linux
10287 need_lib_prefix=no
10288 need_version=no
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 hardcode_into_libs=yes
10295 haiku*)
10296 version_type=linux
10297 need_lib_prefix=no
10298 need_version=no
10299 dynamic_linker="$host_os runtime_loader"
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10305 hardcode_into_libs=yes
10308 hpux9* | hpux10* | hpux11*)
10309 # Give a soname corresponding to the major version so that dld.sl refuses to
10310 # link against other versions.
10311 version_type=sunos
10312 need_lib_prefix=no
10313 need_version=no
10314 case $host_cpu in
10315 ia64*)
10316 shrext_cmds='.so'
10317 hardcode_into_libs=yes
10318 dynamic_linker="$host_os dld.so"
10319 shlibpath_var=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
10324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10325 else
10326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10330 hppa*64*)
10331 shrext_cmds='.sl'
10332 hardcode_into_libs=yes
10333 dynamic_linker="$host_os dld.sl"
10334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10342 shrext_cmds='.sl'
10343 dynamic_linker="$host_os dld.sl"
10344 shlibpath_var=SHLIB_PATH
10345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10349 esac
10350 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10351 postinstall_cmds='chmod 555 $lib'
10352 # or fails outright, so override atomically:
10353 install_override_mode=555
10356 interix[3-9]*)
10357 version_type=linux
10358 need_lib_prefix=no
10359 need_version=no
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath=no
10365 hardcode_into_libs=yes
10368 irix5* | irix6* | nonstopux*)
10369 case $host_os in
10370 nonstopux*) version_type=nonstopux ;;
10372 if test "$lt_cv_prog_gnu_ld" = yes; then
10373 version_type=linux
10374 else
10375 version_type=irix
10376 fi ;;
10377 esac
10378 need_lib_prefix=no
10379 need_version=no
10380 soname_spec='${libname}${release}${shared_ext}$major'
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10382 case $host_os in
10383 irix5* | nonstopux*)
10384 libsuff= shlibsuff=
10387 case $LD in # libtool.m4 will add one of these switches to LD
10388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10389 libsuff= shlibsuff= libmagic=32-bit;;
10390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10391 libsuff=32 shlibsuff=N32 libmagic=N32;;
10392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10394 *) libsuff= shlibsuff= libmagic=never-match;;
10395 esac
10397 esac
10398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10399 shlibpath_overrides_runpath=no
10400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10402 hardcode_into_libs=yes
10405 # No shared lib support for Linux oldld, aout, or coff.
10406 linux*oldld* | linux*aout* | linux*coff*)
10407 dynamic_linker=no
10410 # This must be Linux ELF.
10411 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10412 version_type=linux
10413 need_lib_prefix=no
10414 need_version=no
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 shlibpath_overrides_runpath=no
10421 # Some binutils ld are patched to set DT_RUNPATH
10422 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 lt_cv_shlibpath_overrides_runpath=no
10426 save_LDFLAGS=$LDFLAGS
10427 save_libdir=$libdir
10428 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10429 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10434 main ()
10438 return 0;
10440 _ACEOF
10441 if ac_fn_c_try_link "$LINENO"; then :
10442 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10443 lt_cv_shlibpath_overrides_runpath=yes
10446 rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LDFLAGS=$save_LDFLAGS
10449 libdir=$save_libdir
10453 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10455 # This implies no fast_install, which is unacceptable.
10456 # Some rework will be needed to allow for fast_install
10457 # before this can be enabled.
10458 hardcode_into_libs=yes
10460 # Append ld.so.conf contents to the search path
10461 if test -f /etc/ld.so.conf; then
10462 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' ' '`
10463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10466 # We used to test for /lib/ld.so.1 and disable shared libraries on
10467 # powerpc, because MkLinux only supported shared libraries with the
10468 # GNU dynamic linker. Since this was broken with cross compilers,
10469 # most powerpc-linux boxes support dynamic linking these days and
10470 # people can always --disable-shared, the test was removed, and we
10471 # assume the GNU/Linux dynamic linker is in use.
10472 dynamic_linker='GNU/Linux ld.so'
10475 netbsd*)
10476 version_type=sunos
10477 need_lib_prefix=no
10478 need_version=no
10479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10482 dynamic_linker='NetBSD (a.out) ld.so'
10483 else
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 dynamic_linker='NetBSD ld.elf_so'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=yes
10490 hardcode_into_libs=yes
10493 newsos6)
10494 version_type=linux
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10500 *nto* | *qnx*)
10501 version_type=qnx
10502 need_lib_prefix=no
10503 need_version=no
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=no
10508 hardcode_into_libs=yes
10509 dynamic_linker='ldqnx.so'
10512 openbsd*)
10513 version_type=sunos
10514 sys_lib_dlsearch_path_spec="/usr/lib"
10515 need_lib_prefix=no
10516 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10517 case $host_os in
10518 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10519 *) need_version=no ;;
10520 esac
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10525 case $host_os in
10526 openbsd2.[89] | openbsd2.[89].*)
10527 shlibpath_overrides_runpath=no
10530 shlibpath_overrides_runpath=yes
10532 esac
10533 else
10534 shlibpath_overrides_runpath=yes
10538 os2*)
10539 libname_spec='$name'
10540 shrext_cmds=".dll"
10541 need_lib_prefix=no
10542 library_names_spec='$libname${shared_ext} $libname.a'
10543 dynamic_linker='OS/2 ld.exe'
10544 shlibpath_var=LIBPATH
10547 osf3* | osf4* | osf5*)
10548 version_type=osf
10549 need_lib_prefix=no
10550 need_version=no
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10555 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10558 rdos*)
10559 dynamic_linker=no
10562 solaris*)
10563 version_type=linux
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 shlibpath_overrides_runpath=yes
10570 hardcode_into_libs=yes
10571 # ldd complains unless libraries are executable
10572 postinstall_cmds='chmod +x $lib'
10575 sunos4*)
10576 version_type=sunos
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=yes
10581 if test "$with_gnu_ld" = yes; then
10582 need_lib_prefix=no
10584 need_version=yes
10587 sysv4 | sysv4.3*)
10588 version_type=linux
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 case $host_vendor in
10593 sni)
10594 shlibpath_overrides_runpath=no
10595 need_lib_prefix=no
10596 runpath_var=LD_RUN_PATH
10598 siemens)
10599 need_lib_prefix=no
10601 motorola)
10602 need_lib_prefix=no
10603 need_version=no
10604 shlibpath_overrides_runpath=no
10605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10607 esac
10610 sysv4*MP*)
10611 if test -d /usr/nec ;then
10612 version_type=linux
10613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10614 soname_spec='$libname${shared_ext}.$major'
10615 shlibpath_var=LD_LIBRARY_PATH
10619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10620 version_type=freebsd-elf
10621 need_lib_prefix=no
10622 need_version=no
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=yes
10627 hardcode_into_libs=yes
10628 if test "$with_gnu_ld" = yes; then
10629 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10630 else
10631 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10632 case $host_os in
10633 sco3.2v5*)
10634 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10636 esac
10638 sys_lib_dlsearch_path_spec='/usr/lib'
10641 tpf*)
10642 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10643 version_type=linux
10644 need_lib_prefix=no
10645 need_version=no
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=no
10649 hardcode_into_libs=yes
10652 uts4*)
10653 version_type=linux
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 shlibpath_var=LD_LIBRARY_PATH
10660 dynamic_linker=no
10662 esac
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10664 $as_echo "$dynamic_linker" >&6; }
10665 test "$dynamic_linker" = no && can_build_shared=no
10667 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10668 if test "$GCC" = yes; then
10669 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10672 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10673 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10675 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10676 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10771 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10772 hardcode_action=
10773 if test -n "$hardcode_libdir_flag_spec" ||
10774 test -n "$runpath_var" ||
10775 test "X$hardcode_automatic" = "Xyes" ; then
10777 # We can hardcode non-existent directories.
10778 if test "$hardcode_direct" != no &&
10779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10780 # have to relink, otherwise we might link with an installed library
10781 # when we should be linking with a yet-to-be-installed one
10782 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10783 test "$hardcode_minus_L" != no; then
10784 # Linking always hardcodes the temporary library directory.
10785 hardcode_action=relink
10786 else
10787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10788 hardcode_action=immediate
10790 else
10791 # We cannot hardcode anything, or else we can only hardcode existing
10792 # directories.
10793 hardcode_action=unsupported
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10796 $as_echo "$hardcode_action" >&6; }
10798 if test "$hardcode_action" = relink ||
10799 test "$inherit_rpath" = yes; then
10800 # Fast installation is not supported
10801 enable_fast_install=no
10802 elif test "$shlibpath_overrides_runpath" = yes ||
10803 test "$enable_shared" = no; then
10804 # Fast installation is not necessary
10805 enable_fast_install=needless
10813 if test "x$enable_dlopen" != xyes; then
10814 enable_dlopen=unknown
10815 enable_dlopen_self=unknown
10816 enable_dlopen_self_static=unknown
10817 else
10818 lt_cv_dlopen=no
10819 lt_cv_dlopen_libs=
10821 case $host_os in
10822 beos*)
10823 lt_cv_dlopen="load_add_on"
10824 lt_cv_dlopen_libs=
10825 lt_cv_dlopen_self=yes
10828 mingw* | pw32* | cegcc*)
10829 lt_cv_dlopen="LoadLibrary"
10830 lt_cv_dlopen_libs=
10833 cygwin*)
10834 lt_cv_dlopen="dlopen"
10835 lt_cv_dlopen_libs=
10838 darwin*)
10839 # if libdl is installed we need to link against it
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10841 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-ldl $LIBS"
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char dlopen ();
10858 main ()
10860 return dlopen ();
10862 return 0;
10864 _ACEOF
10865 if ac_fn_c_try_link "$LINENO"; then :
10866 ac_cv_lib_dl_dlopen=yes
10867 else
10868 ac_cv_lib_dl_dlopen=no
10870 rm -f core conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10872 LIBS=$ac_check_lib_save_LIBS
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10875 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10876 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10878 else
10880 lt_cv_dlopen="dyld"
10881 lt_cv_dlopen_libs=
10882 lt_cv_dlopen_self=yes
10889 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10890 if test "x$ac_cv_func_shl_load" = x""yes; then :
10891 lt_cv_dlopen="shl_load"
10892 else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10894 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10895 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10898 ac_check_lib_save_LIBS=$LIBS
10899 LIBS="-ldld $LIBS"
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char shl_load ();
10911 main ()
10913 return shl_load ();
10915 return 0;
10917 _ACEOF
10918 if ac_fn_c_try_link "$LINENO"; then :
10919 ac_cv_lib_dld_shl_load=yes
10920 else
10921 ac_cv_lib_dld_shl_load=no
10923 rm -f core conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10928 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10929 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10930 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10931 else
10932 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10933 if test "x$ac_cv_func_dlopen" = x""yes; then :
10934 lt_cv_dlopen="dlopen"
10935 else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10937 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 ac_check_lib_save_LIBS=$LIBS
10942 LIBS="-ldl $LIBS"
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 char dlopen ();
10954 main ()
10956 return dlopen ();
10958 return 0;
10960 _ACEOF
10961 if ac_fn_c_try_link "$LINENO"; then :
10962 ac_cv_lib_dl_dlopen=yes
10963 else
10964 ac_cv_lib_dl_dlopen=no
10966 rm -f core conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968 LIBS=$ac_check_lib_save_LIBS
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10971 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10972 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10976 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10977 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 ac_check_lib_save_LIBS=$LIBS
10981 LIBS="-lsvld $LIBS"
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char dlopen ();
10993 main ()
10995 return dlopen ();
10997 return 0;
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"; then :
11001 ac_cv_lib_svld_dlopen=yes
11002 else
11003 ac_cv_lib_svld_dlopen=no
11005 rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11010 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11011 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11015 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 ac_check_lib_save_LIBS=$LIBS
11020 LIBS="-ldld $LIBS"
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11024 /* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
11027 #ifdef __cplusplus
11028 extern "C"
11029 #endif
11030 char dld_link ();
11032 main ()
11034 return dld_link ();
11036 return 0;
11038 _ACEOF
11039 if ac_fn_c_try_link "$LINENO"; then :
11040 ac_cv_lib_dld_dld_link=yes
11041 else
11042 ac_cv_lib_dld_dld_link=no
11044 rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11049 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11050 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11051 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11070 esac
11072 if test "x$lt_cv_dlopen" != xno; then
11073 enable_dlopen=yes
11074 else
11075 enable_dlopen=no
11078 case $lt_cv_dlopen in
11079 dlopen)
11080 save_CPPFLAGS="$CPPFLAGS"
11081 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11083 save_LDFLAGS="$LDFLAGS"
11084 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11086 save_LIBS="$LIBS"
11087 LIBS="$lt_cv_dlopen_libs $LIBS"
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11090 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11091 if test "${lt_cv_dlopen_self+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 if test "$cross_compiling" = yes; then :
11095 lt_cv_dlopen_self=cross
11096 else
11097 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11098 lt_status=$lt_dlunknown
11099 cat > conftest.$ac_ext <<_LT_EOF
11100 #line 11100 "configure"
11101 #include "confdefs.h"
11103 #if HAVE_DLFCN_H
11104 #include <dlfcn.h>
11105 #endif
11107 #include <stdio.h>
11109 #ifdef RTLD_GLOBAL
11110 # define LT_DLGLOBAL RTLD_GLOBAL
11111 #else
11112 # ifdef DL_GLOBAL
11113 # define LT_DLGLOBAL DL_GLOBAL
11114 # else
11115 # define LT_DLGLOBAL 0
11116 # endif
11117 #endif
11119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11120 find out it does not work in some platform. */
11121 #ifndef LT_DLLAZY_OR_NOW
11122 # ifdef RTLD_LAZY
11123 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11124 # else
11125 # ifdef DL_LAZY
11126 # define LT_DLLAZY_OR_NOW DL_LAZY
11127 # else
11128 # ifdef RTLD_NOW
11129 # define LT_DLLAZY_OR_NOW RTLD_NOW
11130 # else
11131 # ifdef DL_NOW
11132 # define LT_DLLAZY_OR_NOW DL_NOW
11133 # else
11134 # define LT_DLLAZY_OR_NOW 0
11135 # endif
11136 # endif
11137 # endif
11138 # endif
11139 #endif
11141 /* When -fvisbility=hidden is used, assume the code has been annotated
11142 correspondingly for the symbols needed. */
11143 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11144 void fnord () __attribute__((visibility("default")));
11145 #endif
11147 void fnord () { int i=42; }
11148 int main ()
11150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11151 int status = $lt_dlunknown;
11153 if (self)
11155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11156 else
11158 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11159 else puts (dlerror ());
11161 /* dlclose (self); */
11163 else
11164 puts (dlerror ());
11166 return status;
11168 _LT_EOF
11169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11170 (eval $ac_link) 2>&5
11171 ac_status=$?
11172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11173 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11174 (./conftest; exit; ) >&5 2>/dev/null
11175 lt_status=$?
11176 case x$lt_status in
11177 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11178 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11179 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11180 esac
11181 else :
11182 # compilation failed
11183 lt_cv_dlopen_self=no
11186 rm -fr conftest*
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11191 $as_echo "$lt_cv_dlopen_self" >&6; }
11193 if test "x$lt_cv_dlopen_self" = xyes; then
11194 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11196 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11197 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 if test "$cross_compiling" = yes; then :
11201 lt_cv_dlopen_self_static=cross
11202 else
11203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11204 lt_status=$lt_dlunknown
11205 cat > conftest.$ac_ext <<_LT_EOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11209 #if HAVE_DLFCN_H
11210 #include <dlfcn.h>
11211 #endif
11213 #include <stdio.h>
11215 #ifdef RTLD_GLOBAL
11216 # define LT_DLGLOBAL RTLD_GLOBAL
11217 #else
11218 # ifdef DL_GLOBAL
11219 # define LT_DLGLOBAL DL_GLOBAL
11220 # else
11221 # define LT_DLGLOBAL 0
11222 # endif
11223 #endif
11225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11226 find out it does not work in some platform. */
11227 #ifndef LT_DLLAZY_OR_NOW
11228 # ifdef RTLD_LAZY
11229 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11230 # else
11231 # ifdef DL_LAZY
11232 # define LT_DLLAZY_OR_NOW DL_LAZY
11233 # else
11234 # ifdef RTLD_NOW
11235 # define LT_DLLAZY_OR_NOW RTLD_NOW
11236 # else
11237 # ifdef DL_NOW
11238 # define LT_DLLAZY_OR_NOW DL_NOW
11239 # else
11240 # define LT_DLLAZY_OR_NOW 0
11241 # endif
11242 # endif
11243 # endif
11244 # endif
11245 #endif
11247 /* When -fvisbility=hidden is used, assume the code has been annotated
11248 correspondingly for the symbols needed. */
11249 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11250 void fnord () __attribute__((visibility("default")));
11251 #endif
11253 void fnord () { int i=42; }
11254 int main ()
11256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11257 int status = $lt_dlunknown;
11259 if (self)
11261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11262 else
11264 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11265 else puts (dlerror ());
11267 /* dlclose (self); */
11269 else
11270 puts (dlerror ());
11272 return status;
11274 _LT_EOF
11275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11276 (eval $ac_link) 2>&5
11277 ac_status=$?
11278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11279 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11280 (./conftest; exit; ) >&5 2>/dev/null
11281 lt_status=$?
11282 case x$lt_status in
11283 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11284 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11285 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11286 esac
11287 else :
11288 # compilation failed
11289 lt_cv_dlopen_self_static=no
11292 rm -fr conftest*
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11297 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11300 CPPFLAGS="$save_CPPFLAGS"
11301 LDFLAGS="$save_LDFLAGS"
11302 LIBS="$save_LIBS"
11304 esac
11306 case $lt_cv_dlopen_self in
11307 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11308 *) enable_dlopen_self=unknown ;;
11309 esac
11311 case $lt_cv_dlopen_self_static in
11312 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11313 *) enable_dlopen_self_static=unknown ;;
11314 esac
11333 striplib=
11334 old_striplib=
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11336 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11337 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11338 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11339 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11341 $as_echo "yes" >&6; }
11342 else
11343 # FIXME - insert some real tests, host_os isn't really good enough
11344 case $host_os in
11345 darwin*)
11346 if test -n "$STRIP" ; then
11347 striplib="$STRIP -x"
11348 old_striplib="$STRIP -S"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11350 $as_echo "yes" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11360 esac
11374 # Report which library types will actually be built
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11376 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11378 $as_echo "$can_build_shared" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11381 $as_echo_n "checking whether to build shared libraries... " >&6; }
11382 test "$can_build_shared" = "no" && enable_shared=no
11384 # On AIX, shared libraries and static libraries use the same namespace, and
11385 # are all built from PIC.
11386 case $host_os in
11387 aix3*)
11388 test "$enable_shared" = yes && enable_static=no
11389 if test -n "$RANLIB"; then
11390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11391 postinstall_cmds='$RANLIB $lib'
11395 aix[4-9]*)
11396 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11397 test "$enable_shared" = yes && enable_static=no
11400 esac
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11402 $as_echo "$enable_shared" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11405 $as_echo_n "checking whether to build static libraries... " >&6; }
11406 # Make sure either enable_shared or enable_static is yes.
11407 test "$enable_shared" = yes || enable_static=yes
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11409 $as_echo "$enable_static" >&6; }
11415 ac_ext=c
11416 ac_cpp='$CPP $CPPFLAGS'
11417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11421 CC="$lt_save_CC"
11435 # Source file extension for Go test sources.
11436 ac_ext=go
11438 # Object file extension for compiled Go test sources.
11439 objext=o
11440 objext_GO=$objext
11442 # Code to be used in simple compile tests
11443 lt_simple_compile_test_code="package main; func main() { }"
11445 # Code to be used in simple link tests
11446 lt_simple_link_test_code='package main; func main() { }'
11448 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11455 # If no C compiler was specified, use CC.
11456 LTCC=${LTCC-"$CC"}
11458 # If no C compiler flags were specified, use CFLAGS.
11459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11461 # Allow CC to be a program name with arguments.
11462 compiler=$CC
11465 # save warnings/boilerplate of simple test code
11466 ac_outfile=conftest.$ac_objext
11467 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11469 _lt_compiler_boilerplate=`cat conftest.err`
11470 $RM conftest*
11472 ac_outfile=conftest.$ac_objext
11473 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11475 _lt_linker_boilerplate=`cat conftest.err`
11476 $RM -r conftest*
11479 # Allow CC to be a program name with arguments.
11480 lt_save_CC="$CC"
11481 lt_save_GCC="$GCC"
11482 GCC=yes
11483 CC=${GOC-"gccgo"}
11484 compiler=$CC
11485 compiler_GO=$CC
11486 LD_GO="$LD"
11487 for cc_temp in $compiler""; do
11488 case $cc_temp in
11489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11491 \-*) ;;
11492 *) break;;
11493 esac
11494 done
11495 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11498 # Go did not exist at the time GCC didn't implicitly link libc in.
11499 archive_cmds_need_lc_GO=no
11501 old_archive_cmds_GO=$old_archive_cmds
11503 ## CAVEAT EMPTOR:
11504 ## There is no encapsulation within the following macros, do not change
11505 ## the running order or otherwise move them around unless you know exactly
11506 ## what you are doing...
11507 if test -n "$compiler"; then
11509 lt_prog_compiler_no_builtin_flag_GO=
11511 if test "$GCC" = yes; then
11512 case $cc_basename in
11513 nvcc*)
11514 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11516 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11517 esac
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11520 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11521 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 lt_cv_prog_compiler_rtti_exceptions=no
11525 ac_outfile=conftest.$ac_objext
11526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11527 lt_compiler_flag="-fno-rtti -fno-exceptions"
11528 # Insert the option either (1) after the last *FLAGS variable, or
11529 # (2) before a word containing "conftest.", or (3) at the end.
11530 # Note that $ac_compile itself does not contain backslashes and begins
11531 # with a dollar sign (not a hyphen), so the echo should work correctly.
11532 # The option is referenced via a variable to avoid confusing sed.
11533 lt_compile=`echo "$ac_compile" | $SED \
11534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11536 -e 's:$: $lt_compiler_flag:'`
11537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11538 (eval "$lt_compile" 2>conftest.err)
11539 ac_status=$?
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 if (exit $ac_status) && test -s "$ac_outfile"; then
11543 # The compiler can only warn and ignore the option if not recognized
11544 # So say no if there are warnings other than the usual output.
11545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11548 lt_cv_prog_compiler_rtti_exceptions=yes
11551 $RM conftest*
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11555 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11557 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11558 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11559 else
11567 lt_prog_compiler_wl_GO=
11568 lt_prog_compiler_pic_GO=
11569 lt_prog_compiler_static_GO=
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11572 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11574 if test "$GCC" = yes; then
11575 lt_prog_compiler_wl_GO='-Wl,'
11576 lt_prog_compiler_static_GO='-static'
11578 case $host_os in
11579 aix*)
11580 # All AIX code is PIC.
11581 if test "$host_cpu" = ia64; then
11582 # AIX 5 now supports IA64 processor
11583 lt_prog_compiler_static_GO='-Bstatic'
11587 amigaos*)
11588 case $host_cpu in
11589 powerpc)
11590 # see comment about AmigaOS4 .so support
11591 lt_prog_compiler_pic_GO='-fPIC'
11593 m68k)
11594 # FIXME: we need at least 68020 code to build shared libraries, but
11595 # adding the `-m68020' flag to GCC prevents building anything better,
11596 # like `-m68040'.
11597 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11599 esac
11602 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11603 # PIC is the default for these OSes.
11606 mingw* | cygwin* | pw32* | os2* | cegcc*)
11607 # This hack is so that the source file can tell whether it is being
11608 # built for inclusion in a dll (and should export symbols for example).
11609 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11610 # (--disable-auto-import) libraries
11611 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11614 darwin* | rhapsody*)
11615 # PIC is the default on this platform
11616 # Common symbols not allowed in MH_DYLIB files
11617 lt_prog_compiler_pic_GO='-fno-common'
11620 haiku*)
11621 # PIC is the default for Haiku.
11622 # The "-static" flag exists, but is broken.
11623 lt_prog_compiler_static_GO=
11626 hpux*)
11627 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11628 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11629 # sets the default TLS model and affects inlining.
11630 case $host_cpu in
11631 hppa*64*)
11632 # +Z the default
11635 lt_prog_compiler_pic_GO='-fPIC'
11637 esac
11640 interix[3-9]*)
11641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11642 # Instead, we relocate shared libraries at runtime.
11645 msdosdjgpp*)
11646 # Just because we use GCC doesn't mean we suddenly get shared libraries
11647 # on systems that don't support them.
11648 lt_prog_compiler_can_build_shared_GO=no
11649 enable_shared=no
11652 *nto* | *qnx*)
11653 # QNX uses GNU C++, but need to define -shared option too, otherwise
11654 # it will coredump.
11655 lt_prog_compiler_pic_GO='-fPIC -shared'
11658 sysv4*MP*)
11659 if test -d /usr/nec; then
11660 lt_prog_compiler_pic_GO=-Kconform_pic
11665 lt_prog_compiler_pic_GO='-fPIC'
11667 esac
11669 case $cc_basename in
11670 nvcc*) # Cuda Compiler Driver 2.2
11671 lt_prog_compiler_wl_GO='-Xlinker '
11672 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11674 esac
11675 else
11676 # PORTME Check for flag to pass linker flags through the system compiler.
11677 case $host_os in
11678 aix*)
11679 lt_prog_compiler_wl_GO='-Wl,'
11680 if test "$host_cpu" = ia64; then
11681 # AIX 5 now supports IA64 processor
11682 lt_prog_compiler_static_GO='-Bstatic'
11683 else
11684 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11688 mingw* | cygwin* | pw32* | os2* | cegcc*)
11689 # This hack is so that the source file can tell whether it is being
11690 # built for inclusion in a dll (and should export symbols for example).
11691 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11694 hpux9* | hpux10* | hpux11*)
11695 lt_prog_compiler_wl_GO='-Wl,'
11696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11697 # not for PA HP-UX.
11698 case $host_cpu in
11699 hppa*64*|ia64*)
11700 # +Z the default
11703 lt_prog_compiler_pic_GO='+Z'
11705 esac
11706 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11707 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11710 irix5* | irix6* | nonstopux*)
11711 lt_prog_compiler_wl_GO='-Wl,'
11712 # PIC (with -KPIC) is the default.
11713 lt_prog_compiler_static_GO='-non_shared'
11716 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11717 case $cc_basename in
11718 # old Intel for x86_64 which still supported -KPIC.
11719 ecc*)
11720 lt_prog_compiler_wl_GO='-Wl,'
11721 lt_prog_compiler_pic_GO='-KPIC'
11722 lt_prog_compiler_static_GO='-static'
11724 # icc used to be incompatible with GCC.
11725 # ICC 10 doesn't accept -KPIC any more.
11726 icc* | ifort*)
11727 lt_prog_compiler_wl_GO='-Wl,'
11728 lt_prog_compiler_pic_GO='-fPIC'
11729 lt_prog_compiler_static_GO='-static'
11731 # Lahey Fortran 8.1.
11732 lf95*)
11733 lt_prog_compiler_wl_GO='-Wl,'
11734 lt_prog_compiler_pic_GO='--shared'
11735 lt_prog_compiler_static_GO='--static'
11737 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11738 # Portland Group compilers (*not* the Pentium gcc compiler,
11739 # which looks to be a dead project)
11740 lt_prog_compiler_wl_GO='-Wl,'
11741 lt_prog_compiler_pic_GO='-fpic'
11742 lt_prog_compiler_static_GO='-Bstatic'
11744 ccc*)
11745 lt_prog_compiler_wl_GO='-Wl,'
11746 # All Alpha code is PIC.
11747 lt_prog_compiler_static_GO='-non_shared'
11749 xl* | bgxl* | bgf* | mpixl*)
11750 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11751 lt_prog_compiler_wl_GO='-Wl,'
11752 lt_prog_compiler_pic_GO='-qpic'
11753 lt_prog_compiler_static_GO='-qstaticlink'
11756 case `$CC -V 2>&1 | sed 5q` in
11757 *Sun\ F* | *Sun*Fortran*)
11758 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11759 lt_prog_compiler_pic_GO='-KPIC'
11760 lt_prog_compiler_static_GO='-Bstatic'
11761 lt_prog_compiler_wl_GO=''
11763 *Sun\ C*)
11764 # Sun C 5.9
11765 lt_prog_compiler_pic_GO='-KPIC'
11766 lt_prog_compiler_static_GO='-Bstatic'
11767 lt_prog_compiler_wl_GO='-Wl,'
11769 esac
11771 esac
11774 newsos6)
11775 lt_prog_compiler_pic_GO='-KPIC'
11776 lt_prog_compiler_static_GO='-Bstatic'
11779 *nto* | *qnx*)
11780 # QNX uses GNU C++, but need to define -shared option too, otherwise
11781 # it will coredump.
11782 lt_prog_compiler_pic_GO='-fPIC -shared'
11785 osf3* | osf4* | osf5*)
11786 lt_prog_compiler_wl_GO='-Wl,'
11787 # All OSF/1 code is PIC.
11788 lt_prog_compiler_static_GO='-non_shared'
11791 rdos*)
11792 lt_prog_compiler_static_GO='-non_shared'
11795 solaris*)
11796 lt_prog_compiler_pic_GO='-KPIC'
11797 lt_prog_compiler_static_GO='-Bstatic'
11798 case $cc_basename in
11799 f77* | f90* | f95*)
11800 lt_prog_compiler_wl_GO='-Qoption ld ';;
11802 lt_prog_compiler_wl_GO='-Wl,';;
11803 esac
11806 sunos4*)
11807 lt_prog_compiler_wl_GO='-Qoption ld '
11808 lt_prog_compiler_pic_GO='-PIC'
11809 lt_prog_compiler_static_GO='-Bstatic'
11812 sysv4 | sysv4.2uw2* | sysv4.3*)
11813 lt_prog_compiler_wl_GO='-Wl,'
11814 lt_prog_compiler_pic_GO='-KPIC'
11815 lt_prog_compiler_static_GO='-Bstatic'
11818 sysv4*MP*)
11819 if test -d /usr/nec ;then
11820 lt_prog_compiler_pic_GO='-Kconform_pic'
11821 lt_prog_compiler_static_GO='-Bstatic'
11825 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11826 lt_prog_compiler_wl_GO='-Wl,'
11827 lt_prog_compiler_pic_GO='-KPIC'
11828 lt_prog_compiler_static_GO='-Bstatic'
11831 unicos*)
11832 lt_prog_compiler_wl_GO='-Wl,'
11833 lt_prog_compiler_can_build_shared_GO=no
11836 uts4*)
11837 lt_prog_compiler_pic_GO='-pic'
11838 lt_prog_compiler_static_GO='-Bstatic'
11842 lt_prog_compiler_can_build_shared_GO=no
11844 esac
11847 case $host_os in
11848 # For platforms which do not support PIC, -DPIC is meaningless:
11849 *djgpp*)
11850 lt_prog_compiler_pic_GO=
11853 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11855 esac
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11857 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11862 # Check to make sure the PIC flag actually works.
11864 if test -n "$lt_prog_compiler_pic_GO"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11866 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11867 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 lt_cv_prog_compiler_pic_works_GO=no
11871 ac_outfile=conftest.$ac_objext
11872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11873 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11874 # Insert the option either (1) after the last *FLAGS variable, or
11875 # (2) before a word containing "conftest.", or (3) at the end.
11876 # Note that $ac_compile itself does not contain backslashes and begins
11877 # with a dollar sign (not a hyphen), so the echo should work correctly.
11878 # The option is referenced via a variable to avoid confusing sed.
11879 lt_compile=`echo "$ac_compile" | $SED \
11880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11882 -e 's:$: $lt_compiler_flag:'`
11883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11884 (eval "$lt_compile" 2>conftest.err)
11885 ac_status=$?
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 if (exit $ac_status) && test -s "$ac_outfile"; then
11889 # The compiler can only warn and ignore the option if not recognized
11890 # So say no if there are warnings other than the usual output.
11891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11894 lt_cv_prog_compiler_pic_works_GO=yes
11897 $RM conftest*
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11901 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11903 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11904 case $lt_prog_compiler_pic_GO in
11905 "" | " "*) ;;
11906 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11907 esac
11908 else
11909 lt_prog_compiler_pic_GO=
11910 lt_prog_compiler_can_build_shared_GO=no
11918 # Check to make sure the static flag actually works.
11920 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11922 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11923 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 lt_cv_prog_compiler_static_works_GO=no
11927 save_LDFLAGS="$LDFLAGS"
11928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11931 # The linker can only warn and ignore the option if not recognized
11932 # So say no if there are warnings
11933 if test -s conftest.err; then
11934 # Append any errors to the config.log.
11935 cat conftest.err 1>&5
11936 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11938 if diff conftest.exp conftest.er2 >/dev/null; then
11939 lt_cv_prog_compiler_static_works_GO=yes
11941 else
11942 lt_cv_prog_compiler_static_works_GO=yes
11945 $RM -r conftest*
11946 LDFLAGS="$save_LDFLAGS"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11950 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11952 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11954 else
11955 lt_prog_compiler_static_GO=
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11962 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11963 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11965 else
11966 lt_cv_prog_compiler_c_o_GO=no
11967 $RM -r conftest 2>/dev/null
11968 mkdir conftest
11969 cd conftest
11970 mkdir out
11971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11973 lt_compiler_flag="-o out/conftest2.$ac_objext"
11974 # Insert the option either (1) after the last *FLAGS variable, or
11975 # (2) before a word containing "conftest.", or (3) at the end.
11976 # Note that $ac_compile itself does not contain backslashes and begins
11977 # with a dollar sign (not a hyphen), so the echo should work correctly.
11978 lt_compile=`echo "$ac_compile" | $SED \
11979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11981 -e 's:$: $lt_compiler_flag:'`
11982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11983 (eval "$lt_compile" 2>out/conftest.err)
11984 ac_status=$?
11985 cat out/conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11988 then
11989 # The compiler can only warn and ignore the option if not recognized
11990 # So say no if there are warnings
11991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11994 lt_cv_prog_compiler_c_o_GO=yes
11997 chmod u+w . 2>&5
11998 $RM conftest*
11999 # SGI C++ compiler will create directory out/ii_files/ for
12000 # template instantiation
12001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12002 $RM out/* && rmdir out
12003 cd ..
12004 $RM -r conftest
12005 $RM conftest*
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12009 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12014 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12015 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 lt_cv_prog_compiler_c_o_GO=no
12019 $RM -r conftest 2>/dev/null
12020 mkdir conftest
12021 cd conftest
12022 mkdir out
12023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12025 lt_compiler_flag="-o out/conftest2.$ac_objext"
12026 # Insert the option either (1) after the last *FLAGS variable, or
12027 # (2) before a word containing "conftest.", or (3) at the end.
12028 # Note that $ac_compile itself does not contain backslashes and begins
12029 # with a dollar sign (not a hyphen), so the echo should work correctly.
12030 lt_compile=`echo "$ac_compile" | $SED \
12031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12033 -e 's:$: $lt_compiler_flag:'`
12034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12035 (eval "$lt_compile" 2>out/conftest.err)
12036 ac_status=$?
12037 cat out/conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12040 then
12041 # The compiler can only warn and ignore the option if not recognized
12042 # So say no if there are warnings
12043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12046 lt_cv_prog_compiler_c_o_GO=yes
12049 chmod u+w . 2>&5
12050 $RM conftest*
12051 # SGI C++ compiler will create directory out/ii_files/ for
12052 # template instantiation
12053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12054 $RM out/* && rmdir out
12055 cd ..
12056 $RM -r conftest
12057 $RM conftest*
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12061 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12066 hard_links="nottested"
12067 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12068 # do not overwrite the value of need_locks provided by the user
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12070 $as_echo_n "checking if we can lock with hard links... " >&6; }
12071 hard_links=yes
12072 $RM conftest*
12073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12074 touch conftest.a
12075 ln conftest.a conftest.b 2>&5 || hard_links=no
12076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12078 $as_echo "$hard_links" >&6; }
12079 if test "$hard_links" = no; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12081 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12082 need_locks=warn
12084 else
12085 need_locks=no
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12091 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12093 runpath_var=
12094 allow_undefined_flag_GO=
12095 always_export_symbols_GO=no
12096 archive_cmds_GO=
12097 archive_expsym_cmds_GO=
12098 compiler_needs_object_GO=no
12099 enable_shared_with_static_runtimes_GO=no
12100 export_dynamic_flag_spec_GO=
12101 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12102 hardcode_automatic_GO=no
12103 hardcode_direct_GO=no
12104 hardcode_direct_absolute_GO=no
12105 hardcode_libdir_flag_spec_GO=
12106 hardcode_libdir_flag_spec_ld_GO=
12107 hardcode_libdir_separator_GO=
12108 hardcode_minus_L_GO=no
12109 hardcode_shlibpath_var_GO=unsupported
12110 inherit_rpath_GO=no
12111 link_all_deplibs_GO=unknown
12112 module_cmds_GO=
12113 module_expsym_cmds_GO=
12114 old_archive_from_new_cmds_GO=
12115 old_archive_from_expsyms_cmds_GO=
12116 thread_safe_flag_spec_GO=
12117 whole_archive_flag_spec_GO=
12118 # include_expsyms should be a list of space-separated symbols to be *always*
12119 # included in the symbol list
12120 include_expsyms_GO=
12121 # exclude_expsyms can be an extended regexp of symbols to exclude
12122 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12124 # as well as any symbol that contains `d'.
12125 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12127 # platforms (ab)use it in PIC code, but their linkers get confused if
12128 # the symbol is explicitly referenced. Since portable code cannot
12129 # rely on this symbol name, it's probably fine to never include it in
12130 # preloaded symbol tables.
12131 # Exclude shared library initialization/finalization symbols.
12132 extract_expsyms_cmds=
12134 case $host_os in
12135 cygwin* | mingw* | pw32* | cegcc*)
12136 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12137 # When not using gcc, we currently assume that we are using
12138 # Microsoft Visual C++.
12139 if test "$GCC" != yes; then
12140 with_gnu_ld=no
12143 interix*)
12144 # we just hope/assume this is gcc and not c89 (= MSVC++)
12145 with_gnu_ld=yes
12147 openbsd*)
12148 with_gnu_ld=no
12150 esac
12152 ld_shlibs_GO=yes
12154 # On some targets, GNU ld is compatible enough with the native linker
12155 # that we're better off using the native interface for both.
12156 lt_use_gnu_ld_interface=no
12157 if test "$with_gnu_ld" = yes; then
12158 case $host_os in
12159 aix*)
12160 # The AIX port of GNU ld has always aspired to compatibility
12161 # with the native linker. However, as the warning in the GNU ld
12162 # block says, versions before 2.19.5* couldn't really create working
12163 # shared libraries, regardless of the interface used.
12164 case `$LD -v 2>&1` in
12165 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12166 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12167 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12169 lt_use_gnu_ld_interface=yes
12171 esac
12174 lt_use_gnu_ld_interface=yes
12176 esac
12179 if test "$lt_use_gnu_ld_interface" = yes; then
12180 # If archive_cmds runs LD, not CC, wlarc should be empty
12181 wlarc='${wl}'
12183 # Set some defaults for GNU ld with shared library support. These
12184 # are reset later if shared libraries are not supported. Putting them
12185 # here allows them to be overridden if necessary.
12186 runpath_var=LD_RUN_PATH
12187 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12188 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12189 # ancient GNU ld didn't support --whole-archive et. al.
12190 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12191 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12192 else
12193 whole_archive_flag_spec_GO=
12195 supports_anon_versioning=no
12196 case `$LD -v 2>&1` in
12197 *GNU\ gold*) supports_anon_versioning=yes ;;
12198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12201 *\ 2.11.*) ;; # other 2.11 versions
12202 *) supports_anon_versioning=yes ;;
12203 esac
12205 # See if GNU ld supports shared libraries.
12206 case $host_os in
12207 aix[3-9]*)
12208 # On AIX/PPC, the GNU linker is very broken
12209 if test "$host_cpu" != ia64; then
12210 ld_shlibs_GO=no
12211 cat <<_LT_EOF 1>&2
12213 *** Warning: the GNU linker, at least up to release 2.19, is reported
12214 *** to be unable to reliably create shared libraries on AIX.
12215 *** Therefore, libtool is disabling shared libraries support. If you
12216 *** really care for shared libraries, you may want to install binutils
12217 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12218 *** You will then need to restart the configuration process.
12220 _LT_EOF
12224 amigaos*)
12225 case $host_cpu in
12226 powerpc)
12227 # see comment about AmigaOS4 .so support
12228 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12229 archive_expsym_cmds_GO=''
12231 m68k)
12232 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)'
12233 hardcode_libdir_flag_spec_GO='-L$libdir'
12234 hardcode_minus_L_GO=yes
12236 esac
12239 beos*)
12240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12241 allow_undefined_flag_GO=unsupported
12242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12243 # support --undefined. This deserves some investigation. FIXME
12244 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12245 else
12246 ld_shlibs_GO=no
12250 cygwin* | mingw* | pw32* | cegcc*)
12251 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12252 # as there is no search path for DLLs.
12253 hardcode_libdir_flag_spec_GO='-L$libdir'
12254 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12255 allow_undefined_flag_GO=unsupported
12256 always_export_symbols_GO=no
12257 enable_shared_with_static_runtimes_GO=yes
12258 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12260 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12261 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12262 # If the export-symbols file already is a .def file (1st line
12263 # is EXPORTS), use it as is; otherwise, prepend...
12264 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12265 cp $export_symbols $output_objdir/$soname.def;
12266 else
12267 echo EXPORTS > $output_objdir/$soname.def;
12268 cat $export_symbols >> $output_objdir/$soname.def;
12270 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12271 else
12272 ld_shlibs_GO=no
12276 haiku*)
12277 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12278 link_all_deplibs_GO=yes
12281 interix[3-9]*)
12282 hardcode_direct_GO=no
12283 hardcode_shlibpath_var_GO=no
12284 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12285 export_dynamic_flag_spec_GO='${wl}-E'
12286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12287 # Instead, shared libraries are loaded at an image base (0x10000000 by
12288 # default) and relocated if they conflict, which is a slow very memory
12289 # consuming and fragmenting process. To avoid this, we pick a random,
12290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12292 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'
12293 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'
12296 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12297 tmp_diet=no
12298 if test "$host_os" = linux-dietlibc; then
12299 case $cc_basename in
12300 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12301 esac
12303 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12304 && test "$tmp_diet" = no
12305 then
12306 tmp_addflag=
12307 tmp_sharedflag='-shared'
12308 case $cc_basename,$host_cpu in
12309 pgcc*) # Portland Group C compiler
12310 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'
12311 tmp_addflag=' $pic_flag'
12313 pgf77* | pgf90* | pgf95* | pgfortran*)
12314 # Portland Group f77 and f90 compilers
12315 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12316 tmp_addflag=' $pic_flag -Mnomain' ;;
12317 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12318 tmp_addflag=' -i_dynamic' ;;
12319 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12320 tmp_addflag=' -i_dynamic -nofor_main' ;;
12321 ifc* | ifort*) # Intel Fortran compiler
12322 tmp_addflag=' -nofor_main' ;;
12323 lf95*) # Lahey Fortran 8.1
12324 whole_archive_flag_spec_GO=
12325 tmp_sharedflag='--shared' ;;
12326 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12327 tmp_sharedflag='-qmkshrobj'
12328 tmp_addflag= ;;
12329 nvcc*) # Cuda Compiler Driver 2.2
12330 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'
12331 compiler_needs_object_GO=yes
12333 esac
12334 case `$CC -V 2>&1 | sed 5q` in
12335 *Sun\ C*) # Sun C 5.9
12336 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'
12337 compiler_needs_object_GO=yes
12338 tmp_sharedflag='-G' ;;
12339 *Sun\ F*) # Sun Fortran 8.3
12340 tmp_sharedflag='-G' ;;
12341 esac
12342 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12344 if test "x$supports_anon_versioning" = xyes; then
12345 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12347 echo "local: *; };" >> $output_objdir/$libname.ver~
12348 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12351 case $cc_basename in
12352 xlf* | bgf* | bgxlf* | mpixlf*)
12353 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12354 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12355 hardcode_libdir_flag_spec_GO=
12356 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12357 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12358 if test "x$supports_anon_versioning" = xyes; then
12359 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12361 echo "local: *; };" >> $output_objdir/$libname.ver~
12362 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12365 esac
12366 else
12367 ld_shlibs_GO=no
12371 netbsd*)
12372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12373 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12374 wlarc=
12375 else
12376 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12377 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12381 solaris*)
12382 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12383 ld_shlibs_GO=no
12384 cat <<_LT_EOF 1>&2
12386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12387 *** create shared libraries on Solaris systems. Therefore, libtool
12388 *** is disabling shared libraries support. We urge you to upgrade GNU
12389 *** binutils to release 2.9.1 or newer. Another option is to modify
12390 *** your PATH or compiler configuration so that the native linker is
12391 *** used, and then restart.
12393 _LT_EOF
12394 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12395 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12396 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12397 else
12398 ld_shlibs_GO=no
12402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12403 case `$LD -v 2>&1` in
12404 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12405 ld_shlibs_GO=no
12406 cat <<_LT_EOF 1>&2
12408 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12409 *** reliably create shared libraries on SCO systems. Therefore, libtool
12410 *** is disabling shared libraries support. We urge you to upgrade GNU
12411 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12412 *** your PATH or compiler configuration so that the native linker is
12413 *** used, and then restart.
12415 _LT_EOF
12418 # For security reasons, it is highly recommended that you always
12419 # use absolute paths for naming shared libraries, and exclude the
12420 # DT_RUNPATH tag from executables and libraries. But doing so
12421 # requires that you compile everything twice, which is a pain.
12422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12423 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12424 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12426 else
12427 ld_shlibs_GO=no
12430 esac
12433 sunos4*)
12434 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12435 wlarc=
12436 hardcode_direct_GO=yes
12437 hardcode_shlibpath_var_GO=no
12441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12442 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12443 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12444 else
12445 ld_shlibs_GO=no
12448 esac
12450 if test "$ld_shlibs_GO" = no; then
12451 runpath_var=
12452 hardcode_libdir_flag_spec_GO=
12453 export_dynamic_flag_spec_GO=
12454 whole_archive_flag_spec_GO=
12456 else
12457 # PORTME fill in a description of your system's linker (not GNU ld)
12458 case $host_os in
12459 aix3*)
12460 allow_undefined_flag_GO=unsupported
12461 always_export_symbols_GO=yes
12462 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'
12463 # Note: this linker hardcodes the directories in LIBPATH if there
12464 # are no directories specified by -L.
12465 hardcode_minus_L_GO=yes
12466 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12467 # Neither direct hardcoding nor static linking is supported with a
12468 # broken collect2.
12469 hardcode_direct_GO=unsupported
12473 aix[4-9]*)
12474 if test "$host_cpu" = ia64; then
12475 # On IA64, the linker does run time linking by default, so we don't
12476 # have to do anything special.
12477 aix_use_runtimelinking=no
12478 exp_sym_flag='-Bexport'
12479 no_entry_flag=""
12480 else
12481 # If we're using GNU nm, then we don't want the "-C" option.
12482 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12483 # Also, AIX nm treats weak defined symbols like other global
12484 # defined symbols, whereas GNU nm marks them as "W".
12485 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12486 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'
12487 else
12488 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'
12490 aix_use_runtimelinking=no
12492 # Test if we are trying to use run time linking or normal
12493 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12494 # need to do runtime linking.
12495 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12496 for ld_flag in $LDFLAGS; do
12497 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12498 aix_use_runtimelinking=yes
12499 break
12501 done
12503 esac
12505 exp_sym_flag='-bexport'
12506 no_entry_flag='-bnoentry'
12509 # When large executables or shared objects are built, AIX ld can
12510 # have problems creating the table of contents. If linking a library
12511 # or program results in "error TOC overflow" add -mminimal-toc to
12512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12515 archive_cmds_GO=''
12516 hardcode_direct_GO=yes
12517 hardcode_direct_absolute_GO=yes
12518 hardcode_libdir_separator_GO=':'
12519 link_all_deplibs_GO=yes
12520 file_list_spec_GO='${wl}-f,'
12522 if test "$GCC" = yes; then
12523 case $host_os in aix4.[012]|aix4.[012].*)
12524 # We only want to do this on AIX 4.2 and lower, the check
12525 # below for broken collect2 doesn't work under 4.3+
12526 collect2name=`${CC} -print-prog-name=collect2`
12527 if test -f "$collect2name" &&
12528 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12529 then
12530 # We have reworked collect2
12532 else
12533 # We have old collect2
12534 hardcode_direct_GO=unsupported
12535 # It fails to find uninstalled libraries when the uninstalled
12536 # path is not listed in the libpath. Setting hardcode_minus_L
12537 # to unsupported forces relinking
12538 hardcode_minus_L_GO=yes
12539 hardcode_libdir_flag_spec_GO='-L$libdir'
12540 hardcode_libdir_separator_GO=
12543 esac
12544 shared_flag='-shared'
12545 if test "$aix_use_runtimelinking" = yes; then
12546 shared_flag="$shared_flag "'${wl}-G'
12548 else
12549 # not using gcc
12550 if test "$host_cpu" = ia64; then
12551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12552 # chokes on -Wl,-G. The following line is correct:
12553 shared_flag='-G'
12554 else
12555 if test "$aix_use_runtimelinking" = yes; then
12556 shared_flag='${wl}-G'
12557 else
12558 shared_flag='${wl}-bM:SRE'
12563 export_dynamic_flag_spec_GO='${wl}-bexpall'
12564 # It seems that -bexpall does not export symbols beginning with
12565 # underscore (_), so it is better to generate a list of symbols to export.
12566 always_export_symbols_GO=yes
12567 if test "$aix_use_runtimelinking" = yes; then
12568 # Warning - without using the other runtime loading flags (-brtl),
12569 # -berok will link without error, but may produce a broken library.
12570 allow_undefined_flag_GO='-berok'
12571 # Determine the default libpath from the value encoded in an
12572 # empty executable.
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12577 main ()
12581 return 0;
12583 _ACEOF
12584 if ac_fn_c_try_link "$LINENO"; then :
12586 lt_aix_libpath_sed='
12587 /Import File Strings/,/^$/ {
12588 /^0/ {
12589 s/^0 *\(.*\)$/\1/
12593 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12594 # Check for a 64-bit object if we didn't find anything.
12595 if test -z "$aix_libpath"; then
12596 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599 rm -f core conftest.err conftest.$ac_objext \
12600 conftest$ac_exeext conftest.$ac_ext
12601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12603 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12604 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"
12605 else
12606 if test "$host_cpu" = ia64; then
12607 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12608 allow_undefined_flag_GO="-z nodefs"
12609 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"
12610 else
12611 # Determine the default libpath from the value encoded in an
12612 # empty executable.
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12617 main ()
12621 return 0;
12623 _ACEOF
12624 if ac_fn_c_try_link "$LINENO"; then :
12626 lt_aix_libpath_sed='
12627 /Import File Strings/,/^$/ {
12628 /^0/ {
12629 s/^0 *\(.*\)$/\1/
12633 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12634 # Check for a 64-bit object if we didn't find anything.
12635 if test -z "$aix_libpath"; then
12636 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12643 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12644 # Warning - without using the other run time loading flags,
12645 # -berok will link without error, but may produce a broken library.
12646 no_undefined_flag_GO=' ${wl}-bernotok'
12647 allow_undefined_flag_GO=' ${wl}-berok'
12648 if test "$with_gnu_ld" = yes; then
12649 # We only use this code for GNU lds that support --whole-archive.
12650 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12651 else
12652 # Exported symbols can be pulled into shared objects from archives
12653 whole_archive_flag_spec_GO='$convenience'
12655 archive_cmds_need_lc_GO=yes
12656 # This is similar to how AIX traditionally builds its shared libraries.
12657 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'
12662 amigaos*)
12663 case $host_cpu in
12664 powerpc)
12665 # see comment about AmigaOS4 .so support
12666 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667 archive_expsym_cmds_GO=''
12669 m68k)
12670 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)'
12671 hardcode_libdir_flag_spec_GO='-L$libdir'
12672 hardcode_minus_L_GO=yes
12674 esac
12677 bsdi[45]*)
12678 export_dynamic_flag_spec_GO=-rdynamic
12681 cygwin* | mingw* | pw32* | cegcc*)
12682 # When not using gcc, we currently assume that we are using
12683 # Microsoft Visual C++.
12684 # hardcode_libdir_flag_spec is actually meaningless, as there is
12685 # no search path for DLLs.
12686 hardcode_libdir_flag_spec_GO=' '
12687 allow_undefined_flag_GO=unsupported
12688 # Tell ltmain to make .lib files, not .a files.
12689 libext=lib
12690 # Tell ltmain to make .dll files, not .so files.
12691 shrext_cmds=".dll"
12692 # FIXME: Setting linknames here is a bad hack.
12693 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12694 # The linker will automatically build a .lib file if we build a DLL.
12695 old_archive_from_new_cmds_GO='true'
12696 # FIXME: Should let the user specify the lib program.
12697 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12698 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12699 enable_shared_with_static_runtimes_GO=yes
12702 darwin* | rhapsody*)
12705 archive_cmds_need_lc_GO=no
12706 hardcode_direct_GO=no
12707 hardcode_automatic_GO=yes
12708 hardcode_shlibpath_var_GO=unsupported
12709 if test "$lt_cv_ld_force_load" = "yes"; then
12710 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\"`'
12711 else
12712 whole_archive_flag_spec_GO=''
12714 link_all_deplibs_GO=yes
12715 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12716 case $cc_basename in
12717 ifort*) _lt_dar_can_shared=yes ;;
12718 *) _lt_dar_can_shared=$GCC ;;
12719 esac
12720 if test "$_lt_dar_can_shared" = "yes"; then
12721 output_verbose_link_cmd=func_echo_all
12722 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}"
12723 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12724 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}"
12725 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}"
12727 else
12728 ld_shlibs_GO=no
12733 dgux*)
12734 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12735 hardcode_libdir_flag_spec_GO='-L$libdir'
12736 hardcode_shlibpath_var_GO=no
12739 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12740 # support. Future versions do this automatically, but an explicit c++rt0.o
12741 # does not break anything, and helps significantly (at the cost of a little
12742 # extra space).
12743 freebsd2.2*)
12744 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12745 hardcode_libdir_flag_spec_GO='-R$libdir'
12746 hardcode_direct_GO=yes
12747 hardcode_shlibpath_var_GO=no
12750 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12751 freebsd2*)
12752 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_direct_GO=yes
12754 hardcode_minus_L_GO=yes
12755 hardcode_shlibpath_var_GO=no
12758 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12759 freebsd* | dragonfly*)
12760 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12761 hardcode_libdir_flag_spec_GO='-R$libdir'
12762 hardcode_direct_GO=yes
12763 hardcode_shlibpath_var_GO=no
12766 hpux9*)
12767 if test "$GCC" = yes; then
12768 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'
12769 else
12770 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'
12772 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12773 hardcode_libdir_separator_GO=:
12774 hardcode_direct_GO=yes
12776 # hardcode_minus_L: Not really in the search PATH,
12777 # but as the default location of the library.
12778 hardcode_minus_L_GO=yes
12779 export_dynamic_flag_spec_GO='${wl}-E'
12782 hpux10*)
12783 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12784 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12785 else
12786 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12788 if test "$with_gnu_ld" = no; then
12789 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12790 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12791 hardcode_libdir_separator_GO=:
12792 hardcode_direct_GO=yes
12793 hardcode_direct_absolute_GO=yes
12794 export_dynamic_flag_spec_GO='${wl}-E'
12795 # hardcode_minus_L: Not really in the search PATH,
12796 # but as the default location of the library.
12797 hardcode_minus_L_GO=yes
12801 hpux11*)
12802 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12803 case $host_cpu in
12804 hppa*64*)
12805 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12807 ia64*)
12808 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12811 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12813 esac
12814 else
12815 case $host_cpu in
12816 hppa*64*)
12817 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12819 ia64*)
12820 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12823 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12825 esac
12827 if test "$with_gnu_ld" = no; then
12828 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12829 hardcode_libdir_separator_GO=:
12831 case $host_cpu in
12832 hppa*64*|ia64*)
12833 hardcode_direct_GO=no
12834 hardcode_shlibpath_var_GO=no
12837 hardcode_direct_GO=yes
12838 hardcode_direct_absolute_GO=yes
12839 export_dynamic_flag_spec_GO='${wl}-E'
12841 # hardcode_minus_L: Not really in the search PATH,
12842 # but as the default location of the library.
12843 hardcode_minus_L_GO=yes
12845 esac
12849 irix5* | irix6* | nonstopux*)
12850 if test "$GCC" = yes; then
12851 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'
12852 # Try to use the -exported_symbol ld option, if it does not
12853 # work, assume that -exports_file does not work either and
12854 # implicitly export all symbols.
12855 save_LDFLAGS="$LDFLAGS"
12856 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12859 int foo(void) {}
12860 _ACEOF
12861 if ac_fn_c_try_link "$LINENO"; then :
12862 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'
12865 rm -f core conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 LDFLAGS="$save_LDFLAGS"
12868 else
12869 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'
12870 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'
12872 archive_cmds_need_lc_GO='no'
12873 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12874 hardcode_libdir_separator_GO=:
12875 inherit_rpath_GO=yes
12876 link_all_deplibs_GO=yes
12879 netbsd*)
12880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12881 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12882 else
12883 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12885 hardcode_libdir_flag_spec_GO='-R$libdir'
12886 hardcode_direct_GO=yes
12887 hardcode_shlibpath_var_GO=no
12890 newsos6)
12891 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12892 hardcode_direct_GO=yes
12893 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12894 hardcode_libdir_separator_GO=:
12895 hardcode_shlibpath_var_GO=no
12898 *nto* | *qnx*)
12901 openbsd*)
12902 if test -f /usr/libexec/ld.so; then
12903 hardcode_direct_GO=yes
12904 hardcode_shlibpath_var_GO=no
12905 hardcode_direct_absolute_GO=yes
12906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12907 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12908 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12909 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12910 export_dynamic_flag_spec_GO='${wl}-E'
12911 else
12912 case $host_os in
12913 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12914 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12915 hardcode_libdir_flag_spec_GO='-R$libdir'
12918 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12919 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12921 esac
12923 else
12924 ld_shlibs_GO=no
12928 os2*)
12929 hardcode_libdir_flag_spec_GO='-L$libdir'
12930 hardcode_minus_L_GO=yes
12931 allow_undefined_flag_GO=unsupported
12932 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'
12933 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12936 osf3*)
12937 if test "$GCC" = yes; then
12938 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12939 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'
12940 else
12941 allow_undefined_flag_GO=' -expect_unresolved \*'
12942 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'
12944 archive_cmds_need_lc_GO='no'
12945 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12946 hardcode_libdir_separator_GO=:
12949 osf4* | osf5*) # as osf3* with the addition of -msym flag
12950 if test "$GCC" = yes; then
12951 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12952 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'
12953 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12954 else
12955 allow_undefined_flag_GO=' -expect_unresolved \*'
12956 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'
12957 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~
12958 $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'
12960 # Both c and cxx compiler support -rpath directly
12961 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12963 archive_cmds_need_lc_GO='no'
12964 hardcode_libdir_separator_GO=:
12967 solaris*)
12968 no_undefined_flag_GO=' -z defs'
12969 if test "$GCC" = yes; then
12970 wlarc='${wl}'
12971 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12972 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12973 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12974 else
12975 case `$CC -V 2>&1` in
12976 *"Compilers 5.0"*)
12977 wlarc=''
12978 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12979 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12983 wlarc='${wl}'
12984 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12985 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12986 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12988 esac
12990 hardcode_libdir_flag_spec_GO='-R$libdir'
12991 hardcode_shlibpath_var_GO=no
12992 case $host_os in
12993 solaris2.[0-5] | solaris2.[0-5].*) ;;
12995 # The compiler driver will combine and reorder linker options,
12996 # but understands `-z linker_flag'. GCC discards it without `$wl',
12997 # but is careful enough not to reorder.
12998 # Supported since Solaris 2.6 (maybe 2.5.1?)
12999 if test "$GCC" = yes; then
13000 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13001 else
13002 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13005 esac
13006 link_all_deplibs_GO=yes
13009 sunos4*)
13010 if test "x$host_vendor" = xsequent; then
13011 # Use $CC to link under sequent, because it throws in some extra .o
13012 # files that make .init and .fini sections work.
13013 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13014 else
13015 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13017 hardcode_libdir_flag_spec_GO='-L$libdir'
13018 hardcode_direct_GO=yes
13019 hardcode_minus_L_GO=yes
13020 hardcode_shlibpath_var_GO=no
13023 sysv4)
13024 case $host_vendor in
13025 sni)
13026 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13027 hardcode_direct_GO=yes # is this really true???
13029 siemens)
13030 ## LD is ld it makes a PLAMLIB
13031 ## CC just makes a GrossModule.
13032 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13033 reload_cmds_GO='$CC -r -o $output$reload_objs'
13034 hardcode_direct_GO=no
13036 motorola)
13037 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13038 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13040 esac
13041 runpath_var='LD_RUN_PATH'
13042 hardcode_shlibpath_var_GO=no
13045 sysv4.3*)
13046 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13047 hardcode_shlibpath_var_GO=no
13048 export_dynamic_flag_spec_GO='-Bexport'
13051 sysv4*MP*)
13052 if test -d /usr/nec; then
13053 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_shlibpath_var_GO=no
13055 runpath_var=LD_RUN_PATH
13056 hardcode_runpath_var=yes
13057 ld_shlibs_GO=yes
13061 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13062 no_undefined_flag_GO='${wl}-z,text'
13063 archive_cmds_need_lc_GO=no
13064 hardcode_shlibpath_var_GO=no
13065 runpath_var='LD_RUN_PATH'
13067 if test "$GCC" = yes; then
13068 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13069 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070 else
13071 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13072 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076 sysv5* | sco3.2v5* | sco5v6*)
13077 # Note: We can NOT use -z defs as we might desire, because we do not
13078 # link with -lc, and that would cause any symbols used from libc to
13079 # always be unresolved, which means just about no library would
13080 # ever link correctly. If we're not using GNU ld we use -z text
13081 # though, which does catch some bad symbols but isn't as heavy-handed
13082 # as -z defs.
13083 no_undefined_flag_GO='${wl}-z,text'
13084 allow_undefined_flag_GO='${wl}-z,nodefs'
13085 archive_cmds_need_lc_GO=no
13086 hardcode_shlibpath_var_GO=no
13087 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13088 hardcode_libdir_separator_GO=':'
13089 link_all_deplibs_GO=yes
13090 export_dynamic_flag_spec_GO='${wl}-Bexport'
13091 runpath_var='LD_RUN_PATH'
13093 if test "$GCC" = yes; then
13094 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13096 else
13097 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 uts4*)
13103 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13104 hardcode_libdir_flag_spec_GO='-L$libdir'
13105 hardcode_shlibpath_var_GO=no
13109 ld_shlibs_GO=no
13111 esac
13113 if test x$host_vendor = xsni; then
13114 case $host in
13115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13116 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13118 esac
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13123 $as_echo "$ld_shlibs_GO" >&6; }
13124 test "$ld_shlibs_GO" = no && can_build_shared=no
13126 with_gnu_ld_GO=$with_gnu_ld
13134 # Do we need to explicitly link libc?
13136 case "x$archive_cmds_need_lc_GO" in
13137 x|xyes)
13138 # Assume -lc should be added
13139 archive_cmds_need_lc_GO=yes
13141 if test "$enable_shared" = yes && test "$GCC" = yes; then
13142 case $archive_cmds_GO in
13143 *'~'*)
13144 # FIXME: we may have to deal with multi-command sequences.
13146 '$CC '*)
13147 # Test whether the compiler implicitly links with -lc since on some
13148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13149 # to ld, don't add -lc before -lgcc.
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13151 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13152 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 $RM conftest*
13156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13159 (eval $ac_compile) 2>&5
13160 ac_status=$?
13161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13162 test $ac_status = 0; } 2>conftest.err; then
13163 soname=conftest
13164 lib=conftest
13165 libobjs=conftest.$ac_objext
13166 deplibs=
13167 wl=$lt_prog_compiler_wl_GO
13168 pic_flag=$lt_prog_compiler_pic_GO
13169 compiler_flags=-v
13170 linker_flags=-v
13171 verstring=
13172 output_objdir=.
13173 libname=conftest
13174 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13175 allow_undefined_flag_GO=
13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13177 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; }
13181 then
13182 lt_cv_archive_cmds_need_lc_GO=no
13183 else
13184 lt_cv_archive_cmds_need_lc_GO=yes
13186 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13187 else
13188 cat conftest.err 1>&5
13190 $RM conftest*
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13194 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13195 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13197 esac
13200 esac
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13266 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13267 hardcode_action_GO=
13268 if test -n "$hardcode_libdir_flag_spec_GO" ||
13269 test -n "$runpath_var_GO" ||
13270 test "X$hardcode_automatic_GO" = "Xyes" ; then
13272 # We can hardcode non-existent directories.
13273 if test "$hardcode_direct_GO" != no &&
13274 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13275 # have to relink, otherwise we might link with an installed library
13276 # when we should be linking with a yet-to-be-installed one
13277 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13278 test "$hardcode_minus_L_GO" != no; then
13279 # Linking always hardcodes the temporary library directory.
13280 hardcode_action_GO=relink
13281 else
13282 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13283 hardcode_action_GO=immediate
13285 else
13286 # We cannot hardcode anything, or else we can only hardcode existing
13287 # directories.
13288 hardcode_action_GO=unsupported
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13291 $as_echo "$hardcode_action_GO" >&6; }
13293 if test "$hardcode_action_GO" = relink ||
13294 test "$inherit_rpath_GO" = yes; then
13295 # Fast installation is not supported
13296 enable_fast_install=no
13297 elif test "$shlibpath_overrides_runpath" = yes ||
13298 test "$enable_shared" = no; then
13299 # Fast installation is not necessary
13300 enable_fast_install=needless
13311 ac_ext=c
13312 ac_cpp='$CPP $CPPFLAGS'
13313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13318 GCC=$lt_save_GCC
13319 CC="$lt_save_CC"
13324 ac_config_commands="$ac_config_commands libtool"
13329 # Only expand once:
13335 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13338 for ac_prog in gawk mawk nawk awk
13340 # Extract the first word of "$ac_prog", so it can be a program name with args.
13341 set dummy $ac_prog; ac_word=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343 $as_echo_n "checking for $ac_word... " >&6; }
13344 if test "${ac_cv_prog_AWK+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 if test -n "$AWK"; then
13348 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13349 else
13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351 for as_dir in $PATH
13353 IFS=$as_save_IFS
13354 test -z "$as_dir" && as_dir=.
13355 for ac_exec_ext in '' $ac_executable_extensions; do
13356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13357 ac_cv_prog_AWK="$ac_prog"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13359 break 2
13361 done
13362 done
13363 IFS=$as_save_IFS
13367 AWK=$ac_cv_prog_AWK
13368 if test -n "$AWK"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13370 $as_echo "$AWK" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13377 test -n "$AWK" && break
13378 done
13381 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13384 WERROR="-Werror"
13387 glibgo_toolexecdir=no
13388 glibgo_toolexeclibdir=no
13389 glibgo_prefixdir=$prefix
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13392 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13393 # Check whether --enable-version-specific-runtime-libs was given.
13394 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13395 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13396 yes) version_specific_libs=yes ;;
13397 no) version_specific_libs=no ;;
13398 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13399 esac
13400 else
13401 version_specific_libs=no
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13405 $as_echo "$version_specific_libs" >&6; }
13407 # Version-specific runtime libs processing.
13408 if test $version_specific_libs = yes; then
13409 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13410 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13413 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13414 # Install a library built with a cross compiler in tooldir, not libdir.
13415 if test x"$glibgo_toolexecdir" = x"no"; then
13416 if test -n "$with_cross_host" &&
13417 test x"$with_cross_host" != x"no"; then
13418 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13419 glibgo_toolexeclibdir='${toolexecdir}/lib'
13420 else
13421 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13422 glibgo_toolexeclibdir='${libdir}'
13424 multi_os_directory=`$CC -print-multi-os-directory`
13425 case $multi_os_directory in
13426 .) ;; # Avoid trailing /.
13427 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13428 esac
13435 # See if the user wants to configure without libffi. Some
13436 # architectures don't support it. FIXME: We should set a default
13437 # based on the host.
13439 # Check whether --with-libffi was given.
13440 if test "${with_libffi+set}" = set; then :
13441 withval=$with_libffi; :
13442 else
13443 with_libffi=${with_libffi_default-yes}
13447 LIBFFI=
13448 LIBFFIINCS=
13449 if test "$with_libffi" != no; then
13451 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13453 LIBFFI=../libffi/libffi_convenience.la
13454 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13459 # Used to tell GNU make to include a file without telling automake to
13460 # include it.
13461 go_include="-include"
13464 is_darwin=no
13465 is_freebsd=no
13466 is_irix=no
13467 is_linux=no
13468 is_rtems=no
13469 is_solaris=no
13470 GOOS=unknown
13471 case ${host} in
13472 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13473 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13474 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13475 *-*-linux*) is_linux=yes; GOOS=linux ;;
13476 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13477 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13478 esac
13479 if test $is_darwin = yes; then
13480 LIBGO_IS_DARWIN_TRUE=
13481 LIBGO_IS_DARWIN_FALSE='#'
13482 else
13483 LIBGO_IS_DARWIN_TRUE='#'
13484 LIBGO_IS_DARWIN_FALSE=
13487 if test $is_freebsd = yes; then
13488 LIBGO_IS_FREEBSD_TRUE=
13489 LIBGO_IS_FREEBSD_FALSE='#'
13490 else
13491 LIBGO_IS_FREEBSD_TRUE='#'
13492 LIBGO_IS_FREEBSD_FALSE=
13495 if test $is_irix = yes; then
13496 LIBGO_IS_IRIX_TRUE=
13497 LIBGO_IS_IRIX_FALSE='#'
13498 else
13499 LIBGO_IS_IRIX_TRUE='#'
13500 LIBGO_IS_IRIX_FALSE=
13503 if test $is_linux = yes; then
13504 LIBGO_IS_LINUX_TRUE=
13505 LIBGO_IS_LINUX_FALSE='#'
13506 else
13507 LIBGO_IS_LINUX_TRUE='#'
13508 LIBGO_IS_LINUX_FALSE=
13511 if test $is_rtems = yes; then
13512 LIBGO_IS_RTEMS_TRUE=
13513 LIBGO_IS_RTEMS_FALSE='#'
13514 else
13515 LIBGO_IS_RTEMS_TRUE='#'
13516 LIBGO_IS_RTEMS_FALSE=
13519 if test $is_solaris = yes; then
13520 LIBGO_IS_SOLARIS_TRUE=
13521 LIBGO_IS_SOLARIS_FALSE='#'
13522 else
13523 LIBGO_IS_SOLARIS_TRUE='#'
13524 LIBGO_IS_SOLARIS_FALSE=
13529 is_386=no
13530 is_alpha=no
13531 is_arm=no
13532 is_m68k=no
13533 mips_abi=unknown
13534 is_ppc=no
13535 is_ppc64=no
13536 is_sparc=no
13537 is_sparc64=no
13538 is_x86_64=no
13539 GOARCH=unknown
13540 case ${host} in
13541 alpha*-*-*)
13542 is_alpha=yes
13543 GOARCH=alpha
13545 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13546 is_arm=yes
13547 GOARCH=arm
13549 i[34567]86-*-* | x86_64-*-*)
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13553 #ifdef __x86_64__
13554 #error 64-bit
13555 #endif
13556 _ACEOF
13557 if ac_fn_c_try_compile "$LINENO"; then :
13558 is_386=yes
13559 else
13560 is_x86_64=yes
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 if test "$is_386" = "yes"; then
13564 GOARCH=386
13565 else
13566 GOARCH=amd64
13569 m68k*-*-*)
13570 is_m68k=yes
13571 GOARCH=m68k
13573 mips*-*-*)
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 #if _MIPS_SIM != _ABIO32
13578 #error not o32
13579 #endif
13580 _ACEOF
13581 if ac_fn_c_try_compile "$LINENO"; then :
13582 mips_abi="o32"
13583 else
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13587 #if _MIPS_SIM != _ABIN32
13588 #error not n32
13589 #endif
13590 _ACEOF
13591 if ac_fn_c_try_compile "$LINENO"; then :
13592 mips_abi="n32"
13593 else
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13597 #if _MIPS_SIM != _ABI64
13598 #error not n64
13599 #endif
13600 _ACEOF
13601 if ac_fn_c_try_compile "$LINENO"; then :
13602 mips_abi="n64"
13603 else
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13607 #if _MIPS_SIM != _ABIO64
13608 #error not o64
13609 #endif
13610 _ACEOF
13611 if ac_fn_c_try_compile "$LINENO"; then :
13612 mips_abi="o64"
13613 else
13614 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13615 mips_abi="n32"
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 case "$mips_abi" in
13625 "o32") GOARCH=mipso32 ;;
13626 "n32") GOARCH=mipsn32 ;;
13627 "n64") GOARCH=mipsn64 ;;
13628 "o64") GOARCH=mipso64 ;;
13629 esac
13631 rs6000*-*-* | powerpc*-*-*)
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13635 #ifdef _ARCH_PPC64
13636 #error 64-bit
13637 #endif
13638 _ACEOF
13639 if ac_fn_c_try_compile "$LINENO"; then :
13640 is_ppc=yes
13641 else
13642 is_ppc64=yes
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 if test "$is_ppc" = "yes"; then
13646 GOARCH=ppc
13647 else
13648 GOARCH=ppc64
13651 sparc*-*-*)
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13655 #if defined(__sparcv9) || defined(__arch64__)
13656 #error 64-bit
13657 #endif
13658 _ACEOF
13659 if ac_fn_c_try_compile "$LINENO"; then :
13660 is_sparc=yes
13661 else
13662 is_sparc64=yes
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 if test "$is_sparc" = "yes"; then
13666 GOARCH=sparc
13667 else
13668 GOARCH=sparc64
13671 esac
13672 if test $is_386 = yes; then
13673 LIBGO_IS_386_TRUE=
13674 LIBGO_IS_386_FALSE='#'
13675 else
13676 LIBGO_IS_386_TRUE='#'
13677 LIBGO_IS_386_FALSE=
13680 if test $is_alpha = yes; then
13681 LIBGO_IS_ALPHA_TRUE=
13682 LIBGO_IS_ALPHA_FALSE='#'
13683 else
13684 LIBGO_IS_ALPHA_TRUE='#'
13685 LIBGO_IS_ALPHA_FALSE=
13688 if test $is_arm = yes; then
13689 LIBGO_IS_ARM_TRUE=
13690 LIBGO_IS_ARM_FALSE='#'
13691 else
13692 LIBGO_IS_ARM_TRUE='#'
13693 LIBGO_IS_ARM_FALSE=
13696 if test $is_m68k = yes; then
13697 LIBGO_IS_M68K_TRUE=
13698 LIBGO_IS_M68K_FALSE='#'
13699 else
13700 LIBGO_IS_M68K_TRUE='#'
13701 LIBGO_IS_M68K_FALSE=
13704 if test $mips_abi != unknown; then
13705 LIBGO_IS_MIPS_TRUE=
13706 LIBGO_IS_MIPS_FALSE='#'
13707 else
13708 LIBGO_IS_MIPS_TRUE='#'
13709 LIBGO_IS_MIPS_FALSE=
13712 if test $mips_abi = o32; then
13713 LIBGO_IS_MIPSO32_TRUE=
13714 LIBGO_IS_MIPSO32_FALSE='#'
13715 else
13716 LIBGO_IS_MIPSO32_TRUE='#'
13717 LIBGO_IS_MIPSO32_FALSE=
13720 if test $mips_abi = n32; then
13721 LIBGO_IS_MIPSN32_TRUE=
13722 LIBGO_IS_MIPSN32_FALSE='#'
13723 else
13724 LIBGO_IS_MIPSN32_TRUE='#'
13725 LIBGO_IS_MIPSN32_FALSE=
13728 if test $mips_abi = n64; then
13729 LIBGO_IS_MIPSN64_TRUE=
13730 LIBGO_IS_MIPSN64_FALSE='#'
13731 else
13732 LIBGO_IS_MIPSN64_TRUE='#'
13733 LIBGO_IS_MIPSN64_FALSE=
13736 if test $mips_abi = o64; then
13737 LIBGO_IS_MIPSO64_TRUE=
13738 LIBGO_IS_MIPSO64_FALSE='#'
13739 else
13740 LIBGO_IS_MIPSO64_TRUE='#'
13741 LIBGO_IS_MIPSO64_FALSE=
13744 if test $is_ppc = yes; then
13745 LIBGO_IS_PPC_TRUE=
13746 LIBGO_IS_PPC_FALSE='#'
13747 else
13748 LIBGO_IS_PPC_TRUE='#'
13749 LIBGO_IS_PPC_FALSE=
13752 if test $is_ppc64 = yes; then
13753 LIBGO_IS_PPC64_TRUE=
13754 LIBGO_IS_PPC64_FALSE='#'
13755 else
13756 LIBGO_IS_PPC64_TRUE='#'
13757 LIBGO_IS_PPC64_FALSE=
13760 if test $is_sparc = yes; then
13761 LIBGO_IS_SPARC_TRUE=
13762 LIBGO_IS_SPARC_FALSE='#'
13763 else
13764 LIBGO_IS_SPARC_TRUE='#'
13765 LIBGO_IS_SPARC_FALSE=
13768 if test $is_sparc64 = yes; then
13769 LIBGO_IS_SPARC64_TRUE=
13770 LIBGO_IS_SPARC64_FALSE='#'
13771 else
13772 LIBGO_IS_SPARC64_TRUE='#'
13773 LIBGO_IS_SPARC64_FALSE=
13776 if test $is_x86_64 = yes; then
13777 LIBGO_IS_X86_64_TRUE=
13778 LIBGO_IS_X86_64_FALSE='#'
13779 else
13780 LIBGO_IS_X86_64_TRUE='#'
13781 LIBGO_IS_X86_64_FALSE=
13786 GO_LIBCALL_OS_FILE=
13787 GO_LIBCALL_OS_ARCH_FILE=
13788 GO_SYSCALL_OS_FILE=
13789 GO_SYSCALL_OS_ARCH_FILE=
13790 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13791 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13793 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13794 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13796 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13797 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13799 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13800 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13807 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13808 case "$target" in
13809 mips-sgi-irix6.5*)
13810 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13811 # msghdr in <sys/socket.h>.
13812 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13814 *-*-solaris2.[89])
13815 # Solaris 8/9 need this so struct msghdr gets the msg_control
13816 # etc. fields in <sys/socket.h> (_XPG4_2).
13817 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13819 *-*-solaris2.1[01])
13820 # Solaris 10+ needs this so struct msghdr gets the msg_control
13821 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13822 # above doesn't work with C99.
13823 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13825 esac
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13829 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13830 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 CFLAGS_hold=$CFLAGS
13834 CFLAGS="$CFLAGS -fsplit-stack"
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 int i;
13838 _ACEOF
13839 if ac_fn_c_try_compile "$LINENO"; then :
13840 libgo_cv_c_split_stack_supported=yes
13841 else
13842 libgo_cv_c_split_stack_supported=no
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 CFLAGS=$CFLAGS_hold
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13848 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13849 if test "$libgo_cv_c_split_stack_supported" = yes; then
13850 SPLIT_STACK=-fsplit-stack
13852 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13854 else
13855 SPLIT_STACK=
13858 if test "$libgo_cv_c_split_stack_supported" = yes; then
13859 USING_SPLIT_STACK_TRUE=
13860 USING_SPLIT_STACK_FALSE='#'
13861 else
13862 USING_SPLIT_STACK_TRUE='#'
13863 USING_SPLIT_STACK_FALSE=
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13868 $as_echo_n "checking whether linker supports split stack... " >&6; }
13869 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 libgo_cv_c_linker_supports_split_stack=no
13873 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13874 libgo_cv_c_linker_supports_split_stack=yes
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13878 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13879 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13881 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13885 MATH_LIBS=
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13887 $as_echo_n "checking for sqrt in -lm... " >&6; }
13888 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891 ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-lm $LIBS"
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13899 #ifdef __cplusplus
13900 extern "C"
13901 #endif
13902 char sqrt ();
13904 main ()
13906 return sqrt ();
13908 return 0;
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 ac_cv_lib_m_sqrt=yes
13913 else
13914 ac_cv_lib_m_sqrt=no
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13921 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13922 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13923 MATH_LIBS=-lm
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13929 $as_echo_n "checking for socket libraries... " >&6; }
13930 if test "${libgo_cv_lib_sockets+set}" = set; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 libgo_cv_lib_sockets=
13934 libgo_check_both=no
13935 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13936 if test "x$ac_cv_func_connect" = x""yes; then :
13937 libgo_check_socket=no
13938 else
13939 libgo_check_socket=yes
13942 if test "$libgo_check_socket" = "yes"; then
13943 unset ac_cv_func_connect
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13945 $as_echo_n "checking for main in -lsocket... " >&6; }
13946 if test "${ac_cv_lib_socket_main+set}" = set; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949 ac_check_lib_save_LIBS=$LIBS
13950 LIBS="-lsocket $LIBS"
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13956 main ()
13958 return main ();
13960 return 0;
13962 _ACEOF
13963 if ac_fn_c_try_link "$LINENO"; then :
13964 ac_cv_lib_socket_main=yes
13965 else
13966 ac_cv_lib_socket_main=no
13968 rm -f core conftest.err conftest.$ac_objext \
13969 conftest$ac_exeext conftest.$ac_ext
13970 LIBS=$ac_check_lib_save_LIBS
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13973 $as_echo "$ac_cv_lib_socket_main" >&6; }
13974 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13975 libgo_cv_lib_sockets="-lsocket"
13976 else
13977 libgo_check_both=yes
13981 if test "$libgo_check_both" = "yes"; then
13982 libgo_old_libs=$LIBS
13983 LIBS="$LIBS -lsocket -lnsl"
13984 unset ac_cv_func_accept
13985 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13986 if test "x$ac_cv_func_accept" = x""yes; then :
13987 libgo_check_nsl=no
13988 libgo_cv_lib_sockets="-lsocket -lnsl"
13991 unset ac_cv_func_accept
13992 LIBS=$libgo_old_libs
13994 unset ac_cv_func_gethostbyname
13995 libgo_old_libs="$LIBS"
13996 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13997 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13999 else
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14001 $as_echo_n "checking for main in -lnsl... " >&6; }
14002 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 ac_check_lib_save_LIBS=$LIBS
14006 LIBS="-lnsl $LIBS"
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14012 main ()
14014 return main ();
14016 return 0;
14018 _ACEOF
14019 if ac_fn_c_try_link "$LINENO"; then :
14020 ac_cv_lib_nsl_main=yes
14021 else
14022 ac_cv_lib_nsl_main=no
14024 rm -f core conftest.err conftest.$ac_objext \
14025 conftest$ac_exeext conftest.$ac_ext
14026 LIBS=$ac_check_lib_save_LIBS
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14029 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14030 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14031 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14036 unset ac_cv_func_gethostbyname
14037 LIBS=$libgo_old_libs
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14041 $as_echo "$libgo_cv_lib_sockets" >&6; }
14042 NET_LIBS="$libgo_cv_lib_sockets"
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14046 $as_echo_n "checking whether -pthread is supported... " >&6; }
14047 if test "${libgo_cv_lib_pthread+set}" = set; then :
14048 $as_echo_n "(cached) " >&6
14049 else
14050 CFLAGS_hold=$CFLAGS
14051 CFLAGS="$CFLAGS -pthread"
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14054 int i;
14055 _ACEOF
14056 if ac_fn_c_try_compile "$LINENO"; then :
14057 libgo_cv_lib_pthread=yes
14058 else
14059 libgo_cv_lib_pthread=no
14061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 CFLAGS=$CFLAGS_hold
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14065 $as_echo "$libgo_cv_lib_pthread" >&6; }
14066 PTHREAD_CFLAGS=
14067 if test "$libgo_cv_lib_pthread" = yes; then
14068 PTHREAD_CFLAGS=-pthread
14072 PTHREAD_LIBS=
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14074 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14075 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 ac_check_lib_save_LIBS=$LIBS
14079 LIBS="-lpthread $LIBS"
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14083 /* Override any GCC internal prototype to avoid an error.
14084 Use char because int might match the return type of a GCC
14085 builtin and then its argument prototype would still apply. */
14086 #ifdef __cplusplus
14087 extern "C"
14088 #endif
14089 char pthread_create ();
14091 main ()
14093 return pthread_create ();
14095 return 0;
14097 _ACEOF
14098 if ac_fn_c_try_link "$LINENO"; then :
14099 ac_cv_lib_pthread_pthread_create=yes
14100 else
14101 ac_cv_lib_pthread_pthread_create=no
14103 rm -f core conftest.err conftest.$ac_objext \
14104 conftest$ac_exeext conftest.$ac_ext
14105 LIBS=$ac_check_lib_save_LIBS
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14108 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14109 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14110 PTHREAD_LIBS=-lpthread
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14116 $as_echo_n "checking for library containing sched_yield... " >&6; }
14117 if test "${ac_cv_search_sched_yield+set}" = set; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 ac_func_search_save_LIBS=$LIBS
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14124 /* Override any GCC internal prototype to avoid an error.
14125 Use char because int might match the return type of a GCC
14126 builtin and then its argument prototype would still apply. */
14127 #ifdef __cplusplus
14128 extern "C"
14129 #endif
14130 char sched_yield ();
14132 main ()
14134 return sched_yield ();
14136 return 0;
14138 _ACEOF
14139 for ac_lib in '' rt; do
14140 if test -z "$ac_lib"; then
14141 ac_res="none required"
14142 else
14143 ac_res=-l$ac_lib
14144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14146 if ac_fn_c_try_link "$LINENO"; then :
14147 ac_cv_search_sched_yield=$ac_res
14149 rm -f core conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext
14151 if test "${ac_cv_search_sched_yield+set}" = set; then :
14152 break
14154 done
14155 if test "${ac_cv_search_sched_yield+set}" = set; then :
14157 else
14158 ac_cv_search_sched_yield=no
14160 rm conftest.$ac_ext
14161 LIBS=$ac_func_search_save_LIBS
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14164 $as_echo "$ac_cv_search_sched_yield" >&6; }
14165 ac_res=$ac_cv_search_sched_yield
14166 if test "$ac_res" != no; then :
14167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14173 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14174 if test "${ac_cv_c_bigendian+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 ac_cv_c_bigendian=unknown
14178 # See if we're dealing with a universal compiler.
14179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h. */
14181 #ifndef __APPLE_CC__
14182 not a universal capable compiler
14183 #endif
14184 typedef int dummy;
14186 _ACEOF
14187 if ac_fn_c_try_compile "$LINENO"; then :
14189 # Check for potential -arch flags. It is not universal unless
14190 # there are at least two -arch flags with different values.
14191 ac_arch=
14192 ac_prev=
14193 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14194 if test -n "$ac_prev"; then
14195 case $ac_word in
14196 i?86 | x86_64 | ppc | ppc64)
14197 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14198 ac_arch=$ac_word
14199 else
14200 ac_cv_c_bigendian=universal
14201 break
14204 esac
14205 ac_prev=
14206 elif test "x$ac_word" = "x-arch"; then
14207 ac_prev=arch
14209 done
14211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14212 if test $ac_cv_c_bigendian = unknown; then
14213 # See if sys/param.h defines the BYTE_ORDER macro.
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216 #include <sys/types.h>
14217 #include <sys/param.h>
14220 main ()
14222 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14223 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14224 && LITTLE_ENDIAN)
14225 bogus endian macros
14226 #endif
14229 return 0;
14231 _ACEOF
14232 if ac_fn_c_try_compile "$LINENO"; then :
14233 # It does; now see whether it defined to BIG_ENDIAN or not.
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14236 #include <sys/types.h>
14237 #include <sys/param.h>
14240 main ()
14242 #if BYTE_ORDER != BIG_ENDIAN
14243 not big endian
14244 #endif
14247 return 0;
14249 _ACEOF
14250 if ac_fn_c_try_compile "$LINENO"; then :
14251 ac_cv_c_bigendian=yes
14252 else
14253 ac_cv_c_bigendian=no
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 if test $ac_cv_c_bigendian = unknown; then
14260 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 #include <limits.h>
14266 main ()
14268 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14269 bogus endian macros
14270 #endif
14273 return 0;
14275 _ACEOF
14276 if ac_fn_c_try_compile "$LINENO"; then :
14277 # It does; now see whether it defined to _BIG_ENDIAN or not.
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280 #include <limits.h>
14283 main ()
14285 #ifndef _BIG_ENDIAN
14286 not big endian
14287 #endif
14290 return 0;
14292 _ACEOF
14293 if ac_fn_c_try_compile "$LINENO"; then :
14294 ac_cv_c_bigendian=yes
14295 else
14296 ac_cv_c_bigendian=no
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 if test $ac_cv_c_bigendian = unknown; then
14303 # Compile a test program.
14304 if test "$cross_compiling" = yes; then :
14305 # Try to guess by grepping values from an object file.
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14308 short int ascii_mm[] =
14309 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14310 short int ascii_ii[] =
14311 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14312 int use_ascii (int i) {
14313 return ascii_mm[i] + ascii_ii[i];
14315 short int ebcdic_ii[] =
14316 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14317 short int ebcdic_mm[] =
14318 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14319 int use_ebcdic (int i) {
14320 return ebcdic_mm[i] + ebcdic_ii[i];
14322 extern int foo;
14325 main ()
14327 return use_ascii (foo) == use_ebcdic (foo);
14329 return 0;
14331 _ACEOF
14332 if ac_fn_c_try_compile "$LINENO"; then :
14333 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14334 ac_cv_c_bigendian=yes
14336 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14337 if test "$ac_cv_c_bigendian" = unknown; then
14338 ac_cv_c_bigendian=no
14339 else
14340 # finding both strings is unlikely to happen, but who knows?
14341 ac_cv_c_bigendian=unknown
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 else
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349 $ac_includes_default
14351 main ()
14354 /* Are we little or big endian? From Harbison&Steele. */
14355 union
14357 long int l;
14358 char c[sizeof (long int)];
14359 } u;
14360 u.l = 1;
14361 return u.c[sizeof (long int) - 1] == 1;
14364 return 0;
14366 _ACEOF
14367 if ac_fn_c_try_run "$LINENO"; then :
14368 ac_cv_c_bigendian=no
14369 else
14370 ac_cv_c_bigendian=yes
14372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14373 conftest.$ac_objext conftest.beam conftest.$ac_ext
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14379 $as_echo "$ac_cv_c_bigendian" >&6; }
14380 case $ac_cv_c_bigendian in #(
14381 yes)
14382 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14383 ;; #(
14385 ;; #(
14386 universal)
14388 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14390 ;; #(
14392 as_fn_error "unknown endianness
14393 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14394 esac
14399 # Check whether --with-system-libunwind was given.
14400 if test "${with_system_libunwind+set}" = set; then :
14401 withval=$with_system_libunwind;
14404 # If system-libunwind was not specifically set, pick a default setting.
14405 if test x$with_system_libunwind = x; then
14406 case ${target} in
14407 ia64-*-hpux*) with_system_libunwind=yes ;;
14408 *) with_system_libunwind=no ;;
14409 esac
14411 # Based on system-libunwind and target, do we have ipinfo?
14412 if test x$with_system_libunwind = xyes; then
14413 case ${target} in
14414 ia64-*-*) have_unwind_getipinfo=no ;;
14415 *) have_unwind_getipinfo=yes ;;
14416 esac
14417 else
14418 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14420 case ${target} in
14421 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14422 *) have_unwind_getipinfo=yes ;;
14423 esac
14427 if test x$have_unwind_getipinfo = xyes; then
14429 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14434 # Check whether --enable-sjlj-exceptions was given.
14435 if test "${enable_sjlj_exceptions+set}" = set; then :
14436 enableval=$enable_sjlj_exceptions; case "$enableval" in
14437 yes|no|auto) ;;
14438 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14439 esac
14440 else
14441 enable_sjlj_exceptions=auto
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14446 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14447 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14453 void bar ();
14454 void clean (int *);
14455 void foo ()
14457 int i __attribute__ ((cleanup (clean)));
14458 bar();
14461 _ACEOF
14462 CFLAGS_hold=$CFLAGS
14463 CFLAGS="--save-temps -fexceptions"
14464 libgo_cv_lib_sjlj_exceptions=unknown
14465 if ac_fn_c_try_compile; then :
14466 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14467 libgo_cv_lib_sjlj_exceptions=yes
14468 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14469 libgo_cv_lib_sjlj_exceptions=no
14472 CFLAGS=$CFLAGS_hold
14473 rm -f conftest*
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14477 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14479 if test "$enable_sjlj_exceptions" = "auto"; then
14480 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14483 case $enable_sjlj_exceptions in
14484 yes)
14486 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14492 as_fn_error "unable to detect exception model" "$LINENO" 5
14494 esac
14496 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h
14497 do :
14498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14499 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14500 eval as_val=\$$as_ac_Header
14501 if test "x$as_val" = x""yes; then :
14502 cat >>confdefs.h <<_ACEOF
14503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14504 _ACEOF
14508 done
14511 for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14512 do :
14513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14514 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14515 #include <sys/socket.h>
14516 #endif
14519 eval as_val=\$$as_ac_Header
14520 if test "x$as_val" = x""yes; then :
14521 cat >>confdefs.h <<_ACEOF
14522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14523 _ACEOF
14527 done
14530 if test "$ac_cv_header_sys_mman_h" = yes; then
14531 HAVE_SYS_MMAN_H_TRUE=
14532 HAVE_SYS_MMAN_H_FALSE='#'
14533 else
14534 HAVE_SYS_MMAN_H_TRUE='#'
14535 HAVE_SYS_MMAN_H_FALSE=
14539 for ac_func in strerror_r strsignal wait4 mincore setenv
14540 do :
14541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14543 eval as_val=\$$as_ac_var
14544 if test "x$as_val" = x""yes; then :
14545 cat >>confdefs.h <<_ACEOF
14546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14547 _ACEOF
14550 done
14552 if test "$ac_cv_func_strerror_r" = yes; then
14553 HAVE_STRERROR_R_TRUE=
14554 HAVE_STRERROR_R_FALSE='#'
14555 else
14556 HAVE_STRERROR_R_TRUE='#'
14557 HAVE_STRERROR_R_FALSE=
14560 if test "$ac_cv_func_wait4" = yes; then
14561 HAVE_WAIT4_TRUE=
14562 HAVE_WAIT4_FALSE='#'
14563 else
14564 HAVE_WAIT4_TRUE='#'
14565 HAVE_WAIT4_FALSE=
14569 CFLAGS_hold="$CFLAGS"
14570 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14571 LIBS_hold="$LIBS"
14572 LIBS="$LIBS $PTHREAD_LIBS"
14573 for ac_func in sem_timedwait
14574 do :
14575 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14576 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14577 cat >>confdefs.h <<_ACEOF
14578 #define HAVE_SEM_TIMEDWAIT 1
14579 _ACEOF
14582 done
14584 CFLAGS="$CFLAGS_hold"
14585 LIBS="$LIBS_hold"
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14588 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14589 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14590 $as_echo_n "(cached) " >&6
14591 else
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14595 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14596 uint32 i;
14597 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14599 _ACEOF
14600 if ac_fn_c_try_link "$LINENO"; then :
14601 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14602 else
14603 libgo_cv_func___sync_bool_compare_and_swap_4=no
14605 rm -f core conftest.err conftest.$ac_objext \
14606 conftest$ac_exeext conftest.$ac_ext
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14609 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14610 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14612 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14617 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14618 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14624 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14625 uint32 i;
14626 int main() { return __sync_fetch_and_add (&i, 1); }
14628 _ACEOF
14629 if ac_fn_c_try_link "$LINENO"; then :
14630 libgo_cv_func___sync_fetch_and_add_4=yes
14631 else
14632 libgo_cv_func___sync_fetch_and_add_4=no
14634 rm -f core conftest.err conftest.$ac_objext \
14635 conftest$ac_exeext conftest.$ac_ext
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14638 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14639 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14641 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14646 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14647 if test "${libgo_cv_c_stringops+set}" = set; then :
14648 $as_echo_n "(cached) " >&6
14649 else
14650 CFLAGS_hold=$CFLAGS
14651 CFLAGS="$CFLAGS -minline-all-stringops"
14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14654 int i;
14655 _ACEOF
14656 if ac_fn_c_try_compile "$LINENO"; then :
14657 libgo_cv_c_stringops=yes
14658 else
14659 libgo_cv_c_stringops=no
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 CFLAGS=$CFLAGS_hold
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14665 $as_echo "$libgo_cv_c_stringops" >&6; }
14666 STRINGOPS_FLAG=
14667 if test "$libgo_cv_c_stringops" = yes; then
14668 STRINGOPS_FLAG=-minline-all-stringops
14672 CFLAGS_hold=$CFLAGS
14673 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14674 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14675 if test "x$ac_cv_type_off64_t" = x""yes; then :
14677 cat >>confdefs.h <<_ACEOF
14678 #define HAVE_OFF64_T 1
14679 _ACEOF
14684 CFLAGS=$CFLAGS_hold
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14687 $as_echo_n "checking epoll_event size... " >&6; }
14688 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14689 $as_echo_n "(cached) " >&6
14690 else
14691 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14693 else
14694 libgo_cv_c_epoll_event_size=0
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14699 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14700 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14704 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14705 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14709 #include <sys/epoll.h>"; then :
14711 else
14712 libgo_cv_c_epoll_event_fd_offset=0
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14717 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14718 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14721 cat >confcache <<\_ACEOF
14722 # This file is a shell script that caches the results of configure
14723 # tests run on this system so they can be shared between configure
14724 # scripts and configure runs, see configure's option --config-cache.
14725 # It is not useful on other systems. If it contains results you don't
14726 # want to keep, you may remove or edit it.
14728 # config.status only pays attention to the cache file if you give it
14729 # the --recheck option to rerun configure.
14731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14733 # following values.
14735 _ACEOF
14737 # The following way of writing the cache mishandles newlines in values,
14738 # but we know of no workaround that is simple, portable, and efficient.
14739 # So, we kill variables containing newlines.
14740 # Ultrix sh set writes to stderr and can't be redirected directly,
14741 # and sets the high bit in the cache file unless we assign to the vars.
14743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14744 eval ac_val=\$$ac_var
14745 case $ac_val in #(
14746 *${as_nl}*)
14747 case $ac_var in #(
14748 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14749 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14750 esac
14751 case $ac_var in #(
14752 _ | IFS | as_nl) ;; #(
14753 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14754 *) { eval $ac_var=; unset $ac_var;} ;;
14755 esac ;;
14756 esac
14757 done
14759 (set) 2>&1 |
14760 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14761 *${as_nl}ac_space=\ *)
14762 # `set' does not quote correctly, so add quotes: double-quote
14763 # substitution turns \\\\ into \\, and sed turns \\ into \.
14764 sed -n \
14765 "s/'/'\\\\''/g;
14766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14767 ;; #(
14769 # `set' quotes correctly as required by POSIX, so do not add quotes.
14770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14772 esac |
14773 sort
14775 sed '
14776 /^ac_cv_env_/b end
14777 t clear
14778 :clear
14779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14780 t end
14781 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14782 :end' >>confcache
14783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14784 if test -w "$cache_file"; then
14785 test "x$cache_file" != "x/dev/null" &&
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14787 $as_echo "$as_me: updating cache $cache_file" >&6;}
14788 cat confcache >$cache_file
14789 else
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14791 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14794 rm -f confcache
14796 if test ${multilib} = yes; then
14797 multilib_arg="--enable-multilib"
14798 else
14799 multilib_arg=
14802 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14805 ac_config_commands="$ac_config_commands default"
14808 cat >confcache <<\_ACEOF
14809 # This file is a shell script that caches the results of configure
14810 # tests run on this system so they can be shared between configure
14811 # scripts and configure runs, see configure's option --config-cache.
14812 # It is not useful on other systems. If it contains results you don't
14813 # want to keep, you may remove or edit it.
14815 # config.status only pays attention to the cache file if you give it
14816 # the --recheck option to rerun configure.
14818 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14819 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14820 # following values.
14822 _ACEOF
14824 # The following way of writing the cache mishandles newlines in values,
14825 # but we know of no workaround that is simple, portable, and efficient.
14826 # So, we kill variables containing newlines.
14827 # Ultrix sh set writes to stderr and can't be redirected directly,
14828 # and sets the high bit in the cache file unless we assign to the vars.
14830 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14831 eval ac_val=\$$ac_var
14832 case $ac_val in #(
14833 *${as_nl}*)
14834 case $ac_var in #(
14835 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14836 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14837 esac
14838 case $ac_var in #(
14839 _ | IFS | as_nl) ;; #(
14840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14841 *) { eval $ac_var=; unset $ac_var;} ;;
14842 esac ;;
14843 esac
14844 done
14846 (set) 2>&1 |
14847 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14848 *${as_nl}ac_space=\ *)
14849 # `set' does not quote correctly, so add quotes: double-quote
14850 # substitution turns \\\\ into \\, and sed turns \\ into \.
14851 sed -n \
14852 "s/'/'\\\\''/g;
14853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14854 ;; #(
14856 # `set' quotes correctly as required by POSIX, so do not add quotes.
14857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14859 esac |
14860 sort
14862 sed '
14863 /^ac_cv_env_/b end
14864 t clear
14865 :clear
14866 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14867 t end
14868 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14869 :end' >>confcache
14870 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14871 if test -w "$cache_file"; then
14872 test "x$cache_file" != "x/dev/null" &&
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14874 $as_echo "$as_me: updating cache $cache_file" >&6;}
14875 cat confcache >$cache_file
14876 else
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14878 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14881 rm -f confcache
14883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14884 # Let make expand exec_prefix.
14885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14887 DEFS=-DHAVE_CONFIG_H
14889 ac_libobjs=
14890 ac_ltlibobjs=
14891 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14892 # 1. Remove the extension, and $U if already installed.
14893 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14894 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14895 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14896 # will be set to the directory where LIBOBJS objects are built.
14897 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14898 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14899 done
14900 LIBOBJS=$ac_libobjs
14902 LTLIBOBJS=$ac_ltlibobjs
14905 if test -n "$EXEEXT"; then
14906 am__EXEEXT_TRUE=
14907 am__EXEEXT_FALSE='#'
14908 else
14909 am__EXEEXT_TRUE='#'
14910 am__EXEEXT_FALSE=
14913 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14914 as_fn_error "conditional \"AMDEP\" was never defined.
14915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14917 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14918 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14921 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14922 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14925 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14926 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14929 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14930 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14933 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14934 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14937 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14938 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14941 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14942 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14945 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14946 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14949 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14950 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14953 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14954 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14957 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14958 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14961 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14962 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14965 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14966 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14969 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14970 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14973 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14974 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14977 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14978 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14981 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14982 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14985 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14986 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14989 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14990 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14993 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14994 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14997 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14998 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15001 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15002 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15005 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15006 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15010 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15011 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15014 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15015 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15018 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15019 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15023 : ${CONFIG_STATUS=./config.status}
15024 ac_write_fail=0
15025 ac_clean_files_save=$ac_clean_files
15026 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15028 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15029 as_write_fail=0
15030 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15031 #! $SHELL
15032 # Generated by $as_me.
15033 # Run this file to recreate the current configuration.
15034 # Compiler output produced by configure, useful for debugging
15035 # configure, is in config.log if it exists.
15037 debug=false
15038 ac_cs_recheck=false
15039 ac_cs_silent=false
15041 SHELL=\${CONFIG_SHELL-$SHELL}
15042 export SHELL
15043 _ASEOF
15044 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15045 ## -------------------- ##
15046 ## M4sh Initialization. ##
15047 ## -------------------- ##
15049 # Be more Bourne compatible
15050 DUALCASE=1; export DUALCASE # for MKS sh
15051 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15052 emulate sh
15053 NULLCMD=:
15054 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15055 # is contrary to our usage. Disable this feature.
15056 alias -g '${1+"$@"}'='"$@"'
15057 setopt NO_GLOB_SUBST
15058 else
15059 case `(set -o) 2>/dev/null` in #(
15060 *posix*) :
15061 set -o posix ;; #(
15062 *) :
15064 esac
15068 as_nl='
15070 export as_nl
15071 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15072 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15074 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15075 # Prefer a ksh shell builtin over an external printf program on Solaris,
15076 # but without wasting forks for bash or zsh.
15077 if test -z "$BASH_VERSION$ZSH_VERSION" \
15078 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15079 as_echo='print -r --'
15080 as_echo_n='print -rn --'
15081 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15082 as_echo='printf %s\n'
15083 as_echo_n='printf %s'
15084 else
15085 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15086 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15087 as_echo_n='/usr/ucb/echo -n'
15088 else
15089 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15090 as_echo_n_body='eval
15091 arg=$1;
15092 case $arg in #(
15093 *"$as_nl"*)
15094 expr "X$arg" : "X\\(.*\\)$as_nl";
15095 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15096 esac;
15097 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15099 export as_echo_n_body
15100 as_echo_n='sh -c $as_echo_n_body as_echo'
15102 export as_echo_body
15103 as_echo='sh -c $as_echo_body as_echo'
15106 # The user is always right.
15107 if test "${PATH_SEPARATOR+set}" != set; then
15108 PATH_SEPARATOR=:
15109 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15110 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15111 PATH_SEPARATOR=';'
15116 # IFS
15117 # We need space, tab and new line, in precisely that order. Quoting is
15118 # there to prevent editors from complaining about space-tab.
15119 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15120 # splitting by setting IFS to empty value.)
15121 IFS=" "" $as_nl"
15123 # Find who we are. Look in the path if we contain no directory separator.
15124 case $0 in #((
15125 *[\\/]* ) as_myself=$0 ;;
15126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127 for as_dir in $PATH
15129 IFS=$as_save_IFS
15130 test -z "$as_dir" && as_dir=.
15131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15132 done
15133 IFS=$as_save_IFS
15136 esac
15137 # We did not find ourselves, most probably we were run as `sh COMMAND'
15138 # in which case we are not to be found in the path.
15139 if test "x$as_myself" = x; then
15140 as_myself=$0
15142 if test ! -f "$as_myself"; then
15143 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15144 exit 1
15147 # Unset variables that we do not need and which cause bugs (e.g. in
15148 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15149 # suppresses any "Segmentation fault" message there. '((' could
15150 # trigger a bug in pdksh 5.2.14.
15151 for as_var in BASH_ENV ENV MAIL MAILPATH
15152 do eval test x\${$as_var+set} = xset \
15153 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15154 done
15155 PS1='$ '
15156 PS2='> '
15157 PS4='+ '
15159 # NLS nuisances.
15160 LC_ALL=C
15161 export LC_ALL
15162 LANGUAGE=C
15163 export LANGUAGE
15165 # CDPATH.
15166 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15169 # as_fn_error ERROR [LINENO LOG_FD]
15170 # ---------------------------------
15171 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15172 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15173 # script with status $?, using 1 if that was 0.
15174 as_fn_error ()
15176 as_status=$?; test $as_status -eq 0 && as_status=1
15177 if test "$3"; then
15178 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15179 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15181 $as_echo "$as_me: error: $1" >&2
15182 as_fn_exit $as_status
15183 } # as_fn_error
15186 # as_fn_set_status STATUS
15187 # -----------------------
15188 # Set $? to STATUS, without forking.
15189 as_fn_set_status ()
15191 return $1
15192 } # as_fn_set_status
15194 # as_fn_exit STATUS
15195 # -----------------
15196 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15197 as_fn_exit ()
15199 set +e
15200 as_fn_set_status $1
15201 exit $1
15202 } # as_fn_exit
15204 # as_fn_unset VAR
15205 # ---------------
15206 # Portably unset VAR.
15207 as_fn_unset ()
15209 { eval $1=; unset $1;}
15211 as_unset=as_fn_unset
15212 # as_fn_append VAR VALUE
15213 # ----------------------
15214 # Append the text in VALUE to the end of the definition contained in VAR. Take
15215 # advantage of any shell optimizations that allow amortized linear growth over
15216 # repeated appends, instead of the typical quadratic growth present in naive
15217 # implementations.
15218 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15219 eval 'as_fn_append ()
15221 eval $1+=\$2
15223 else
15224 as_fn_append ()
15226 eval $1=\$$1\$2
15228 fi # as_fn_append
15230 # as_fn_arith ARG...
15231 # ------------------
15232 # Perform arithmetic evaluation on the ARGs, and store the result in the
15233 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15234 # must be portable across $(()) and expr.
15235 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15236 eval 'as_fn_arith ()
15238 as_val=$(( $* ))
15240 else
15241 as_fn_arith ()
15243 as_val=`expr "$@" || test $? -eq 1`
15245 fi # as_fn_arith
15248 if expr a : '\(a\)' >/dev/null 2>&1 &&
15249 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15250 as_expr=expr
15251 else
15252 as_expr=false
15255 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15256 as_basename=basename
15257 else
15258 as_basename=false
15261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15262 as_dirname=dirname
15263 else
15264 as_dirname=false
15267 as_me=`$as_basename -- "$0" ||
15268 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15269 X"$0" : 'X\(//\)$' \| \
15270 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15271 $as_echo X/"$0" |
15272 sed '/^.*\/\([^/][^/]*\)\/*$/{
15273 s//\1/
15276 /^X\/\(\/\/\)$/{
15277 s//\1/
15280 /^X\/\(\/\).*/{
15281 s//\1/
15284 s/.*/./; q'`
15286 # Avoid depending upon Character Ranges.
15287 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15288 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15289 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15290 as_cr_digits='0123456789'
15291 as_cr_alnum=$as_cr_Letters$as_cr_digits
15293 ECHO_C= ECHO_N= ECHO_T=
15294 case `echo -n x` in #(((((
15295 -n*)
15296 case `echo 'xy\c'` in
15297 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15298 xy) ECHO_C='\c';;
15299 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15300 ECHO_T=' ';;
15301 esac;;
15303 ECHO_N='-n';;
15304 esac
15306 rm -f conf$$ conf$$.exe conf$$.file
15307 if test -d conf$$.dir; then
15308 rm -f conf$$.dir/conf$$.file
15309 else
15310 rm -f conf$$.dir
15311 mkdir conf$$.dir 2>/dev/null
15313 if (echo >conf$$.file) 2>/dev/null; then
15314 if ln -s conf$$.file conf$$ 2>/dev/null; then
15315 as_ln_s='ln -s'
15316 # ... but there are two gotchas:
15317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15319 # In both cases, we have to default to `cp -p'.
15320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15321 as_ln_s='cp -p'
15322 elif ln conf$$.file conf$$ 2>/dev/null; then
15323 as_ln_s=ln
15324 else
15325 as_ln_s='cp -p'
15327 else
15328 as_ln_s='cp -p'
15330 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15331 rmdir conf$$.dir 2>/dev/null
15334 # as_fn_mkdir_p
15335 # -------------
15336 # Create "$as_dir" as a directory, including parents if necessary.
15337 as_fn_mkdir_p ()
15340 case $as_dir in #(
15341 -*) as_dir=./$as_dir;;
15342 esac
15343 test -d "$as_dir" || eval $as_mkdir_p || {
15344 as_dirs=
15345 while :; do
15346 case $as_dir in #(
15347 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15348 *) as_qdir=$as_dir;;
15349 esac
15350 as_dirs="'$as_qdir' $as_dirs"
15351 as_dir=`$as_dirname -- "$as_dir" ||
15352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15353 X"$as_dir" : 'X\(//\)[^/]' \| \
15354 X"$as_dir" : 'X\(//\)$' \| \
15355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15356 $as_echo X"$as_dir" |
15357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15358 s//\1/
15361 /^X\(\/\/\)[^/].*/{
15362 s//\1/
15365 /^X\(\/\/\)$/{
15366 s//\1/
15369 /^X\(\/\).*/{
15370 s//\1/
15373 s/.*/./; q'`
15374 test -d "$as_dir" && break
15375 done
15376 test -z "$as_dirs" || eval "mkdir $as_dirs"
15377 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15380 } # as_fn_mkdir_p
15381 if mkdir -p . 2>/dev/null; then
15382 as_mkdir_p='mkdir -p "$as_dir"'
15383 else
15384 test -d ./-p && rmdir ./-p
15385 as_mkdir_p=false
15388 if test -x / >/dev/null 2>&1; then
15389 as_test_x='test -x'
15390 else
15391 if ls -dL / >/dev/null 2>&1; then
15392 as_ls_L_option=L
15393 else
15394 as_ls_L_option=
15396 as_test_x='
15397 eval sh -c '\''
15398 if test -d "$1"; then
15399 test -d "$1/.";
15400 else
15401 case $1 in #(
15402 -*)set "./$1";;
15403 esac;
15404 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15405 ???[sx]*):;;*)false;;esac;fi
15406 '\'' sh
15409 as_executable_p=$as_test_x
15411 # Sed expression to map a string onto a valid CPP name.
15412 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15414 # Sed expression to map a string onto a valid variable name.
15415 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15418 exec 6>&1
15419 ## ----------------------------------- ##
15420 ## Main body of $CONFIG_STATUS script. ##
15421 ## ----------------------------------- ##
15422 _ASEOF
15423 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15426 # Save the log message, to keep $0 and so on meaningful, and to
15427 # report actual input values of CONFIG_FILES etc. instead of their
15428 # values after options handling.
15429 ac_log="
15430 This file was extended by package-unused $as_me version-unused, which was
15431 generated by GNU Autoconf 2.64. Invocation command line was
15433 CONFIG_FILES = $CONFIG_FILES
15434 CONFIG_HEADERS = $CONFIG_HEADERS
15435 CONFIG_LINKS = $CONFIG_LINKS
15436 CONFIG_COMMANDS = $CONFIG_COMMANDS
15437 $ $0 $@
15439 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15442 _ACEOF
15444 case $ac_config_files in *"
15445 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15446 esac
15448 case $ac_config_headers in *"
15449 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15450 esac
15453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454 # Files that config.status was made for.
15455 config_files="$ac_config_files"
15456 config_headers="$ac_config_headers"
15457 config_commands="$ac_config_commands"
15459 _ACEOF
15461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15462 ac_cs_usage="\
15463 \`$as_me' instantiates files and other configuration actions
15464 from templates according to the current configuration. Unless the files
15465 and actions are specified as TAGs, all are instantiated by default.
15467 Usage: $0 [OPTION]... [TAG]...
15469 -h, --help print this help, then exit
15470 -V, --version print version number and configuration settings, then exit
15471 -q, --quiet, --silent
15472 do not print progress messages
15473 -d, --debug don't remove temporary files
15474 --recheck update $as_me by reconfiguring in the same conditions
15475 --file=FILE[:TEMPLATE]
15476 instantiate the configuration file FILE
15477 --header=FILE[:TEMPLATE]
15478 instantiate the configuration header FILE
15480 Configuration files:
15481 $config_files
15483 Configuration headers:
15484 $config_headers
15486 Configuration commands:
15487 $config_commands
15489 Report bugs to the package provider."
15491 _ACEOF
15492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15493 ac_cs_version="\\
15494 package-unused config.status version-unused
15495 configured by $0, generated by GNU Autoconf 2.64,
15496 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15498 Copyright (C) 2009 Free Software Foundation, Inc.
15499 This config.status script is free software; the Free Software Foundation
15500 gives unlimited permission to copy, distribute and modify it."
15502 ac_pwd='$ac_pwd'
15503 srcdir='$srcdir'
15504 INSTALL='$INSTALL'
15505 MKDIR_P='$MKDIR_P'
15506 AWK='$AWK'
15507 test -n "\$AWK" || AWK=awk
15508 _ACEOF
15510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15511 # The default lists apply if the user does not specify any file.
15512 ac_need_defaults=:
15513 while test $# != 0
15515 case $1 in
15516 --*=*)
15517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15519 ac_shift=:
15522 ac_option=$1
15523 ac_optarg=$2
15524 ac_shift=shift
15526 esac
15528 case $ac_option in
15529 # Handling of the options.
15530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15531 ac_cs_recheck=: ;;
15532 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15533 $as_echo "$ac_cs_version"; exit ;;
15534 --debug | --debu | --deb | --de | --d | -d )
15535 debug=: ;;
15536 --file | --fil | --fi | --f )
15537 $ac_shift
15538 case $ac_optarg in
15539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15540 esac
15541 as_fn_append CONFIG_FILES " '$ac_optarg'"
15542 ac_need_defaults=false;;
15543 --header | --heade | --head | --hea )
15544 $ac_shift
15545 case $ac_optarg in
15546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15547 esac
15548 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15549 ac_need_defaults=false;;
15550 --he | --h)
15551 # Conflict between --help and --header
15552 as_fn_error "ambiguous option: \`$1'
15553 Try \`$0 --help' for more information.";;
15554 --help | --hel | -h )
15555 $as_echo "$ac_cs_usage"; exit ;;
15556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15558 ac_cs_silent=: ;;
15560 # This is an error.
15561 -*) as_fn_error "unrecognized option: \`$1'
15562 Try \`$0 --help' for more information." ;;
15564 *) as_fn_append ac_config_targets " $1"
15565 ac_need_defaults=false ;;
15567 esac
15568 shift
15569 done
15571 ac_configure_extra_args=
15573 if $ac_cs_silent; then
15574 exec 6>/dev/null
15575 ac_configure_extra_args="$ac_configure_extra_args --silent"
15578 _ACEOF
15579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15580 if \$ac_cs_recheck; then
15581 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15582 shift
15583 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15584 CONFIG_SHELL='$SHELL'
15585 export CONFIG_SHELL
15586 exec "\$@"
15589 _ACEOF
15590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15591 exec 5>>config.log
15593 echo
15594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15595 ## Running $as_me. ##
15596 _ASBOX
15597 $as_echo "$ac_log"
15598 } >&5
15600 _ACEOF
15601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15603 # INIT-COMMANDS
15606 srcdir="$srcdir"
15607 host="$host"
15608 target="$target"
15609 with_multisubdir="$with_multisubdir"
15610 with_multisrctop="$with_multisrctop"
15611 with_target_subdir="$with_target_subdir"
15612 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15613 multi_basedir="$multi_basedir"
15614 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15615 CC="$CC"
15616 CXX="$CXX"
15617 GFORTRAN="$GFORTRAN"
15618 GCJ="$GCJ"
15619 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15622 # The HP-UX ksh and POSIX shell print the target directory to stdout
15623 # if CDPATH is set.
15624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15626 sed_quote_subst='$sed_quote_subst'
15627 double_quote_subst='$double_quote_subst'
15628 delay_variable_subst='$delay_variable_subst'
15629 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15630 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15631 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15632 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15633 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15634 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15635 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15636 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15637 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15638 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15639 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15640 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15641 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15642 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15643 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15644 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15645 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15646 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15647 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15648 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15649 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15650 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15651 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15652 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15653 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15654 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15655 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15656 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15657 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15658 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15659 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15660 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15661 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15662 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15663 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15664 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15665 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15666 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15667 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15668 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15669 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15670 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15671 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15672 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15673 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15674 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15675 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15676 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15677 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"`'
15678 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15679 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15680 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15681 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15682 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15683 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15684 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15685 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15686 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15687 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15688 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15689 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15690 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15691 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15692 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15693 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15694 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15695 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15696 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15697 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15698 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15699 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15700 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15701 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15702 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15703 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15704 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15705 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15706 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15707 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15708 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15709 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15710 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15711 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15712 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15713 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15714 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15715 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15716 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15717 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15718 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15719 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15720 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15721 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15722 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15723 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15724 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15725 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15726 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15727 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15728 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15729 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15730 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15731 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15732 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15733 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15734 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15735 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15736 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15737 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15738 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15739 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15740 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15741 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15742 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15743 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15744 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15745 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15746 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15747 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15748 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15749 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15750 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15751 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15752 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15753 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15754 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15755 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15756 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15757 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15758 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15759 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15760 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15761 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15762 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15763 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15764 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15765 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15766 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15767 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15768 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15769 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15770 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15771 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15772 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15773 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15774 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15775 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15776 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15777 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15778 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15779 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15780 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15781 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15782 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15783 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15784 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15785 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15786 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15787 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15788 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15789 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15790 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15791 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15793 LTCC='$LTCC'
15794 LTCFLAGS='$LTCFLAGS'
15795 compiler='$compiler_DEFAULT'
15797 # A function that is used when there is no print builtin or printf.
15798 func_fallback_echo ()
15800 eval 'cat <<_LTECHO_EOF
15802 _LTECHO_EOF'
15805 # Quote evaled strings.
15806 for var in SED \
15807 GREP \
15808 EGREP \
15809 FGREP \
15810 SHELL \
15811 ECHO \
15812 LD \
15813 NM \
15814 LN_S \
15815 lt_SP2NL \
15816 lt_NL2SP \
15817 reload_flag \
15818 OBJDUMP \
15819 deplibs_check_method \
15820 file_magic_cmd \
15821 AR \
15822 AR_FLAGS \
15823 STRIP \
15824 RANLIB \
15825 CC \
15826 CFLAGS \
15827 compiler \
15828 lt_cv_sys_global_symbol_pipe \
15829 lt_cv_sys_global_symbol_to_cdecl \
15830 lt_cv_sys_global_symbol_to_c_name_address \
15831 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15832 lt_prog_compiler_no_builtin_flag \
15833 lt_prog_compiler_wl \
15834 lt_prog_compiler_pic \
15835 lt_prog_compiler_static \
15836 lt_cv_prog_compiler_c_o \
15837 need_locks \
15838 DSYMUTIL \
15839 NMEDIT \
15840 LIPO \
15841 OTOOL \
15842 OTOOL64 \
15843 shrext_cmds \
15844 export_dynamic_flag_spec \
15845 whole_archive_flag_spec \
15846 compiler_needs_object \
15847 with_gnu_ld \
15848 allow_undefined_flag \
15849 no_undefined_flag \
15850 hardcode_libdir_flag_spec \
15851 hardcode_libdir_flag_spec_ld \
15852 hardcode_libdir_separator \
15853 fix_srcfile_path \
15854 exclude_expsyms \
15855 include_expsyms \
15856 file_list_spec \
15857 variables_saved_for_relink \
15858 libname_spec \
15859 library_names_spec \
15860 soname_spec \
15861 install_override_mode \
15862 finish_eval \
15863 old_striplib \
15864 striplib \
15865 LD_GO \
15866 reload_flag_GO \
15867 compiler_GO \
15868 lt_prog_compiler_no_builtin_flag_GO \
15869 lt_prog_compiler_wl_GO \
15870 lt_prog_compiler_pic_GO \
15871 lt_prog_compiler_static_GO \
15872 lt_cv_prog_compiler_c_o_GO \
15873 export_dynamic_flag_spec_GO \
15874 whole_archive_flag_spec_GO \
15875 compiler_needs_object_GO \
15876 with_gnu_ld_GO \
15877 allow_undefined_flag_GO \
15878 no_undefined_flag_GO \
15879 hardcode_libdir_flag_spec_GO \
15880 hardcode_libdir_flag_spec_ld_GO \
15881 hardcode_libdir_separator_GO \
15882 fix_srcfile_path_GO \
15883 exclude_expsyms_GO \
15884 include_expsyms_GO \
15885 file_list_spec_GO; do
15886 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15887 *[\\\\\\\`\\"\\\$]*)
15888 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15893 esac
15894 done
15896 # Double-quote double-evaled strings.
15897 for var in reload_cmds \
15898 old_postinstall_cmds \
15899 old_postuninstall_cmds \
15900 old_archive_cmds \
15901 extract_expsyms_cmds \
15902 old_archive_from_new_cmds \
15903 old_archive_from_expsyms_cmds \
15904 archive_cmds \
15905 archive_expsym_cmds \
15906 module_cmds \
15907 module_expsym_cmds \
15908 export_symbols_cmds \
15909 prelink_cmds \
15910 postinstall_cmds \
15911 postuninstall_cmds \
15912 finish_cmds \
15913 sys_lib_search_path_spec \
15914 sys_lib_dlsearch_path_spec \
15915 reload_cmds_GO \
15916 old_archive_cmds_GO \
15917 old_archive_from_new_cmds_GO \
15918 old_archive_from_expsyms_cmds_GO \
15919 archive_cmds_GO \
15920 archive_expsym_cmds_GO \
15921 module_cmds_GO \
15922 module_expsym_cmds_GO \
15923 export_symbols_cmds_GO \
15924 prelink_cmds_GO; do
15925 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15926 *[\\\\\\\`\\"\\\$]*)
15927 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15930 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15932 esac
15933 done
15935 ac_aux_dir='$ac_aux_dir'
15936 xsi_shell='$xsi_shell'
15937 lt_shell_append='$lt_shell_append'
15939 # See if we are running on zsh, and set the options which allow our
15940 # commands through without removal of \ escapes INIT.
15941 if test -n "\${ZSH_VERSION+set}" ; then
15942 setopt NO_GLOB_SUBST
15946 PACKAGE='$PACKAGE'
15947 VERSION='$VERSION'
15948 TIMESTAMP='$TIMESTAMP'
15949 RM='$RM'
15950 ofile='$ofile'
15957 # Variables needed in config.status (file generation) which aren't already
15958 # passed by autoconf.
15959 SUBDIRS="$SUBDIRS"
15962 _ACEOF
15964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15966 # Handling of arguments.
15967 for ac_config_target in $ac_config_targets
15969 case $ac_config_target in
15970 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15971 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15972 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15973 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15974 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15975 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15976 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15978 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15979 esac
15980 done
15983 # If the user did not use the arguments to specify the items to instantiate,
15984 # then the envvar interface is used. Set only those that are not.
15985 # We use the long form for the default assignment because of an extremely
15986 # bizarre bug on SunOS 4.1.3.
15987 if $ac_need_defaults; then
15988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15993 # Have a temporary directory for convenience. Make it in the build tree
15994 # simply because there is no reason against having it here, and in addition,
15995 # creating and moving files from /tmp can sometimes cause problems.
15996 # Hook for its removal unless debugging.
15997 # Note that there is a small window in which the directory will not be cleaned:
15998 # after its creation but before its name has been assigned to `$tmp'.
15999 $debug ||
16001 tmp=
16002 trap 'exit_status=$?
16003 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16005 trap 'as_fn_exit 1' 1 2 13 15
16007 # Create a (secure) tmp directory for tmp files.
16010 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16011 test -n "$tmp" && test -d "$tmp"
16012 } ||
16014 tmp=./conf$$-$RANDOM
16015 (umask 077 && mkdir "$tmp")
16016 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16018 # Set up the scripts for CONFIG_FILES section.
16019 # No need to generate them if there are no CONFIG_FILES.
16020 # This happens for instance with `./config.status config.h'.
16021 if test -n "$CONFIG_FILES"; then
16024 ac_cr=`echo X | tr X '\015'`
16025 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16026 # But we know of no other shell where ac_cr would be empty at this
16027 # point, so we can use a bashism as a fallback.
16028 if test "x$ac_cr" = x; then
16029 eval ac_cr=\$\'\\r\'
16031 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16032 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16033 ac_cs_awk_cr='\r'
16034 else
16035 ac_cs_awk_cr=$ac_cr
16038 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16039 _ACEOF
16043 echo "cat >conf$$subs.awk <<_ACEOF" &&
16044 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16045 echo "_ACEOF"
16046 } >conf$$subs.sh ||
16047 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16048 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16049 ac_delim='%!_!# '
16050 for ac_last_try in false false false false false :; do
16051 . ./conf$$subs.sh ||
16052 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16054 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16055 if test $ac_delim_n = $ac_delim_num; then
16056 break
16057 elif $ac_last_try; then
16058 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16059 else
16060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16062 done
16063 rm -f conf$$subs.sh
16065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16066 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16067 _ACEOF
16068 sed -n '
16070 s/^/S["/; s/!.*/"]=/
16073 s/^[^!]*!//
16074 :repl
16075 t repl
16076 s/'"$ac_delim"'$//
16077 t delim
16080 s/\(.\{148\}\).*/\1/
16081 t more1
16082 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16085 b repl
16086 :more1
16087 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16090 s/.\{148\}//
16091 t nl
16092 :delim
16094 s/\(.\{148\}\).*/\1/
16095 t more2
16096 s/["\\]/\\&/g; s/^/"/; s/$/"/
16099 :more2
16100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16103 s/.\{148\}//
16104 t delim
16105 ' <conf$$subs.awk | sed '
16106 /^[^""]/{
16108 s/\n//
16110 ' >>$CONFIG_STATUS || ac_write_fail=1
16111 rm -f conf$$subs.awk
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 _ACAWK
16114 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16115 for (key in S) S_is_set[key] = 1
16116 FS = "\a"
16120 line = $ 0
16121 nfields = split(line, field, "@")
16122 substed = 0
16123 len = length(field[1])
16124 for (i = 2; i < nfields; i++) {
16125 key = field[i]
16126 keylen = length(key)
16127 if (S_is_set[key]) {
16128 value = S[key]
16129 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16130 len += length(value) + length(field[++i])
16131 substed = 1
16132 } else
16133 len += 1 + keylen
16136 print line
16139 _ACAWK
16140 _ACEOF
16141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16142 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16143 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16144 else
16146 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16147 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16148 _ACEOF
16150 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16151 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16152 # trailing colons and then remove the whole line if VPATH becomes empty
16153 # (actually we leave an empty line to preserve line numbers).
16154 if test "x$srcdir" = x.; then
16155 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16156 s/:*\$(srcdir):*/:/
16157 s/:*\${srcdir}:*/:/
16158 s/:*@srcdir@:*/:/
16159 s/^\([^=]*=[ ]*\):*/\1/
16160 s/:*$//
16161 s/^[^=]*=[ ]*$//
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 fi # test -n "$CONFIG_FILES"
16168 # Set up the scripts for CONFIG_HEADERS section.
16169 # No need to generate them if there are no CONFIG_HEADERS.
16170 # This happens for instance with `./config.status Makefile'.
16171 if test -n "$CONFIG_HEADERS"; then
16172 cat >"$tmp/defines.awk" <<\_ACAWK ||
16173 BEGIN {
16174 _ACEOF
16176 # Transform confdefs.h into an awk script `defines.awk', embedded as
16177 # here-document in config.status, that substitutes the proper values into
16178 # config.h.in to produce config.h.
16180 # Create a delimiter string that does not exist in confdefs.h, to ease
16181 # handling of long lines.
16182 ac_delim='%!_!# '
16183 for ac_last_try in false false :; do
16184 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16185 if test -z "$ac_t"; then
16186 break
16187 elif $ac_last_try; then
16188 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16189 else
16190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16192 done
16194 # For the awk script, D is an array of macro values keyed by name,
16195 # likewise P contains macro parameters if any. Preserve backslash
16196 # newline sequences.
16198 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16199 sed -n '
16200 s/.\{148\}/&'"$ac_delim"'/g
16201 t rset
16202 :rset
16203 s/^[ ]*#[ ]*define[ ][ ]*/ /
16204 t def
16206 :def
16207 s/\\$//
16208 t bsnl
16209 s/["\\]/\\&/g
16210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16211 D["\1"]=" \3"/p
16212 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16214 :bsnl
16215 s/["\\]/\\&/g
16216 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16217 D["\1"]=" \3\\\\\\n"\\/p
16218 t cont
16219 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16220 t cont
16222 :cont
16224 s/.\{148\}/&'"$ac_delim"'/g
16225 t clear
16226 :clear
16227 s/\\$//
16228 t bsnlc
16229 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16231 :bsnlc
16232 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16233 b cont
16234 ' <confdefs.h | sed '
16235 s/'"$ac_delim"'/"\\\
16236 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 for (key in D) D_is_set[key] = 1
16240 FS = "\a"
16242 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16243 line = \$ 0
16244 split(line, arg, " ")
16245 if (arg[1] == "#") {
16246 defundef = arg[2]
16247 mac1 = arg[3]
16248 } else {
16249 defundef = substr(arg[1], 2)
16250 mac1 = arg[2]
16252 split(mac1, mac2, "(") #)
16253 macro = mac2[1]
16254 prefix = substr(line, 1, index(line, defundef) - 1)
16255 if (D_is_set[macro]) {
16256 # Preserve the white space surrounding the "#".
16257 print prefix "define", macro P[macro] D[macro]
16258 next
16259 } else {
16260 # Replace #undef with comments. This is necessary, for example,
16261 # in the case of _POSIX_SOURCE, which is predefined and required
16262 # on some systems where configure will not decide to define it.
16263 if (defundef == "undef") {
16264 print "/*", prefix defundef, macro, "*/"
16265 next
16269 { print }
16270 _ACAWK
16271 _ACEOF
16272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16273 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16274 fi # test -n "$CONFIG_HEADERS"
16277 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16278 shift
16279 for ac_tag
16281 case $ac_tag in
16282 :[FHLC]) ac_mode=$ac_tag; continue;;
16283 esac
16284 case $ac_mode$ac_tag in
16285 :[FHL]*:*);;
16286 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16287 :[FH]-) ac_tag=-:-;;
16288 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16289 esac
16290 ac_save_IFS=$IFS
16291 IFS=:
16292 set x $ac_tag
16293 IFS=$ac_save_IFS
16294 shift
16295 ac_file=$1
16296 shift
16298 case $ac_mode in
16299 :L) ac_source=$1;;
16300 :[FH])
16301 ac_file_inputs=
16302 for ac_f
16304 case $ac_f in
16305 -) ac_f="$tmp/stdin";;
16306 *) # Look for the file first in the build tree, then in the source tree
16307 # (if the path is not absolute). The absolute path cannot be DOS-style,
16308 # because $ac_f cannot contain `:'.
16309 test -f "$ac_f" ||
16310 case $ac_f in
16311 [\\/$]*) false;;
16312 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16313 esac ||
16314 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16315 esac
16316 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16317 as_fn_append ac_file_inputs " '$ac_f'"
16318 done
16320 # Let's still pretend it is `configure' which instantiates (i.e., don't
16321 # use $as_me), people would be surprised to read:
16322 # /* config.h. Generated by config.status. */
16323 configure_input='Generated from '`
16324 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16325 `' by configure.'
16326 if test x"$ac_file" != x-; then
16327 configure_input="$ac_file. $configure_input"
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16329 $as_echo "$as_me: creating $ac_file" >&6;}
16331 # Neutralize special characters interpreted by sed in replacement strings.
16332 case $configure_input in #(
16333 *\&* | *\|* | *\\* )
16334 ac_sed_conf_input=`$as_echo "$configure_input" |
16335 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16336 *) ac_sed_conf_input=$configure_input;;
16337 esac
16339 case $ac_tag in
16340 *:-:* | *:-) cat >"$tmp/stdin" \
16341 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16342 esac
16344 esac
16346 ac_dir=`$as_dirname -- "$ac_file" ||
16347 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16348 X"$ac_file" : 'X\(//\)[^/]' \| \
16349 X"$ac_file" : 'X\(//\)$' \| \
16350 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16351 $as_echo X"$ac_file" |
16352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16353 s//\1/
16356 /^X\(\/\/\)[^/].*/{
16357 s//\1/
16360 /^X\(\/\/\)$/{
16361 s//\1/
16364 /^X\(\/\).*/{
16365 s//\1/
16368 s/.*/./; q'`
16369 as_dir="$ac_dir"; as_fn_mkdir_p
16370 ac_builddir=.
16372 case "$ac_dir" in
16373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16375 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16376 # A ".." for each directory in $ac_dir_suffix.
16377 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16378 case $ac_top_builddir_sub in
16379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16381 esac ;;
16382 esac
16383 ac_abs_top_builddir=$ac_pwd
16384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16385 # for backward compatibility:
16386 ac_top_builddir=$ac_top_build_prefix
16388 case $srcdir in
16389 .) # We are building in place.
16390 ac_srcdir=.
16391 ac_top_srcdir=$ac_top_builddir_sub
16392 ac_abs_top_srcdir=$ac_pwd ;;
16393 [\\/]* | ?:[\\/]* ) # Absolute name.
16394 ac_srcdir=$srcdir$ac_dir_suffix;
16395 ac_top_srcdir=$srcdir
16396 ac_abs_top_srcdir=$srcdir ;;
16397 *) # Relative name.
16398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16399 ac_top_srcdir=$ac_top_build_prefix$srcdir
16400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16401 esac
16402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16405 case $ac_mode in
16408 # CONFIG_FILE
16411 case $INSTALL in
16412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16414 esac
16415 ac_MKDIR_P=$MKDIR_P
16416 case $MKDIR_P in
16417 [\\/$]* | ?:[\\/]* ) ;;
16418 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16419 esac
16420 _ACEOF
16422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16423 # If the template does not know about datarootdir, expand it.
16424 # FIXME: This hack should be removed a few years after 2.60.
16425 ac_datarootdir_hack=; ac_datarootdir_seen=
16426 ac_sed_dataroot='
16427 /datarootdir/ {
16431 /@datadir@/p
16432 /@docdir@/p
16433 /@infodir@/p
16434 /@localedir@/p
16435 /@mandir@/p'
16436 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16437 *datarootdir*) ac_datarootdir_seen=yes;;
16438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16440 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16441 _ACEOF
16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 ac_datarootdir_hack='
16444 s&@datadir@&$datadir&g
16445 s&@docdir@&$docdir&g
16446 s&@infodir@&$infodir&g
16447 s&@localedir@&$localedir&g
16448 s&@mandir@&$mandir&g
16449 s&\\\${datarootdir}&$datarootdir&g' ;;
16450 esac
16451 _ACEOF
16453 # Neutralize VPATH when `$srcdir' = `.'.
16454 # Shell code in configure.ac might set extrasub.
16455 # FIXME: do we really want to maintain this feature?
16456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16457 ac_sed_extra="$ac_vpsub
16458 $extrasub
16459 _ACEOF
16460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16463 s|@configure_input@|$ac_sed_conf_input|;t t
16464 s&@top_builddir@&$ac_top_builddir_sub&;t t
16465 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16466 s&@srcdir@&$ac_srcdir&;t t
16467 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16468 s&@top_srcdir@&$ac_top_srcdir&;t t
16469 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16470 s&@builddir@&$ac_builddir&;t t
16471 s&@abs_builddir@&$ac_abs_builddir&;t t
16472 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16473 s&@INSTALL@&$ac_INSTALL&;t t
16474 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16475 $ac_datarootdir_hack
16477 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16478 || as_fn_error "could not create $ac_file" "$LINENO" 5
16480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16484 which seems to be undefined. Please make sure it is defined." >&5
16485 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16486 which seems to be undefined. Please make sure it is defined." >&2;}
16488 rm -f "$tmp/stdin"
16489 case $ac_file in
16490 -) cat "$tmp/out" && rm -f "$tmp/out";;
16491 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16492 esac \
16493 || as_fn_error "could not create $ac_file" "$LINENO" 5
16497 # CONFIG_HEADER
16499 if test x"$ac_file" != x-; then
16501 $as_echo "/* $configure_input */" \
16502 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16503 } >"$tmp/config.h" \
16504 || as_fn_error "could not create $ac_file" "$LINENO" 5
16505 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16507 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16508 else
16509 rm -f "$ac_file"
16510 mv "$tmp/config.h" "$ac_file" \
16511 || as_fn_error "could not create $ac_file" "$LINENO" 5
16513 else
16514 $as_echo "/* $configure_input */" \
16515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16516 || as_fn_error "could not create -" "$LINENO" 5
16518 # Compute "$ac_file"'s index in $config_headers.
16519 _am_arg="$ac_file"
16520 _am_stamp_count=1
16521 for _am_header in $config_headers :; do
16522 case $_am_header in
16523 $_am_arg | $_am_arg:* )
16524 break ;;
16526 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16527 esac
16528 done
16529 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16530 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16531 X"$_am_arg" : 'X\(//\)[^/]' \| \
16532 X"$_am_arg" : 'X\(//\)$' \| \
16533 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16534 $as_echo X"$_am_arg" |
16535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16536 s//\1/
16539 /^X\(\/\/\)[^/].*/{
16540 s//\1/
16543 /^X\(\/\/\)$/{
16544 s//\1/
16547 /^X\(\/\).*/{
16548 s//\1/
16551 s/.*/./; q'`/stamp-h$_am_stamp_count
16554 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16555 $as_echo "$as_me: executing $ac_file commands" >&6;}
16557 esac
16560 case $ac_file$ac_mode in
16561 "default-1":C)
16562 # Only add multilib support code if we just rebuilt the top-level
16563 # Makefile.
16564 case " $CONFIG_FILES " in
16565 *" Makefile "*)
16566 ac_file=Makefile . ${multi_basedir}/config-ml.in
16568 esac ;;
16569 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16570 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16571 # are listed without --file. Let's play safe and only enable the eval
16572 # if we detect the quoting.
16573 case $CONFIG_FILES in
16574 *\'*) eval set x "$CONFIG_FILES" ;;
16575 *) set x $CONFIG_FILES ;;
16576 esac
16577 shift
16578 for mf
16580 # Strip MF so we end up with the name of the file.
16581 mf=`echo "$mf" | sed -e 's/:.*$//'`
16582 # Check whether this is an Automake generated Makefile or not.
16583 # We used to match only the files named `Makefile.in', but
16584 # some people rename them; so instead we look at the file content.
16585 # Grep'ing the first line is not enough: some people post-process
16586 # each Makefile.in and add a new line on top of each file to say so.
16587 # Grep'ing the whole file is not good either: AIX grep has a line
16588 # limit of 2048, but all sed's we know have understand at least 4000.
16589 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16590 dirpart=`$as_dirname -- "$mf" ||
16591 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16592 X"$mf" : 'X\(//\)[^/]' \| \
16593 X"$mf" : 'X\(//\)$' \| \
16594 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16595 $as_echo X"$mf" |
16596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16597 s//\1/
16600 /^X\(\/\/\)[^/].*/{
16601 s//\1/
16604 /^X\(\/\/\)$/{
16605 s//\1/
16608 /^X\(\/\).*/{
16609 s//\1/
16612 s/.*/./; q'`
16613 else
16614 continue
16616 # Extract the definition of DEPDIR, am__include, and am__quote
16617 # from the Makefile without running `make'.
16618 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16619 test -z "$DEPDIR" && continue
16620 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16621 test -z "am__include" && continue
16622 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16623 # When using ansi2knr, U may be empty or an underscore; expand it
16624 U=`sed -n 's/^U = //p' < "$mf"`
16625 # Find all dependency output files, they are included files with
16626 # $(DEPDIR) in their names. We invoke sed twice because it is the
16627 # simplest approach to changing $(DEPDIR) to its actual value in the
16628 # expansion.
16629 for file in `sed -n "
16630 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16631 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16632 # Make sure the directory exists.
16633 test -f "$dirpart/$file" && continue
16634 fdir=`$as_dirname -- "$file" ||
16635 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16636 X"$file" : 'X\(//\)[^/]' \| \
16637 X"$file" : 'X\(//\)$' \| \
16638 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16639 $as_echo X"$file" |
16640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16641 s//\1/
16644 /^X\(\/\/\)[^/].*/{
16645 s//\1/
16648 /^X\(\/\/\)$/{
16649 s//\1/
16652 /^X\(\/\).*/{
16653 s//\1/
16656 s/.*/./; q'`
16657 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16658 # echo "creating $dirpart/$file"
16659 echo '# dummy' > "$dirpart/$file"
16660 done
16661 done
16664 "libtool":C)
16666 # See if we are running on zsh, and set the options which allow our
16667 # commands through without removal of \ escapes.
16668 if test -n "${ZSH_VERSION+set}" ; then
16669 setopt NO_GLOB_SUBST
16672 cfgfile="${ofile}T"
16673 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16674 $RM "$cfgfile"
16676 cat <<_LT_EOF >> "$cfgfile"
16677 #! $SHELL
16679 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16680 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16681 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16682 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16684 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16685 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16686 # Written by Gordon Matzigkeit, 1996
16688 # This file is part of GNU Libtool.
16690 # GNU Libtool is free software; you can redistribute it and/or
16691 # modify it under the terms of the GNU General Public License as
16692 # published by the Free Software Foundation; either version 2 of
16693 # the License, or (at your option) any later version.
16695 # As a special exception to the GNU General Public License,
16696 # if you distribute this file as part of a program or library that
16697 # is built using GNU Libtool, you may include this file under the
16698 # same distribution terms that you use for the rest of that program.
16700 # GNU Libtool is distributed in the hope that it will be useful,
16701 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16702 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16703 # GNU General Public License for more details.
16705 # You should have received a copy of the GNU General Public License
16706 # along with GNU Libtool; see the file COPYING. If not, a copy
16707 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16708 # obtained by writing to the Free Software Foundation, Inc.,
16709 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16712 # The names of the tagged configurations supported by this script.
16713 available_tags="GO "
16715 # ### BEGIN LIBTOOL CONFIG
16717 # A sed program that does not truncate output.
16718 SED=$lt_SED
16720 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16721 Xsed="\$SED -e 1s/^X//"
16723 # A grep program that handles long lines.
16724 GREP=$lt_GREP
16726 # An ERE matcher.
16727 EGREP=$lt_EGREP
16729 # A literal string matcher.
16730 FGREP=$lt_FGREP
16732 # Shell to use when invoking shell scripts.
16733 SHELL=$lt_SHELL
16735 # An echo program that protects backslashes.
16736 ECHO=$lt_ECHO
16738 # Which release of libtool.m4 was used?
16739 macro_version=$macro_version
16740 macro_revision=$macro_revision
16742 # Whether or not to build shared libraries.
16743 build_libtool_libs=$enable_shared
16745 # Whether or not to build static libraries.
16746 build_old_libs=$enable_static
16748 # What type of objects to build.
16749 pic_mode=$pic_mode
16751 # Whether or not to optimize for fast installation.
16752 fast_install=$enable_fast_install
16754 # The host system.
16755 host_alias=$host_alias
16756 host=$host
16757 host_os=$host_os
16759 # The build system.
16760 build_alias=$build_alias
16761 build=$build
16762 build_os=$build_os
16764 # A BSD- or MS-compatible name lister.
16765 NM=$lt_NM
16767 # Whether we need soft or hard links.
16768 LN_S=$lt_LN_S
16770 # What is the maximum length of a command?
16771 max_cmd_len=$max_cmd_len
16773 # Object file suffix (normally "o").
16774 objext=$ac_objext
16776 # Executable file suffix (normally "").
16777 exeext=$exeext
16779 # whether the shell understands "unset".
16780 lt_unset=$lt_unset
16782 # turn spaces into newlines.
16783 SP2NL=$lt_lt_SP2NL
16785 # turn newlines into spaces.
16786 NL2SP=$lt_lt_NL2SP
16788 # An object symbol dumper.
16789 OBJDUMP=$lt_OBJDUMP
16791 # Method to check whether dependent libraries are shared objects.
16792 deplibs_check_method=$lt_deplibs_check_method
16794 # Command to use when deplibs_check_method == "file_magic".
16795 file_magic_cmd=$lt_file_magic_cmd
16797 # The archiver.
16798 AR=$lt_AR
16799 AR_FLAGS=$lt_AR_FLAGS
16801 # A symbol stripping program.
16802 STRIP=$lt_STRIP
16804 # Commands used to install an old-style archive.
16805 RANLIB=$lt_RANLIB
16806 old_postinstall_cmds=$lt_old_postinstall_cmds
16807 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16809 # Whether to use a lock for old archive extraction.
16810 lock_old_archive_extraction=$lock_old_archive_extraction
16812 # A C compiler.
16813 LTCC=$lt_CC
16815 # LTCC compiler flags.
16816 LTCFLAGS=$lt_CFLAGS
16818 # Take the output of nm and produce a listing of raw symbols and C names.
16819 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16821 # Transform the output of nm in a proper C declaration.
16822 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16824 # Transform the output of nm in a C name address pair.
16825 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16827 # Transform the output of nm in a C name address pair when lib prefix is needed.
16828 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16830 # The name of the directory that contains temporary libtool files.
16831 objdir=$objdir
16833 # Used to examine libraries when file_magic_cmd begins with "file".
16834 MAGIC_CMD=$MAGIC_CMD
16836 # Must we lock files when doing compilation?
16837 need_locks=$lt_need_locks
16839 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16840 DSYMUTIL=$lt_DSYMUTIL
16842 # Tool to change global to local symbols on Mac OS X.
16843 NMEDIT=$lt_NMEDIT
16845 # Tool to manipulate fat objects and archives on Mac OS X.
16846 LIPO=$lt_LIPO
16848 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16849 OTOOL=$lt_OTOOL
16851 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16852 OTOOL64=$lt_OTOOL64
16854 # Old archive suffix (normally "a").
16855 libext=$libext
16857 # Shared library suffix (normally ".so").
16858 shrext_cmds=$lt_shrext_cmds
16860 # The commands to extract the exported symbol list from a shared archive.
16861 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16863 # Variables whose values should be saved in libtool wrapper scripts and
16864 # restored at link time.
16865 variables_saved_for_relink=$lt_variables_saved_for_relink
16867 # Do we need the "lib" prefix for modules?
16868 need_lib_prefix=$need_lib_prefix
16870 # Do we need a version for libraries?
16871 need_version=$need_version
16873 # Library versioning type.
16874 version_type=$version_type
16876 # Shared library runtime path variable.
16877 runpath_var=$runpath_var
16879 # Shared library path variable.
16880 shlibpath_var=$shlibpath_var
16882 # Is shlibpath searched before the hard-coded library search path?
16883 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16885 # Format of library name prefix.
16886 libname_spec=$lt_libname_spec
16888 # List of archive names. First name is the real one, the rest are links.
16889 # The last name is the one that the linker finds with -lNAME
16890 library_names_spec=$lt_library_names_spec
16892 # The coded name of the library, if different from the real name.
16893 soname_spec=$lt_soname_spec
16895 # Permission mode override for installation of shared libraries.
16896 install_override_mode=$lt_install_override_mode
16898 # Command to use after installation of a shared archive.
16899 postinstall_cmds=$lt_postinstall_cmds
16901 # Command to use after uninstallation of a shared archive.
16902 postuninstall_cmds=$lt_postuninstall_cmds
16904 # Commands used to finish a libtool library installation in a directory.
16905 finish_cmds=$lt_finish_cmds
16907 # As "finish_cmds", except a single script fragment to be evaled but
16908 # not shown.
16909 finish_eval=$lt_finish_eval
16911 # Whether we should hardcode library paths into libraries.
16912 hardcode_into_libs=$hardcode_into_libs
16914 # Compile-time system search path for libraries.
16915 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16917 # Run-time system search path for libraries.
16918 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16920 # Whether dlopen is supported.
16921 dlopen_support=$enable_dlopen
16923 # Whether dlopen of programs is supported.
16924 dlopen_self=$enable_dlopen_self
16926 # Whether dlopen of statically linked programs is supported.
16927 dlopen_self_static=$enable_dlopen_self_static
16929 # Commands to strip libraries.
16930 old_striplib=$lt_old_striplib
16931 striplib=$lt_striplib
16934 # The linker used to build libraries.
16935 LD=$lt_LD
16937 # How to create reloadable object files.
16938 reload_flag=$lt_reload_flag
16939 reload_cmds=$lt_reload_cmds
16941 # Commands used to build an old-style archive.
16942 old_archive_cmds=$lt_old_archive_cmds
16944 # A language specific compiler.
16945 CC=$lt_compiler
16947 # Is the compiler the GNU compiler?
16948 with_gcc=$GCC
16950 # Compiler flag to turn off builtin functions.
16951 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16953 # How to pass a linker flag through the compiler.
16954 wl=$lt_lt_prog_compiler_wl
16956 # Additional compiler flags for building library objects.
16957 pic_flag=$lt_lt_prog_compiler_pic
16959 # Compiler flag to prevent dynamic linking.
16960 link_static_flag=$lt_lt_prog_compiler_static
16962 # Does compiler simultaneously support -c and -o options?
16963 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16965 # Whether or not to add -lc for building shared libraries.
16966 build_libtool_need_lc=$archive_cmds_need_lc
16968 # Whether or not to disallow shared libs when runtime libs are static.
16969 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16971 # Compiler flag to allow reflexive dlopens.
16972 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16974 # Compiler flag to generate shared objects directly from archives.
16975 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16977 # Whether the compiler copes with passing no objects directly.
16978 compiler_needs_object=$lt_compiler_needs_object
16980 # Create an old-style archive from a shared archive.
16981 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16983 # Create a temporary old-style archive to link instead of a shared archive.
16984 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16986 # Commands used to build a shared archive.
16987 archive_cmds=$lt_archive_cmds
16988 archive_expsym_cmds=$lt_archive_expsym_cmds
16990 # Commands used to build a loadable module if different from building
16991 # a shared archive.
16992 module_cmds=$lt_module_cmds
16993 module_expsym_cmds=$lt_module_expsym_cmds
16995 # Whether we are building with GNU ld or not.
16996 with_gnu_ld=$lt_with_gnu_ld
16998 # Flag that allows shared libraries with undefined symbols to be built.
16999 allow_undefined_flag=$lt_allow_undefined_flag
17001 # Flag that enforces no undefined symbols.
17002 no_undefined_flag=$lt_no_undefined_flag
17004 # Flag to hardcode \$libdir into a binary during linking.
17005 # This must work even if \$libdir does not exist
17006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17008 # If ld is used when linking, flag to hardcode \$libdir into a binary
17009 # during linking. This must work even if \$libdir does not exist.
17010 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17012 # Whether we need a single "-rpath" flag with a separated argument.
17013 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17015 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17016 # DIR into the resulting binary.
17017 hardcode_direct=$hardcode_direct
17019 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17020 # DIR into the resulting binary and the resulting library dependency is
17021 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17022 # library is relocated.
17023 hardcode_direct_absolute=$hardcode_direct_absolute
17025 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17026 # into the resulting binary.
17027 hardcode_minus_L=$hardcode_minus_L
17029 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17030 # into the resulting binary.
17031 hardcode_shlibpath_var=$hardcode_shlibpath_var
17033 # Set to "yes" if building a shared library automatically hardcodes DIR
17034 # into the library and all subsequent libraries and executables linked
17035 # against it.
17036 hardcode_automatic=$hardcode_automatic
17038 # Set to yes if linker adds runtime paths of dependent libraries
17039 # to runtime path list.
17040 inherit_rpath=$inherit_rpath
17042 # Whether libtool must link a program against all its dependency libraries.
17043 link_all_deplibs=$link_all_deplibs
17045 # Fix the shell variable \$srcfile for the compiler.
17046 fix_srcfile_path=$lt_fix_srcfile_path
17048 # Set to "yes" if exported symbols are required.
17049 always_export_symbols=$always_export_symbols
17051 # The commands to list exported symbols.
17052 export_symbols_cmds=$lt_export_symbols_cmds
17054 # Symbols that should not be listed in the preloaded symbols.
17055 exclude_expsyms=$lt_exclude_expsyms
17057 # Symbols that must always be exported.
17058 include_expsyms=$lt_include_expsyms
17060 # Commands necessary for linking programs (against libraries) with templates.
17061 prelink_cmds=$lt_prelink_cmds
17063 # Specify filename containing input files.
17064 file_list_spec=$lt_file_list_spec
17066 # How to hardcode a shared library path into an executable.
17067 hardcode_action=$hardcode_action
17069 # ### END LIBTOOL CONFIG
17071 _LT_EOF
17073 case $host_os in
17074 aix3*)
17075 cat <<\_LT_EOF >> "$cfgfile"
17076 # AIX sometimes has problems with the GCC collect2 program. For some
17077 # reason, if we set the COLLECT_NAMES environment variable, the problems
17078 # vanish in a puff of smoke.
17079 if test "X${COLLECT_NAMES+set}" != Xset; then
17080 COLLECT_NAMES=
17081 export COLLECT_NAMES
17083 _LT_EOF
17085 esac
17088 ltmain="$ac_aux_dir/ltmain.sh"
17091 # We use sed instead of cat because bash on DJGPP gets confused if
17092 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17093 # text mode, it properly converts lines to CR/LF. This bash problem
17094 # is reportedly fixed, but why not run on old versions too?
17095 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17096 || (rm -f "$cfgfile"; exit 1)
17098 case $xsi_shell in
17099 yes)
17100 cat << \_LT_EOF >> "$cfgfile"
17102 # func_dirname file append nondir_replacement
17103 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17104 # otherwise set result to NONDIR_REPLACEMENT.
17105 func_dirname ()
17107 case ${1} in
17108 */*) func_dirname_result="${1%/*}${2}" ;;
17109 * ) func_dirname_result="${3}" ;;
17110 esac
17113 # func_basename file
17114 func_basename ()
17116 func_basename_result="${1##*/}"
17119 # func_dirname_and_basename file append nondir_replacement
17120 # perform func_basename and func_dirname in a single function
17121 # call:
17122 # dirname: Compute the dirname of FILE. If nonempty,
17123 # add APPEND to the result, otherwise set result
17124 # to NONDIR_REPLACEMENT.
17125 # value returned in "$func_dirname_result"
17126 # basename: Compute filename of FILE.
17127 # value retuned in "$func_basename_result"
17128 # Implementation must be kept synchronized with func_dirname
17129 # and func_basename. For efficiency, we do not delegate to
17130 # those functions but instead duplicate the functionality here.
17131 func_dirname_and_basename ()
17133 case ${1} in
17134 */*) func_dirname_result="${1%/*}${2}" ;;
17135 * ) func_dirname_result="${3}" ;;
17136 esac
17137 func_basename_result="${1##*/}"
17140 # func_stripname prefix suffix name
17141 # strip PREFIX and SUFFIX off of NAME.
17142 # PREFIX and SUFFIX must not contain globbing or regex special
17143 # characters, hashes, percent signs, but SUFFIX may contain a leading
17144 # dot (in which case that matches only a dot).
17145 func_stripname ()
17147 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17148 # positional parameters, so assign one to ordinary parameter first.
17149 func_stripname_result=${3}
17150 func_stripname_result=${func_stripname_result#"${1}"}
17151 func_stripname_result=${func_stripname_result%"${2}"}
17154 # func_opt_split
17155 func_opt_split ()
17157 func_opt_split_opt=${1%%=*}
17158 func_opt_split_arg=${1#*=}
17161 # func_lo2o object
17162 func_lo2o ()
17164 case ${1} in
17165 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17166 *) func_lo2o_result=${1} ;;
17167 esac
17170 # func_xform libobj-or-source
17171 func_xform ()
17173 func_xform_result=${1%.*}.lo
17176 # func_arith arithmetic-term...
17177 func_arith ()
17179 func_arith_result=$(( $* ))
17182 # func_len string
17183 # STRING may not start with a hyphen.
17184 func_len ()
17186 func_len_result=${#1}
17189 _LT_EOF
17191 *) # Bourne compatible functions.
17192 cat << \_LT_EOF >> "$cfgfile"
17194 # func_dirname file append nondir_replacement
17195 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17196 # otherwise set result to NONDIR_REPLACEMENT.
17197 func_dirname ()
17199 # Extract subdirectory from the argument.
17200 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17201 if test "X$func_dirname_result" = "X${1}"; then
17202 func_dirname_result="${3}"
17203 else
17204 func_dirname_result="$func_dirname_result${2}"
17208 # func_basename file
17209 func_basename ()
17211 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17215 # func_stripname prefix suffix name
17216 # strip PREFIX and SUFFIX off of NAME.
17217 # PREFIX and SUFFIX must not contain globbing or regex special
17218 # characters, hashes, percent signs, but SUFFIX may contain a leading
17219 # dot (in which case that matches only a dot).
17220 # func_strip_suffix prefix name
17221 func_stripname ()
17223 case ${2} in
17224 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17225 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17226 esac
17229 # sed scripts:
17230 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17231 my_sed_long_arg='1s/^-[^=]*=//'
17233 # func_opt_split
17234 func_opt_split ()
17236 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17237 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17240 # func_lo2o object
17241 func_lo2o ()
17243 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17246 # func_xform libobj-or-source
17247 func_xform ()
17249 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17252 # func_arith arithmetic-term...
17253 func_arith ()
17255 func_arith_result=`expr "$@"`
17258 # func_len string
17259 # STRING may not start with a hyphen.
17260 func_len ()
17262 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17265 _LT_EOF
17266 esac
17268 case $lt_shell_append in
17269 yes)
17270 cat << \_LT_EOF >> "$cfgfile"
17272 # func_append var value
17273 # Append VALUE to the end of shell variable VAR.
17274 func_append ()
17276 eval "$1+=\$2"
17278 _LT_EOF
17281 cat << \_LT_EOF >> "$cfgfile"
17283 # func_append var value
17284 # Append VALUE to the end of shell variable VAR.
17285 func_append ()
17287 eval "$1=\$$1\$2"
17290 _LT_EOF
17292 esac
17295 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17296 || (rm -f "$cfgfile"; exit 1)
17298 mv -f "$cfgfile" "$ofile" ||
17299 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17300 chmod +x "$ofile"
17303 cat <<_LT_EOF >> "$ofile"
17305 # ### BEGIN LIBTOOL TAG CONFIG: GO
17307 # The linker used to build libraries.
17308 LD=$lt_LD_GO
17310 # How to create reloadable object files.
17311 reload_flag=$lt_reload_flag_GO
17312 reload_cmds=$lt_reload_cmds_GO
17314 # Commands used to build an old-style archive.
17315 old_archive_cmds=$lt_old_archive_cmds_GO
17317 # A language specific compiler.
17318 CC=$lt_compiler_GO
17320 # Is the compiler the GNU compiler?
17321 with_gcc=$GCC_GO
17323 # Compiler flag to turn off builtin functions.
17324 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17326 # How to pass a linker flag through the compiler.
17327 wl=$lt_lt_prog_compiler_wl_GO
17329 # Additional compiler flags for building library objects.
17330 pic_flag=$lt_lt_prog_compiler_pic_GO
17332 # Compiler flag to prevent dynamic linking.
17333 link_static_flag=$lt_lt_prog_compiler_static_GO
17335 # Does compiler simultaneously support -c and -o options?
17336 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17338 # Whether or not to add -lc for building shared libraries.
17339 build_libtool_need_lc=$archive_cmds_need_lc_GO
17341 # Whether or not to disallow shared libs when runtime libs are static.
17342 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17344 # Compiler flag to allow reflexive dlopens.
17345 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17347 # Compiler flag to generate shared objects directly from archives.
17348 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17350 # Whether the compiler copes with passing no objects directly.
17351 compiler_needs_object=$lt_compiler_needs_object_GO
17353 # Create an old-style archive from a shared archive.
17354 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17356 # Create a temporary old-style archive to link instead of a shared archive.
17357 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17359 # Commands used to build a shared archive.
17360 archive_cmds=$lt_archive_cmds_GO
17361 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17363 # Commands used to build a loadable module if different from building
17364 # a shared archive.
17365 module_cmds=$lt_module_cmds_GO
17366 module_expsym_cmds=$lt_module_expsym_cmds_GO
17368 # Whether we are building with GNU ld or not.
17369 with_gnu_ld=$lt_with_gnu_ld_GO
17371 # Flag that allows shared libraries with undefined symbols to be built.
17372 allow_undefined_flag=$lt_allow_undefined_flag_GO
17374 # Flag that enforces no undefined symbols.
17375 no_undefined_flag=$lt_no_undefined_flag_GO
17377 # Flag to hardcode \$libdir into a binary during linking.
17378 # This must work even if \$libdir does not exist
17379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17381 # If ld is used when linking, flag to hardcode \$libdir into a binary
17382 # during linking. This must work even if \$libdir does not exist.
17383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17385 # Whether we need a single "-rpath" flag with a separated argument.
17386 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17388 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17389 # DIR into the resulting binary.
17390 hardcode_direct=$hardcode_direct_GO
17392 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17393 # DIR into the resulting binary and the resulting library dependency is
17394 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17395 # library is relocated.
17396 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17398 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17399 # into the resulting binary.
17400 hardcode_minus_L=$hardcode_minus_L_GO
17402 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17403 # into the resulting binary.
17404 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17406 # Set to "yes" if building a shared library automatically hardcodes DIR
17407 # into the library and all subsequent libraries and executables linked
17408 # against it.
17409 hardcode_automatic=$hardcode_automatic_GO
17411 # Set to yes if linker adds runtime paths of dependent libraries
17412 # to runtime path list.
17413 inherit_rpath=$inherit_rpath_GO
17415 # Whether libtool must link a program against all its dependency libraries.
17416 link_all_deplibs=$link_all_deplibs_GO
17418 # Fix the shell variable \$srcfile for the compiler.
17419 fix_srcfile_path=$lt_fix_srcfile_path_GO
17421 # Set to "yes" if exported symbols are required.
17422 always_export_symbols=$always_export_symbols_GO
17424 # The commands to list exported symbols.
17425 export_symbols_cmds=$lt_export_symbols_cmds_GO
17427 # Symbols that should not be listed in the preloaded symbols.
17428 exclude_expsyms=$lt_exclude_expsyms_GO
17430 # Symbols that must always be exported.
17431 include_expsyms=$lt_include_expsyms_GO
17433 # Commands necessary for linking programs (against libraries) with templates.
17434 prelink_cmds=$lt_prelink_cmds_GO
17436 # Specify filename containing input files.
17437 file_list_spec=$lt_file_list_spec_GO
17439 # How to hardcode a shared library path into an executable.
17440 hardcode_action=$hardcode_action_GO
17442 # ### END LIBTOOL TAG CONFIG: GO
17443 _LT_EOF
17446 "default":C) if test -n "$CONFIG_FILES"; then
17447 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17448 # that multilib installs will end up installed in the correct place.
17449 # The testsuite needs it for multilib-aware ABI baseline files.
17450 # To work around this not being passed down from config-ml.in ->
17451 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17452 # append it here. Only modify Makefiles that have just been created.
17454 # Also, get rid of this simulated-VPATH thing that automake does.
17455 cat > vpsed << \_EOF
17456 s!`test -f '$<' || echo '$(srcdir)/'`!!
17457 _EOF
17458 for i in $SUBDIRS; do
17459 case $CONFIG_FILES in
17460 *${i}/Makefile*)
17461 #echo "Adding MULTISUBDIR to $i/Makefile"
17462 sed -f vpsed $i/Makefile > tmp
17463 grep '^MULTISUBDIR =' Makefile >> tmp
17464 mv tmp $i/Makefile
17466 esac
17467 done
17468 rm vpsed
17472 esac
17473 done # for ac_tag
17476 as_fn_exit 0
17477 _ACEOF
17478 ac_clean_files=$ac_clean_files_save
17480 test $ac_write_fail = 0 ||
17481 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17484 # configure is writing to config.log, and then calls config.status.
17485 # config.status does its own redirection, appending to config.log.
17486 # Unfortunately, on DOS this fails, as config.log is still kept open
17487 # by configure, so config.status won't be able to write to it; its
17488 # output is simply discarded. So we exec the FD to /dev/null,
17489 # effectively closing config.log, so it can be properly (re)opened and
17490 # appended to by config.status. When coming back to configure, we
17491 # need to make the FD available again.
17492 if test "$no_create" != yes; then
17493 ac_cs_success=:
17494 ac_config_status_args=
17495 test "$silent" = yes &&
17496 ac_config_status_args="$ac_config_status_args --quiet"
17497 exec 5>/dev/null
17498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17499 exec 5>>config.log
17500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17501 # would make configure fail if this is the last instruction.
17502 $ac_cs_success || as_fn_exit $?
17504 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17506 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}