Add another testcase for x86 FLT_EVAL_METHOD
[official-gcc.git] / libgo / configure
blobe024b2f4b6294681f36184008fbd0bc2ad9c6bb0
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 HAVE_STAT_TIMESPEC_FALSE
606 HAVE_STAT_TIMESPEC_TRUE
607 STRUCT_EPOLL_EVENT_FD_OFFSET
608 SIZEOF_STRUCT_EPOLL_EVENT
609 MATH_FLAG
610 STRINGOPS_FLAG
611 HAVE_WAIT4_FALSE
612 HAVE_WAIT4_TRUE
613 HAVE_STRERROR_R_FALSE
614 HAVE_STRERROR_R_TRUE
615 HAVE_SYS_MMAN_H_FALSE
616 HAVE_SYS_MMAN_H_TRUE
617 PTHREAD_LIBS
618 PTHREAD_CFLAGS
619 NET_LIBS
620 MATH_LIBS
621 GOC_IS_LLGO_FALSE
622 GOC_IS_LLGO_TRUE
623 GO_SPLIT_STACK
624 USING_SPLIT_STACK_FALSE
625 USING_SPLIT_STACK_TRUE
626 SPLIT_STACK
627 OSCFLAGS
628 GO_SYSCALL_OS_ARCH_FILE
629 GO_SYSCALL_OS_FILE
630 GO_LIBCALL_OS_ARCH_FILE
631 GO_LIBCALL_OS_FILE
632 GOARCH
633 LIBGO_IS_X86_64_FALSE
634 LIBGO_IS_X86_64_TRUE
635 LIBGO_IS_SPARC64_FALSE
636 LIBGO_IS_SPARC64_TRUE
637 LIBGO_IS_SPARC_FALSE
638 LIBGO_IS_SPARC_TRUE
639 LIBGO_IS_S390X_FALSE
640 LIBGO_IS_S390X_TRUE
641 LIBGO_IS_S390_FALSE
642 LIBGO_IS_S390_TRUE
643 LIBGO_IS_PPC64LE_FALSE
644 LIBGO_IS_PPC64LE_TRUE
645 LIBGO_IS_PPC64_FALSE
646 LIBGO_IS_PPC64_TRUE
647 LIBGO_IS_PPC_FALSE
648 LIBGO_IS_PPC_TRUE
649 LIBGO_IS_MIPSO64_FALSE
650 LIBGO_IS_MIPSO64_TRUE
651 LIBGO_IS_MIPSN64_FALSE
652 LIBGO_IS_MIPSN64_TRUE
653 LIBGO_IS_MIPSN32_FALSE
654 LIBGO_IS_MIPSN32_TRUE
655 LIBGO_IS_MIPSO32_FALSE
656 LIBGO_IS_MIPSO32_TRUE
657 LIBGO_IS_MIPS_FALSE
658 LIBGO_IS_MIPS_TRUE
659 LIBGO_IS_M68K_FALSE
660 LIBGO_IS_M68K_TRUE
661 LIBGO_IS_ARM64_FALSE
662 LIBGO_IS_ARM64_TRUE
663 LIBGO_IS_ARM_FALSE
664 LIBGO_IS_ARM_TRUE
665 LIBGO_IS_ALPHA_FALSE
666 LIBGO_IS_ALPHA_TRUE
667 LIBGO_IS_386_FALSE
668 LIBGO_IS_386_TRUE
669 USE_DEJAGNU
670 GOOS
671 LIBGO_IS_SOLARIS_FALSE
672 LIBGO_IS_SOLARIS_TRUE
673 LIBGO_IS_RTEMS_FALSE
674 LIBGO_IS_RTEMS_TRUE
675 LIBGO_IS_DRAGONFLY_FALSE
676 LIBGO_IS_DRAGONFLY_TRUE
677 LIBGO_IS_OPENBSD_FALSE
678 LIBGO_IS_OPENBSD_TRUE
679 LIBGO_IS_NETBSD_FALSE
680 LIBGO_IS_NETBSD_TRUE
681 LIBGO_IS_LINUX_FALSE
682 LIBGO_IS_LINUX_TRUE
683 LIBGO_IS_IRIX_FALSE
684 LIBGO_IS_IRIX_TRUE
685 LIBGO_IS_FREEBSD_FALSE
686 LIBGO_IS_FREEBSD_TRUE
687 LIBGO_IS_DARWIN_FALSE
688 LIBGO_IS_DARWIN_TRUE
689 go_include
690 LIBATOMIC
691 LIBFFIINCS
692 LIBFFI
693 nover_glibgo_toolexeclibdir
694 glibgo_toolexeclibdir
695 glibgo_toolexecdir
696 WERROR
697 WARN_FLAGS
698 CC_FOR_BUILD
699 enable_static
700 enable_shared
702 OTOOL64
703 OTOOL
704 LIPO
705 NMEDIT
706 DSYMUTIL
708 OBJDUMP
709 LN_S
711 ac_ct_DUMPBIN
712 DUMPBIN
713 LIBTOOL
714 OBJCOPY
715 RANLIB
717 FGREP
718 EGREP
719 GREP
721 MAINT
722 MAINTAINER_MODE_FALSE
723 MAINTAINER_MODE_TRUE
724 GOCFLAGS
726 am__fastdepCC_FALSE
727 am__fastdepCC_TRUE
728 CCDEPMODE
729 am__nodep
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__quote
734 am__include
735 DEPDIR
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_os
767 target_vendor
768 target_cpu
769 target
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 multi_basedir
779 libtool_VERSION
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_multilib
822 enable_dependency_tracking
823 enable_maintainer_mode
824 with_gnu_ld
825 enable_shared
826 enable_static
827 with_pic
828 enable_fast_install
829 enable_libtool_lock
830 enable_werror
831 enable_version_specific_runtime_libs
832 with_libffi
833 with_libatomic
834 with_system_libunwind
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
840 CPPFLAGS'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
911 ac_dashdash=yes ;;
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
930 --config-cache | -C)
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information."
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 esac
1248 done
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1334 /^X\(\/\/\)$/{
1335 s//\1/
1338 /^X\(\/\).*/{
1339 s//\1/
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1347 else
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435 _ACEOF
1437 cat <<\_ACEOF
1439 Program names:
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 --target=TARGET configure for building compilers for TARGET [HOST]
1448 _ACEOF
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of package-unused version-unused:";;
1454 esac
1455 cat <<\_ACEOF
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-multilib build many library versions (default)
1462 --disable-dependency-tracking speeds up one-time build
1463 --enable-dependency-tracking do not reject slow dependency extractors
1464 --enable-maintainer-mode enable make rules and dependencies not useful
1465 (and sometimes confusing) to the casual installer
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --enable-werror turns on -Werror [default=yes]
1472 --enable-version-specific-runtime-libs
1473 Specify that runtime libraries should be installed
1474 in a compiler-specific directory
1476 Optional Packages:
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --without-libffi don't use libffi
1483 --without-libatomic don't use libatomic
1484 --with-system-libunwind use installed libunwind
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 GOC Go compiler command
1495 GOCFLAGS Go compiler flags
1496 CPP C preprocessor
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to the package provider.
1502 _ACEOF
1503 ac_status=$?
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 continue
1512 ac_builddir=.
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 package-unused configure version-unused
1565 generated by GNU Autoconf 2.64
1567 Copyright (C) 2009 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570 _ACEOF
1571 exit
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1609 ac_retval=1
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612 return $ac_retval
1614 } # ac_fn_c_try_compile
1616 # ac_fn_c_try_link LINENO
1617 # -----------------------
1618 # Try to link conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_link ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext conftest$ac_exeext
1623 if { { ac_try="$ac_link"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest$ac_exeext && {
1642 test "$cross_compiling" = yes ||
1643 $as_test_x conftest$ac_exeext
1644 }; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1650 ac_retval=1
1652 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1653 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1654 # interfere with the next link command; also delete a directory that is
1655 # left behind by Apple's compiler. We do this before executing the actions.
1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658 return $ac_retval
1660 } # ac_fn_c_try_link
1662 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists and can be compiled using the include files in
1665 # INCLUDES, setting the cache variable VAR accordingly.
1666 ac_fn_c_check_header_compile ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1672 $as_echo_n "(cached) " >&6
1673 else
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1677 #include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 eval "$3=yes"
1681 else
1682 eval "$3=no"
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 } # ac_fn_c_check_header_compile
1693 # ac_fn_c_try_cpp LINENO
1694 # ----------------------
1695 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_cpp ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_cpp conftest.$ac_ext"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } >/dev/null && {
1715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=1
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1728 } # ac_fn_c_try_cpp
1730 # ac_fn_c_try_run LINENO
1731 # ----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1733 # that executables *can* be run.
1734 ac_fn_c_try_run ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_link"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1748 { { case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_try") 2>&5
1755 ac_status=$?
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; }; }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: program exited with status $ac_status" >&5
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1764 ac_retval=$ac_status
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 return $ac_retval
1770 } # ac_fn_c_try_run
1772 # ac_fn_c_check_func LINENO FUNC VAR
1773 # ----------------------------------
1774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 ac_fn_c_check_func ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1787 #define $2 innocuous_$2
1789 /* System header to define __stub macros and hopefully few prototypes,
1790 which can conflict with char $2 (); below.
1791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792 <limits.h> exists even on freestanding compilers. */
1794 #ifdef __STDC__
1795 # include <limits.h>
1796 #else
1797 # include <assert.h>
1798 #endif
1800 #undef $2
1802 /* Override any GCC internal prototype to avoid an error.
1803 Use char because int might match the return type of a GCC
1804 builtin and then its argument prototype would still apply. */
1805 #ifdef __cplusplus
1806 extern "C"
1807 #endif
1808 char $2 ();
1809 /* The GNU C library defines this for functions which it implements
1810 to always fail with ENOSYS. Some functions are actually named
1811 something starting with __ and the normal name is an alias. */
1812 #if defined __stub_$2 || defined __stub___$2
1813 choke me
1814 #endif
1817 main ()
1819 return $2 ();
1821 return 0;
1823 _ACEOF
1824 if ac_fn_c_try_link "$LINENO"; then :
1825 eval "$3=yes"
1826 else
1827 eval "$3=no"
1829 rm -f core conftest.err conftest.$ac_objext \
1830 conftest$ac_exeext conftest.$ac_ext
1832 eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 } # ac_fn_c_check_func
1839 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1840 # -------------------------------------------------------
1841 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1842 # the include files in INCLUDES and setting the cache variable VAR
1843 # accordingly.
1844 ac_fn_c_check_header_mongrel ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851 $as_echo_n "(cached) " >&6
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 else
1857 # Is the header compilable?
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1859 $as_echo_n "checking $2 usability... " >&6; }
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1863 #include <$2>
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 ac_header_compiler=yes
1867 else
1868 ac_header_compiler=no
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1872 $as_echo "$ac_header_compiler" >&6; }
1874 # Is the header present?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1876 $as_echo_n "checking $2 presence... " >&6; }
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 #include <$2>
1880 _ACEOF
1881 if ac_fn_c_try_cpp "$LINENO"; then :
1882 ac_header_preproc=yes
1883 else
1884 ac_header_preproc=no
1886 rm -f conftest.err conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1888 $as_echo "$ac_header_preproc" >&6; }
1890 # So? What about this header?
1891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1892 yes:no: )
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1894 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898 no:yes:* )
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1900 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1902 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1904 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1906 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 esac
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 eval "$3=\$ac_header_compiler"
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 } # ac_fn_c_check_header_mongrel
1926 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1927 # -------------------------------------------
1928 # Tests whether TYPE exists after having included INCLUDES, setting cache
1929 # variable VAR accordingly.
1930 ac_fn_c_check_type ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 eval "$3=no"
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1943 main ()
1945 if (sizeof ($2))
1946 return 0;
1948 return 0;
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1956 main ()
1958 if (sizeof (($2)))
1959 return 0;
1961 return 0;
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1966 else
1967 eval "$3=yes"
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 } # ac_fn_c_check_type
1980 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1981 # --------------------------------------------
1982 # Tries to find the compile-time value of EXPR in a program that includes
1983 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1984 # computed
1985 ac_fn_c_compute_int ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if test "$cross_compiling" = yes; then
1989 # Depending upon the size, compute the lo and hi bounds.
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 main ()
1996 static int test_array [1 - 2 * !(($2) >= 0)];
1997 test_array [0] = 0
2000 return 0;
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_lo=0 ac_mid=0
2005 while :; do
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 main ()
2012 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2013 test_array [0] = 0
2016 return 0;
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_hi=$ac_mid; break
2021 else
2022 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2023 if test $ac_lo -le $ac_mid; then
2024 ac_lo= ac_hi=
2025 break
2027 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 done
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2036 main ()
2038 static int test_array [1 - 2 * !(($2) < 0)];
2039 test_array [0] = 0
2042 return 0;
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_hi=-1 ac_mid=-1
2047 while :; do
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2052 main ()
2054 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2055 test_array [0] = 0
2058 return 0;
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_lo=$ac_mid; break
2063 else
2064 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2065 if test $ac_mid -le $ac_hi; then
2066 ac_lo= ac_hi=
2067 break
2069 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073 else
2074 ac_lo= ac_hi=
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 # Binary search between lo and hi bounds.
2080 while test "x$ac_lo" != "x$ac_hi"; do
2081 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 test_array [0] = 0
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=$ac_mid
2097 else
2098 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 done
2102 case $ac_lo in #((
2103 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2104 '') ac_retval=1 ;;
2105 esac
2106 else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2110 static long int longval () { return $2; }
2111 static unsigned long int ulongval () { return $2; }
2112 #include <stdio.h>
2113 #include <stdlib.h>
2115 main ()
2118 FILE *f = fopen ("conftest.val", "w");
2119 if (! f)
2120 return 1;
2121 if (($2) < 0)
2123 long int i = longval ();
2124 if (i != ($2))
2125 return 1;
2126 fprintf (f, "%ld", i);
2128 else
2130 unsigned long int i = ulongval ();
2131 if (i != ($2))
2132 return 1;
2133 fprintf (f, "%lu", i);
2135 /* Do not output a trailing newline, as this causes \r\n confusion
2136 on some platforms. */
2137 return ferror (f) || fclose (f) != 0;
2140 return 0;
2142 _ACEOF
2143 if ac_fn_c_try_run "$LINENO"; then :
2144 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2145 else
2146 ac_retval=1
2148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2149 conftest.$ac_objext conftest.beam conftest.$ac_ext
2150 rm -f conftest.val
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 return $ac_retval
2156 } # ac_fn_c_compute_int
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2161 It was created by package-unused $as_me version-unused, which was
2162 generated by GNU Autoconf 2.64. Invocation command line was
2164 $ $0 $@
2166 _ACEOF
2167 exec 5>>config.log
2169 cat <<_ASUNAME
2170 ## --------- ##
2171 ## Platform. ##
2172 ## --------- ##
2174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2183 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2184 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2187 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2188 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2189 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2191 _ASUNAME
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 $as_echo "PATH: $as_dir"
2199 done
2200 IFS=$as_save_IFS
2202 } >&5
2204 cat >&5 <<_ACEOF
2207 ## ----------- ##
2208 ## Core tests. ##
2209 ## ----------- ##
2211 _ACEOF
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_configure_args=
2220 ac_configure_args0=
2221 ac_configure_args1=
2222 ac_must_keep_next=false
2223 for ac_pass in 1 2
2225 for ac_arg
2227 case $ac_arg in
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2231 continue ;;
2232 *\'*)
2233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 esac
2235 case $ac_pass in
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2241 else
2242 case $ac_arg in
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249 esac
2251 -* ) ac_must_keep_next=true ;;
2252 esac
2254 as_fn_append ac_configure_args " '$ac_arg'"
2256 esac
2257 done
2258 done
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Save into config.log some information that might help in debugging.
2270 echo
2272 cat <<\_ASBOX
2273 ## ---------------- ##
2274 ## Cache variables. ##
2275 ## ---------------- ##
2276 _ASBOX
2277 echo
2278 # The following way of writing the cache mishandles newlines in values,
2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281 eval ac_val=\$$ac_var
2282 case $ac_val in #(
2283 *${as_nl}*)
2284 case $ac_var in #(
2285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 esac
2288 case $ac_var in #(
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2292 esac ;;
2293 esac
2294 done
2295 (set) 2>&1 |
2296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2298 sed -n \
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 ;; #(
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305 esac |
2306 sort
2308 echo
2310 cat <<\_ASBOX
2311 ## ----------------- ##
2312 ## Output variables. ##
2313 ## ----------------- ##
2314 _ASBOX
2315 echo
2316 for ac_var in $ac_subst_vars
2318 eval ac_val=\$$ac_var
2319 case $ac_val in
2320 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321 esac
2322 $as_echo "$ac_var='\''$ac_val'\''"
2323 done | sort
2324 echo
2326 if test -n "$ac_subst_files"; then
2327 cat <<\_ASBOX
2328 ## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##
2331 _ASBOX
2332 echo
2333 for ac_var in $ac_subst_files
2335 eval ac_val=\$$ac_var
2336 case $ac_val in
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 esac
2339 $as_echo "$ac_var='\''$ac_val'\''"
2340 done | sort
2341 echo
2344 if test -s confdefs.h; then
2345 cat <<\_ASBOX
2346 ## ----------- ##
2347 ## confdefs.h. ##
2348 ## ----------- ##
2349 _ASBOX
2350 echo
2351 cat confdefs.h
2352 echo
2354 test "$ac_signal" != 0 &&
2355 $as_echo "$as_me: caught signal $ac_signal"
2356 $as_echo "$as_me: exit $exit_status"
2357 } >&5
2358 rm -f core *.core core.conftest.* &&
2359 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2360 exit $exit_status
2362 for ac_signal in 1 2 13 15; do
2363 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364 done
2365 ac_signal=0
2367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2368 rm -f -r conftest* confdefs.h
2370 $as_echo "/* confdefs.h */" > confdefs.h
2372 # Predefined preprocessor variables.
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_NAME "$PACKAGE_NAME"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2384 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_STRING "$PACKAGE_STRING"
2388 _ACEOF
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2392 _ACEOF
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_URL "$PACKAGE_URL"
2396 _ACEOF
2399 # Let the site file select an alternate cache file if it wants to.
2400 # Prefer an explicitly selected file to automatically selected ones.
2401 ac_site_file1=NONE
2402 ac_site_file2=NONE
2403 if test -n "$CONFIG_SITE"; then
2404 ac_site_file1=$CONFIG_SITE
2405 elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2408 else
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2412 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2414 test "x$ac_site_file" = xNONE && continue
2415 if test -r "$ac_site_file"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418 sed 's/^/| /' "$ac_site_file" >&5
2419 . "$ac_site_file"
2421 done
2423 if test -r "$cache_file"; then
2424 # Some versions of bash will fail to source /dev/null (special
2425 # files actually), so we avoid doing that.
2426 if test -f "$cache_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2428 $as_echo "$as_me: loading cache $cache_file" >&6;}
2429 case $cache_file in
2430 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431 *) . "./$cache_file";;
2432 esac
2434 else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2436 $as_echo "$as_me: creating cache $cache_file" >&6;}
2437 >$cache_file
2440 # Check that the precious variables saved in the cache have kept the same
2441 # value.
2442 ac_cache_corrupted=false
2443 for ac_var in $ac_precious_vars; do
2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445 eval ac_new_set=\$ac_env_${ac_var}_set
2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447 eval ac_new_val=\$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2449 set,)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,set)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,);;
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w=`echo x $ac_old_val`
2462 ac_new_val_w=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted=:
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\$ac_old_val
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2473 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2475 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2476 fi;;
2477 esac
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2480 case $ac_new_val in
2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg=$ac_var=$ac_new_val ;;
2483 esac
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487 esac
2489 done
2490 if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2497 ## -------------------- ##
2498 ## Main body of script. ##
2499 ## -------------------- ##
2501 ac_ext=c
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512 ac_config_headers="$ac_config_headers config.h"
2515 libtool_VERSION=8:0:0
2518 # Default to --enable-multilib
2519 # Check whether --enable-multilib was given.
2520 if test "${enable_multilib+set}" = set; then :
2521 enableval=$enable_multilib; case "$enableval" in
2522 yes) multilib=yes ;;
2523 no) multilib=no ;;
2524 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2525 esac
2526 else
2527 multilib=yes
2531 # We may get other options which we leave undocumented:
2532 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2533 # See config-ml.in if you want the gory details.
2535 if test "$srcdir" = "."; then
2536 if test "$with_target_subdir" != "."; then
2537 multi_basedir="$srcdir/$with_multisrctop../.."
2538 else
2539 multi_basedir="$srcdir/$with_multisrctop.."
2541 else
2542 multi_basedir="$srcdir/.."
2546 # Even if the default multilib is not a cross compilation,
2547 # it may be that some of the other multilibs are.
2548 if test $cross_compiling = no && test $multilib = yes \
2549 && test "x${with_multisubdir}" != x ; then
2550 cross_compiling=maybe
2553 ac_config_commands="$ac_config_commands default-1"
2556 ac_aux_dir=
2557 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2558 for ac_t in install-sh install.sh shtool; do
2559 if test -f "$ac_dir/$ac_t"; then
2560 ac_aux_dir=$ac_dir
2561 ac_install_sh="$ac_aux_dir/$ac_t -c"
2562 break 2
2564 done
2565 done
2566 if test -z "$ac_aux_dir"; then
2567 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2570 # These three variables are undocumented and unsupported,
2571 # and are intended to be withdrawn in a future Autoconf release.
2572 # They can cause serious problems if a builder's source tree is in a directory
2573 # whose full name contains unusual characters.
2574 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2575 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2576 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2579 # Make sure we can run config.sub.
2580 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2581 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2584 $as_echo_n "checking build system type... " >&6; }
2585 if test "${ac_cv_build+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 ac_build_alias=$build_alias
2589 test "x$ac_build_alias" = x &&
2590 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2591 test "x$ac_build_alias" = x &&
2592 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2594 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2598 $as_echo "$ac_cv_build" >&6; }
2599 case $ac_cv_build in
2600 *-*-*) ;;
2601 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2602 esac
2603 build=$ac_cv_build
2604 ac_save_IFS=$IFS; IFS='-'
2605 set x $ac_cv_build
2606 shift
2607 build_cpu=$1
2608 build_vendor=$2
2609 shift; shift
2610 # Remember, the first character of IFS is used to create $*,
2611 # except with old shells:
2612 build_os=$*
2613 IFS=$ac_save_IFS
2614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2618 $as_echo_n "checking host system type... " >&6; }
2619 if test "${ac_cv_host+set}" = set; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 if test "x$host_alias" = x; then
2623 ac_cv_host=$ac_cv_build
2624 else
2625 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2626 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2631 $as_echo "$ac_cv_host" >&6; }
2632 case $ac_cv_host in
2633 *-*-*) ;;
2634 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2635 esac
2636 host=$ac_cv_host
2637 ac_save_IFS=$IFS; IFS='-'
2638 set x $ac_cv_host
2639 shift
2640 host_cpu=$1
2641 host_vendor=$2
2642 shift; shift
2643 # Remember, the first character of IFS is used to create $*,
2644 # except with old shells:
2645 host_os=$*
2646 IFS=$ac_save_IFS
2647 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2651 $as_echo_n "checking target system type... " >&6; }
2652 if test "${ac_cv_target+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test "x$target_alias" = x; then
2656 ac_cv_target=$ac_cv_host
2657 else
2658 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2659 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2664 $as_echo "$ac_cv_target" >&6; }
2665 case $ac_cv_target in
2666 *-*-*) ;;
2667 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2668 esac
2669 target=$ac_cv_target
2670 ac_save_IFS=$IFS; IFS='-'
2671 set x $ac_cv_target
2672 shift
2673 target_cpu=$1
2674 target_vendor=$2
2675 shift; shift
2676 # Remember, the first character of IFS is used to create $*,
2677 # except with old shells:
2678 target_os=$*
2679 IFS=$ac_save_IFS
2680 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2683 # The aliases save the names the user supplied, while $host etc.
2684 # will get canonicalized.
2685 test -n "$target_alias" &&
2686 test "$program_prefix$program_suffix$program_transform_name" = \
2687 NONENONEs,x,x, &&
2688 program_prefix=${target_alias}-
2690 target_alias=${target_alias-$host_alias}
2692 am__api_version='1.11'
2694 # Find a good install program. We prefer a C program (faster),
2695 # so one script is as good as another. But avoid the broken or
2696 # incompatible versions:
2697 # SysV /etc/install, /usr/sbin/install
2698 # SunOS /usr/etc/install
2699 # IRIX /sbin/install
2700 # AIX /bin/install
2701 # AmigaOS /C/install, which installs bootblocks on floppy discs
2702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2705 # OS/2's system install, which has a completely different semantic
2706 # ./install, which can be erroneously created by make from ./install.sh.
2707 # Reject install programs that cannot install multiple files.
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2709 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2710 if test -z "$INSTALL"; then
2711 if test "${ac_cv_path_install+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 # Account for people who put trailing slashes in PATH elements.
2720 case $as_dir/ in #((
2721 ./ | .// | /[cC]/* | \
2722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2723 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2724 /usr/ucb/* ) ;;
2726 # OSF1 and SCO ODT 3.0 have their own names for install.
2727 # Don't use installbsd from OSF since it installs stuff as root
2728 # by default.
2729 for ac_prog in ginstall scoinst install; do
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2732 if test $ac_prog = install &&
2733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # AIX install. It has an incompatible calling convention.
2736 elif test $ac_prog = install &&
2737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738 # program-specific install script used by HP pwplus--don't use.
2740 else
2741 rm -rf conftest.one conftest.two conftest.dir
2742 echo one > conftest.one
2743 echo two > conftest.two
2744 mkdir conftest.dir
2745 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2746 test -s conftest.one && test -s conftest.two &&
2747 test -s conftest.dir/conftest.one &&
2748 test -s conftest.dir/conftest.two
2749 then
2750 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2751 break 3
2755 done
2756 done
2758 esac
2760 done
2761 IFS=$as_save_IFS
2763 rm -rf conftest.one conftest.two conftest.dir
2766 if test "${ac_cv_path_install+set}" = set; then
2767 INSTALL=$ac_cv_path_install
2768 else
2769 # As a last resort, use the slow shell script. Don't cache a
2770 # value for INSTALL within a source directory, because that will
2771 # break other packages using the cache if that directory is
2772 # removed, or if the value is a relative name.
2773 INSTALL=$ac_install_sh
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2777 $as_echo "$INSTALL" >&6; }
2779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2780 # It thinks the first close brace ends the variable substitution.
2781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2788 $as_echo_n "checking whether build environment is sane... " >&6; }
2789 # Just in case
2790 sleep 1
2791 echo timestamp > conftest.file
2792 # Reject unsafe characters in $srcdir or the absolute working directory
2793 # name. Accept space and tab only in the latter.
2794 am_lf='
2796 case `pwd` in
2797 *[\\\"\#\$\&\'\`$am_lf]*)
2798 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2799 esac
2800 case $srcdir in
2801 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2802 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2803 esac
2805 # Do `set' in a subshell so we don't clobber the current shell's
2806 # arguments. Must try -L first in case configure is actually a
2807 # symlink; some systems play weird games with the mod time of symlinks
2808 # (eg FreeBSD returns the mod time of the symlink's containing
2809 # directory).
2810 if (
2811 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2812 if test "$*" = "X"; then
2813 # -L didn't work.
2814 set X `ls -t "$srcdir/configure" conftest.file`
2816 rm -f conftest.file
2817 if test "$*" != "X $srcdir/configure conftest.file" \
2818 && test "$*" != "X conftest.file $srcdir/configure"; then
2820 # If neither matched, then we have a broken ls. This can happen
2821 # if, for instance, CONFIG_SHELL is bash and it inherits a
2822 # broken ls alias from the environment. This has actually
2823 # happened. Such a system could not be considered "sane".
2824 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2825 alias in your environment" "$LINENO" 5
2828 test "$2" = conftest.file
2830 then
2831 # Ok.
2833 else
2834 as_fn_error "newly created file is older than distributed files!
2835 Check your system clock" "$LINENO" 5
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838 $as_echo "yes" >&6; }
2839 test "$program_prefix" != NONE &&
2840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2841 # Use a double $ so make ignores it.
2842 test "$program_suffix" != NONE &&
2843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2844 # Double any \ or $.
2845 # By default was `s,x,x', remove it if useless.
2846 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2847 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2849 # expand $ac_aux_dir to an absolute path
2850 am_aux_dir=`cd $ac_aux_dir && pwd`
2852 if test x"${MISSING+set}" != xset; then
2853 case $am_aux_dir in
2854 *\ * | *\ *)
2855 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2857 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2858 esac
2860 # Use eval to expand $SHELL
2861 if eval "$MISSING --run true"; then
2862 am_missing_run="$MISSING --run "
2863 else
2864 am_missing_run=
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2866 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2869 if test x"${install_sh}" != xset; then
2870 case $am_aux_dir in
2871 *\ * | *\ *)
2872 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2874 install_sh="\${SHELL} $am_aux_dir/install-sh"
2875 esac
2878 # Installed binaries are usually stripped using `strip' when the user
2879 # run `make install-strip'. However `strip' might not be the right
2880 # tool to use in cross-compilation environments, therefore Automake
2881 # will honor the `STRIP' environment variable to overrule this program.
2882 if test "$cross_compiling" != no; then
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}strip; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_STRIP+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$STRIP"; then
2892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2905 done
2906 done
2907 IFS=$as_save_IFS
2911 STRIP=$ac_cv_prog_STRIP
2912 if test -n "$STRIP"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2914 $as_echo "$STRIP" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2922 if test -z "$ac_cv_prog_STRIP"; then
2923 ac_ct_STRIP=$STRIP
2924 # Extract the first word of "strip", so it can be a program name with args.
2925 set dummy strip; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$ac_ct_STRIP"; then
2932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_STRIP="strip"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2945 done
2946 done
2947 IFS=$as_save_IFS
2951 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2952 if test -n "$ac_ct_STRIP"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2954 $as_echo "$ac_ct_STRIP" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2960 if test "x$ac_ct_STRIP" = x; then
2961 STRIP=":"
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 STRIP=$ac_ct_STRIP
2971 else
2972 STRIP="$ac_cv_prog_STRIP"
2976 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2980 if test -z "$MKDIR_P"; then
2981 if test "${ac_cv_path_mkdir+set}" = set; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_prog in mkdir gmkdir; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2992 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2993 'mkdir (GNU coreutils) '* | \
2994 'mkdir (coreutils) '* | \
2995 'mkdir (fileutils) '4.1*)
2996 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2997 break 3;;
2998 esac
2999 done
3000 done
3001 done
3002 IFS=$as_save_IFS
3006 if test "${ac_cv_path_mkdir+set}" = set; then
3007 MKDIR_P="$ac_cv_path_mkdir -p"
3008 else
3009 # As a last resort, use the slow shell script. Don't cache a
3010 # value for MKDIR_P within a source directory, because that will
3011 # break other packages using the cache if that directory is
3012 # removed, or if the value is a relative name.
3013 test -d ./--version && rmdir ./--version
3014 MKDIR_P="$ac_install_sh -d"
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3018 $as_echo "$MKDIR_P" >&6; }
3020 mkdir_p="$MKDIR_P"
3021 case $mkdir_p in
3022 [\\/$]* | ?:[\\/]*) ;;
3023 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3024 esac
3026 for ac_prog in gawk mawk nawk awk
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_AWK+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$AWK"; then
3036 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_AWK="$ac_prog"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3049 done
3050 done
3051 IFS=$as_save_IFS
3055 AWK=$ac_cv_prog_AWK
3056 if test -n "$AWK"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3058 $as_echo "$AWK" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3065 test -n "$AWK" && break
3066 done
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3069 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3070 set x ${MAKE-make}
3071 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3072 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 cat >conftest.make <<\_ACEOF
3076 SHELL = /bin/sh
3077 all:
3078 @echo '@@@%%%=$(MAKE)=@@@%%%'
3079 _ACEOF
3080 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3081 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3082 *@@@%%%=?*=@@@%%%*)
3083 eval ac_cv_prog_make_${ac_make}_set=yes;;
3085 eval ac_cv_prog_make_${ac_make}_set=no;;
3086 esac
3087 rm -f conftest.make
3089 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091 $as_echo "yes" >&6; }
3092 SET_MAKE=
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 SET_MAKE="MAKE=${MAKE-make}"
3099 rm -rf .tst 2>/dev/null
3100 mkdir .tst 2>/dev/null
3101 if test -d .tst; then
3102 am__leading_dot=.
3103 else
3104 am__leading_dot=_
3106 rmdir .tst 2>/dev/null
3108 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3109 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3110 # is not polluted with repeated "-I."
3111 am__isrc=' -I$(srcdir)'
3112 # test to see if srcdir already configured
3113 if test -f $srcdir/config.status; then
3114 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3118 # test whether we have cygpath
3119 if test -z "$CYGPATH_W"; then
3120 if (cygpath --version) >/dev/null 2>/dev/null; then
3121 CYGPATH_W='cygpath -w'
3122 else
3123 CYGPATH_W=echo
3128 # Define the identity of the package.
3129 PACKAGE='libgo'
3130 VERSION='version-unused'
3133 # Some tools Automake needs.
3135 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3138 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3141 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3144 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3147 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3149 # We need awk for the "check" target. The system "awk" is bad on
3150 # some platforms.
3151 # Always define AMTAR for backward compatibility. Yes, it's still used
3152 # in the wild :-( We should find a proper way to deprecate it ...
3153 AMTAR='$${TAR-tar}'
3155 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if test "${ac_cv_prog_CC+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3193 done
3194 done
3195 IFS=$as_save_IFS
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3210 if test -z "$ac_cv_prog_CC"; then
3211 ac_ct_CC=$CC
3212 # Extract the first word of "gcc", so it can be a program name with args.
3213 set dummy gcc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 if test -n "$ac_ct_CC"; then
3220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229 ac_cv_prog_ac_ct_CC="gcc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3233 done
3234 done
3235 IFS=$as_save_IFS
3239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3240 if test -n "$ac_ct_CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3242 $as_echo "$ac_ct_CC" >&6; }
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3248 if test "x$ac_ct_CC" = x; then
3249 CC=""
3250 else
3251 case $cross_compiling:$ac_tool_warned in
3252 yes:)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3256 esac
3257 CC=$ac_ct_CC
3259 else
3260 CC="$ac_cv_prog_CC"
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}cc; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if test "${ac_cv_prog_CC+set}" = set; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_CC="${ac_tool_prefix}cc"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3286 done
3287 done
3288 IFS=$as_save_IFS
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 $as_echo "$CC" >&6; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3304 if test -z "$CC"; then
3305 # Extract the first word of "cc", so it can be a program name with args.
3306 set dummy cc; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if test "${ac_cv_prog_CC+set}" = set; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 else
3315 ac_prog_rejected=no
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3324 ac_prog_rejected=yes
3325 continue
3327 ac_cv_prog_CC="cc"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3333 IFS=$as_save_IFS
3335 if test $ac_prog_rejected = yes; then
3336 # We found a bogon in the path, so make sure we never use it.
3337 set dummy $ac_cv_prog_CC
3338 shift
3339 if test $# != 0; then
3340 # We chose a different compiler from the bogus one.
3341 # However, it has the same basename, so the bogon will be chosen
3342 # first if we set CC to just the basename; use the full file name.
3343 shift
3344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3349 CC=$ac_cv_prog_CC
3350 if test -n "$CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352 $as_echo "$CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 for ac_prog in cl.exe
3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3401 test -n "$CC" && break
3402 done
3404 if test -z "$CC"; then
3405 ac_ct_CC=$CC
3406 for ac_prog in cl.exe
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$ac_ct_CC"; then
3416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_ac_ct_CC="$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3431 IFS=$as_save_IFS
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 $as_echo "$ac_ct_CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3445 test -n "$ac_ct_CC" && break
3446 done
3448 if test "x$ac_ct_CC" = x; then
3449 CC=""
3450 else
3451 case $cross_compiling:$ac_tool_warned in
3452 yes:)
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455 ac_tool_warned=yes ;;
3456 esac
3457 CC=$ac_ct_CC
3464 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error "no acceptable C compiler found in \$PATH
3467 See \`config.log' for more details." "$LINENO" 5; }
3469 # Provide some information about the compiler.
3470 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3471 set X $ac_compile
3472 ac_compiler=$2
3473 for ac_option in --version -v -V -qversion; do
3474 { { ac_try="$ac_compiler $ac_option >&5"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3482 ac_status=$?
3483 if test -s conftest.err; then
3484 sed '10a\
3485 ... rest of stderr output deleted ...
3486 10q' conftest.err >conftest.er1
3487 cat conftest.er1 >&5
3488 rm -f conftest.er1 conftest.err
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3492 done
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3498 main ()
3502 return 0;
3504 _ACEOF
3505 ac_clean_files_save=$ac_clean_files
3506 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3507 # Try to create an executable without -o first, disregard a.out.
3508 # It will help us diagnose broken compilers, and finding out an intuition
3509 # of exeext.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3511 $as_echo_n "checking for C compiler default output file name... " >&6; }
3512 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3514 # The possible output files:
3515 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3517 ac_rmfiles=
3518 for ac_file in $ac_files
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523 esac
3524 done
3525 rm -f $ac_rmfiles
3527 if { { ac_try="$ac_link_default"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link_default") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; then :
3538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3541 # so that the user can short-circuit this test for compilers unknown to
3542 # Autoconf.
3543 for ac_file in $ac_files ''
3545 test -f "$ac_file" || continue
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3549 [ab].out )
3550 # We found the default executable, but exeext='' is most
3551 # certainly right.
3552 break;;
3553 *.* )
3554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3555 then :; else
3556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3558 # We set ac_cv_exeext here because the later test for it is not
3559 # safe: cross compilers may not add the suffix if given an `-o'
3560 # argument, so we may need to know it at that point already.
3561 # Even if this section looks crufty: it has the advantage of
3562 # actually working.
3563 break;;
3565 break;;
3566 esac
3567 done
3568 test "$ac_cv_exeext" = no && ac_cv_exeext=
3570 else
3571 ac_file=''
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3574 $as_echo "$ac_file" >&6; }
3575 if test -z "$ac_file"; then :
3576 $as_echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 { as_fn_set_status 77
3582 as_fn_error "C compiler cannot create executables
3583 See \`config.log' for more details." "$LINENO" 5; }; }
3585 ac_exeext=$ac_cv_exeext
3587 # Check that the compiler produces executables we can run. If not, either
3588 # the compiler is broken, or we cross compile.
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3590 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 # If not cross compiling, check that we can run a simple program.
3592 if test "$cross_compiling" != yes; then
3593 if { ac_try='./$ac_file'
3594 { { case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_try") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; }; then
3604 cross_compiling=no
3605 else
3606 if test "$cross_compiling" = maybe; then
3607 cross_compiling=yes
3608 else
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error "cannot run C compiled programs.
3612 If you meant to cross compile, use \`--host'.
3613 See \`config.log' for more details." "$LINENO" 5; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3618 $as_echo "yes" >&6; }
3620 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3621 ac_clean_files=$ac_clean_files_save
3622 # Check that the compiler produces executables we can run. If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625 $as_echo_n "checking whether we are cross compiling... " >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3627 $as_echo "$cross_compiling" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3630 $as_echo_n "checking for suffix of executables... " >&6; }
3631 if { { ac_try="$ac_link"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_link") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3644 # work properly (i.e., refer to `conftest.exe'), while it won't with
3645 # `rm'.
3646 for ac_file in conftest.exe conftest conftest.*; do
3647 test -f "$ac_file" || continue
3648 case $ac_file in
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651 break;;
3652 * ) break;;
3653 esac
3654 done
3655 else
3656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658 as_fn_error "cannot compute suffix of executables: cannot compile and link
3659 See \`config.log' for more details." "$LINENO" 5; }
3661 rm -f conftest$ac_cv_exeext
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3663 $as_echo "$ac_cv_exeext" >&6; }
3665 rm -f conftest.$ac_ext
3666 EXEEXT=$ac_cv_exeext
3667 ac_exeext=$EXEEXT
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3669 $as_echo_n "checking for suffix of object files... " >&6; }
3670 if test "${ac_cv_objext+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3677 main ()
3681 return 0;
3683 _ACEOF
3684 rm -f conftest.o conftest.obj
3685 if { { ac_try="$ac_compile"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_compile") 2>&5
3693 ac_status=$?
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3696 for ac_file in conftest.o conftest.obj conftest.*; do
3697 test -f "$ac_file" || continue;
3698 case $ac_file in
3699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3701 break;;
3702 esac
3703 done
3704 else
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error "cannot compute suffix of object files: cannot compile
3711 See \`config.log' for more details." "$LINENO" 5; }
3713 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3716 $as_echo "$ac_cv_objext" >&6; }
3717 OBJEXT=$ac_cv_objext
3718 ac_objext=$OBJEXT
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3720 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3721 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3728 main ()
3730 #ifndef __GNUC__
3731 choke me
3732 #endif
3735 return 0;
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_compiler_gnu=yes
3740 else
3741 ac_compiler_gnu=no
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3748 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3749 if test $ac_compiler_gnu = yes; then
3750 GCC=yes
3751 else
3752 GCC=
3754 ac_test_CFLAGS=${CFLAGS+set}
3755 ac_save_CFLAGS=$CFLAGS
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3757 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3758 if test "${ac_cv_prog_cc_g+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 ac_save_c_werror_flag=$ac_c_werror_flag
3762 ac_c_werror_flag=yes
3763 ac_cv_prog_cc_g=no
3764 CFLAGS="-g"
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3769 main ()
3773 return 0;
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_g=yes
3778 else
3779 CFLAGS=""
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3784 main ()
3788 return 0;
3790 _ACEOF
3791 if ac_fn_c_try_compile "$LINENO"; then :
3793 else
3794 ac_c_werror_flag=$ac_save_c_werror_flag
3795 CFLAGS="-g"
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3800 main ()
3804 return 0;
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_g=yes
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_c_werror_flag=$ac_save_c_werror_flag
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3818 $as_echo "$ac_cv_prog_cc_g" >&6; }
3819 if test "$ac_test_CFLAGS" = set; then
3820 CFLAGS=$ac_save_CFLAGS
3821 elif test $ac_cv_prog_cc_g = yes; then
3822 if test "$GCC" = yes; then
3823 CFLAGS="-g -O2"
3824 else
3825 CFLAGS="-g"
3827 else
3828 if test "$GCC" = yes; then
3829 CFLAGS="-O2"
3830 else
3831 CFLAGS=
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3835 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3836 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 ac_cv_prog_cc_c89=no
3840 ac_save_CC=$CC
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843 #include <stdarg.h>
3844 #include <stdio.h>
3845 #include <sys/types.h>
3846 #include <sys/stat.h>
3847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3848 struct buf { int x; };
3849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3850 static char *e (p, i)
3851 char **p;
3852 int i;
3854 return p[i];
3856 static char *f (char * (*g) (char **, int), char **p, ...)
3858 char *s;
3859 va_list v;
3860 va_start (v,p);
3861 s = g (p, va_arg (v,int));
3862 va_end (v);
3863 return s;
3866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3867 function prototypes and stuff, but not '\xHH' hex character constants.
3868 These don't provoke an error unfortunately, instead are silently treated
3869 as 'x'. The following induces an error, until -std is added to get
3870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3871 array size at least. It's necessary to write '\x00'==0 to get something
3872 that's true only with -std. */
3873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3876 inside strings and character constants. */
3877 #define FOO(x) 'x'
3878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3880 int test (int i, double x);
3881 struct s1 {int (*f) (int a);};
3882 struct s2 {int (*f) (double a);};
3883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3884 int argc;
3885 char **argv;
3887 main ()
3889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3891 return 0;
3893 _ACEOF
3894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3897 CC="$ac_save_CC $ac_arg"
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899 ac_cv_prog_cc_c89=$ac_arg
3901 rm -f core conftest.err conftest.$ac_objext
3902 test "x$ac_cv_prog_cc_c89" != "xno" && break
3903 done
3904 rm -f conftest.$ac_ext
3905 CC=$ac_save_CC
3908 # AC_CACHE_VAL
3909 case "x$ac_cv_prog_cc_c89" in
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3912 $as_echo "none needed" >&6; } ;;
3913 xno)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3915 $as_echo "unsupported" >&6; } ;;
3917 CC="$CC $ac_cv_prog_cc_c89"
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3920 esac
3921 if test "x$ac_cv_prog_cc_c89" != xno; then :
3925 ac_ext=c
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930 DEPDIR="${am__leading_dot}deps"
3932 ac_config_commands="$ac_config_commands depfiles"
3935 am_make=${MAKE-make}
3936 cat > confinc << 'END'
3937 am__doit:
3938 @echo this is the am__doit target
3939 .PHONY: am__doit
3941 # If we don't find an include directive, just comment out the code.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3943 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3944 am__include="#"
3945 am__quote=
3946 _am_result=none
3947 # First try GNU make style include.
3948 echo "include confinc" > confmf
3949 # Ignore all kinds of additional output from `make'.
3950 case `$am_make -s -f confmf 2> /dev/null` in #(
3951 *the\ am__doit\ target*)
3952 am__include=include
3953 am__quote=
3954 _am_result=GNU
3956 esac
3957 # Now try BSD make style include.
3958 if test "$am__include" = "#"; then
3959 echo '.include "confinc"' > confmf
3960 case `$am_make -s -f confmf 2> /dev/null` in #(
3961 *the\ am__doit\ target*)
3962 am__include=.include
3963 am__quote="\""
3964 _am_result=BSD
3966 esac
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3971 $as_echo "$_am_result" >&6; }
3972 rm -f confinc confmf
3974 # Check whether --enable-dependency-tracking was given.
3975 if test "${enable_dependency_tracking+set}" = set; then :
3976 enableval=$enable_dependency_tracking;
3979 if test "x$enable_dependency_tracking" != xno; then
3980 am_depcomp="$ac_aux_dir/depcomp"
3981 AMDEPBACKSLASH='\'
3982 am__nodep='_no'
3984 if test "x$enable_dependency_tracking" != xno; then
3985 AMDEP_TRUE=
3986 AMDEP_FALSE='#'
3987 else
3988 AMDEP_TRUE='#'
3989 AMDEP_FALSE=
3994 depcc="$CC" am_compiler_list=
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3997 $as_echo_n "checking dependency style of $depcc... " >&6; }
3998 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4002 # We make a subdir and do the tests there. Otherwise we can end up
4003 # making bogus files that we don't know about and never remove. For
4004 # instance it was reported that on HP-UX the gcc test will end up
4005 # making a dummy file named `D' -- because `-MD' means `put the output
4006 # in D'.
4007 rm -rf conftest.dir
4008 mkdir conftest.dir
4009 # Copy depcomp to subdir because otherwise we won't find it if we're
4010 # using a relative directory.
4011 cp "$am_depcomp" conftest.dir
4012 cd conftest.dir
4013 # We will build objects and dependencies in a subdirectory because
4014 # it helps to detect inapplicable dependency modes. For instance
4015 # both Tru64's cc and ICC support -MD to output dependencies as a
4016 # side effect of compilation, but ICC will put the dependencies in
4017 # the current directory while Tru64 will put them in the object
4018 # directory.
4019 mkdir sub
4021 am_cv_CC_dependencies_compiler_type=none
4022 if test "$am_compiler_list" = ""; then
4023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4025 am__universal=false
4026 case " $depcc " in #(
4027 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4028 esac
4030 for depmode in $am_compiler_list; do
4031 # Setup a source with many dependencies, because some compilers
4032 # like to wrap large dependency lists on column 80 (with \), and
4033 # we should not choose a depcomp mode which is confused by this.
4035 # We need to recreate these files for each test, as the compiler may
4036 # overwrite some of them when testing with obscure command lines.
4037 # This happens at least with the AIX C compiler.
4038 : > sub/conftest.c
4039 for i in 1 2 3 4 5 6; do
4040 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4041 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4042 # Solaris 8's {/usr,}/bin/sh.
4043 touch sub/conftst$i.h
4044 done
4045 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4047 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4048 # mode. It turns out that the SunPro C++ compiler does not properly
4049 # handle `-M -o', and we need to detect this. Also, some Intel
4050 # versions had trouble with output in subdirs
4051 am__obj=sub/conftest.${OBJEXT-o}
4052 am__minus_obj="-o $am__obj"
4053 case $depmode in
4054 gcc)
4055 # This depmode causes a compiler race in universal mode.
4056 test "$am__universal" = false || continue
4058 nosideeffect)
4059 # after this tag, mechanisms are not by side-effect, so they'll
4060 # only be used when explicitly requested
4061 if test "x$enable_dependency_tracking" = xyes; then
4062 continue
4063 else
4064 break
4067 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4068 # This compiler won't grok `-c -o', but also, the minuso test has
4069 # not run yet. These depmodes are late enough in the game, and
4070 # so weak that their functioning should not be impacted.
4071 am__obj=conftest.${OBJEXT-o}
4072 am__minus_obj=
4074 none) break ;;
4075 esac
4076 if depmode=$depmode \
4077 source=sub/conftest.c object=$am__obj \
4078 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4079 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4080 >/dev/null 2>conftest.err &&
4081 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4082 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4083 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4084 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4085 # icc doesn't choke on unknown options, it will just issue warnings
4086 # or remarks (even with -Werror). So we grep stderr for any message
4087 # that says an option was ignored or not supported.
4088 # When given -MP, icc 7.0 and 7.1 complain thusly:
4089 # icc: Command line warning: ignoring option '-M'; no argument required
4090 # The diagnosis changed in icc 8.0:
4091 # icc: Command line remark: option '-MP' not supported
4092 if (grep 'ignoring option' conftest.err ||
4093 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4094 am_cv_CC_dependencies_compiler_type=$depmode
4095 break
4098 done
4100 cd ..
4101 rm -rf conftest.dir
4102 else
4103 am_cv_CC_dependencies_compiler_type=none
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4108 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4109 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4112 test "x$enable_dependency_tracking" != xno \
4113 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4114 am__fastdepCC_TRUE=
4115 am__fastdepCC_FALSE='#'
4116 else
4117 am__fastdepCC_TRUE='#'
4118 am__fastdepCC_FALSE=
4122 ac_ext=go
4123 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4124 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compile_gnu=yes
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if test "${ac_cv_prog_GOC+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$GOC"; then
4135 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4154 GOC=$ac_cv_prog_GOC
4155 if test -n "$GOC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4157 $as_echo "$GOC" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4165 if test -z "$ac_cv_prog_GOC"; then
4166 ac_ct_GOC=$GOC
4167 # Extract the first word of "gccgo", so it can be a program name with args.
4168 set dummy gccgo; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$ac_ct_GOC"; then
4175 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_ac_ct_GOC="gccgo"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4195 if test -n "$ac_ct_GOC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4197 $as_echo "$ac_ct_GOC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4203 if test "x$ac_ct_GOC" = x; then
4204 GOC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212 GOC=$ac_ct_GOC
4214 else
4215 GOC="$ac_cv_prog_GOC"
4218 if test -z "$GOC"; then
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if test "${ac_cv_prog_GOC+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$GOC"; then
4228 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4241 done
4242 done
4243 IFS=$as_save_IFS
4247 GOC=$ac_cv_prog_GOC
4248 if test -n "$GOC"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4250 $as_echo "$GOC" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4259 if test -z "$GOC"; then
4260 # Extract the first word of "gccgo", so it can be a program name with args.
4261 set dummy gccgo; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if test "${ac_cv_prog_GOC+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if test -n "$GOC"; then
4268 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4269 else
4270 ac_prog_rejected=no
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4279 ac_prog_rejected=yes
4280 continue
4282 ac_cv_prog_GOC="gccgo"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4290 if test $ac_prog_rejected = yes; then
4291 # We found a bogon in the path, so make sure we never use it.
4292 set dummy $ac_cv_prog_GOC
4293 shift
4294 if test $# != 0; then
4295 # We chose a different compiler from the bogus one.
4296 # However, it has the same basename, so the bogon will be chosen
4297 # first if we set GOC to just the basename; use the full file name.
4298 shift
4299 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4304 GOC=$ac_cv_prog_GOC
4305 if test -n "$GOC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4307 $as_echo "$GOC" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4317 # Provide some information about the compiler.
4318 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4319 set X $ac_compile
4320 ac_compiler=$2
4321 { { ac_try="$ac_compiler --version >&5"
4322 case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_compiler --version >&5") 2>conftest.err
4329 ac_status=$?
4330 if test -s conftest.err; then
4331 sed '10a\
4332 ... rest of stderr output deleted ...
4333 10q' conftest.err >conftest.er1
4334 cat conftest.er1 >&5
4335 rm -f conftest.er1 conftest.err
4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; }
4339 GOCFLAGS="-g -O2"
4340 ac_ext=c
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4352 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4353 # Check whether --enable-maintainer-mode was given.
4354 if test "${enable_maintainer_mode+set}" = set; then :
4355 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4356 else
4357 USE_MAINTAINER_MODE=no
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4361 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4362 if test $USE_MAINTAINER_MODE = yes; then
4363 MAINTAINER_MODE_TRUE=
4364 MAINTAINER_MODE_FALSE='#'
4365 else
4366 MAINTAINER_MODE_TRUE='#'
4367 MAINTAINER_MODE_FALSE=
4370 MAINT=$MAINTAINER_MODE_TRUE
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4375 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4376 if test "${ac_cv_path_SED+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4380 for ac_i in 1 2 3 4 5 6 7; do
4381 ac_script="$ac_script$as_nl$ac_script"
4382 done
4383 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4384 { ac_script=; unset ac_script;}
4385 if test -z "$SED"; then
4386 ac_path_SED_found=false
4387 # Loop through the user's path and test for each of PROGNAME-LIST
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_prog in sed gsed; do
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4396 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4397 # Check for GNU ac_path_SED and select it if it is found.
4398 # Check for GNU $ac_path_SED
4399 case `"$ac_path_SED" --version 2>&1` in
4400 *GNU*)
4401 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4403 ac_count=0
4404 $as_echo_n 0123456789 >"conftest.in"
4405 while :
4407 cat "conftest.in" "conftest.in" >"conftest.tmp"
4408 mv "conftest.tmp" "conftest.in"
4409 cp "conftest.in" "conftest.nl"
4410 $as_echo '' >> "conftest.nl"
4411 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413 as_fn_arith $ac_count + 1 && ac_count=$as_val
4414 if test $ac_count -gt ${ac_path_SED_max-0}; then
4415 # Best one so far, save it but keep looking for a better one
4416 ac_cv_path_SED="$ac_path_SED"
4417 ac_path_SED_max=$ac_count
4419 # 10*(2^10) chars as input seems more than enough
4420 test $ac_count -gt 10 && break
4421 done
4422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423 esac
4425 $ac_path_SED_found && break 3
4426 done
4427 done
4428 done
4429 IFS=$as_save_IFS
4430 if test -z "$ac_cv_path_SED"; then
4431 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4433 else
4434 ac_cv_path_SED=$SED
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4439 $as_echo "$ac_cv_path_SED" >&6; }
4440 SED="$ac_cv_path_SED"
4441 rm -f conftest.sed
4443 test -z "$SED" && SED=sed
4444 Xsed="$SED -e 1s/^X//"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4457 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4458 if test "${ac_cv_path_GREP+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -z "$GREP"; then
4462 ac_path_GREP_found=false
4463 # Loop through the user's path and test for each of PROGNAME-LIST
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_prog in grep ggrep; do
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4472 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4473 # Check for GNU ac_path_GREP and select it if it is found.
4474 # Check for GNU $ac_path_GREP
4475 case `"$ac_path_GREP" --version 2>&1` in
4476 *GNU*)
4477 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4479 ac_count=0
4480 $as_echo_n 0123456789 >"conftest.in"
4481 while :
4483 cat "conftest.in" "conftest.in" >"conftest.tmp"
4484 mv "conftest.tmp" "conftest.in"
4485 cp "conftest.in" "conftest.nl"
4486 $as_echo 'GREP' >> "conftest.nl"
4487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4489 as_fn_arith $ac_count + 1 && ac_count=$as_val
4490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4491 # Best one so far, save it but keep looking for a better one
4492 ac_cv_path_GREP="$ac_path_GREP"
4493 ac_path_GREP_max=$ac_count
4495 # 10*(2^10) chars as input seems more than enough
4496 test $ac_count -gt 10 && break
4497 done
4498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4499 esac
4501 $ac_path_GREP_found && break 3
4502 done
4503 done
4504 done
4505 IFS=$as_save_IFS
4506 if test -z "$ac_cv_path_GREP"; then
4507 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4509 else
4510 ac_cv_path_GREP=$GREP
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4515 $as_echo "$ac_cv_path_GREP" >&6; }
4516 GREP="$ac_cv_path_GREP"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4520 $as_echo_n "checking for egrep... " >&6; }
4521 if test "${ac_cv_path_EGREP+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4525 then ac_cv_path_EGREP="$GREP -E"
4526 else
4527 if test -z "$EGREP"; then
4528 ac_path_EGREP_found=false
4529 # Loop through the user's path and test for each of PROGNAME-LIST
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_prog in egrep; do
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4538 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4539 # Check for GNU ac_path_EGREP and select it if it is found.
4540 # Check for GNU $ac_path_EGREP
4541 case `"$ac_path_EGREP" --version 2>&1` in
4542 *GNU*)
4543 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4545 ac_count=0
4546 $as_echo_n 0123456789 >"conftest.in"
4547 while :
4549 cat "conftest.in" "conftest.in" >"conftest.tmp"
4550 mv "conftest.tmp" "conftest.in"
4551 cp "conftest.in" "conftest.nl"
4552 $as_echo 'EGREP' >> "conftest.nl"
4553 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555 as_fn_arith $ac_count + 1 && ac_count=$as_val
4556 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4557 # Best one so far, save it but keep looking for a better one
4558 ac_cv_path_EGREP="$ac_path_EGREP"
4559 ac_path_EGREP_max=$ac_count
4561 # 10*(2^10) chars as input seems more than enough
4562 test $ac_count -gt 10 && break
4563 done
4564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4565 esac
4567 $ac_path_EGREP_found && break 3
4568 done
4569 done
4570 done
4571 IFS=$as_save_IFS
4572 if test -z "$ac_cv_path_EGREP"; then
4573 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4575 else
4576 ac_cv_path_EGREP=$EGREP
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4582 $as_echo "$ac_cv_path_EGREP" >&6; }
4583 EGREP="$ac_cv_path_EGREP"
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4587 $as_echo_n "checking for fgrep... " >&6; }
4588 if test "${ac_cv_path_FGREP+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4592 then ac_cv_path_FGREP="$GREP -F"
4593 else
4594 if test -z "$FGREP"; then
4595 ac_path_FGREP_found=false
4596 # Loop through the user's path and test for each of PROGNAME-LIST
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_prog in fgrep; do
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4605 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4606 # Check for GNU ac_path_FGREP and select it if it is found.
4607 # Check for GNU $ac_path_FGREP
4608 case `"$ac_path_FGREP" --version 2>&1` in
4609 *GNU*)
4610 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4612 ac_count=0
4613 $as_echo_n 0123456789 >"conftest.in"
4614 while :
4616 cat "conftest.in" "conftest.in" >"conftest.tmp"
4617 mv "conftest.tmp" "conftest.in"
4618 cp "conftest.in" "conftest.nl"
4619 $as_echo 'FGREP' >> "conftest.nl"
4620 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622 as_fn_arith $ac_count + 1 && ac_count=$as_val
4623 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4624 # Best one so far, save it but keep looking for a better one
4625 ac_cv_path_FGREP="$ac_path_FGREP"
4626 ac_path_FGREP_max=$ac_count
4628 # 10*(2^10) chars as input seems more than enough
4629 test $ac_count -gt 10 && break
4630 done
4631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 esac
4634 $ac_path_FGREP_found && break 3
4635 done
4636 done
4637 done
4638 IFS=$as_save_IFS
4639 if test -z "$ac_cv_path_FGREP"; then
4640 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642 else
4643 ac_cv_path_FGREP=$FGREP
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4649 $as_echo "$ac_cv_path_FGREP" >&6; }
4650 FGREP="$ac_cv_path_FGREP"
4653 test -z "$GREP" && GREP=grep
4671 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4672 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4673 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4676 $as_echo_n "checking how to print strings... " >&6; }
4677 # Test print first, because it will be a builtin if present.
4678 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4679 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4680 ECHO='print -r --'
4681 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4682 ECHO='printf %s\n'
4683 else
4684 # Use this function as a fallback that always works.
4685 func_fallback_echo ()
4687 eval 'cat <<_LTECHO_EOF
4689 _LTECHO_EOF'
4691 ECHO='func_fallback_echo'
4694 # func_echo_all arg...
4695 # Invoke $ECHO with all args, space-separated.
4696 func_echo_all ()
4698 $ECHO ""
4701 case "$ECHO" in
4702 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4703 $as_echo "printf" >&6; } ;;
4704 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4705 $as_echo "print -r" >&6; } ;;
4706 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4707 $as_echo "cat" >&6; } ;;
4708 esac
4725 # Check whether --with-gnu-ld was given.
4726 if test "${with_gnu_ld+set}" = set; then :
4727 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4728 else
4729 with_gnu_ld=no
4732 ac_prog=ld
4733 if test "$GCC" = yes; then
4734 # Check if gcc -print-prog-name=ld gives a path.
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4736 $as_echo_n "checking for ld used by $CC... " >&6; }
4737 case $host in
4738 *-*-mingw*)
4739 # gcc leaves a trailing carriage return which upsets mingw
4740 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4742 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4743 esac
4744 case $ac_prog in
4745 # Accept absolute paths.
4746 [\\/]* | ?:[\\/]*)
4747 re_direlt='/[^/][^/]*/\.\./'
4748 # Canonicalize the pathname of ld
4749 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4750 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4751 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4752 done
4753 test -z "$LD" && LD="$ac_prog"
4756 # If it fails, then pretend we aren't using GCC.
4757 ac_prog=ld
4760 # If it is relative, then search for the first ld in PATH.
4761 with_gnu_ld=unknown
4763 esac
4764 elif test "$with_gnu_ld" = yes; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4766 $as_echo_n "checking for GNU ld... " >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4769 $as_echo_n "checking for non-GNU ld... " >&6; }
4771 if test "${lt_cv_path_LD+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -z "$LD"; then
4775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4776 for ac_dir in $PATH; do
4777 IFS="$lt_save_ifs"
4778 test -z "$ac_dir" && ac_dir=.
4779 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4780 lt_cv_path_LD="$ac_dir/$ac_prog"
4781 # Check to see if the program is GNU ld. I'd rather use --version,
4782 # but apparently some variants of GNU ld only accept -v.
4783 # Break only if it was the GNU/non-GNU ld that we prefer.
4784 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4785 *GNU* | *'with BFD'*)
4786 test "$with_gnu_ld" != no && break
4789 test "$with_gnu_ld" != yes && break
4791 esac
4793 done
4794 IFS="$lt_save_ifs"
4795 else
4796 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4800 LD="$lt_cv_path_LD"
4801 if test -n "$LD"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4803 $as_echo "$LD" >&6; }
4804 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4808 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4810 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4811 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4815 case `$LD -v 2>&1 </dev/null` in
4816 *GNU* | *'with BFD'*)
4817 lt_cv_prog_gnu_ld=yes
4820 lt_cv_prog_gnu_ld=no
4822 esac
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4825 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4826 with_gnu_ld=$lt_cv_prog_gnu_ld
4836 if test -n "$ac_tool_prefix"; then
4837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test -n "$RANLIB"; then
4845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4858 done
4859 done
4860 IFS=$as_save_IFS
4864 RANLIB=$ac_cv_prog_RANLIB
4865 if test -n "$RANLIB"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4867 $as_echo "$RANLIB" >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4875 if test -z "$ac_cv_prog_RANLIB"; then
4876 ac_ct_RANLIB=$RANLIB
4877 # Extract the first word of "ranlib", so it can be a program name with args.
4878 set dummy ranlib; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -n "$ac_ct_RANLIB"; then
4885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_prog_ac_ct_RANLIB="ranlib"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4898 done
4899 done
4900 IFS=$as_save_IFS
4904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4905 if test -n "$ac_ct_RANLIB"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4907 $as_echo "$ac_ct_RANLIB" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4913 if test "x$ac_ct_RANLIB" = x; then
4914 RANLIB=":"
4915 else
4916 case $cross_compiling:$ac_tool_warned in
4917 yes:)
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4920 ac_tool_warned=yes ;;
4921 esac
4922 RANLIB=$ac_ct_RANLIB
4924 else
4925 RANLIB="$ac_cv_prog_RANLIB"
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$OBJCOPY"; then
4937 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4950 done
4951 done
4952 IFS=$as_save_IFS
4956 OBJCOPY=$ac_cv_prog_OBJCOPY
4957 if test -n "$OBJCOPY"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4959 $as_echo "$OBJCOPY" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4967 if test -z "$ac_cv_prog_OBJCOPY"; then
4968 ac_ct_OBJCOPY=$OBJCOPY
4969 # Extract the first word of "objcopy", so it can be a program name with args.
4970 set dummy objcopy; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$ac_ct_OBJCOPY"; then
4977 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4997 if test -n "$ac_ct_OBJCOPY"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4999 $as_echo "$ac_ct_OBJCOPY" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5005 if test "x$ac_ct_OBJCOPY" = x; then
5006 OBJCOPY="missing-objcopy"
5007 else
5008 case $cross_compiling:$ac_tool_warned in
5009 yes:)
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014 OBJCOPY=$ac_ct_OBJCOPY
5016 else
5017 OBJCOPY="$ac_cv_prog_OBJCOPY"
5021 enable_dlopen=yes
5025 case `pwd` in
5026 *\ * | *\ *)
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5028 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5029 esac
5033 macro_version='2.2.7a'
5034 macro_revision='1.3134'
5048 ltmain="$ac_aux_dir/ltmain.sh"
5050 # Backslashify metacharacters that are still active within
5051 # double-quoted strings.
5052 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5054 # Same as above, but do not quote variable references.
5055 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5057 # Sed substitution to delay expansion of an escaped shell variable in a
5058 # double_quote_subst'ed string.
5059 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5061 # Sed substitution to delay expansion of an escaped single quote.
5062 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5064 # Sed substitution to avoid accidental globbing in evaled expressions
5065 no_glob_subst='s/\*/\\\*/g'
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5068 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5069 if test "${lt_cv_path_NM+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$NM"; then
5073 # Let the user override the test.
5074 lt_cv_path_NM="$NM"
5075 else
5076 lt_nm_to_check="${ac_tool_prefix}nm"
5077 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5078 lt_nm_to_check="$lt_nm_to_check nm"
5080 for lt_tmp_nm in $lt_nm_to_check; do
5081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5082 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5083 IFS="$lt_save_ifs"
5084 test -z "$ac_dir" && ac_dir=.
5085 tmp_nm="$ac_dir/$lt_tmp_nm"
5086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5087 # Check to see if the nm accepts a BSD-compat flag.
5088 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5089 # nm: unknown option "B" ignored
5090 # Tru64's nm complains that /dev/null is an invalid object file
5091 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5092 */dev/null* | *'Invalid file or object type'*)
5093 lt_cv_path_NM="$tmp_nm -B"
5094 break
5097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5098 */dev/null*)
5099 lt_cv_path_NM="$tmp_nm -p"
5100 break
5103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5104 continue # so that we can try to find one that supports BSD flags
5106 esac
5108 esac
5110 done
5111 IFS="$lt_save_ifs"
5112 done
5113 : ${lt_cv_path_NM=no}
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5117 $as_echo "$lt_cv_path_NM" >&6; }
5118 if test "$lt_cv_path_NM" != "no"; then
5119 NM="$lt_cv_path_NM"
5120 else
5121 # Didn't find any BSD compatible name lister, look for dumpbin.
5122 if test -n "$DUMPBIN"; then :
5123 # Let the user override the test.
5124 else
5125 if test -n "$ac_tool_prefix"; then
5126 for ac_prog in dumpbin "link -dump"
5128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 $as_echo_n "checking for $ac_word... " >&6; }
5132 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 if test -n "$DUMPBIN"; then
5136 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5149 done
5150 done
5151 IFS=$as_save_IFS
5155 DUMPBIN=$ac_cv_prog_DUMPBIN
5156 if test -n "$DUMPBIN"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5158 $as_echo "$DUMPBIN" >&6; }
5159 else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5165 test -n "$DUMPBIN" && break
5166 done
5168 if test -z "$DUMPBIN"; then
5169 ac_ct_DUMPBIN=$DUMPBIN
5170 for ac_prog in dumpbin "link -dump"
5172 # Extract the first word of "$ac_prog", so it can be a program name with args.
5173 set dummy $ac_prog; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ac_ct_DUMPBIN"; then
5180 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5200 if test -n "$ac_ct_DUMPBIN"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5202 $as_echo "$ac_ct_DUMPBIN" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5209 test -n "$ac_ct_DUMPBIN" && break
5210 done
5212 if test "x$ac_ct_DUMPBIN" = x; then
5213 DUMPBIN=":"
5214 else
5215 case $cross_compiling:$ac_tool_warned in
5216 yes:)
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5219 ac_tool_warned=yes ;;
5220 esac
5221 DUMPBIN=$ac_ct_DUMPBIN
5225 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5226 *COFF*)
5227 DUMPBIN="$DUMPBIN -symbols"
5230 DUMPBIN=:
5232 esac
5235 if test "$DUMPBIN" != ":"; then
5236 NM="$DUMPBIN"
5239 test -z "$NM" && NM=nm
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5247 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5248 if test "${lt_cv_nm_interface+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 lt_cv_nm_interface="BSD nm"
5252 echo "int some_variable = 0;" > conftest.$ac_ext
5253 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5254 (eval "$ac_compile" 2>conftest.err)
5255 cat conftest.err >&5
5256 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5257 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5258 cat conftest.err >&5
5259 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5260 cat conftest.out >&5
5261 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5262 lt_cv_nm_interface="MS dumpbin"
5264 rm -f conftest*
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5267 $as_echo "$lt_cv_nm_interface" >&6; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5270 $as_echo_n "checking whether ln -s works... " >&6; }
5271 LN_S=$as_ln_s
5272 if test "$LN_S" = "ln -s"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5274 $as_echo "yes" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5277 $as_echo "no, using $LN_S" >&6; }
5280 # find the maximum length of command line arguments
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5282 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5283 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5287 teststring="ABCD"
5289 case $build_os in
5290 msdosdjgpp*)
5291 # On DJGPP, this test can blow up pretty badly due to problems in libc
5292 # (any single argument exceeding 2000 bytes causes a buffer overrun
5293 # during glob expansion). Even if it were fixed, the result of this
5294 # check would be larger than it should be.
5295 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5298 gnu*)
5299 # Under GNU Hurd, this test is not required because there is
5300 # no limit to the length of command line arguments.
5301 # Libtool will interpret -1 as no limit whatsoever
5302 lt_cv_sys_max_cmd_len=-1;
5305 cygwin* | mingw* | cegcc*)
5306 # On Win9x/ME, this test blows up -- it succeeds, but takes
5307 # about 5 minutes as the teststring grows exponentially.
5308 # Worse, since 9x/ME are not pre-emptively multitasking,
5309 # you end up with a "frozen" computer, even though with patience
5310 # the test eventually succeeds (with a max line length of 256k).
5311 # Instead, let's just punt: use the minimum linelength reported by
5312 # all of the supported platforms: 8192 (on NT/2K/XP).
5313 lt_cv_sys_max_cmd_len=8192;
5316 mint*)
5317 # On MiNT this can take a long time and run out of memory.
5318 lt_cv_sys_max_cmd_len=8192;
5321 amigaos*)
5322 # On AmigaOS with pdksh, this test takes hours, literally.
5323 # So we just punt and use a minimum line length of 8192.
5324 lt_cv_sys_max_cmd_len=8192;
5327 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5328 # This has been around since 386BSD, at least. Likely further.
5329 if test -x /sbin/sysctl; then
5330 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5331 elif test -x /usr/sbin/sysctl; then
5332 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5333 else
5334 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5336 # And add a safety zone
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5341 interix*)
5342 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5343 lt_cv_sys_max_cmd_len=196608
5346 osf*)
5347 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5348 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5349 # nice to cause kernel panics so lets avoid the loop below.
5350 # First set a reasonable default.
5351 lt_cv_sys_max_cmd_len=16384
5353 if test -x /sbin/sysconfig; then
5354 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5355 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5356 esac
5359 sco3.2v5*)
5360 lt_cv_sys_max_cmd_len=102400
5362 sysv5* | sco5v6* | sysv4.2uw2*)
5363 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5364 if test -n "$kargmax"; then
5365 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5366 else
5367 lt_cv_sys_max_cmd_len=32768
5371 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5372 if test -n "$lt_cv_sys_max_cmd_len"; then
5373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5375 else
5376 # Make teststring a little bigger before we do anything with it.
5377 # a 1K string should be a reasonable start.
5378 for i in 1 2 3 4 5 6 7 8 ; do
5379 teststring=$teststring$teststring
5380 done
5381 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5382 # If test is not a shell built-in, we'll probably end up computing a
5383 # maximum length that is only half of the actual maximum length, but
5384 # we can't tell.
5385 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5386 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5387 test $i != 17 # 1/2 MB should be enough
5389 i=`expr $i + 1`
5390 teststring=$teststring$teststring
5391 done
5392 # Only check the string length outside the loop.
5393 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5394 teststring=
5395 # Add a significant safety factor because C++ compilers can tack on
5396 # massive amounts of additional arguments before passing them to the
5397 # linker. It appears as though 1/2 is a usable value.
5398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5401 esac
5405 if test -n $lt_cv_sys_max_cmd_len ; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5407 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5410 $as_echo "none" >&6; }
5412 max_cmd_len=$lt_cv_sys_max_cmd_len
5419 : ${CP="cp -f"}
5420 : ${MV="mv -f"}
5421 : ${RM="rm -f"}
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5424 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5425 # Try some XSI features
5426 xsi_shell=no
5427 ( _lt_dummy="a/b/c"
5428 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5429 = c,a/b,, \
5430 && eval 'test $(( 1 + 1 )) -eq 2 \
5431 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5432 && xsi_shell=yes
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5434 $as_echo "$xsi_shell" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5438 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5439 lt_shell_append=no
5440 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5441 >/dev/null 2>&1 \
5442 && lt_shell_append=yes
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5444 $as_echo "$lt_shell_append" >&6; }
5447 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5448 lt_unset=unset
5449 else
5450 lt_unset=false
5457 # test EBCDIC or ASCII
5458 case `echo X|tr X '\101'` in
5459 A) # ASCII based system
5460 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5461 lt_SP2NL='tr \040 \012'
5462 lt_NL2SP='tr \015\012 \040\040'
5464 *) # EBCDIC based system
5465 lt_SP2NL='tr \100 \n'
5466 lt_NL2SP='tr \r\n \100\100'
5468 esac
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5479 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5480 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 lt_cv_ld_reload_flag='-r'
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5486 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5487 reload_flag=$lt_cv_ld_reload_flag
5488 case $reload_flag in
5489 "" | " "*) ;;
5490 *) reload_flag=" $reload_flag" ;;
5491 esac
5492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5493 case $host_os in
5494 darwin*)
5495 if test "$GCC" = yes; then
5496 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5497 else
5498 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5501 esac
5511 if test -n "$ac_tool_prefix"; then
5512 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5513 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 if test -n "$OBJDUMP"; then
5520 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5533 done
5534 done
5535 IFS=$as_save_IFS
5539 OBJDUMP=$ac_cv_prog_OBJDUMP
5540 if test -n "$OBJDUMP"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5542 $as_echo "$OBJDUMP" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5550 if test -z "$ac_cv_prog_OBJDUMP"; then
5551 ac_ct_OBJDUMP=$OBJDUMP
5552 # Extract the first word of "objdump", so it can be a program name with args.
5553 set dummy objdump; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test -n "$ac_ct_OBJDUMP"; then
5560 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5573 done
5574 done
5575 IFS=$as_save_IFS
5579 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5580 if test -n "$ac_ct_OBJDUMP"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5582 $as_echo "$ac_ct_OBJDUMP" >&6; }
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5588 if test "x$ac_ct_OBJDUMP" = x; then
5589 OBJDUMP="false"
5590 else
5591 case $cross_compiling:$ac_tool_warned in
5592 yes:)
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5595 ac_tool_warned=yes ;;
5596 esac
5597 OBJDUMP=$ac_ct_OBJDUMP
5599 else
5600 OBJDUMP="$ac_cv_prog_OBJDUMP"
5603 test -z "$OBJDUMP" && OBJDUMP=objdump
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5614 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5615 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 lt_cv_file_magic_cmd='$MAGIC_CMD'
5619 lt_cv_file_magic_test_file=
5620 lt_cv_deplibs_check_method='unknown'
5621 # Need to set the preceding variable on all platforms that support
5622 # interlibrary dependencies.
5623 # 'none' -- dependencies not supported.
5624 # `unknown' -- same as none, but documents that we really don't know.
5625 # 'pass_all' -- all dependencies passed with no checks.
5626 # 'test_compile' -- check by making test program.
5627 # 'file_magic [[regex]]' -- check by looking for files in library path
5628 # which responds to the $file_magic_cmd with a given extended regex.
5629 # If you have `file' or equivalent on your system and you're not sure
5630 # whether `pass_all' will *always* work, you probably want this one.
5632 case $host_os in
5633 aix[4-9]*)
5634 lt_cv_deplibs_check_method=pass_all
5637 beos*)
5638 lt_cv_deplibs_check_method=pass_all
5641 bsdi[45]*)
5642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5643 lt_cv_file_magic_cmd='/usr/bin/file -L'
5644 lt_cv_file_magic_test_file=/shlib/libc.so
5647 cygwin*)
5648 # func_win32_libid is a shell function defined in ltmain.sh
5649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5650 lt_cv_file_magic_cmd='func_win32_libid'
5653 mingw* | pw32*)
5654 # Base MSYS/MinGW do not provide the 'file' command needed by
5655 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5656 # unless we find 'file', for example because we are cross-compiling.
5657 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5658 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5659 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5660 lt_cv_file_magic_cmd='func_win32_libid'
5661 else
5662 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5663 lt_cv_file_magic_cmd='$OBJDUMP -f'
5667 cegcc*)
5668 # use the weaker test based on 'objdump'. See mingw*.
5669 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5670 lt_cv_file_magic_cmd='$OBJDUMP -f'
5673 darwin* | rhapsody*)
5674 lt_cv_deplibs_check_method=pass_all
5677 freebsd* | dragonfly*)
5678 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5679 case $host_cpu in
5680 i*86 )
5681 # Not sure whether the presence of OpenBSD here was a mistake.
5682 # Let's accept both of them until this is cleared up.
5683 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5684 lt_cv_file_magic_cmd=/usr/bin/file
5685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5687 esac
5688 else
5689 lt_cv_deplibs_check_method=pass_all
5693 gnu*)
5694 lt_cv_deplibs_check_method=pass_all
5697 haiku*)
5698 lt_cv_deplibs_check_method=pass_all
5701 hpux10.20* | hpux11*)
5702 lt_cv_file_magic_cmd=/usr/bin/file
5703 case $host_cpu in
5704 ia64*)
5705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5706 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5708 hppa*64*)
5709 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]'
5710 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5713 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5714 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5716 esac
5719 interix[3-9]*)
5720 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5724 irix5* | irix6* | nonstopux*)
5725 case $LD in
5726 *-32|*"-32 ") libmagic=32-bit;;
5727 *-n32|*"-n32 ") libmagic=N32;;
5728 *-64|*"-64 ") libmagic=64-bit;;
5729 *) libmagic=never-match;;
5730 esac
5731 lt_cv_deplibs_check_method=pass_all
5734 # This must be Linux ELF.
5735 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5736 lt_cv_deplibs_check_method=pass_all
5739 netbsd*)
5740 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5742 else
5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5747 newos6*)
5748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5749 lt_cv_file_magic_cmd=/usr/bin/file
5750 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5753 *nto* | *qnx*)
5754 lt_cv_deplibs_check_method=pass_all
5757 openbsd*)
5758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5760 else
5761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5765 osf3* | osf4* | osf5*)
5766 lt_cv_deplibs_check_method=pass_all
5769 rdos*)
5770 lt_cv_deplibs_check_method=pass_all
5773 solaris*)
5774 lt_cv_deplibs_check_method=pass_all
5777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5778 lt_cv_deplibs_check_method=pass_all
5781 sysv4 | sysv4.3*)
5782 case $host_vendor in
5783 motorola)
5784 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]'
5785 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5787 ncr)
5788 lt_cv_deplibs_check_method=pass_all
5790 sequent)
5791 lt_cv_file_magic_cmd='/bin/file'
5792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5794 sni)
5795 lt_cv_file_magic_cmd='/bin/file'
5796 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5797 lt_cv_file_magic_test_file=/lib/libc.so
5799 siemens)
5800 lt_cv_deplibs_check_method=pass_all
5803 lt_cv_deplibs_check_method=pass_all
5805 esac
5808 tpf*)
5809 lt_cv_deplibs_check_method=pass_all
5811 esac
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5815 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5816 file_magic_cmd=$lt_cv_file_magic_cmd
5817 deplibs_check_method=$lt_cv_deplibs_check_method
5818 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5831 if test -n "$ac_tool_prefix"; then
5832 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}ar; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if test "${ac_cv_prog_AR+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$AR"; then
5840 ac_cv_prog_AR="$AR" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5849 ac_cv_prog_AR="${ac_tool_prefix}ar"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5853 done
5854 done
5855 IFS=$as_save_IFS
5859 AR=$ac_cv_prog_AR
5860 if test -n "$AR"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5862 $as_echo "$AR" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5870 if test -z "$ac_cv_prog_AR"; then
5871 ac_ct_AR=$AR
5872 # Extract the first word of "ar", so it can be a program name with args.
5873 set dummy ar; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$ac_ct_AR"; then
5880 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889 ac_cv_prog_ac_ct_AR="ar"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5893 done
5894 done
5895 IFS=$as_save_IFS
5899 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5900 if test -n "$ac_ct_AR"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5902 $as_echo "$ac_ct_AR" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5908 if test "x$ac_ct_AR" = x; then
5909 AR="false"
5910 else
5911 case $cross_compiling:$ac_tool_warned in
5912 yes:)
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5916 esac
5917 AR=$ac_ct_AR
5919 else
5920 AR="$ac_cv_prog_AR"
5923 test -z "$AR" && AR=ar
5924 test -z "$AR_FLAGS" && AR_FLAGS=cru
5936 if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}strip; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if test "${ac_cv_prog_STRIP+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$STRIP"; then
5945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5958 done
5959 done
5960 IFS=$as_save_IFS
5964 STRIP=$ac_cv_prog_STRIP
5965 if test -n "$STRIP"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5967 $as_echo "$STRIP" >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5975 if test -z "$ac_cv_prog_STRIP"; then
5976 ac_ct_STRIP=$STRIP
5977 # Extract the first word of "strip", so it can be a program name with args.
5978 set dummy strip; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 if test -n "$ac_ct_STRIP"; then
5985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_ac_ct_STRIP="strip"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5998 done
5999 done
6000 IFS=$as_save_IFS
6004 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6005 if test -n "$ac_ct_STRIP"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6007 $as_echo "$ac_ct_STRIP" >&6; }
6008 else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6013 if test "x$ac_ct_STRIP" = x; then
6014 STRIP=":"
6015 else
6016 case $cross_compiling:$ac_tool_warned in
6017 yes:)
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6020 ac_tool_warned=yes ;;
6021 esac
6022 STRIP=$ac_ct_STRIP
6024 else
6025 STRIP="$ac_cv_prog_STRIP"
6028 test -z "$STRIP" && STRIP=:
6035 if test -n "$ac_tool_prefix"; then
6036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$RANLIB"; then
6044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6057 done
6058 done
6059 IFS=$as_save_IFS
6063 RANLIB=$ac_cv_prog_RANLIB
6064 if test -n "$RANLIB"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6066 $as_echo "$RANLIB" >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6074 if test -z "$ac_cv_prog_RANLIB"; then
6075 ac_ct_RANLIB=$RANLIB
6076 # Extract the first word of "ranlib", so it can be a program name with args.
6077 set dummy ranlib; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if test -n "$ac_ct_RANLIB"; then
6084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_ac_ct_RANLIB="ranlib"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6097 done
6098 done
6099 IFS=$as_save_IFS
6103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6104 if test -n "$ac_ct_RANLIB"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6106 $as_echo "$ac_ct_RANLIB" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6112 if test "x$ac_ct_RANLIB" = x; then
6113 RANLIB=":"
6114 else
6115 case $cross_compiling:$ac_tool_warned in
6116 yes:)
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6120 esac
6121 RANLIB=$ac_ct_RANLIB
6123 else
6124 RANLIB="$ac_cv_prog_RANLIB"
6127 test -z "$RANLIB" && RANLIB=:
6134 # Determine commands to create old-style static archives.
6135 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6136 old_postinstall_cmds='chmod 644 $oldlib'
6137 old_postuninstall_cmds=
6139 if test -n "$RANLIB"; then
6140 case $host_os in
6141 openbsd*)
6142 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6145 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6147 esac
6148 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6151 case $host_os in
6152 darwin*)
6153 lock_old_archive_extraction=yes ;;
6155 lock_old_archive_extraction=no ;;
6156 esac
6196 # If no C compiler was specified, use CC.
6197 LTCC=${LTCC-"$CC"}
6199 # If no C compiler flags were specified, use CFLAGS.
6200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6202 # Allow CC to be a program name with arguments.
6203 compiler=$CC
6206 # Check for command to grab the raw symbol name followed by C symbol from nm.
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6208 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6209 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6210 $as_echo_n "(cached) " >&6
6211 else
6213 # These are sane defaults that work on at least a few old systems.
6214 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6216 # Character class describing NM global symbol codes.
6217 symcode='[BCDEGRST]'
6219 # Regexp to match symbols that can be accessed directly from C.
6220 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6222 # Define system-specific variables.
6223 case $host_os in
6224 aix*)
6225 symcode='[BCDT]'
6227 cygwin* | mingw* | pw32* | cegcc*)
6228 symcode='[ABCDGISTW]'
6230 hpux*)
6231 if test "$host_cpu" = ia64; then
6232 symcode='[ABCDEGRST]'
6235 irix* | nonstopux*)
6236 symcode='[BCDEGRST]'
6238 osf*)
6239 symcode='[BCDEGQRST]'
6241 solaris*)
6242 symcode='[BDRT]'
6244 sco3.2v5*)
6245 symcode='[DT]'
6247 sysv4.2uw2*)
6248 symcode='[DT]'
6250 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6251 symcode='[ABDT]'
6253 sysv4)
6254 symcode='[DFNSTU]'
6256 esac
6258 # If we're using GNU nm, then use its standard symbol codes.
6259 case `$NM -V 2>&1` in
6260 *GNU* | *'with BFD'*)
6261 symcode='[ABCDGIRSTW]' ;;
6262 esac
6264 # Transform an extracted symbol line into a proper C declaration.
6265 # Some systems (esp. on ia64) link data and code symbols differently,
6266 # so use this general approach.
6267 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6269 # Transform an extracted symbol line into symbol name and symbol address
6270 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6271 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'"
6273 # Handle CRLF in mingw tool chain
6274 opt_cr=
6275 case $build_os in
6276 mingw*)
6277 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6279 esac
6281 # Try without a prefix underscore, then with it.
6282 for ac_symprfx in "" "_"; do
6284 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6285 symxfrm="\\1 $ac_symprfx\\2 \\2"
6287 # Write the raw and C identifiers.
6288 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6289 # Fake it for dumpbin and say T for any non-static function
6290 # and D for any global variable.
6291 # Also find C++ and __fastcall symbols from MSVC++,
6292 # which start with @ or ?.
6293 lt_cv_sys_global_symbol_pipe="$AWK '"\
6294 " {last_section=section; section=\$ 3};"\
6295 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6296 " \$ 0!~/External *\|/{next};"\
6297 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6298 " {if(hide[section]) next};"\
6299 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6300 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6301 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6302 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6303 " ' prfx=^$ac_symprfx"
6304 else
6305 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6308 # Check to see that the pipe works correctly.
6309 pipe_works=no
6311 rm -f conftest*
6312 cat > conftest.$ac_ext <<_LT_EOF
6313 #ifdef __cplusplus
6314 extern "C" {
6315 #endif
6316 char nm_test_var;
6317 void nm_test_func(void);
6318 void nm_test_func(void){}
6319 #ifdef __cplusplus
6321 #endif
6322 int main(){nm_test_var='a';nm_test_func();return(0);}
6323 _LT_EOF
6325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6326 (eval $ac_compile) 2>&5
6327 ac_status=$?
6328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329 test $ac_status = 0; }; then
6330 # Now try to grab the symbols.
6331 nlist=conftest.nm
6332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6333 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6334 ac_status=$?
6335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336 test $ac_status = 0; } && test -s "$nlist"; then
6337 # Try sorting and uniquifying the output.
6338 if sort "$nlist" | uniq > "$nlist"T; then
6339 mv -f "$nlist"T "$nlist"
6340 else
6341 rm -f "$nlist"T
6344 # Make sure that we snagged all the symbols we need.
6345 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6346 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6347 cat <<_LT_EOF > conftest.$ac_ext
6348 #ifdef __cplusplus
6349 extern "C" {
6350 #endif
6352 _LT_EOF
6353 # Now generate the symbol file.
6354 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6356 cat <<_LT_EOF >> conftest.$ac_ext
6358 /* The mapping between symbol names and symbols. */
6359 const struct {
6360 const char *name;
6361 void *address;
6363 lt__PROGRAM__LTX_preloaded_symbols[] =
6365 { "@PROGRAM@", (void *) 0 },
6366 _LT_EOF
6367 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6368 cat <<\_LT_EOF >> conftest.$ac_ext
6369 {0, (void *) 0}
6372 /* This works around a problem in FreeBSD linker */
6373 #ifdef FREEBSD_WORKAROUND
6374 static const void *lt_preloaded_setup() {
6375 return lt__PROGRAM__LTX_preloaded_symbols;
6377 #endif
6379 #ifdef __cplusplus
6381 #endif
6382 _LT_EOF
6383 # Now try linking the two files.
6384 mv conftest.$ac_objext conftstm.$ac_objext
6385 lt_save_LIBS="$LIBS"
6386 lt_save_CFLAGS="$CFLAGS"
6387 LIBS="conftstm.$ac_objext"
6388 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6390 (eval $ac_link) 2>&5
6391 ac_status=$?
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6394 pipe_works=yes
6396 LIBS="$lt_save_LIBS"
6397 CFLAGS="$lt_save_CFLAGS"
6398 else
6399 echo "cannot find nm_test_func in $nlist" >&5
6401 else
6402 echo "cannot find nm_test_var in $nlist" >&5
6404 else
6405 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6407 else
6408 echo "$progname: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6411 rm -rf conftest* conftst*
6413 # Do not use the global_symbol_pipe unless it works.
6414 if test "$pipe_works" = yes; then
6415 break
6416 else
6417 lt_cv_sys_global_symbol_pipe=
6419 done
6423 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6424 lt_cv_sys_global_symbol_to_cdecl=
6426 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6428 $as_echo "failed" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6431 $as_echo "ok" >&6; }
6456 # Check whether --enable-libtool-lock was given.
6457 if test "${enable_libtool_lock+set}" = set; then :
6458 enableval=$enable_libtool_lock;
6461 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6463 # Some flags need to be propagated to the compiler or linker for good
6464 # libtool support.
6465 case $host in
6466 ia64-*-hpux*)
6467 # Find out which ABI we are using.
6468 echo 'int i;' > conftest.$ac_ext
6469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6470 (eval $ac_compile) 2>&5
6471 ac_status=$?
6472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473 test $ac_status = 0; }; then
6474 case `/usr/bin/file conftest.$ac_objext` in
6475 *ELF-32*)
6476 HPUX_IA64_MODE="32"
6478 *ELF-64*)
6479 HPUX_IA64_MODE="64"
6481 esac
6483 rm -rf conftest*
6485 *-*-irix6*)
6486 # Find out which ABI we are using.
6487 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6489 (eval $ac_compile) 2>&5
6490 ac_status=$?
6491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6492 test $ac_status = 0; }; then
6493 if test "$lt_cv_prog_gnu_ld" = yes; then
6494 case `/usr/bin/file conftest.$ac_objext` in
6495 *32-bit*)
6496 LD="${LD-ld} -melf32bsmip"
6498 *N32*)
6499 LD="${LD-ld} -melf32bmipn32"
6501 *64-bit*)
6502 LD="${LD-ld} -melf64bmip"
6504 esac
6505 else
6506 case `/usr/bin/file conftest.$ac_objext` in
6507 *32-bit*)
6508 LD="${LD-ld} -32"
6510 *N32*)
6511 LD="${LD-ld} -n32"
6513 *64-bit*)
6514 LD="${LD-ld} -64"
6516 esac
6519 rm -rf conftest*
6522 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6523 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6524 # Find out which ABI we are using.
6525 echo 'int i;' > conftest.$ac_ext
6526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6527 (eval $ac_compile) 2>&5
6528 ac_status=$?
6529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530 test $ac_status = 0; }; then
6531 case `/usr/bin/file conftest.o` in
6532 *32-bit*)
6533 case $host in
6534 x86_64-*kfreebsd*-gnu)
6535 LD="${LD-ld} -m elf_i386_fbsd"
6537 x86_64-*linux*)
6538 case `/usr/bin/file conftest.o` in
6539 *x86-64*)
6540 LD="${LD-ld} -m elf32_x86_64"
6543 LD="${LD-ld} -m elf_i386"
6545 esac
6547 powerpc64le-*linux*)
6548 LD="${LD-ld} -m elf32lppclinux"
6550 powerpc64-*linux*)
6551 LD="${LD-ld} -m elf32ppclinux"
6553 s390x-*linux*)
6554 LD="${LD-ld} -m elf_s390"
6556 sparc64-*linux*)
6557 LD="${LD-ld} -m elf32_sparc"
6559 esac
6561 *64-bit*)
6562 case $host in
6563 x86_64-*kfreebsd*-gnu)
6564 LD="${LD-ld} -m elf_x86_64_fbsd"
6566 x86_64-*linux*)
6567 LD="${LD-ld} -m elf_x86_64"
6569 powerpcle-*linux*)
6570 LD="${LD-ld} -m elf64lppc"
6572 powerpc-*linux*)
6573 LD="${LD-ld} -m elf64ppc"
6575 s390*-*linux*|s390*-*tpf*)
6576 LD="${LD-ld} -m elf64_s390"
6578 sparc*-*linux*)
6579 LD="${LD-ld} -m elf64_sparc"
6581 esac
6583 esac
6585 rm -rf conftest*
6588 *-*-sco3.2v5*)
6589 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6590 SAVE_CFLAGS="$CFLAGS"
6591 CFLAGS="$CFLAGS -belf"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6593 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6594 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 ac_ext=c
6598 ac_cpp='$CPP $CPPFLAGS'
6599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6607 main ()
6611 return 0;
6613 _ACEOF
6614 if ac_fn_c_try_link "$LINENO"; then :
6615 lt_cv_cc_needs_belf=yes
6616 else
6617 lt_cv_cc_needs_belf=no
6619 rm -f core conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
6621 ac_ext=c
6622 ac_cpp='$CPP $CPPFLAGS'
6623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6629 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6630 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6631 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6632 CFLAGS="$SAVE_CFLAGS"
6635 sparc*-*solaris*)
6636 # Find out which ABI we are using.
6637 echo 'int i;' > conftest.$ac_ext
6638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6639 (eval $ac_compile) 2>&5
6640 ac_status=$?
6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642 test $ac_status = 0; }; then
6643 case `/usr/bin/file conftest.o` in
6644 *64-bit*)
6645 case $lt_cv_prog_gnu_ld in
6646 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6648 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6649 LD="${LD-ld} -64"
6652 esac
6654 esac
6656 rm -rf conftest*
6658 esac
6660 need_locks="$enable_libtool_lock"
6663 case $host_os in
6664 rhapsody* | darwin*)
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test -n "$DSYMUTIL"; then
6674 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6687 done
6688 done
6689 IFS=$as_save_IFS
6693 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6694 if test -n "$DSYMUTIL"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6696 $as_echo "$DSYMUTIL" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6704 if test -z "$ac_cv_prog_DSYMUTIL"; then
6705 ac_ct_DSYMUTIL=$DSYMUTIL
6706 # Extract the first word of "dsymutil", so it can be a program name with args.
6707 set dummy dsymutil; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 if test -n "$ac_ct_DSYMUTIL"; then
6714 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6727 done
6728 done
6729 IFS=$as_save_IFS
6733 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6734 if test -n "$ac_ct_DSYMUTIL"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6736 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6742 if test "x$ac_ct_DSYMUTIL" = x; then
6743 DSYMUTIL=":"
6744 else
6745 case $cross_compiling:$ac_tool_warned in
6746 yes:)
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 ac_tool_warned=yes ;;
6750 esac
6751 DSYMUTIL=$ac_ct_DSYMUTIL
6753 else
6754 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$NMEDIT"; then
6766 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6779 done
6780 done
6781 IFS=$as_save_IFS
6785 NMEDIT=$ac_cv_prog_NMEDIT
6786 if test -n "$NMEDIT"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6788 $as_echo "$NMEDIT" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6796 if test -z "$ac_cv_prog_NMEDIT"; then
6797 ac_ct_NMEDIT=$NMEDIT
6798 # Extract the first word of "nmedit", so it can be a program name with args.
6799 set dummy nmedit; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$ac_ct_NMEDIT"; then
6806 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6819 done
6820 done
6821 IFS=$as_save_IFS
6825 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6826 if test -n "$ac_ct_NMEDIT"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6828 $as_echo "$ac_ct_NMEDIT" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6834 if test "x$ac_ct_NMEDIT" = x; then
6835 NMEDIT=":"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843 NMEDIT=$ac_ct_NMEDIT
6845 else
6846 NMEDIT="$ac_cv_prog_NMEDIT"
6849 if test -n "$ac_tool_prefix"; then
6850 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if test "${ac_cv_prog_LIPO+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$LIPO"; then
6858 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6871 done
6872 done
6873 IFS=$as_save_IFS
6877 LIPO=$ac_cv_prog_LIPO
6878 if test -n "$LIPO"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6880 $as_echo "$LIPO" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6888 if test -z "$ac_cv_prog_LIPO"; then
6889 ac_ct_LIPO=$LIPO
6890 # Extract the first word of "lipo", so it can be a program name with args.
6891 set dummy lipo; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$ac_ct_LIPO"; then
6898 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_ac_ct_LIPO="lipo"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6911 done
6912 done
6913 IFS=$as_save_IFS
6917 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6918 if test -n "$ac_ct_LIPO"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6920 $as_echo "$ac_ct_LIPO" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6926 if test "x$ac_ct_LIPO" = x; then
6927 LIPO=":"
6928 else
6929 case $cross_compiling:$ac_tool_warned in
6930 yes:)
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933 ac_tool_warned=yes ;;
6934 esac
6935 LIPO=$ac_ct_LIPO
6937 else
6938 LIPO="$ac_cv_prog_LIPO"
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}otool; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$OTOOL"; then
6950 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6963 done
6964 done
6965 IFS=$as_save_IFS
6969 OTOOL=$ac_cv_prog_OTOOL
6970 if test -n "$OTOOL"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6972 $as_echo "$OTOOL" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6980 if test -z "$ac_cv_prog_OTOOL"; then
6981 ac_ct_OTOOL=$OTOOL
6982 # Extract the first word of "otool", so it can be a program name with args.
6983 set dummy otool; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 if test -n "$ac_ct_OTOOL"; then
6990 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_prog_ac_ct_OTOOL="otool"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7003 done
7004 done
7005 IFS=$as_save_IFS
7009 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7010 if test -n "$ac_ct_OTOOL"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7012 $as_echo "$ac_ct_OTOOL" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7018 if test "x$ac_ct_OTOOL" = x; then
7019 OTOOL=":"
7020 else
7021 case $cross_compiling:$ac_tool_warned in
7022 yes:)
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025 ac_tool_warned=yes ;;
7026 esac
7027 OTOOL=$ac_ct_OTOOL
7029 else
7030 OTOOL="$ac_cv_prog_OTOOL"
7033 if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7035 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$OTOOL64"; then
7042 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7055 done
7056 done
7057 IFS=$as_save_IFS
7061 OTOOL64=$ac_cv_prog_OTOOL64
7062 if test -n "$OTOOL64"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7064 $as_echo "$OTOOL64" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7072 if test -z "$ac_cv_prog_OTOOL64"; then
7073 ac_ct_OTOOL64=$OTOOL64
7074 # Extract the first word of "otool64", so it can be a program name with args.
7075 set dummy otool64; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 if test -n "$ac_ct_OTOOL64"; then
7082 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_prog_ac_ct_OTOOL64="otool64"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7095 done
7096 done
7097 IFS=$as_save_IFS
7101 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7102 if test -n "$ac_ct_OTOOL64"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7104 $as_echo "$ac_ct_OTOOL64" >&6; }
7105 else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7110 if test "x$ac_ct_OTOOL64" = x; then
7111 OTOOL64=":"
7112 else
7113 case $cross_compiling:$ac_tool_warned in
7114 yes:)
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7117 ac_tool_warned=yes ;;
7118 esac
7119 OTOOL64=$ac_ct_OTOOL64
7121 else
7122 OTOOL64="$ac_cv_prog_OTOOL64"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7152 $as_echo_n "checking for -single_module linker flag... " >&6; }
7153 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 lt_cv_apple_cc_single_mod=no
7157 if test -z "${LT_MULTI_MODULE}"; then
7158 # By default we will add the -single_module flag. You can override
7159 # by either setting the environment variable LT_MULTI_MODULE
7160 # non-empty at configure time, or by adding -multi_module to the
7161 # link flags.
7162 rm -rf libconftest.dylib*
7163 echo "int foo(void){return 1;}" > conftest.c
7164 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7165 -dynamiclib -Wl,-single_module conftest.c" >&5
7166 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7167 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7168 _lt_result=$?
7169 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7170 lt_cv_apple_cc_single_mod=yes
7171 else
7172 cat conftest.err >&5
7174 rm -rf libconftest.dylib*
7175 rm -f conftest.*
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7179 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7181 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7182 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 lt_cv_ld_exported_symbols_list=no
7186 save_LDFLAGS=$LDFLAGS
7187 echo "_main" > conftest.sym
7188 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7193 main ()
7197 return 0;
7199 _ACEOF
7200 if ac_fn_c_try_link "$LINENO"; then :
7201 lt_cv_ld_exported_symbols_list=yes
7202 else
7203 lt_cv_ld_exported_symbols_list=no
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 LDFLAGS="$save_LDFLAGS"
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7211 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7213 $as_echo_n "checking for -force_load linker flag... " >&6; }
7214 if test "${lt_cv_ld_force_load+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 lt_cv_ld_force_load=no
7218 cat > conftest.c << _LT_EOF
7219 int forced_loaded() { return 2;}
7220 _LT_EOF
7221 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7222 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7223 echo "$AR cru libconftest.a conftest.o" >&5
7224 $AR cru libconftest.a conftest.o 2>&5
7225 cat > conftest.c << _LT_EOF
7226 int main() { return 0;}
7227 _LT_EOF
7228 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7229 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7230 _lt_result=$?
7231 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7232 lt_cv_ld_force_load=yes
7233 else
7234 cat conftest.err >&5
7236 rm -f conftest.err libconftest.a conftest conftest.c
7237 rm -rf conftest.dSYM
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7241 $as_echo "$lt_cv_ld_force_load" >&6; }
7242 case $host_os in
7243 rhapsody* | darwin1.[012])
7244 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7245 darwin1.*)
7246 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7247 darwin*) # darwin 5.x on
7248 # if running on 10.5 or later, the deployment target defaults
7249 # to the OS version, if on x86, and 10.4, the deployment
7250 # target defaults to 10.4. Don't you love it?
7251 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7252 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7253 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7254 10.[012][,.]*)
7255 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7256 10.*)
7257 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7258 esac
7260 esac
7261 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7262 _lt_dar_single_mod='$single_module'
7264 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7265 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7266 else
7267 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7269 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7270 _lt_dsymutil='~$DSYMUTIL $lib || :'
7271 else
7272 _lt_dsymutil=
7275 esac
7277 ac_ext=c
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7283 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7284 # On Suns, sometimes $CPP names a directory.
7285 if test -n "$CPP" && test -d "$CPP"; then
7286 CPP=
7288 if test -z "$CPP"; then
7289 if test "${ac_cv_prog_CPP+set}" = set; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 # Double quotes because CPP needs to be expanded
7293 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7295 ac_preproc_ok=false
7296 for ac_c_preproc_warn_flag in '' yes
7298 # Use a header file that comes with gcc, so configuring glibc
7299 # with a fresh cross-compiler works.
7300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7301 # <limits.h> exists even on freestanding compilers.
7302 # On the NeXT, cc -E runs the code through the compiler's parser,
7303 # not just through cpp. "Syntax error" is here to catch this case.
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306 #ifdef __STDC__
7307 # include <limits.h>
7308 #else
7309 # include <assert.h>
7310 #endif
7311 Syntax error
7312 _ACEOF
7313 if ac_fn_c_try_cpp "$LINENO"; then :
7315 else
7316 # Broken: fails on valid input.
7317 continue
7319 rm -f conftest.err conftest.$ac_ext
7321 # OK, works on sane cases. Now check whether nonexistent headers
7322 # can be detected and how.
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325 #include <ac_nonexistent.h>
7326 _ACEOF
7327 if ac_fn_c_try_cpp "$LINENO"; then :
7328 # Broken: success on invalid input.
7329 continue
7330 else
7331 # Passes both tests.
7332 ac_preproc_ok=:
7333 break
7335 rm -f conftest.err conftest.$ac_ext
7337 done
7338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7339 rm -f conftest.err conftest.$ac_ext
7340 if $ac_preproc_ok; then :
7341 break
7344 done
7345 ac_cv_prog_CPP=$CPP
7348 CPP=$ac_cv_prog_CPP
7349 else
7350 ac_cv_prog_CPP=$CPP
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7353 $as_echo "$CPP" >&6; }
7354 ac_preproc_ok=false
7355 for ac_c_preproc_warn_flag in '' yes
7357 # Use a header file that comes with gcc, so configuring glibc
7358 # with a fresh cross-compiler works.
7359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7360 # <limits.h> exists even on freestanding compilers.
7361 # On the NeXT, cc -E runs the code through the compiler's parser,
7362 # not just through cpp. "Syntax error" is here to catch this case.
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #ifdef __STDC__
7366 # include <limits.h>
7367 #else
7368 # include <assert.h>
7369 #endif
7370 Syntax error
7371 _ACEOF
7372 if ac_fn_c_try_cpp "$LINENO"; then :
7374 else
7375 # Broken: fails on valid input.
7376 continue
7378 rm -f conftest.err conftest.$ac_ext
7380 # OK, works on sane cases. Now check whether nonexistent headers
7381 # can be detected and how.
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384 #include <ac_nonexistent.h>
7385 _ACEOF
7386 if ac_fn_c_try_cpp "$LINENO"; then :
7387 # Broken: success on invalid input.
7388 continue
7389 else
7390 # Passes both tests.
7391 ac_preproc_ok=:
7392 break
7394 rm -f conftest.err conftest.$ac_ext
7396 done
7397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7398 rm -f conftest.err conftest.$ac_ext
7399 if $ac_preproc_ok; then :
7401 else
7402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7404 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7405 See \`config.log' for more details." "$LINENO" 5; }
7408 ac_ext=c
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7416 $as_echo_n "checking for ANSI C header files... " >&6; }
7417 if test "${ac_cv_header_stdc+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <stdlib.h>
7423 #include <stdarg.h>
7424 #include <string.h>
7425 #include <float.h>
7428 main ()
7432 return 0;
7434 _ACEOF
7435 if ac_fn_c_try_compile "$LINENO"; then :
7436 ac_cv_header_stdc=yes
7437 else
7438 ac_cv_header_stdc=no
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 if test $ac_cv_header_stdc = yes; then
7443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #include <string.h>
7448 _ACEOF
7449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7450 $EGREP "memchr" >/dev/null 2>&1; then :
7452 else
7453 ac_cv_header_stdc=no
7455 rm -f conftest*
7459 if test $ac_cv_header_stdc = yes; then
7460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <stdlib.h>
7465 _ACEOF
7466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7467 $EGREP "free" >/dev/null 2>&1; then :
7469 else
7470 ac_cv_header_stdc=no
7472 rm -f conftest*
7476 if test $ac_cv_header_stdc = yes; then
7477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7478 if test "$cross_compiling" = yes; then :
7480 else
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7483 #include <ctype.h>
7484 #include <stdlib.h>
7485 #if ((' ' & 0x0FF) == 0x020)
7486 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7487 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7488 #else
7489 # define ISLOWER(c) \
7490 (('a' <= (c) && (c) <= 'i') \
7491 || ('j' <= (c) && (c) <= 'r') \
7492 || ('s' <= (c) && (c) <= 'z'))
7493 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7494 #endif
7496 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7498 main ()
7500 int i;
7501 for (i = 0; i < 256; i++)
7502 if (XOR (islower (i), ISLOWER (i))
7503 || toupper (i) != TOUPPER (i))
7504 return 2;
7505 return 0;
7507 _ACEOF
7508 if ac_fn_c_try_run "$LINENO"; then :
7510 else
7511 ac_cv_header_stdc=no
7513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7514 conftest.$ac_objext conftest.beam conftest.$ac_ext
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7520 $as_echo "$ac_cv_header_stdc" >&6; }
7521 if test $ac_cv_header_stdc = yes; then
7523 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7527 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7528 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7529 inttypes.h stdint.h unistd.h
7530 do :
7531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7534 eval as_val=\$$as_ac_Header
7535 if test "x$as_val" = x""yes; then :
7536 cat >>confdefs.h <<_ACEOF
7537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7538 _ACEOF
7542 done
7545 for ac_header in dlfcn.h
7546 do :
7547 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7549 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7550 cat >>confdefs.h <<_ACEOF
7551 #define HAVE_DLFCN_H 1
7552 _ACEOF
7556 done
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_prog_GOC+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 if test -n "$GOC"; then
7567 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7580 done
7581 done
7582 IFS=$as_save_IFS
7586 GOC=$ac_cv_prog_GOC
7587 if test -n "$GOC"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7589 $as_echo "$GOC" >&6; }
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7597 if test -z "$ac_cv_prog_GOC"; then
7598 ac_ct_GOC=$GOC
7599 # Extract the first word of "gccgo", so it can be a program name with args.
7600 set dummy gccgo; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$ac_ct_GOC"; then
7607 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_ac_ct_GOC="gccgo"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7620 done
7621 done
7622 IFS=$as_save_IFS
7626 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7627 if test -n "$ac_ct_GOC"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7629 $as_echo "$ac_ct_GOC" >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7635 if test "x$ac_ct_GOC" = x; then
7636 GOC=""
7637 else
7638 case $cross_compiling:$ac_tool_warned in
7639 yes:)
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7643 esac
7644 GOC=$ac_ct_GOC
7646 else
7647 GOC="$ac_cv_prog_GOC"
7655 # Set options
7660 enable_win32_dll=no
7663 # Check whether --enable-shared was given.
7664 if test "${enable_shared+set}" = set; then :
7665 enableval=$enable_shared; p=${PACKAGE-default}
7666 case $enableval in
7667 yes) enable_shared=yes ;;
7668 no) enable_shared=no ;;
7670 enable_shared=no
7671 # Look at the argument we got. We use all the common list separators.
7672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7673 for pkg in $enableval; do
7674 IFS="$lt_save_ifs"
7675 if test "X$pkg" = "X$p"; then
7676 enable_shared=yes
7678 done
7679 IFS="$lt_save_ifs"
7681 esac
7682 else
7683 enable_shared=yes
7694 # Check whether --enable-static was given.
7695 if test "${enable_static+set}" = set; then :
7696 enableval=$enable_static; p=${PACKAGE-default}
7697 case $enableval in
7698 yes) enable_static=yes ;;
7699 no) enable_static=no ;;
7701 enable_static=no
7702 # Look at the argument we got. We use all the common list separators.
7703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7704 for pkg in $enableval; do
7705 IFS="$lt_save_ifs"
7706 if test "X$pkg" = "X$p"; then
7707 enable_static=yes
7709 done
7710 IFS="$lt_save_ifs"
7712 esac
7713 else
7714 enable_static=yes
7726 # Check whether --with-pic was given.
7727 if test "${with_pic+set}" = set; then :
7728 withval=$with_pic; pic_mode="$withval"
7729 else
7730 pic_mode=default
7734 test -z "$pic_mode" && pic_mode=default
7742 # Check whether --enable-fast-install was given.
7743 if test "${enable_fast_install+set}" = set; then :
7744 enableval=$enable_fast_install; p=${PACKAGE-default}
7745 case $enableval in
7746 yes) enable_fast_install=yes ;;
7747 no) enable_fast_install=no ;;
7749 enable_fast_install=no
7750 # Look at the argument we got. We use all the common list separators.
7751 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7752 for pkg in $enableval; do
7753 IFS="$lt_save_ifs"
7754 if test "X$pkg" = "X$p"; then
7755 enable_fast_install=yes
7757 done
7758 IFS="$lt_save_ifs"
7760 esac
7761 else
7762 enable_fast_install=yes
7775 # This can be used to rebuild libtool when needed
7776 LIBTOOL_DEPS="$ltmain"
7778 # Always use our own libtool.
7779 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7806 test -z "$LN_S" && LN_S="ln -s"
7821 if test -n "${ZSH_VERSION+set}" ; then
7822 setopt NO_GLOB_SUBST
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7826 $as_echo_n "checking for objdir... " >&6; }
7827 if test "${lt_cv_objdir+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 rm -f .libs 2>/dev/null
7831 mkdir .libs 2>/dev/null
7832 if test -d .libs; then
7833 lt_cv_objdir=.libs
7834 else
7835 # MS-DOS does not allow filenames that begin with a dot.
7836 lt_cv_objdir=_libs
7838 rmdir .libs 2>/dev/null
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7841 $as_echo "$lt_cv_objdir" >&6; }
7842 objdir=$lt_cv_objdir
7848 cat >>confdefs.h <<_ACEOF
7849 #define LT_OBJDIR "$lt_cv_objdir/"
7850 _ACEOF
7855 case $host_os in
7856 aix3*)
7857 # AIX sometimes has problems with the GCC collect2 program. For some
7858 # reason, if we set the COLLECT_NAMES environment variable, the problems
7859 # vanish in a puff of smoke.
7860 if test "X${COLLECT_NAMES+set}" != Xset; then
7861 COLLECT_NAMES=
7862 export COLLECT_NAMES
7865 esac
7867 # Global variables:
7868 ofile=libtool
7869 can_build_shared=yes
7871 # All known linkers require a `.a' archive for static linking (except MSVC,
7872 # which needs '.lib').
7873 libext=a
7875 with_gnu_ld="$lt_cv_prog_gnu_ld"
7877 old_CC="$CC"
7878 old_CFLAGS="$CFLAGS"
7880 # Set sane defaults for various variables
7881 test -z "$CC" && CC=cc
7882 test -z "$LTCC" && LTCC=$CC
7883 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7884 test -z "$LD" && LD=ld
7885 test -z "$ac_objext" && ac_objext=o
7887 for cc_temp in $compiler""; do
7888 case $cc_temp in
7889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7891 \-*) ;;
7892 *) break;;
7893 esac
7894 done
7895 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7898 # Only perform the check for file, if the check method requires it
7899 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7900 case $deplibs_check_method in
7901 file_magic*)
7902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7904 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 case $MAGIC_CMD in
7909 [\\/*] | ?:[\\/]*)
7910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7913 lt_save_MAGIC_CMD="$MAGIC_CMD"
7914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7916 for ac_dir in $ac_dummy; do
7917 IFS="$lt_save_ifs"
7918 test -z "$ac_dir" && ac_dir=.
7919 if test -f $ac_dir/${ac_tool_prefix}file; then
7920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7921 if test -n "$file_magic_test_file"; then
7922 case $deplibs_check_method in
7923 "file_magic "*)
7924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7927 $EGREP "$file_magic_regex" > /dev/null; then
7929 else
7930 cat <<_LT_EOF 1>&2
7932 *** Warning: the command libtool uses to detect shared libraries,
7933 *** $file_magic_cmd, produces output that libtool cannot recognize.
7934 *** The result is that libtool may fail to recognize shared libraries
7935 *** as such. This will affect the creation of libtool libraries that
7936 *** depend on shared libraries, but programs linked with such libtool
7937 *** libraries will work regardless of this problem. Nevertheless, you
7938 *** may want to report the problem to your system manager and/or to
7939 *** bug-libtool@gnu.org
7941 _LT_EOF
7942 fi ;;
7943 esac
7945 break
7947 done
7948 IFS="$lt_save_ifs"
7949 MAGIC_CMD="$lt_save_MAGIC_CMD"
7951 esac
7954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7955 if test -n "$MAGIC_CMD"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7957 $as_echo "$MAGIC_CMD" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7967 if test -z "$lt_cv_path_MAGIC_CMD"; then
7968 if test -n "$ac_tool_prefix"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7970 $as_echo_n "checking for file... " >&6; }
7971 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 case $MAGIC_CMD in
7975 [\\/*] | ?:[\\/]*)
7976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7979 lt_save_MAGIC_CMD="$MAGIC_CMD"
7980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7982 for ac_dir in $ac_dummy; do
7983 IFS="$lt_save_ifs"
7984 test -z "$ac_dir" && ac_dir=.
7985 if test -f $ac_dir/file; then
7986 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7987 if test -n "$file_magic_test_file"; then
7988 case $deplibs_check_method in
7989 "file_magic "*)
7990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7993 $EGREP "$file_magic_regex" > /dev/null; then
7995 else
7996 cat <<_LT_EOF 1>&2
7998 *** Warning: the command libtool uses to detect shared libraries,
7999 *** $file_magic_cmd, produces output that libtool cannot recognize.
8000 *** The result is that libtool may fail to recognize shared libraries
8001 *** as such. This will affect the creation of libtool libraries that
8002 *** depend on shared libraries, but programs linked with such libtool
8003 *** libraries will work regardless of this problem. Nevertheless, you
8004 *** may want to report the problem to your system manager and/or to
8005 *** bug-libtool@gnu.org
8007 _LT_EOF
8008 fi ;;
8009 esac
8011 break
8013 done
8014 IFS="$lt_save_ifs"
8015 MAGIC_CMD="$lt_save_MAGIC_CMD"
8017 esac
8020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8021 if test -n "$MAGIC_CMD"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8023 $as_echo "$MAGIC_CMD" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8030 else
8031 MAGIC_CMD=:
8037 esac
8039 # Use C for the default configuration in the libtool script
8041 lt_save_CC="$CC"
8042 ac_ext=c
8043 ac_cpp='$CPP $CPPFLAGS'
8044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8049 # Source file extension for C test sources.
8050 ac_ext=c
8052 # Object file extension for compiled C test sources.
8053 objext=o
8054 objext=$objext
8056 # Code to be used in simple compile tests
8057 lt_simple_compile_test_code="int some_variable = 0;"
8059 # Code to be used in simple link tests
8060 lt_simple_link_test_code='int main(){return(0);}'
8068 # If no C compiler was specified, use CC.
8069 LTCC=${LTCC-"$CC"}
8071 # If no C compiler flags were specified, use CFLAGS.
8072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8074 # Allow CC to be a program name with arguments.
8075 compiler=$CC
8077 # Save the default compiler, since it gets overwritten when the other
8078 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8079 compiler_DEFAULT=$CC
8081 # save warnings/boilerplate of simple test code
8082 ac_outfile=conftest.$ac_objext
8083 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8084 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8085 _lt_compiler_boilerplate=`cat conftest.err`
8086 $RM conftest*
8088 ac_outfile=conftest.$ac_objext
8089 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8090 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8091 _lt_linker_boilerplate=`cat conftest.err`
8092 $RM -r conftest*
8095 ## CAVEAT EMPTOR:
8096 ## There is no encapsulation within the following macros, do not change
8097 ## the running order or otherwise move them around unless you know exactly
8098 ## what you are doing...
8099 if test -n "$compiler"; then
8101 lt_prog_compiler_no_builtin_flag=
8103 if test "$GCC" = yes; then
8104 case $cc_basename in
8105 nvcc*)
8106 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8108 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8109 esac
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8112 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8113 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 lt_cv_prog_compiler_rtti_exceptions=no
8117 ac_outfile=conftest.$ac_objext
8118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8119 lt_compiler_flag="-fno-rtti -fno-exceptions"
8120 # Insert the option either (1) after the last *FLAGS variable, or
8121 # (2) before a word containing "conftest.", or (3) at the end.
8122 # Note that $ac_compile itself does not contain backslashes and begins
8123 # with a dollar sign (not a hyphen), so the echo should work correctly.
8124 # The option is referenced via a variable to avoid confusing sed.
8125 lt_compile=`echo "$ac_compile" | $SED \
8126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8128 -e 's:$: $lt_compiler_flag:'`
8129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8130 (eval "$lt_compile" 2>conftest.err)
8131 ac_status=$?
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 if (exit $ac_status) && test -s "$ac_outfile"; then
8135 # The compiler can only warn and ignore the option if not recognized
8136 # So say no if there are warnings other than the usual output.
8137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8140 lt_cv_prog_compiler_rtti_exceptions=yes
8143 $RM conftest*
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8147 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8149 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8150 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8151 else
8162 lt_prog_compiler_wl=
8163 lt_prog_compiler_pic=
8164 lt_prog_compiler_static=
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8167 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8169 if test "$GCC" = yes; then
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_static='-static'
8173 case $host_os in
8174 aix*)
8175 # All AIX code is PIC.
8176 if test "$host_cpu" = ia64; then
8177 # AIX 5 now supports IA64 processor
8178 lt_prog_compiler_static='-Bstatic'
8180 lt_prog_compiler_pic='-fPIC'
8183 amigaos*)
8184 case $host_cpu in
8185 powerpc)
8186 # see comment about AmigaOS4 .so support
8187 lt_prog_compiler_pic='-fPIC'
8189 m68k)
8190 # FIXME: we need at least 68020 code to build shared libraries, but
8191 # adding the `-m68020' flag to GCC prevents building anything better,
8192 # like `-m68040'.
8193 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8195 esac
8198 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8199 # PIC is the default for these OSes.
8202 mingw* | cygwin* | pw32* | os2* | cegcc*)
8203 # This hack is so that the source file can tell whether it is being
8204 # built for inclusion in a dll (and should export symbols for example).
8205 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8206 # (--disable-auto-import) libraries
8207 lt_prog_compiler_pic='-DDLL_EXPORT'
8210 darwin* | rhapsody*)
8211 # PIC is the default on this platform
8212 # Common symbols not allowed in MH_DYLIB files
8213 lt_prog_compiler_pic='-fno-common'
8216 haiku*)
8217 # PIC is the default for Haiku.
8218 # The "-static" flag exists, but is broken.
8219 lt_prog_compiler_static=
8222 hpux*)
8223 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8224 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8225 # sets the default TLS model and affects inlining.
8226 case $host_cpu in
8227 hppa*64*)
8228 # +Z the default
8231 lt_prog_compiler_pic='-fPIC'
8233 esac
8236 interix[3-9]*)
8237 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8238 # Instead, we relocate shared libraries at runtime.
8241 msdosdjgpp*)
8242 # Just because we use GCC doesn't mean we suddenly get shared libraries
8243 # on systems that don't support them.
8244 lt_prog_compiler_can_build_shared=no
8245 enable_shared=no
8248 *nto* | *qnx*)
8249 # QNX uses GNU C++, but need to define -shared option too, otherwise
8250 # it will coredump.
8251 lt_prog_compiler_pic='-fPIC -shared'
8254 sysv4*MP*)
8255 if test -d /usr/nec; then
8256 lt_prog_compiler_pic=-Kconform_pic
8261 lt_prog_compiler_pic='-fPIC'
8263 esac
8265 case $cc_basename in
8266 nvcc*) # Cuda Compiler Driver 2.2
8267 lt_prog_compiler_wl='-Xlinker '
8268 lt_prog_compiler_pic='-Xcompiler -fPIC'
8270 esac
8271 else
8272 # PORTME Check for flag to pass linker flags through the system compiler.
8273 case $host_os in
8274 aix*)
8275 lt_prog_compiler_wl='-Wl,'
8276 if test "$host_cpu" = ia64; then
8277 # AIX 5 now supports IA64 processor
8278 lt_prog_compiler_static='-Bstatic'
8279 else
8280 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8284 mingw* | cygwin* | pw32* | os2* | cegcc*)
8285 # This hack is so that the source file can tell whether it is being
8286 # built for inclusion in a dll (and should export symbols for example).
8287 lt_prog_compiler_pic='-DDLL_EXPORT'
8290 hpux9* | hpux10* | hpux11*)
8291 lt_prog_compiler_wl='-Wl,'
8292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8293 # not for PA HP-UX.
8294 case $host_cpu in
8295 hppa*64*|ia64*)
8296 # +Z the default
8299 lt_prog_compiler_pic='+Z'
8301 esac
8302 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8303 lt_prog_compiler_static='${wl}-a ${wl}archive'
8306 irix5* | irix6* | nonstopux*)
8307 lt_prog_compiler_wl='-Wl,'
8308 # PIC (with -KPIC) is the default.
8309 lt_prog_compiler_static='-non_shared'
8312 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8313 case $cc_basename in
8314 # old Intel for x86_64 which still supported -KPIC.
8315 ecc*)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='-KPIC'
8318 lt_prog_compiler_static='-static'
8320 # icc used to be incompatible with GCC.
8321 # ICC 10 doesn't accept -KPIC any more.
8322 icc* | ifort*)
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='-fPIC'
8325 lt_prog_compiler_static='-static'
8327 # Lahey Fortran 8.1.
8328 lf95*)
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='--shared'
8331 lt_prog_compiler_static='--static'
8333 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8334 # Portland Group compilers (*not* the Pentium gcc compiler,
8335 # which looks to be a dead project)
8336 lt_prog_compiler_wl='-Wl,'
8337 lt_prog_compiler_pic='-fpic'
8338 lt_prog_compiler_static='-Bstatic'
8340 ccc*)
8341 lt_prog_compiler_wl='-Wl,'
8342 # All Alpha code is PIC.
8343 lt_prog_compiler_static='-non_shared'
8345 xl* | bgxl* | bgf* | mpixl*)
8346 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-qpic'
8349 lt_prog_compiler_static='-qstaticlink'
8352 case `$CC -V 2>&1 | sed 5q` in
8353 *Sun\ F* | *Sun*Fortran*)
8354 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 lt_prog_compiler_wl=''
8359 *Sun\ C*)
8360 # Sun C 5.9
8361 lt_prog_compiler_pic='-KPIC'
8362 lt_prog_compiler_static='-Bstatic'
8363 lt_prog_compiler_wl='-Wl,'
8365 esac
8367 esac
8370 newsos6)
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8375 *nto* | *qnx*)
8376 # QNX uses GNU C++, but need to define -shared option too, otherwise
8377 # it will coredump.
8378 lt_prog_compiler_pic='-fPIC -shared'
8381 osf3* | osf4* | osf5*)
8382 lt_prog_compiler_wl='-Wl,'
8383 # All OSF/1 code is PIC.
8384 lt_prog_compiler_static='-non_shared'
8387 rdos*)
8388 lt_prog_compiler_static='-non_shared'
8391 solaris*)
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8394 case $cc_basename in
8395 f77* | f90* | f95*)
8396 lt_prog_compiler_wl='-Qoption ld ';;
8398 lt_prog_compiler_wl='-Wl,';;
8399 esac
8402 sunos4*)
8403 lt_prog_compiler_wl='-Qoption ld '
8404 lt_prog_compiler_pic='-PIC'
8405 lt_prog_compiler_static='-Bstatic'
8408 sysv4 | sysv4.2uw2* | sysv4.3*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-Bstatic'
8414 sysv4*MP*)
8415 if test -d /usr/nec ;then
8416 lt_prog_compiler_pic='-Kconform_pic'
8417 lt_prog_compiler_static='-Bstatic'
8421 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8422 lt_prog_compiler_wl='-Wl,'
8423 lt_prog_compiler_pic='-KPIC'
8424 lt_prog_compiler_static='-Bstatic'
8427 unicos*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_can_build_shared=no
8432 uts4*)
8433 lt_prog_compiler_pic='-pic'
8434 lt_prog_compiler_static='-Bstatic'
8438 lt_prog_compiler_can_build_shared=no
8440 esac
8443 case $host_os in
8444 # For platforms which do not support PIC, -DPIC is meaningless:
8445 *djgpp*)
8446 lt_prog_compiler_pic=
8449 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8451 esac
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8453 $as_echo "$lt_prog_compiler_pic" >&6; }
8461 # Check to make sure the PIC flag actually works.
8463 if test -n "$lt_prog_compiler_pic"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8465 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8466 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 lt_cv_prog_compiler_pic_works=no
8470 ac_outfile=conftest.$ac_objext
8471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8472 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8473 # Insert the option either (1) after the last *FLAGS variable, or
8474 # (2) before a word containing "conftest.", or (3) at the end.
8475 # Note that $ac_compile itself does not contain backslashes and begins
8476 # with a dollar sign (not a hyphen), so the echo should work correctly.
8477 # The option is referenced via a variable to avoid confusing sed.
8478 lt_compile=`echo "$ac_compile" | $SED \
8479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8481 -e 's:$: $lt_compiler_flag:'`
8482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8483 (eval "$lt_compile" 2>conftest.err)
8484 ac_status=$?
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 if (exit $ac_status) && test -s "$ac_outfile"; then
8488 # The compiler can only warn and ignore the option if not recognized
8489 # So say no if there are warnings other than the usual output.
8490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8492 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8493 lt_cv_prog_compiler_pic_works=yes
8496 $RM conftest*
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8500 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8502 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8503 case $lt_prog_compiler_pic in
8504 "" | " "*) ;;
8505 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8506 esac
8507 else
8508 lt_prog_compiler_pic=
8509 lt_prog_compiler_can_build_shared=no
8520 # Check to make sure the static flag actually works.
8522 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8524 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8525 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 lt_cv_prog_compiler_static_works=no
8529 save_LDFLAGS="$LDFLAGS"
8530 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8531 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8533 # The linker can only warn and ignore the option if not recognized
8534 # So say no if there are warnings
8535 if test -s conftest.err; then
8536 # Append any errors to the config.log.
8537 cat conftest.err 1>&5
8538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8540 if diff conftest.exp conftest.er2 >/dev/null; then
8541 lt_cv_prog_compiler_static_works=yes
8543 else
8544 lt_cv_prog_compiler_static_works=yes
8547 $RM -r conftest*
8548 LDFLAGS="$save_LDFLAGS"
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8552 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8554 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8556 else
8557 lt_prog_compiler_static=
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8567 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8568 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 lt_cv_prog_compiler_c_o=no
8572 $RM -r conftest 2>/dev/null
8573 mkdir conftest
8574 cd conftest
8575 mkdir out
8576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8578 lt_compiler_flag="-o out/conftest2.$ac_objext"
8579 # Insert the option either (1) after the last *FLAGS variable, or
8580 # (2) before a word containing "conftest.", or (3) at the end.
8581 # Note that $ac_compile itself does not contain backslashes and begins
8582 # with a dollar sign (not a hyphen), so the echo should work correctly.
8583 lt_compile=`echo "$ac_compile" | $SED \
8584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586 -e 's:$: $lt_compiler_flag:'`
8587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8588 (eval "$lt_compile" 2>out/conftest.err)
8589 ac_status=$?
8590 cat out/conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8593 then
8594 # The compiler can only warn and ignore the option if not recognized
8595 # So say no if there are warnings
8596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8599 lt_cv_prog_compiler_c_o=yes
8602 chmod u+w . 2>&5
8603 $RM conftest*
8604 # SGI C++ compiler will create directory out/ii_files/ for
8605 # template instantiation
8606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8607 $RM out/* && rmdir out
8608 cd ..
8609 $RM -r conftest
8610 $RM conftest*
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8614 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8623 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 lt_cv_prog_compiler_c_o=no
8627 $RM -r conftest 2>/dev/null
8628 mkdir conftest
8629 cd conftest
8630 mkdir out
8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8633 lt_compiler_flag="-o out/conftest2.$ac_objext"
8634 # Insert the option either (1) after the last *FLAGS variable, or
8635 # (2) before a word containing "conftest.", or (3) at the end.
8636 # Note that $ac_compile itself does not contain backslashes and begins
8637 # with a dollar sign (not a hyphen), so the echo should work correctly.
8638 lt_compile=`echo "$ac_compile" | $SED \
8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8641 -e 's:$: $lt_compiler_flag:'`
8642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8643 (eval "$lt_compile" 2>out/conftest.err)
8644 ac_status=$?
8645 cat out/conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8648 then
8649 # The compiler can only warn and ignore the option if not recognized
8650 # So say no if there are warnings
8651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_c_o=yes
8657 chmod u+w . 2>&5
8658 $RM conftest*
8659 # SGI C++ compiler will create directory out/ii_files/ for
8660 # template instantiation
8661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8662 $RM out/* && rmdir out
8663 cd ..
8664 $RM -r conftest
8665 $RM conftest*
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8669 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8674 hard_links="nottested"
8675 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8676 # do not overwrite the value of need_locks provided by the user
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8678 $as_echo_n "checking if we can lock with hard links... " >&6; }
8679 hard_links=yes
8680 $RM conftest*
8681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8682 touch conftest.a
8683 ln conftest.a conftest.b 2>&5 || hard_links=no
8684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8686 $as_echo "$hard_links" >&6; }
8687 if test "$hard_links" = no; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8689 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8690 need_locks=warn
8692 else
8693 need_locks=no
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8702 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8704 runpath_var=
8705 allow_undefined_flag=
8706 always_export_symbols=no
8707 archive_cmds=
8708 archive_expsym_cmds=
8709 compiler_needs_object=no
8710 enable_shared_with_static_runtimes=no
8711 export_dynamic_flag_spec=
8712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8713 hardcode_automatic=no
8714 hardcode_direct=no
8715 hardcode_direct_absolute=no
8716 hardcode_libdir_flag_spec=
8717 hardcode_libdir_flag_spec_ld=
8718 hardcode_libdir_separator=
8719 hardcode_minus_L=no
8720 hardcode_shlibpath_var=unsupported
8721 inherit_rpath=no
8722 link_all_deplibs=unknown
8723 module_cmds=
8724 module_expsym_cmds=
8725 old_archive_from_new_cmds=
8726 old_archive_from_expsyms_cmds=
8727 thread_safe_flag_spec=
8728 whole_archive_flag_spec=
8729 # include_expsyms should be a list of space-separated symbols to be *always*
8730 # included in the symbol list
8731 include_expsyms=
8732 # exclude_expsyms can be an extended regexp of symbols to exclude
8733 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8734 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8735 # as well as any symbol that contains `d'.
8736 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8737 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8738 # platforms (ab)use it in PIC code, but their linkers get confused if
8739 # the symbol is explicitly referenced. Since portable code cannot
8740 # rely on this symbol name, it's probably fine to never include it in
8741 # preloaded symbol tables.
8742 # Exclude shared library initialization/finalization symbols.
8743 extract_expsyms_cmds=
8745 case $host_os in
8746 cygwin* | mingw* | pw32* | cegcc*)
8747 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8748 # When not using gcc, we currently assume that we are using
8749 # Microsoft Visual C++.
8750 if test "$GCC" != yes; then
8751 with_gnu_ld=no
8754 interix*)
8755 # we just hope/assume this is gcc and not c89 (= MSVC++)
8756 with_gnu_ld=yes
8758 openbsd*)
8759 with_gnu_ld=no
8761 esac
8763 ld_shlibs=yes
8765 # On some targets, GNU ld is compatible enough with the native linker
8766 # that we're better off using the native interface for both.
8767 lt_use_gnu_ld_interface=no
8768 if test "$with_gnu_ld" = yes; then
8769 case $host_os in
8770 aix*)
8771 # The AIX port of GNU ld has always aspired to compatibility
8772 # with the native linker. However, as the warning in the GNU ld
8773 # block says, versions before 2.19.5* couldn't really create working
8774 # shared libraries, regardless of the interface used.
8775 case `$LD -v 2>&1` in
8776 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8777 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8778 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8780 lt_use_gnu_ld_interface=yes
8782 esac
8785 lt_use_gnu_ld_interface=yes
8787 esac
8790 if test "$lt_use_gnu_ld_interface" = yes; then
8791 # If archive_cmds runs LD, not CC, wlarc should be empty
8792 wlarc='${wl}'
8794 # Set some defaults for GNU ld with shared library support. These
8795 # are reset later if shared libraries are not supported. Putting them
8796 # here allows them to be overridden if necessary.
8797 runpath_var=LD_RUN_PATH
8798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8799 export_dynamic_flag_spec='${wl}--export-dynamic'
8800 # ancient GNU ld didn't support --whole-archive et. al.
8801 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8802 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8803 else
8804 whole_archive_flag_spec=
8806 supports_anon_versioning=no
8807 case `$LD -v 2>&1` in
8808 *GNU\ gold*) supports_anon_versioning=yes ;;
8809 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8810 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8811 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8812 *\ 2.11.*) ;; # other 2.11 versions
8813 *) supports_anon_versioning=yes ;;
8814 esac
8816 # See if GNU ld supports shared libraries.
8817 case $host_os in
8818 aix[3-9]*)
8819 # On AIX/PPC, the GNU linker is very broken
8820 if test "$host_cpu" != ia64; then
8821 ld_shlibs=no
8822 cat <<_LT_EOF 1>&2
8824 *** Warning: the GNU linker, at least up to release 2.19, is reported
8825 *** to be unable to reliably create shared libraries on AIX.
8826 *** Therefore, libtool is disabling shared libraries support. If you
8827 *** really care for shared libraries, you may want to install binutils
8828 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8829 *** You will then need to restart the configuration process.
8831 _LT_EOF
8835 amigaos*)
8836 case $host_cpu in
8837 powerpc)
8838 # see comment about AmigaOS4 .so support
8839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8840 archive_expsym_cmds=''
8842 m68k)
8843 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)'
8844 hardcode_libdir_flag_spec='-L$libdir'
8845 hardcode_minus_L=yes
8847 esac
8850 beos*)
8851 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8852 allow_undefined_flag=unsupported
8853 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8854 # support --undefined. This deserves some investigation. FIXME
8855 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8856 else
8857 ld_shlibs=no
8861 cygwin* | mingw* | pw32* | cegcc*)
8862 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8863 # as there is no search path for DLLs.
8864 hardcode_libdir_flag_spec='-L$libdir'
8865 export_dynamic_flag_spec='${wl}--export-all-symbols'
8866 allow_undefined_flag=unsupported
8867 always_export_symbols=no
8868 enable_shared_with_static_runtimes=yes
8869 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8871 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8873 # If the export-symbols file already is a .def file (1st line
8874 # is EXPORTS), use it as is; otherwise, prepend...
8875 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8876 cp $export_symbols $output_objdir/$soname.def;
8877 else
8878 echo EXPORTS > $output_objdir/$soname.def;
8879 cat $export_symbols >> $output_objdir/$soname.def;
8881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8882 else
8883 ld_shlibs=no
8887 haiku*)
8888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889 link_all_deplibs=yes
8892 interix[3-9]*)
8893 hardcode_direct=no
8894 hardcode_shlibpath_var=no
8895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8896 export_dynamic_flag_spec='${wl}-E'
8897 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8898 # Instead, shared libraries are loaded at an image base (0x10000000 by
8899 # default) and relocated if they conflict, which is a slow very memory
8900 # consuming and fragmenting process. To avoid this, we pick a random,
8901 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8902 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8903 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8904 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'
8907 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8908 tmp_diet=no
8909 if test "$host_os" = linux-dietlibc; then
8910 case $cc_basename in
8911 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8912 esac
8914 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8915 && test "$tmp_diet" = no
8916 then
8917 tmp_addflag=
8918 tmp_sharedflag='-shared'
8919 case $cc_basename,$host_cpu in
8920 pgcc*) # Portland Group C compiler
8921 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'
8922 tmp_addflag=' $pic_flag'
8924 pgf77* | pgf90* | pgf95* | pgfortran*)
8925 # Portland Group f77 and f90 compilers
8926 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'
8927 tmp_addflag=' $pic_flag -Mnomain' ;;
8928 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8929 tmp_addflag=' -i_dynamic' ;;
8930 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8931 tmp_addflag=' -i_dynamic -nofor_main' ;;
8932 ifc* | ifort*) # Intel Fortran compiler
8933 tmp_addflag=' -nofor_main' ;;
8934 lf95*) # Lahey Fortran 8.1
8935 whole_archive_flag_spec=
8936 tmp_sharedflag='--shared' ;;
8937 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8938 tmp_sharedflag='-qmkshrobj'
8939 tmp_addflag= ;;
8940 nvcc*) # Cuda Compiler Driver 2.2
8941 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'
8942 compiler_needs_object=yes
8944 esac
8945 case `$CC -V 2>&1 | sed 5q` in
8946 *Sun\ C*) # Sun C 5.9
8947 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'
8948 compiler_needs_object=yes
8949 tmp_sharedflag='-G' ;;
8950 *Sun\ F*) # Sun Fortran 8.3
8951 tmp_sharedflag='-G' ;;
8952 esac
8953 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 if test "x$supports_anon_versioning" = xyes; then
8956 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8958 echo "local: *; };" >> $output_objdir/$libname.ver~
8959 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8962 case $cc_basename in
8963 xlf* | bgf* | bgxlf* | mpixlf*)
8964 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8965 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8966 hardcode_libdir_flag_spec=
8967 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8968 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8969 if test "x$supports_anon_versioning" = xyes; then
8970 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8972 echo "local: *; };" >> $output_objdir/$libname.ver~
8973 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8976 esac
8977 else
8978 ld_shlibs=no
8982 netbsd*)
8983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8984 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8985 wlarc=
8986 else
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8992 solaris*)
8993 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8994 ld_shlibs=no
8995 cat <<_LT_EOF 1>&2
8997 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8998 *** create shared libraries on Solaris systems. Therefore, libtool
8999 *** is disabling shared libraries support. We urge you to upgrade GNU
9000 *** binutils to release 2.9.1 or newer. Another option is to modify
9001 *** your PATH or compiler configuration so that the native linker is
9002 *** used, and then restart.
9004 _LT_EOF
9005 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9008 else
9009 ld_shlibs=no
9013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9014 case `$LD -v 2>&1` in
9015 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9016 ld_shlibs=no
9017 cat <<_LT_EOF 1>&2
9019 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9020 *** reliably create shared libraries on SCO systems. Therefore, libtool
9021 *** is disabling shared libraries support. We urge you to upgrade GNU
9022 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9023 *** your PATH or compiler configuration so that the native linker is
9024 *** used, and then restart.
9026 _LT_EOF
9029 # For security reasons, it is highly recommended that you always
9030 # use absolute paths for naming shared libraries, and exclude the
9031 # DT_RUNPATH tag from executables and libraries. But doing so
9032 # requires that you compile everything twice, which is a pain.
9033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9037 else
9038 ld_shlibs=no
9041 esac
9044 sunos4*)
9045 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9046 wlarc=
9047 hardcode_direct=yes
9048 hardcode_shlibpath_var=no
9052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9055 else
9056 ld_shlibs=no
9059 esac
9061 if test "$ld_shlibs" = no; then
9062 runpath_var=
9063 hardcode_libdir_flag_spec=
9064 export_dynamic_flag_spec=
9065 whole_archive_flag_spec=
9067 else
9068 # PORTME fill in a description of your system's linker (not GNU ld)
9069 case $host_os in
9070 aix3*)
9071 allow_undefined_flag=unsupported
9072 always_export_symbols=yes
9073 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'
9074 # Note: this linker hardcodes the directories in LIBPATH if there
9075 # are no directories specified by -L.
9076 hardcode_minus_L=yes
9077 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9078 # Neither direct hardcoding nor static linking is supported with a
9079 # broken collect2.
9080 hardcode_direct=unsupported
9084 aix[4-9]*)
9085 if test "$host_cpu" = ia64; then
9086 # On IA64, the linker does run time linking by default, so we don't
9087 # have to do anything special.
9088 aix_use_runtimelinking=no
9089 exp_sym_flag='-Bexport'
9090 no_entry_flag=""
9091 else
9092 # If we're using GNU nm, then we don't want the "-C" option.
9093 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9094 # Also, AIX nm treats weak defined symbols like other global
9095 # defined symbols, whereas GNU nm marks them as "W".
9096 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9097 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'
9098 else
9099 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'
9101 aix_use_runtimelinking=no
9103 # Test if we are trying to use run time linking or normal
9104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9105 # need to do runtime linking.
9106 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9107 for ld_flag in $LDFLAGS; do
9108 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9109 aix_use_runtimelinking=yes
9110 break
9112 done
9114 esac
9116 exp_sym_flag='-bexport'
9117 no_entry_flag='-bnoentry'
9120 # When large executables or shared objects are built, AIX ld can
9121 # have problems creating the table of contents. If linking a library
9122 # or program results in "error TOC overflow" add -mminimal-toc to
9123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9126 archive_cmds=''
9127 hardcode_direct=yes
9128 hardcode_direct_absolute=yes
9129 hardcode_libdir_separator=':'
9130 link_all_deplibs=yes
9131 file_list_spec='${wl}-f,'
9133 if test "$GCC" = yes; then
9134 case $host_os in aix4.[012]|aix4.[012].*)
9135 # We only want to do this on AIX 4.2 and lower, the check
9136 # below for broken collect2 doesn't work under 4.3+
9137 collect2name=`${CC} -print-prog-name=collect2`
9138 if test -f "$collect2name" &&
9139 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9140 then
9141 # We have reworked collect2
9143 else
9144 # We have old collect2
9145 hardcode_direct=unsupported
9146 # It fails to find uninstalled libraries when the uninstalled
9147 # path is not listed in the libpath. Setting hardcode_minus_L
9148 # to unsupported forces relinking
9149 hardcode_minus_L=yes
9150 hardcode_libdir_flag_spec='-L$libdir'
9151 hardcode_libdir_separator=
9154 esac
9155 shared_flag='-shared'
9156 if test "$aix_use_runtimelinking" = yes; then
9157 shared_flag="$shared_flag "'${wl}-G'
9159 else
9160 # not using gcc
9161 if test "$host_cpu" = ia64; then
9162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9163 # chokes on -Wl,-G. The following line is correct:
9164 shared_flag='-G'
9165 else
9166 if test "$aix_use_runtimelinking" = yes; then
9167 shared_flag='${wl}-G'
9168 else
9169 shared_flag='${wl}-bM:SRE'
9174 export_dynamic_flag_spec='${wl}-bexpall'
9175 # It seems that -bexpall does not export symbols beginning with
9176 # underscore (_), so it is better to generate a list of symbols to export.
9177 always_export_symbols=yes
9178 if test "$aix_use_runtimelinking" = yes; then
9179 # Warning - without using the other runtime loading flags (-brtl),
9180 # -berok will link without error, but may produce a broken library.
9181 allow_undefined_flag='-berok'
9182 # Determine the default libpath from the value encoded in an
9183 # empty executable.
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9188 main ()
9192 return 0;
9194 _ACEOF
9195 if ac_fn_c_try_link "$LINENO"; then :
9197 lt_aix_libpath_sed='
9198 /Import File Strings/,/^$/ {
9199 /^0/ {
9200 s/^0 *\(.*\)$/\1/
9204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9205 # Check for a 64-bit object if we didn't find anything.
9206 if test -z "$aix_libpath"; then
9207 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9210 rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9214 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9215 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"
9216 else
9217 if test "$host_cpu" = ia64; then
9218 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9219 allow_undefined_flag="-z nodefs"
9220 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"
9221 else
9222 # Determine the default libpath from the value encoded in an
9223 # empty executable.
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9228 main ()
9232 return 0;
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"; then :
9237 lt_aix_libpath_sed='
9238 /Import File Strings/,/^$/ {
9239 /^0/ {
9240 s/^0 *\(.*\)$/\1/
9244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9245 # Check for a 64-bit object if we didn't find anything.
9246 if test -z "$aix_libpath"; then
9247 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9250 rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9255 # Warning - without using the other run time loading flags,
9256 # -berok will link without error, but may produce a broken library.
9257 no_undefined_flag=' ${wl}-bernotok'
9258 allow_undefined_flag=' ${wl}-berok'
9259 if test "$with_gnu_ld" = yes; then
9260 # We only use this code for GNU lds that support --whole-archive.
9261 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9262 else
9263 # Exported symbols can be pulled into shared objects from archives
9264 whole_archive_flag_spec='$convenience'
9266 archive_cmds_need_lc=yes
9267 # This is similar to how AIX traditionally builds its shared libraries.
9268 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'
9273 amigaos*)
9274 case $host_cpu in
9275 powerpc)
9276 # see comment about AmigaOS4 .so support
9277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9278 archive_expsym_cmds=''
9280 m68k)
9281 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)'
9282 hardcode_libdir_flag_spec='-L$libdir'
9283 hardcode_minus_L=yes
9285 esac
9288 bsdi[45]*)
9289 export_dynamic_flag_spec=-rdynamic
9292 cygwin* | mingw* | pw32* | cegcc*)
9293 # When not using gcc, we currently assume that we are using
9294 # Microsoft Visual C++.
9295 # hardcode_libdir_flag_spec is actually meaningless, as there is
9296 # no search path for DLLs.
9297 hardcode_libdir_flag_spec=' '
9298 allow_undefined_flag=unsupported
9299 # Tell ltmain to make .lib files, not .a files.
9300 libext=lib
9301 # Tell ltmain to make .dll files, not .so files.
9302 shrext_cmds=".dll"
9303 # FIXME: Setting linknames here is a bad hack.
9304 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9305 # The linker will automatically build a .lib file if we build a DLL.
9306 old_archive_from_new_cmds='true'
9307 # FIXME: Should let the user specify the lib program.
9308 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9309 fix_srcfile_path='`cygpath -w "$srcfile"`'
9310 enable_shared_with_static_runtimes=yes
9313 darwin* | rhapsody*)
9316 archive_cmds_need_lc=no
9317 hardcode_direct=no
9318 hardcode_automatic=yes
9319 hardcode_shlibpath_var=unsupported
9320 if test "$lt_cv_ld_force_load" = "yes"; then
9321 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\"`'
9322 else
9323 whole_archive_flag_spec=''
9325 link_all_deplibs=yes
9326 allow_undefined_flag="$_lt_dar_allow_undefined"
9327 case $cc_basename in
9328 ifort*) _lt_dar_can_shared=yes ;;
9329 *) _lt_dar_can_shared=$GCC ;;
9330 esac
9331 if test "$_lt_dar_can_shared" = "yes"; then
9332 output_verbose_link_cmd=func_echo_all
9333 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9334 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9335 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}"
9336 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}"
9338 else
9339 ld_shlibs=no
9344 dgux*)
9345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_shlibpath_var=no
9350 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9351 # support. Future versions do this automatically, but an explicit c++rt0.o
9352 # does not break anything, and helps significantly (at the cost of a little
9353 # extra space).
9354 freebsd2.2*)
9355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9356 hardcode_libdir_flag_spec='-R$libdir'
9357 hardcode_direct=yes
9358 hardcode_shlibpath_var=no
9361 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9362 freebsd2.*)
9363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_direct=yes
9365 hardcode_minus_L=yes
9366 hardcode_shlibpath_var=no
9369 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9370 freebsd* | dragonfly*)
9371 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 hardcode_direct=yes
9374 hardcode_shlibpath_var=no
9377 hpux9*)
9378 if test "$GCC" = yes; then
9379 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'
9380 else
9381 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'
9383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9384 hardcode_libdir_separator=:
9385 hardcode_direct=yes
9387 # hardcode_minus_L: Not really in the search PATH,
9388 # but as the default location of the library.
9389 hardcode_minus_L=yes
9390 export_dynamic_flag_spec='${wl}-E'
9393 hpux10*)
9394 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9396 else
9397 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9399 if test "$with_gnu_ld" = no; then
9400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9401 hardcode_libdir_flag_spec_ld='+b $libdir'
9402 hardcode_libdir_separator=:
9403 hardcode_direct=yes
9404 hardcode_direct_absolute=yes
9405 export_dynamic_flag_spec='${wl}-E'
9406 # hardcode_minus_L: Not really in the search PATH,
9407 # but as the default location of the library.
9408 hardcode_minus_L=yes
9412 hpux11*)
9413 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9414 case $host_cpu in
9415 hppa*64*)
9416 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 ia64*)
9419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424 esac
9425 else
9426 case $host_cpu in
9427 hppa*64*)
9428 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 ia64*)
9431 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9435 # Older versions of the 11.00 compiler do not understand -b yet
9436 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9438 $as_echo_n "checking if $CC understands -b... " >&6; }
9439 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 lt_cv_prog_compiler__b=no
9443 save_LDFLAGS="$LDFLAGS"
9444 LDFLAGS="$LDFLAGS -b"
9445 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9447 # The linker can only warn and ignore the option if not recognized
9448 # So say no if there are warnings
9449 if test -s conftest.err; then
9450 # Append any errors to the config.log.
9451 cat conftest.err 1>&5
9452 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9454 if diff conftest.exp conftest.er2 >/dev/null; then
9455 lt_cv_prog_compiler__b=yes
9457 else
9458 lt_cv_prog_compiler__b=yes
9461 $RM -r conftest*
9462 LDFLAGS="$save_LDFLAGS"
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9466 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9468 if test x"$lt_cv_prog_compiler__b" = xyes; then
9469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9470 else
9471 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9475 esac
9477 if test "$with_gnu_ld" = no; then
9478 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9479 hardcode_libdir_separator=:
9481 case $host_cpu in
9482 hppa*64*|ia64*)
9483 hardcode_direct=no
9484 hardcode_shlibpath_var=no
9487 hardcode_direct=yes
9488 hardcode_direct_absolute=yes
9489 export_dynamic_flag_spec='${wl}-E'
9491 # hardcode_minus_L: Not really in the search PATH,
9492 # but as the default location of the library.
9493 hardcode_minus_L=yes
9495 esac
9499 irix5* | irix6* | nonstopux*)
9500 if test "$GCC" = yes; then
9501 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'
9502 # Try to use the -exported_symbol ld option, if it does not
9503 # work, assume that -exports_file does not work either and
9504 # implicitly export all symbols.
9505 save_LDFLAGS="$LDFLAGS"
9506 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509 int foo(void) {}
9510 _ACEOF
9511 if ac_fn_c_try_link "$LINENO"; then :
9512 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'
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 LDFLAGS="$save_LDFLAGS"
9518 else
9519 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'
9520 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'
9522 archive_cmds_need_lc='no'
9523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524 hardcode_libdir_separator=:
9525 inherit_rpath=yes
9526 link_all_deplibs=yes
9529 netbsd*)
9530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9532 else
9533 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9535 hardcode_libdir_flag_spec='-R$libdir'
9536 hardcode_direct=yes
9537 hardcode_shlibpath_var=no
9540 newsos6)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_direct=yes
9543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9544 hardcode_libdir_separator=:
9545 hardcode_shlibpath_var=no
9548 *nto* | *qnx*)
9551 openbsd*)
9552 if test -f /usr/libexec/ld.so; then
9553 hardcode_direct=yes
9554 hardcode_shlibpath_var=no
9555 hardcode_direct_absolute=yes
9556 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9558 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9560 export_dynamic_flag_spec='${wl}-E'
9561 else
9562 case $host_os in
9563 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9565 hardcode_libdir_flag_spec='-R$libdir'
9568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9571 esac
9573 else
9574 ld_shlibs=no
9578 os2*)
9579 hardcode_libdir_flag_spec='-L$libdir'
9580 hardcode_minus_L=yes
9581 allow_undefined_flag=unsupported
9582 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'
9583 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9586 osf3*)
9587 if test "$GCC" = yes; then
9588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9589 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'
9590 else
9591 allow_undefined_flag=' -expect_unresolved \*'
9592 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'
9594 archive_cmds_need_lc='no'
9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596 hardcode_libdir_separator=:
9599 osf4* | osf5*) # as osf3* with the addition of -msym flag
9600 if test "$GCC" = yes; then
9601 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9602 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'
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 else
9605 allow_undefined_flag=' -expect_unresolved \*'
9606 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'
9607 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~
9608 $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'
9610 # Both c and cxx compiler support -rpath directly
9611 hardcode_libdir_flag_spec='-rpath $libdir'
9613 archive_cmds_need_lc='no'
9614 hardcode_libdir_separator=:
9617 solaris*)
9618 no_undefined_flag=' -z defs'
9619 if test "$GCC" = yes; then
9620 wlarc='${wl}'
9621 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9623 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9624 else
9625 case `$CC -V 2>&1` in
9626 *"Compilers 5.0"*)
9627 wlarc=''
9628 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9630 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9633 wlarc='${wl}'
9634 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9636 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9638 esac
9640 hardcode_libdir_flag_spec='-R$libdir'
9641 hardcode_shlibpath_var=no
9642 case $host_os in
9643 solaris2.[0-5] | solaris2.[0-5].*) ;;
9645 # The compiler driver will combine and reorder linker options,
9646 # but understands `-z linker_flag'. GCC discards it without `$wl',
9647 # but is careful enough not to reorder.
9648 # Supported since Solaris 2.6 (maybe 2.5.1?)
9649 if test "$GCC" = yes; then
9650 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9651 else
9652 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9655 esac
9656 link_all_deplibs=yes
9659 sunos4*)
9660 if test "x$host_vendor" = xsequent; then
9661 # Use $CC to link under sequent, because it throws in some extra .o
9662 # files that make .init and .fini sections work.
9663 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9664 else
9665 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_libdir_flag_spec='-L$libdir'
9668 hardcode_direct=yes
9669 hardcode_minus_L=yes
9670 hardcode_shlibpath_var=no
9673 sysv4)
9674 case $host_vendor in
9675 sni)
9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_direct=yes # is this really true???
9679 siemens)
9680 ## LD is ld it makes a PLAMLIB
9681 ## CC just makes a GrossModule.
9682 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9683 reload_cmds='$CC -r -o $output$reload_objs'
9684 hardcode_direct=no
9686 motorola)
9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9690 esac
9691 runpath_var='LD_RUN_PATH'
9692 hardcode_shlibpath_var=no
9695 sysv4.3*)
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_shlibpath_var=no
9698 export_dynamic_flag_spec='-Bexport'
9701 sysv4*MP*)
9702 if test -d /usr/nec; then
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_shlibpath_var=no
9705 runpath_var=LD_RUN_PATH
9706 hardcode_runpath_var=yes
9707 ld_shlibs=yes
9711 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9712 no_undefined_flag='${wl}-z,text'
9713 archive_cmds_need_lc=no
9714 hardcode_shlibpath_var=no
9715 runpath_var='LD_RUN_PATH'
9717 if test "$GCC" = yes; then
9718 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 else
9721 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 sysv5* | sco3.2v5* | sco5v6*)
9727 # Note: We can NOT use -z defs as we might desire, because we do not
9728 # link with -lc, and that would cause any symbols used from libc to
9729 # always be unresolved, which means just about no library would
9730 # ever link correctly. If we're not using GNU ld we use -z text
9731 # though, which does catch some bad symbols but isn't as heavy-handed
9732 # as -z defs.
9733 no_undefined_flag='${wl}-z,text'
9734 allow_undefined_flag='${wl}-z,nodefs'
9735 archive_cmds_need_lc=no
9736 hardcode_shlibpath_var=no
9737 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9738 hardcode_libdir_separator=':'
9739 link_all_deplibs=yes
9740 export_dynamic_flag_spec='${wl}-Bexport'
9741 runpath_var='LD_RUN_PATH'
9743 if test "$GCC" = yes; then
9744 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 else
9747 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 uts4*)
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_libdir_flag_spec='-L$libdir'
9755 hardcode_shlibpath_var=no
9759 ld_shlibs=no
9761 esac
9763 if test x$host_vendor = xsni; then
9764 case $host in
9765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9766 export_dynamic_flag_spec='${wl}-Blargedynsym'
9768 esac
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9773 $as_echo "$ld_shlibs" >&6; }
9774 test "$ld_shlibs" = no && can_build_shared=no
9776 with_gnu_ld=$with_gnu_ld
9793 # Do we need to explicitly link libc?
9795 case "x$archive_cmds_need_lc" in
9796 x|xyes)
9797 # Assume -lc should be added
9798 archive_cmds_need_lc=yes
9800 if test "$enable_shared" = yes && test "$GCC" = yes; then
9801 case $archive_cmds in
9802 *'~'*)
9803 # FIXME: we may have to deal with multi-command sequences.
9805 '$CC '*)
9806 # Test whether the compiler implicitly links with -lc since on some
9807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9808 # to ld, don't add -lc before -lgcc.
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9810 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9811 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 $RM conftest*
9815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9818 (eval $ac_compile) 2>&5
9819 ac_status=$?
9820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9821 test $ac_status = 0; } 2>conftest.err; then
9822 soname=conftest
9823 lib=conftest
9824 libobjs=conftest.$ac_objext
9825 deplibs=
9826 wl=$lt_prog_compiler_wl
9827 pic_flag=$lt_prog_compiler_pic
9828 compiler_flags=-v
9829 linker_flags=-v
9830 verstring=
9831 output_objdir=.
9832 libname=conftest
9833 lt_save_allow_undefined_flag=$allow_undefined_flag
9834 allow_undefined_flag=
9835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9836 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9837 ac_status=$?
9838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9839 test $ac_status = 0; }
9840 then
9841 lt_cv_archive_cmds_need_lc=no
9842 else
9843 lt_cv_archive_cmds_need_lc=yes
9845 allow_undefined_flag=$lt_save_allow_undefined_flag
9846 else
9847 cat conftest.err 1>&5
9849 $RM conftest*
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9853 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9854 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9856 esac
9859 esac
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10018 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10020 if test "$GCC" = yes; then
10021 case $host_os in
10022 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10023 *) lt_awk_arg="/^libraries:/" ;;
10024 esac
10025 case $host_os in
10026 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10027 *) lt_sed_strip_eq="s,=/,/,g" ;;
10028 esac
10029 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10030 case $lt_search_path_spec in
10031 *\;*)
10032 # if the path contains ";" then we assume it to be the separator
10033 # otherwise default to the standard path separator (i.e. ":") - it is
10034 # assumed that no part of a normal pathname contains ";" but that should
10035 # okay in the real world where ";" in dirpaths is itself problematic.
10036 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10041 esac
10042 # Ok, now we have the path, separated by spaces, we can step through it
10043 # and add multilib dir if necessary.
10044 lt_tmp_lt_search_path_spec=
10045 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10046 for lt_sys_path in $lt_search_path_spec; do
10047 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10048 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10049 else
10050 test -d "$lt_sys_path" && \
10051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10053 done
10054 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10055 BEGIN {RS=" "; FS="/|\n";} {
10056 lt_foo="";
10057 lt_count=0;
10058 for (lt_i = NF; lt_i > 0; lt_i--) {
10059 if ($lt_i != "" && $lt_i != ".") {
10060 if ($lt_i == "..") {
10061 lt_count++;
10062 } else {
10063 if (lt_count == 0) {
10064 lt_foo="/" $lt_i lt_foo;
10065 } else {
10066 lt_count--;
10071 if (lt_foo != "") { lt_freq[lt_foo]++; }
10072 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10074 # AWK program above erroneously prepends '/' to C:/dos/paths
10075 # for these hosts.
10076 case $host_os in
10077 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10078 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10079 esac
10080 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10081 else
10082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10084 library_names_spec=
10085 libname_spec='lib$name'
10086 soname_spec=
10087 shrext_cmds=".so"
10088 postinstall_cmds=
10089 postuninstall_cmds=
10090 finish_cmds=
10091 finish_eval=
10092 shlibpath_var=
10093 shlibpath_overrides_runpath=unknown
10094 version_type=none
10095 dynamic_linker="$host_os ld.so"
10096 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10097 need_lib_prefix=unknown
10098 hardcode_into_libs=no
10100 # when you set need_version to no, make sure it does not cause -set_version
10101 # flags to be left without arguments
10102 need_version=unknown
10104 case $host_os in
10105 aix3*)
10106 version_type=linux
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10108 shlibpath_var=LIBPATH
10110 # AIX 3 has no versioning support, so we append a major version to the name.
10111 soname_spec='${libname}${release}${shared_ext}$major'
10114 aix[4-9]*)
10115 version_type=linux
10116 need_lib_prefix=no
10117 need_version=no
10118 hardcode_into_libs=yes
10119 if test "$host_cpu" = ia64; then
10120 # AIX 5 supports IA64
10121 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10122 shlibpath_var=LD_LIBRARY_PATH
10123 else
10124 # With GCC up to 2.95.x, collect2 would create an import file
10125 # for dependence libraries. The import file would start with
10126 # the line `#! .'. This would cause the generated library to
10127 # depend on `.', always an invalid library. This was fixed in
10128 # development snapshots of GCC prior to 3.0.
10129 case $host_os in
10130 aix4 | aix4.[01] | aix4.[01].*)
10131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10132 echo ' yes '
10133 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10135 else
10136 can_build_shared=no
10139 esac
10140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10141 # soname into executable. Probably we can add versioning support to
10142 # collect2, so additional links can be useful in future.
10143 if test "$aix_use_runtimelinking" = yes; then
10144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10145 # instead of lib<name>.a to let people know that these are not
10146 # typical AIX shared libraries.
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 else
10149 # We preserve .a as extension for shared libraries through AIX4.2
10150 # and later when we are not doing run time linking.
10151 library_names_spec='${libname}${release}.a $libname.a'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10154 shlibpath_var=LIBPATH
10158 amigaos*)
10159 case $host_cpu in
10160 powerpc)
10161 # Since July 2007 AmigaOS4 officially supports .so libraries.
10162 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 m68k)
10166 library_names_spec='$libname.ixlibrary $libname.a'
10167 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10168 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'
10170 esac
10173 beos*)
10174 library_names_spec='${libname}${shared_ext}'
10175 dynamic_linker="$host_os ld.so"
10176 shlibpath_var=LIBRARY_PATH
10179 bsdi[45]*)
10180 version_type=linux
10181 need_version=no
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10188 # the default ld.so.conf also contains /usr/contrib/lib and
10189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10190 # libtool to hard-code these into programs
10193 cygwin* | mingw* | pw32* | cegcc*)
10194 version_type=windows
10195 shrext_cmds=".dll"
10196 need_version=no
10197 need_lib_prefix=no
10199 case $GCC,$host_os in
10200 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10201 library_names_spec='$libname.dll.a'
10202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10203 postinstall_cmds='base_file=`basename \${file}`~
10204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10205 dldir=$destdir/`dirname \$dlpath`~
10206 test -d \$dldir || mkdir -p \$dldir~
10207 $install_prog $dir/$dlname \$dldir/$dlname~
10208 chmod a+x \$dldir/$dlname~
10209 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10210 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10213 dlpath=$dir/\$dldll~
10214 $RM \$dlpath'
10215 shlibpath_overrides_runpath=yes
10217 case $host_os in
10218 cygwin*)
10219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10222 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10224 mingw* | cegcc*)
10225 # MinGW DLLs use traditional 'lib' prefix
10226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 pw32*)
10229 # pw32 DLLs use 'pw' prefix rather than 'lib'
10230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10232 esac
10236 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10238 esac
10239 dynamic_linker='Win32 ld.exe'
10240 # FIXME: first we should search . and the directory the executable is in
10241 shlibpath_var=PATH
10244 darwin* | rhapsody*)
10245 dynamic_linker="$host_os dyld"
10246 version_type=darwin
10247 need_lib_prefix=no
10248 need_version=no
10249 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10250 soname_spec='${libname}${release}${major}$shared_ext'
10251 shlibpath_overrides_runpath=yes
10252 shlibpath_var=DYLD_LIBRARY_PATH
10253 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10255 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10259 dgux*)
10260 version_type=linux
10261 need_lib_prefix=no
10262 need_version=no
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 shlibpath_var=LD_LIBRARY_PATH
10268 freebsd* | dragonfly*)
10269 # DragonFly does not have aout. When/if they implement a new
10270 # versioning mechanism, adjust this.
10271 if test -x /usr/bin/objformat; then
10272 objformat=`/usr/bin/objformat`
10273 else
10274 case $host_os in
10275 freebsd[23].*) objformat=aout ;;
10276 *) objformat=elf ;;
10277 esac
10279 version_type=freebsd-$objformat
10280 case $version_type in
10281 freebsd-elf*)
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10283 need_version=no
10284 need_lib_prefix=no
10286 freebsd-*)
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10288 need_version=yes
10290 esac
10291 shlibpath_var=LD_LIBRARY_PATH
10292 case $host_os in
10293 freebsd2.*)
10294 shlibpath_overrides_runpath=yes
10296 freebsd3.[01]* | freebsdelf3.[01]*)
10297 shlibpath_overrides_runpath=yes
10298 hardcode_into_libs=yes
10300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10302 shlibpath_overrides_runpath=no
10303 hardcode_into_libs=yes
10305 *) # from 4.6 on, and DragonFly
10306 shlibpath_overrides_runpath=yes
10307 hardcode_into_libs=yes
10309 esac
10312 gnu*)
10313 version_type=linux
10314 need_lib_prefix=no
10315 need_version=no
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 hardcode_into_libs=yes
10322 haiku*)
10323 version_type=linux
10324 need_lib_prefix=no
10325 need_version=no
10326 dynamic_linker="$host_os runtime_loader"
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 shlibpath_var=LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10332 hardcode_into_libs=yes
10335 hpux9* | hpux10* | hpux11*)
10336 # Give a soname corresponding to the major version so that dld.sl refuses to
10337 # link against other versions.
10338 version_type=sunos
10339 need_lib_prefix=no
10340 need_version=no
10341 case $host_cpu in
10342 ia64*)
10343 shrext_cmds='.so'
10344 hardcode_into_libs=yes
10345 dynamic_linker="$host_os dld.so"
10346 shlibpath_var=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 if test "X$HPUX_IA64_MODE" = X32; then
10351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10352 else
10353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10357 hppa*64*)
10358 shrext_cmds='.sl'
10359 hardcode_into_libs=yes
10360 dynamic_linker="$host_os dld.sl"
10361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10369 shrext_cmds='.sl'
10370 dynamic_linker="$host_os dld.sl"
10371 shlibpath_var=SHLIB_PATH
10372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10376 esac
10377 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10378 postinstall_cmds='chmod 555 $lib'
10379 # or fails outright, so override atomically:
10380 install_override_mode=555
10383 interix[3-9]*)
10384 version_type=linux
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 shlibpath_overrides_runpath=no
10392 hardcode_into_libs=yes
10395 irix5* | irix6* | nonstopux*)
10396 case $host_os in
10397 nonstopux*) version_type=nonstopux ;;
10399 if test "$lt_cv_prog_gnu_ld" = yes; then
10400 version_type=linux
10401 else
10402 version_type=irix
10403 fi ;;
10404 esac
10405 need_lib_prefix=no
10406 need_version=no
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10409 case $host_os in
10410 irix5* | nonstopux*)
10411 libsuff= shlibsuff=
10414 case $LD in # libtool.m4 will add one of these switches to LD
10415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10416 libsuff= shlibsuff= libmagic=32-bit;;
10417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10418 libsuff=32 shlibsuff=N32 libmagic=N32;;
10419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10421 *) libsuff= shlibsuff= libmagic=never-match;;
10422 esac
10424 esac
10425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10426 shlibpath_overrides_runpath=no
10427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10429 hardcode_into_libs=yes
10432 # No shared lib support for Linux oldld, aout, or coff.
10433 linux*oldld* | linux*aout* | linux*coff*)
10434 dynamic_linker=no
10437 # This must be Linux ELF.
10438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10439 version_type=linux
10440 need_lib_prefix=no
10441 need_version=no
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 shlibpath_overrides_runpath=no
10448 # Some binutils ld are patched to set DT_RUNPATH
10449 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
10451 else
10452 lt_cv_shlibpath_overrides_runpath=no
10453 save_LDFLAGS=$LDFLAGS
10454 save_libdir=$libdir
10455 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10456 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10461 main ()
10465 return 0;
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10470 lt_cv_shlibpath_overrides_runpath=yes
10473 rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475 LDFLAGS=$save_LDFLAGS
10476 libdir=$save_libdir
10480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10482 # This implies no fast_install, which is unacceptable.
10483 # Some rework will be needed to allow for fast_install
10484 # before this can be enabled.
10485 hardcode_into_libs=yes
10487 # Append ld.so.conf contents to the search path
10488 if test -f /etc/ld.so.conf; then
10489 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' ' '`
10490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10493 # We used to test for /lib/ld.so.1 and disable shared libraries on
10494 # powerpc, because MkLinux only supported shared libraries with the
10495 # GNU dynamic linker. Since this was broken with cross compilers,
10496 # most powerpc-linux boxes support dynamic linking these days and
10497 # people can always --disable-shared, the test was removed, and we
10498 # assume the GNU/Linux dynamic linker is in use.
10499 dynamic_linker='GNU/Linux ld.so'
10502 netbsd*)
10503 version_type=sunos
10504 need_lib_prefix=no
10505 need_version=no
10506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10509 dynamic_linker='NetBSD (a.out) ld.so'
10510 else
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 dynamic_linker='NetBSD ld.elf_so'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=yes
10517 hardcode_into_libs=yes
10520 newsos6)
10521 version_type=linux
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=yes
10527 *nto* | *qnx*)
10528 version_type=qnx
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=no
10535 hardcode_into_libs=yes
10536 dynamic_linker='ldqnx.so'
10539 openbsd*)
10540 version_type=sunos
10541 sys_lib_dlsearch_path_spec="/usr/lib"
10542 need_lib_prefix=no
10543 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10544 case $host_os in
10545 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10546 *) need_version=no ;;
10547 esac
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10552 case $host_os in
10553 openbsd2.[89] | openbsd2.[89].*)
10554 shlibpath_overrides_runpath=no
10557 shlibpath_overrides_runpath=yes
10559 esac
10560 else
10561 shlibpath_overrides_runpath=yes
10565 os2*)
10566 libname_spec='$name'
10567 shrext_cmds=".dll"
10568 need_lib_prefix=no
10569 library_names_spec='$libname${shared_ext} $libname.a'
10570 dynamic_linker='OS/2 ld.exe'
10571 shlibpath_var=LIBPATH
10574 osf3* | osf4* | osf5*)
10575 version_type=osf
10576 need_lib_prefix=no
10577 need_version=no
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10582 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10585 rdos*)
10586 dynamic_linker=no
10589 solaris*)
10590 version_type=linux
10591 need_lib_prefix=no
10592 need_version=no
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 shlibpath_overrides_runpath=yes
10597 hardcode_into_libs=yes
10598 # ldd complains unless libraries are executable
10599 postinstall_cmds='chmod +x $lib'
10602 sunos4*)
10603 version_type=sunos
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10605 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 shlibpath_overrides_runpath=yes
10608 if test "$with_gnu_ld" = yes; then
10609 need_lib_prefix=no
10611 need_version=yes
10614 sysv4 | sysv4.3*)
10615 version_type=linux
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 case $host_vendor in
10620 sni)
10621 shlibpath_overrides_runpath=no
10622 need_lib_prefix=no
10623 runpath_var=LD_RUN_PATH
10625 siemens)
10626 need_lib_prefix=no
10628 motorola)
10629 need_lib_prefix=no
10630 need_version=no
10631 shlibpath_overrides_runpath=no
10632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10634 esac
10637 sysv4*MP*)
10638 if test -d /usr/nec ;then
10639 version_type=linux
10640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10641 soname_spec='$libname${shared_ext}.$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10647 version_type=freebsd-elf
10648 need_lib_prefix=no
10649 need_version=no
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=yes
10654 hardcode_into_libs=yes
10655 if test "$with_gnu_ld" = yes; then
10656 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10657 else
10658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10659 case $host_os in
10660 sco3.2v5*)
10661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10663 esac
10665 sys_lib_dlsearch_path_spec='/usr/lib'
10668 tpf*)
10669 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10670 version_type=linux
10671 need_lib_prefix=no
10672 need_version=no
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 shlibpath_overrides_runpath=no
10676 hardcode_into_libs=yes
10679 uts4*)
10680 version_type=linux
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LD_LIBRARY_PATH
10687 dynamic_linker=no
10689 esac
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10691 $as_echo "$dynamic_linker" >&6; }
10692 test "$dynamic_linker" = no && can_build_shared=no
10694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10695 if test "$GCC" = yes; then
10696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10699 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10700 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10702 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10703 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10798 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10799 hardcode_action=
10800 if test -n "$hardcode_libdir_flag_spec" ||
10801 test -n "$runpath_var" ||
10802 test "X$hardcode_automatic" = "Xyes" ; then
10804 # We can hardcode non-existent directories.
10805 if test "$hardcode_direct" != no &&
10806 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10807 # have to relink, otherwise we might link with an installed library
10808 # when we should be linking with a yet-to-be-installed one
10809 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10810 test "$hardcode_minus_L" != no; then
10811 # Linking always hardcodes the temporary library directory.
10812 hardcode_action=relink
10813 else
10814 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10815 hardcode_action=immediate
10817 else
10818 # We cannot hardcode anything, or else we can only hardcode existing
10819 # directories.
10820 hardcode_action=unsupported
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10823 $as_echo "$hardcode_action" >&6; }
10825 if test "$hardcode_action" = relink ||
10826 test "$inherit_rpath" = yes; then
10827 # Fast installation is not supported
10828 enable_fast_install=no
10829 elif test "$shlibpath_overrides_runpath" = yes ||
10830 test "$enable_shared" = no; then
10831 # Fast installation is not necessary
10832 enable_fast_install=needless
10840 if test "x$enable_dlopen" != xyes; then
10841 enable_dlopen=unknown
10842 enable_dlopen_self=unknown
10843 enable_dlopen_self_static=unknown
10844 else
10845 lt_cv_dlopen=no
10846 lt_cv_dlopen_libs=
10848 case $host_os in
10849 beos*)
10850 lt_cv_dlopen="load_add_on"
10851 lt_cv_dlopen_libs=
10852 lt_cv_dlopen_self=yes
10855 mingw* | pw32* | cegcc*)
10856 lt_cv_dlopen="LoadLibrary"
10857 lt_cv_dlopen_libs=
10860 cygwin*)
10861 lt_cv_dlopen="dlopen"
10862 lt_cv_dlopen_libs=
10865 darwin*)
10866 # if libdl is installed we need to link against it
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10868 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-ldl $LIBS"
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10877 /* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 char dlopen ();
10885 main ()
10887 return dlopen ();
10889 return 0;
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893 ac_cv_lib_dl_dlopen=yes
10894 else
10895 ac_cv_lib_dl_dlopen=no
10897 rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10902 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10903 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10905 else
10907 lt_cv_dlopen="dyld"
10908 lt_cv_dlopen_libs=
10909 lt_cv_dlopen_self=yes
10916 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10917 if test "x$ac_cv_func_shl_load" = x""yes; then :
10918 lt_cv_dlopen="shl_load"
10919 else
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10921 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10922 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10923 $as_echo_n "(cached) " >&6
10924 else
10925 ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-ldld $LIBS"
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char shl_load ();
10938 main ()
10940 return shl_load ();
10942 return 0;
10944 _ACEOF
10945 if ac_fn_c_try_link "$LINENO"; then :
10946 ac_cv_lib_dld_shl_load=yes
10947 else
10948 ac_cv_lib_dld_shl_load=no
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10955 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10956 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10957 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10958 else
10959 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10960 if test "x$ac_cv_func_dlopen" = x""yes; then :
10961 lt_cv_dlopen="dlopen"
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10964 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 ac_check_lib_save_LIBS=$LIBS
10969 LIBS="-ldl $LIBS"
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10973 /* Override any GCC internal prototype to avoid an error.
10974 Use char because int might match the return type of a GCC
10975 builtin and then its argument prototype would still apply. */
10976 #ifdef __cplusplus
10977 extern "C"
10978 #endif
10979 char dlopen ();
10981 main ()
10983 return dlopen ();
10985 return 0;
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"; then :
10989 ac_cv_lib_dl_dlopen=yes
10990 else
10991 ac_cv_lib_dl_dlopen=no
10993 rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LIBS=$ac_check_lib_save_LIBS
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10998 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10999 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11000 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11001 else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11003 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11004 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 ac_check_lib_save_LIBS=$LIBS
11008 LIBS="-lsvld $LIBS"
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11012 /* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11015 #ifdef __cplusplus
11016 extern "C"
11017 #endif
11018 char dlopen ();
11020 main ()
11022 return dlopen ();
11024 return 0;
11026 _ACEOF
11027 if ac_fn_c_try_link "$LINENO"; then :
11028 ac_cv_lib_svld_dlopen=yes
11029 else
11030 ac_cv_lib_svld_dlopen=no
11032 rm -f core conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11037 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11038 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11042 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11043 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11044 $as_echo_n "(cached) " >&6
11045 else
11046 ac_check_lib_save_LIBS=$LIBS
11047 LIBS="-ldld $LIBS"
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11051 /* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11054 #ifdef __cplusplus
11055 extern "C"
11056 #endif
11057 char dld_link ();
11059 main ()
11061 return dld_link ();
11063 return 0;
11065 _ACEOF
11066 if ac_fn_c_try_link "$LINENO"; then :
11067 ac_cv_lib_dld_dld_link=yes
11068 else
11069 ac_cv_lib_dld_dld_link=no
11071 rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
11073 LIBS=$ac_check_lib_save_LIBS
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11076 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11077 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11078 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11097 esac
11099 if test "x$lt_cv_dlopen" != xno; then
11100 enable_dlopen=yes
11101 else
11102 enable_dlopen=no
11105 case $lt_cv_dlopen in
11106 dlopen)
11107 save_CPPFLAGS="$CPPFLAGS"
11108 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11110 save_LDFLAGS="$LDFLAGS"
11111 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11113 save_LIBS="$LIBS"
11114 LIBS="$lt_cv_dlopen_libs $LIBS"
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11117 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11118 if test "${lt_cv_dlopen_self+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
11120 else
11121 if test "$cross_compiling" = yes; then :
11122 lt_cv_dlopen_self=cross
11123 else
11124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11125 lt_status=$lt_dlunknown
11126 cat > conftest.$ac_ext <<_LT_EOF
11127 #line 11127 "configure"
11128 #include "confdefs.h"
11130 #if HAVE_DLFCN_H
11131 #include <dlfcn.h>
11132 #endif
11134 #include <stdio.h>
11136 #ifdef RTLD_GLOBAL
11137 # define LT_DLGLOBAL RTLD_GLOBAL
11138 #else
11139 # ifdef DL_GLOBAL
11140 # define LT_DLGLOBAL DL_GLOBAL
11141 # else
11142 # define LT_DLGLOBAL 0
11143 # endif
11144 #endif
11146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11147 find out it does not work in some platform. */
11148 #ifndef LT_DLLAZY_OR_NOW
11149 # ifdef RTLD_LAZY
11150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11151 # else
11152 # ifdef DL_LAZY
11153 # define LT_DLLAZY_OR_NOW DL_LAZY
11154 # else
11155 # ifdef RTLD_NOW
11156 # define LT_DLLAZY_OR_NOW RTLD_NOW
11157 # else
11158 # ifdef DL_NOW
11159 # define LT_DLLAZY_OR_NOW DL_NOW
11160 # else
11161 # define LT_DLLAZY_OR_NOW 0
11162 # endif
11163 # endif
11164 # endif
11165 # endif
11166 #endif
11168 /* When -fvisbility=hidden is used, assume the code has been annotated
11169 correspondingly for the symbols needed. */
11170 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11171 void fnord () __attribute__((visibility("default")));
11172 #endif
11174 void fnord () { int i=42; }
11175 int main ()
11177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11178 int status = $lt_dlunknown;
11180 if (self)
11182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11183 else
11185 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11186 else puts (dlerror ());
11188 /* dlclose (self); */
11190 else
11191 puts (dlerror ());
11193 return status;
11195 _LT_EOF
11196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11197 (eval $ac_link) 2>&5
11198 ac_status=$?
11199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11200 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11201 (./conftest; exit; ) >&5 2>/dev/null
11202 lt_status=$?
11203 case x$lt_status in
11204 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11205 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11206 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11207 esac
11208 else :
11209 # compilation failed
11210 lt_cv_dlopen_self=no
11213 rm -fr conftest*
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11218 $as_echo "$lt_cv_dlopen_self" >&6; }
11220 if test "x$lt_cv_dlopen_self" = xyes; then
11221 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11223 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11224 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 if test "$cross_compiling" = yes; then :
11228 lt_cv_dlopen_self_static=cross
11229 else
11230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11231 lt_status=$lt_dlunknown
11232 cat > conftest.$ac_ext <<_LT_EOF
11233 #line 11233 "configure"
11234 #include "confdefs.h"
11236 #if HAVE_DLFCN_H
11237 #include <dlfcn.h>
11238 #endif
11240 #include <stdio.h>
11242 #ifdef RTLD_GLOBAL
11243 # define LT_DLGLOBAL RTLD_GLOBAL
11244 #else
11245 # ifdef DL_GLOBAL
11246 # define LT_DLGLOBAL DL_GLOBAL
11247 # else
11248 # define LT_DLGLOBAL 0
11249 # endif
11250 #endif
11252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11253 find out it does not work in some platform. */
11254 #ifndef LT_DLLAZY_OR_NOW
11255 # ifdef RTLD_LAZY
11256 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11257 # else
11258 # ifdef DL_LAZY
11259 # define LT_DLLAZY_OR_NOW DL_LAZY
11260 # else
11261 # ifdef RTLD_NOW
11262 # define LT_DLLAZY_OR_NOW RTLD_NOW
11263 # else
11264 # ifdef DL_NOW
11265 # define LT_DLLAZY_OR_NOW DL_NOW
11266 # else
11267 # define LT_DLLAZY_OR_NOW 0
11268 # endif
11269 # endif
11270 # endif
11271 # endif
11272 #endif
11274 /* When -fvisbility=hidden is used, assume the code has been annotated
11275 correspondingly for the symbols needed. */
11276 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11277 void fnord () __attribute__((visibility("default")));
11278 #endif
11280 void fnord () { int i=42; }
11281 int main ()
11283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11284 int status = $lt_dlunknown;
11286 if (self)
11288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11289 else
11291 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11292 else puts (dlerror ());
11294 /* dlclose (self); */
11296 else
11297 puts (dlerror ());
11299 return status;
11301 _LT_EOF
11302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11303 (eval $ac_link) 2>&5
11304 ac_status=$?
11305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11306 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11307 (./conftest; exit; ) >&5 2>/dev/null
11308 lt_status=$?
11309 case x$lt_status in
11310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11313 esac
11314 else :
11315 # compilation failed
11316 lt_cv_dlopen_self_static=no
11319 rm -fr conftest*
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11324 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11327 CPPFLAGS="$save_CPPFLAGS"
11328 LDFLAGS="$save_LDFLAGS"
11329 LIBS="$save_LIBS"
11331 esac
11333 case $lt_cv_dlopen_self in
11334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11335 *) enable_dlopen_self=unknown ;;
11336 esac
11338 case $lt_cv_dlopen_self_static in
11339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11340 *) enable_dlopen_self_static=unknown ;;
11341 esac
11360 striplib=
11361 old_striplib=
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11363 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11364 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11365 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11366 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11368 $as_echo "yes" >&6; }
11369 else
11370 # FIXME - insert some real tests, host_os isn't really good enough
11371 case $host_os in
11372 darwin*)
11373 if test -n "$STRIP" ; then
11374 striplib="$STRIP -x"
11375 old_striplib="$STRIP -S"
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377 $as_echo "yes" >&6; }
11378 else
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11387 esac
11401 # Report which library types will actually be built
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11403 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11405 $as_echo "$can_build_shared" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11408 $as_echo_n "checking whether to build shared libraries... " >&6; }
11409 test "$can_build_shared" = "no" && enable_shared=no
11411 # On AIX, shared libraries and static libraries use the same namespace, and
11412 # are all built from PIC.
11413 case $host_os in
11414 aix3*)
11415 test "$enable_shared" = yes && enable_static=no
11416 if test -n "$RANLIB"; then
11417 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11418 postinstall_cmds='$RANLIB $lib'
11422 aix[4-9]*)
11423 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11424 test "$enable_shared" = yes && enable_static=no
11427 esac
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11429 $as_echo "$enable_shared" >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11432 $as_echo_n "checking whether to build static libraries... " >&6; }
11433 # Make sure either enable_shared or enable_static is yes.
11434 test "$enable_shared" = yes || enable_static=yes
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11436 $as_echo "$enable_static" >&6; }
11442 ac_ext=c
11443 ac_cpp='$CPP $CPPFLAGS'
11444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11448 CC="$lt_save_CC"
11462 # Source file extension for Go test sources.
11463 ac_ext=go
11465 # Object file extension for compiled Go test sources.
11466 objext=o
11467 objext_GO=$objext
11469 # Code to be used in simple compile tests
11470 lt_simple_compile_test_code="package main; func main() { }"
11472 # Code to be used in simple link tests
11473 lt_simple_link_test_code='package main; func main() { }'
11475 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11482 # If no C compiler was specified, use CC.
11483 LTCC=${LTCC-"$CC"}
11485 # If no C compiler flags were specified, use CFLAGS.
11486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11488 # Allow CC to be a program name with arguments.
11489 compiler=$CC
11492 # save warnings/boilerplate of simple test code
11493 ac_outfile=conftest.$ac_objext
11494 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11496 _lt_compiler_boilerplate=`cat conftest.err`
11497 $RM conftest*
11499 ac_outfile=conftest.$ac_objext
11500 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11502 _lt_linker_boilerplate=`cat conftest.err`
11503 $RM -r conftest*
11506 # Allow CC to be a program name with arguments.
11507 lt_save_CC="$CC"
11508 lt_save_GCC="$GCC"
11509 GCC=yes
11510 CC=${GOC-"gccgo"}
11511 compiler=$CC
11512 compiler_GO=$CC
11513 LD_GO="$LD"
11514 for cc_temp in $compiler""; do
11515 case $cc_temp in
11516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11518 \-*) ;;
11519 *) break;;
11520 esac
11521 done
11522 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11525 # Go did not exist at the time GCC didn't implicitly link libc in.
11526 archive_cmds_need_lc_GO=no
11528 old_archive_cmds_GO=$old_archive_cmds
11530 ## CAVEAT EMPTOR:
11531 ## There is no encapsulation within the following macros, do not change
11532 ## the running order or otherwise move them around unless you know exactly
11533 ## what you are doing...
11534 if test -n "$compiler"; then
11536 lt_prog_compiler_no_builtin_flag_GO=
11538 if test "$GCC" = yes; then
11539 case $cc_basename in
11540 nvcc*)
11541 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11543 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11544 esac
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11547 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11548 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 lt_cv_prog_compiler_rtti_exceptions=no
11552 ac_outfile=conftest.$ac_objext
11553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11554 lt_compiler_flag="-fno-rtti -fno-exceptions"
11555 # Insert the option either (1) after the last *FLAGS variable, or
11556 # (2) before a word containing "conftest.", or (3) at the end.
11557 # Note that $ac_compile itself does not contain backslashes and begins
11558 # with a dollar sign (not a hyphen), so the echo should work correctly.
11559 # The option is referenced via a variable to avoid confusing sed.
11560 lt_compile=`echo "$ac_compile" | $SED \
11561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11563 -e 's:$: $lt_compiler_flag:'`
11564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11565 (eval "$lt_compile" 2>conftest.err)
11566 ac_status=$?
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 if (exit $ac_status) && test -s "$ac_outfile"; then
11570 # The compiler can only warn and ignore the option if not recognized
11571 # So say no if there are warnings other than the usual output.
11572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11575 lt_cv_prog_compiler_rtti_exceptions=yes
11578 $RM conftest*
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11582 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11584 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11585 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11586 else
11594 lt_prog_compiler_wl_GO=
11595 lt_prog_compiler_pic_GO=
11596 lt_prog_compiler_static_GO=
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11599 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11601 if test "$GCC" = yes; then
11602 lt_prog_compiler_wl_GO='-Wl,'
11603 lt_prog_compiler_static_GO='-static'
11605 case $host_os in
11606 aix*)
11607 # All AIX code is PIC.
11608 if test "$host_cpu" = ia64; then
11609 # AIX 5 now supports IA64 processor
11610 lt_prog_compiler_static_GO='-Bstatic'
11612 lt_prog_compiler_pic_GO='-fPIC'
11615 amigaos*)
11616 case $host_cpu in
11617 powerpc)
11618 # see comment about AmigaOS4 .so support
11619 lt_prog_compiler_pic_GO='-fPIC'
11621 m68k)
11622 # FIXME: we need at least 68020 code to build shared libraries, but
11623 # adding the `-m68020' flag to GCC prevents building anything better,
11624 # like `-m68040'.
11625 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11627 esac
11630 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11631 # PIC is the default for these OSes.
11634 mingw* | cygwin* | pw32* | os2* | cegcc*)
11635 # This hack is so that the source file can tell whether it is being
11636 # built for inclusion in a dll (and should export symbols for example).
11637 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11638 # (--disable-auto-import) libraries
11639 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11642 darwin* | rhapsody*)
11643 # PIC is the default on this platform
11644 # Common symbols not allowed in MH_DYLIB files
11645 lt_prog_compiler_pic_GO='-fno-common'
11648 haiku*)
11649 # PIC is the default for Haiku.
11650 # The "-static" flag exists, but is broken.
11651 lt_prog_compiler_static_GO=
11654 hpux*)
11655 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11656 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11657 # sets the default TLS model and affects inlining.
11658 case $host_cpu in
11659 hppa*64*)
11660 # +Z the default
11663 lt_prog_compiler_pic_GO='-fPIC'
11665 esac
11668 interix[3-9]*)
11669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11670 # Instead, we relocate shared libraries at runtime.
11673 msdosdjgpp*)
11674 # Just because we use GCC doesn't mean we suddenly get shared libraries
11675 # on systems that don't support them.
11676 lt_prog_compiler_can_build_shared_GO=no
11677 enable_shared=no
11680 *nto* | *qnx*)
11681 # QNX uses GNU C++, but need to define -shared option too, otherwise
11682 # it will coredump.
11683 lt_prog_compiler_pic_GO='-fPIC -shared'
11686 sysv4*MP*)
11687 if test -d /usr/nec; then
11688 lt_prog_compiler_pic_GO=-Kconform_pic
11693 lt_prog_compiler_pic_GO='-fPIC'
11695 esac
11697 case $cc_basename in
11698 nvcc*) # Cuda Compiler Driver 2.2
11699 lt_prog_compiler_wl_GO='-Xlinker '
11700 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11702 esac
11703 else
11704 # PORTME Check for flag to pass linker flags through the system compiler.
11705 case $host_os in
11706 aix*)
11707 lt_prog_compiler_wl_GO='-Wl,'
11708 if test "$host_cpu" = ia64; then
11709 # AIX 5 now supports IA64 processor
11710 lt_prog_compiler_static_GO='-Bstatic'
11711 else
11712 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11716 mingw* | cygwin* | pw32* | os2* | cegcc*)
11717 # This hack is so that the source file can tell whether it is being
11718 # built for inclusion in a dll (and should export symbols for example).
11719 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11722 hpux9* | hpux10* | hpux11*)
11723 lt_prog_compiler_wl_GO='-Wl,'
11724 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11725 # not for PA HP-UX.
11726 case $host_cpu in
11727 hppa*64*|ia64*)
11728 # +Z the default
11731 lt_prog_compiler_pic_GO='+Z'
11733 esac
11734 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11735 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11738 irix5* | irix6* | nonstopux*)
11739 lt_prog_compiler_wl_GO='-Wl,'
11740 # PIC (with -KPIC) is the default.
11741 lt_prog_compiler_static_GO='-non_shared'
11744 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11745 case $cc_basename in
11746 # old Intel for x86_64 which still supported -KPIC.
11747 ecc*)
11748 lt_prog_compiler_wl_GO='-Wl,'
11749 lt_prog_compiler_pic_GO='-KPIC'
11750 lt_prog_compiler_static_GO='-static'
11752 # icc used to be incompatible with GCC.
11753 # ICC 10 doesn't accept -KPIC any more.
11754 icc* | ifort*)
11755 lt_prog_compiler_wl_GO='-Wl,'
11756 lt_prog_compiler_pic_GO='-fPIC'
11757 lt_prog_compiler_static_GO='-static'
11759 # Lahey Fortran 8.1.
11760 lf95*)
11761 lt_prog_compiler_wl_GO='-Wl,'
11762 lt_prog_compiler_pic_GO='--shared'
11763 lt_prog_compiler_static_GO='--static'
11765 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11766 # Portland Group compilers (*not* the Pentium gcc compiler,
11767 # which looks to be a dead project)
11768 lt_prog_compiler_wl_GO='-Wl,'
11769 lt_prog_compiler_pic_GO='-fpic'
11770 lt_prog_compiler_static_GO='-Bstatic'
11772 ccc*)
11773 lt_prog_compiler_wl_GO='-Wl,'
11774 # All Alpha code is PIC.
11775 lt_prog_compiler_static_GO='-non_shared'
11777 xl* | bgxl* | bgf* | mpixl*)
11778 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11779 lt_prog_compiler_wl_GO='-Wl,'
11780 lt_prog_compiler_pic_GO='-qpic'
11781 lt_prog_compiler_static_GO='-qstaticlink'
11784 case `$CC -V 2>&1 | sed 5q` in
11785 *Sun\ F* | *Sun*Fortran*)
11786 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11787 lt_prog_compiler_pic_GO='-KPIC'
11788 lt_prog_compiler_static_GO='-Bstatic'
11789 lt_prog_compiler_wl_GO=''
11791 *Sun\ C*)
11792 # Sun C 5.9
11793 lt_prog_compiler_pic_GO='-KPIC'
11794 lt_prog_compiler_static_GO='-Bstatic'
11795 lt_prog_compiler_wl_GO='-Wl,'
11797 esac
11799 esac
11802 newsos6)
11803 lt_prog_compiler_pic_GO='-KPIC'
11804 lt_prog_compiler_static_GO='-Bstatic'
11807 *nto* | *qnx*)
11808 # QNX uses GNU C++, but need to define -shared option too, otherwise
11809 # it will coredump.
11810 lt_prog_compiler_pic_GO='-fPIC -shared'
11813 osf3* | osf4* | osf5*)
11814 lt_prog_compiler_wl_GO='-Wl,'
11815 # All OSF/1 code is PIC.
11816 lt_prog_compiler_static_GO='-non_shared'
11819 rdos*)
11820 lt_prog_compiler_static_GO='-non_shared'
11823 solaris*)
11824 lt_prog_compiler_pic_GO='-KPIC'
11825 lt_prog_compiler_static_GO='-Bstatic'
11826 case $cc_basename in
11827 f77* | f90* | f95*)
11828 lt_prog_compiler_wl_GO='-Qoption ld ';;
11830 lt_prog_compiler_wl_GO='-Wl,';;
11831 esac
11834 sunos4*)
11835 lt_prog_compiler_wl_GO='-Qoption ld '
11836 lt_prog_compiler_pic_GO='-PIC'
11837 lt_prog_compiler_static_GO='-Bstatic'
11840 sysv4 | sysv4.2uw2* | sysv4.3*)
11841 lt_prog_compiler_wl_GO='-Wl,'
11842 lt_prog_compiler_pic_GO='-KPIC'
11843 lt_prog_compiler_static_GO='-Bstatic'
11846 sysv4*MP*)
11847 if test -d /usr/nec ;then
11848 lt_prog_compiler_pic_GO='-Kconform_pic'
11849 lt_prog_compiler_static_GO='-Bstatic'
11853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11854 lt_prog_compiler_wl_GO='-Wl,'
11855 lt_prog_compiler_pic_GO='-KPIC'
11856 lt_prog_compiler_static_GO='-Bstatic'
11859 unicos*)
11860 lt_prog_compiler_wl_GO='-Wl,'
11861 lt_prog_compiler_can_build_shared_GO=no
11864 uts4*)
11865 lt_prog_compiler_pic_GO='-pic'
11866 lt_prog_compiler_static_GO='-Bstatic'
11870 lt_prog_compiler_can_build_shared_GO=no
11872 esac
11875 case $host_os in
11876 # For platforms which do not support PIC, -DPIC is meaningless:
11877 *djgpp*)
11878 lt_prog_compiler_pic_GO=
11881 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11883 esac
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11885 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11890 # Check to make sure the PIC flag actually works.
11892 if test -n "$lt_prog_compiler_pic_GO"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11894 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11895 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 lt_cv_prog_compiler_pic_works_GO=no
11899 ac_outfile=conftest.$ac_objext
11900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11901 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11902 # Insert the option either (1) after the last *FLAGS variable, or
11903 # (2) before a word containing "conftest.", or (3) at the end.
11904 # Note that $ac_compile itself does not contain backslashes and begins
11905 # with a dollar sign (not a hyphen), so the echo should work correctly.
11906 # The option is referenced via a variable to avoid confusing sed.
11907 lt_compile=`echo "$ac_compile" | $SED \
11908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11910 -e 's:$: $lt_compiler_flag:'`
11911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11912 (eval "$lt_compile" 2>conftest.err)
11913 ac_status=$?
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 if (exit $ac_status) && test -s "$ac_outfile"; then
11917 # The compiler can only warn and ignore the option if not recognized
11918 # So say no if there are warnings other than the usual output.
11919 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11921 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11922 lt_cv_prog_compiler_pic_works_GO=yes
11925 $RM conftest*
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11929 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11931 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11932 case $lt_prog_compiler_pic_GO in
11933 "" | " "*) ;;
11934 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11935 esac
11936 else
11937 lt_prog_compiler_pic_GO=
11938 lt_prog_compiler_can_build_shared_GO=no
11946 # Check to make sure the static flag actually works.
11948 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11950 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11951 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 lt_cv_prog_compiler_static_works_GO=no
11955 save_LDFLAGS="$LDFLAGS"
11956 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11957 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11959 # The linker can only warn and ignore the option if not recognized
11960 # So say no if there are warnings
11961 if test -s conftest.err; then
11962 # Append any errors to the config.log.
11963 cat conftest.err 1>&5
11964 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11966 if diff conftest.exp conftest.er2 >/dev/null; then
11967 lt_cv_prog_compiler_static_works_GO=yes
11969 else
11970 lt_cv_prog_compiler_static_works_GO=yes
11973 $RM -r conftest*
11974 LDFLAGS="$save_LDFLAGS"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11978 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11980 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11982 else
11983 lt_prog_compiler_static_GO=
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11990 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11991 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 lt_cv_prog_compiler_c_o_GO=no
11995 $RM -r conftest 2>/dev/null
11996 mkdir conftest
11997 cd conftest
11998 mkdir out
11999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12001 lt_compiler_flag="-o out/conftest2.$ac_objext"
12002 # Insert the option either (1) after the last *FLAGS variable, or
12003 # (2) before a word containing "conftest.", or (3) at the end.
12004 # Note that $ac_compile itself does not contain backslashes and begins
12005 # with a dollar sign (not a hyphen), so the echo should work correctly.
12006 lt_compile=`echo "$ac_compile" | $SED \
12007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12009 -e 's:$: $lt_compiler_flag:'`
12010 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12011 (eval "$lt_compile" 2>out/conftest.err)
12012 ac_status=$?
12013 cat out/conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12016 then
12017 # The compiler can only warn and ignore the option if not recognized
12018 # So say no if there are warnings
12019 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12020 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12021 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12022 lt_cv_prog_compiler_c_o_GO=yes
12025 chmod u+w . 2>&5
12026 $RM conftest*
12027 # SGI C++ compiler will create directory out/ii_files/ for
12028 # template instantiation
12029 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12030 $RM out/* && rmdir out
12031 cd ..
12032 $RM -r conftest
12033 $RM conftest*
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12037 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12043 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 lt_cv_prog_compiler_c_o_GO=no
12047 $RM -r conftest 2>/dev/null
12048 mkdir conftest
12049 cd conftest
12050 mkdir out
12051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12053 lt_compiler_flag="-o out/conftest2.$ac_objext"
12054 # Insert the option either (1) after the last *FLAGS variable, or
12055 # (2) before a word containing "conftest.", or (3) at the end.
12056 # Note that $ac_compile itself does not contain backslashes and begins
12057 # with a dollar sign (not a hyphen), so the echo should work correctly.
12058 lt_compile=`echo "$ac_compile" | $SED \
12059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12061 -e 's:$: $lt_compiler_flag:'`
12062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12063 (eval "$lt_compile" 2>out/conftest.err)
12064 ac_status=$?
12065 cat out/conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12068 then
12069 # The compiler can only warn and ignore the option if not recognized
12070 # So say no if there are warnings
12071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12074 lt_cv_prog_compiler_c_o_GO=yes
12077 chmod u+w . 2>&5
12078 $RM conftest*
12079 # SGI C++ compiler will create directory out/ii_files/ for
12080 # template instantiation
12081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12082 $RM out/* && rmdir out
12083 cd ..
12084 $RM -r conftest
12085 $RM conftest*
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12089 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12094 hard_links="nottested"
12095 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12096 # do not overwrite the value of need_locks provided by the user
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12098 $as_echo_n "checking if we can lock with hard links... " >&6; }
12099 hard_links=yes
12100 $RM conftest*
12101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12102 touch conftest.a
12103 ln conftest.a conftest.b 2>&5 || hard_links=no
12104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12106 $as_echo "$hard_links" >&6; }
12107 if test "$hard_links" = no; then
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12109 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12110 need_locks=warn
12112 else
12113 need_locks=no
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12119 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12121 runpath_var=
12122 allow_undefined_flag_GO=
12123 always_export_symbols_GO=no
12124 archive_cmds_GO=
12125 archive_expsym_cmds_GO=
12126 compiler_needs_object_GO=no
12127 enable_shared_with_static_runtimes_GO=no
12128 export_dynamic_flag_spec_GO=
12129 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12130 hardcode_automatic_GO=no
12131 hardcode_direct_GO=no
12132 hardcode_direct_absolute_GO=no
12133 hardcode_libdir_flag_spec_GO=
12134 hardcode_libdir_flag_spec_ld_GO=
12135 hardcode_libdir_separator_GO=
12136 hardcode_minus_L_GO=no
12137 hardcode_shlibpath_var_GO=unsupported
12138 inherit_rpath_GO=no
12139 link_all_deplibs_GO=unknown
12140 module_cmds_GO=
12141 module_expsym_cmds_GO=
12142 old_archive_from_new_cmds_GO=
12143 old_archive_from_expsyms_cmds_GO=
12144 thread_safe_flag_spec_GO=
12145 whole_archive_flag_spec_GO=
12146 # include_expsyms should be a list of space-separated symbols to be *always*
12147 # included in the symbol list
12148 include_expsyms_GO=
12149 # exclude_expsyms can be an extended regexp of symbols to exclude
12150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12152 # as well as any symbol that contains `d'.
12153 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12155 # platforms (ab)use it in PIC code, but their linkers get confused if
12156 # the symbol is explicitly referenced. Since portable code cannot
12157 # rely on this symbol name, it's probably fine to never include it in
12158 # preloaded symbol tables.
12159 # Exclude shared library initialization/finalization symbols.
12160 extract_expsyms_cmds=
12162 case $host_os in
12163 cygwin* | mingw* | pw32* | cegcc*)
12164 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12165 # When not using gcc, we currently assume that we are using
12166 # Microsoft Visual C++.
12167 if test "$GCC" != yes; then
12168 with_gnu_ld=no
12171 interix*)
12172 # we just hope/assume this is gcc and not c89 (= MSVC++)
12173 with_gnu_ld=yes
12175 openbsd*)
12176 with_gnu_ld=no
12178 esac
12180 ld_shlibs_GO=yes
12182 # On some targets, GNU ld is compatible enough with the native linker
12183 # that we're better off using the native interface for both.
12184 lt_use_gnu_ld_interface=no
12185 if test "$with_gnu_ld" = yes; then
12186 case $host_os in
12187 aix*)
12188 # The AIX port of GNU ld has always aspired to compatibility
12189 # with the native linker. However, as the warning in the GNU ld
12190 # block says, versions before 2.19.5* couldn't really create working
12191 # shared libraries, regardless of the interface used.
12192 case `$LD -v 2>&1` in
12193 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12194 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12195 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12197 lt_use_gnu_ld_interface=yes
12199 esac
12202 lt_use_gnu_ld_interface=yes
12204 esac
12207 if test "$lt_use_gnu_ld_interface" = yes; then
12208 # If archive_cmds runs LD, not CC, wlarc should be empty
12209 wlarc='${wl}'
12211 # Set some defaults for GNU ld with shared library support. These
12212 # are reset later if shared libraries are not supported. Putting them
12213 # here allows them to be overridden if necessary.
12214 runpath_var=LD_RUN_PATH
12215 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12216 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12217 # ancient GNU ld didn't support --whole-archive et. al.
12218 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12219 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12220 else
12221 whole_archive_flag_spec_GO=
12223 supports_anon_versioning=no
12224 case `$LD -v 2>&1` in
12225 *GNU\ gold*) supports_anon_versioning=yes ;;
12226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12229 *\ 2.11.*) ;; # other 2.11 versions
12230 *) supports_anon_versioning=yes ;;
12231 esac
12233 # See if GNU ld supports shared libraries.
12234 case $host_os in
12235 aix[3-9]*)
12236 # On AIX/PPC, the GNU linker is very broken
12237 if test "$host_cpu" != ia64; then
12238 ld_shlibs_GO=no
12239 cat <<_LT_EOF 1>&2
12241 *** Warning: the GNU linker, at least up to release 2.19, is reported
12242 *** to be unable to reliably create shared libraries on AIX.
12243 *** Therefore, libtool is disabling shared libraries support. If you
12244 *** really care for shared libraries, you may want to install binutils
12245 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12246 *** You will then need to restart the configuration process.
12248 _LT_EOF
12252 amigaos*)
12253 case $host_cpu in
12254 powerpc)
12255 # see comment about AmigaOS4 .so support
12256 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257 archive_expsym_cmds_GO=''
12259 m68k)
12260 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)'
12261 hardcode_libdir_flag_spec_GO='-L$libdir'
12262 hardcode_minus_L_GO=yes
12264 esac
12267 beos*)
12268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12269 allow_undefined_flag_GO=unsupported
12270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12271 # support --undefined. This deserves some investigation. FIXME
12272 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273 else
12274 ld_shlibs_GO=no
12278 cygwin* | mingw* | pw32* | cegcc*)
12279 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12280 # as there is no search path for DLLs.
12281 hardcode_libdir_flag_spec_GO='-L$libdir'
12282 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12283 allow_undefined_flag_GO=unsupported
12284 always_export_symbols_GO=no
12285 enable_shared_with_static_runtimes_GO=yes
12286 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12288 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12289 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12290 # If the export-symbols file already is a .def file (1st line
12291 # is EXPORTS), use it as is; otherwise, prepend...
12292 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12293 cp $export_symbols $output_objdir/$soname.def;
12294 else
12295 echo EXPORTS > $output_objdir/$soname.def;
12296 cat $export_symbols >> $output_objdir/$soname.def;
12298 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12299 else
12300 ld_shlibs_GO=no
12304 haiku*)
12305 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12306 link_all_deplibs_GO=yes
12309 interix[3-9]*)
12310 hardcode_direct_GO=no
12311 hardcode_shlibpath_var_GO=no
12312 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12313 export_dynamic_flag_spec_GO='${wl}-E'
12314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12315 # Instead, shared libraries are loaded at an image base (0x10000000 by
12316 # default) and relocated if they conflict, which is a slow very memory
12317 # consuming and fragmenting process. To avoid this, we pick a random,
12318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12319 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12320 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'
12321 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'
12324 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12325 tmp_diet=no
12326 if test "$host_os" = linux-dietlibc; then
12327 case $cc_basename in
12328 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12329 esac
12331 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12332 && test "$tmp_diet" = no
12333 then
12334 tmp_addflag=
12335 tmp_sharedflag='-shared'
12336 case $cc_basename,$host_cpu in
12337 pgcc*) # Portland Group C compiler
12338 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'
12339 tmp_addflag=' $pic_flag'
12341 pgf77* | pgf90* | pgf95* | pgfortran*)
12342 # Portland Group f77 and f90 compilers
12343 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'
12344 tmp_addflag=' $pic_flag -Mnomain' ;;
12345 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12346 tmp_addflag=' -i_dynamic' ;;
12347 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12348 tmp_addflag=' -i_dynamic -nofor_main' ;;
12349 ifc* | ifort*) # Intel Fortran compiler
12350 tmp_addflag=' -nofor_main' ;;
12351 lf95*) # Lahey Fortran 8.1
12352 whole_archive_flag_spec_GO=
12353 tmp_sharedflag='--shared' ;;
12354 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12355 tmp_sharedflag='-qmkshrobj'
12356 tmp_addflag= ;;
12357 nvcc*) # Cuda Compiler Driver 2.2
12358 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'
12359 compiler_needs_object_GO=yes
12361 esac
12362 case `$CC -V 2>&1 | sed 5q` in
12363 *Sun\ C*) # Sun C 5.9
12364 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'
12365 compiler_needs_object_GO=yes
12366 tmp_sharedflag='-G' ;;
12367 *Sun\ F*) # Sun Fortran 8.3
12368 tmp_sharedflag='-G' ;;
12369 esac
12370 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12372 if test "x$supports_anon_versioning" = xyes; then
12373 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12375 echo "local: *; };" >> $output_objdir/$libname.ver~
12376 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12379 case $cc_basename in
12380 xlf* | bgf* | bgxlf* | mpixlf*)
12381 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12382 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12383 hardcode_libdir_flag_spec_GO=
12384 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12385 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12386 if test "x$supports_anon_versioning" = xyes; then
12387 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12389 echo "local: *; };" >> $output_objdir/$libname.ver~
12390 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12393 esac
12394 else
12395 ld_shlibs_GO=no
12399 netbsd*)
12400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12401 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12402 wlarc=
12403 else
12404 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12405 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12409 solaris*)
12410 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12411 ld_shlibs_GO=no
12412 cat <<_LT_EOF 1>&2
12414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12415 *** create shared libraries on Solaris systems. Therefore, libtool
12416 *** is disabling shared libraries support. We urge you to upgrade GNU
12417 *** binutils to release 2.9.1 or newer. Another option is to modify
12418 *** your PATH or compiler configuration so that the native linker is
12419 *** used, and then restart.
12421 _LT_EOF
12422 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12423 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12424 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12425 else
12426 ld_shlibs_GO=no
12430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12431 case `$LD -v 2>&1` in
12432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12433 ld_shlibs_GO=no
12434 cat <<_LT_EOF 1>&2
12436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12437 *** reliably create shared libraries on SCO systems. Therefore, libtool
12438 *** is disabling shared libraries support. We urge you to upgrade GNU
12439 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12440 *** your PATH or compiler configuration so that the native linker is
12441 *** used, and then restart.
12443 _LT_EOF
12446 # For security reasons, it is highly recommended that you always
12447 # use absolute paths for naming shared libraries, and exclude the
12448 # DT_RUNPATH tag from executables and libraries. But doing so
12449 # requires that you compile everything twice, which is a pain.
12450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12451 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12452 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12453 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12454 else
12455 ld_shlibs_GO=no
12458 esac
12461 sunos4*)
12462 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12463 wlarc=
12464 hardcode_direct_GO=yes
12465 hardcode_shlibpath_var_GO=no
12469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12470 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12471 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12472 else
12473 ld_shlibs_GO=no
12476 esac
12478 if test "$ld_shlibs_GO" = no; then
12479 runpath_var=
12480 hardcode_libdir_flag_spec_GO=
12481 export_dynamic_flag_spec_GO=
12482 whole_archive_flag_spec_GO=
12484 else
12485 # PORTME fill in a description of your system's linker (not GNU ld)
12486 case $host_os in
12487 aix3*)
12488 allow_undefined_flag_GO=unsupported
12489 always_export_symbols_GO=yes
12490 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'
12491 # Note: this linker hardcodes the directories in LIBPATH if there
12492 # are no directories specified by -L.
12493 hardcode_minus_L_GO=yes
12494 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12495 # Neither direct hardcoding nor static linking is supported with a
12496 # broken collect2.
12497 hardcode_direct_GO=unsupported
12501 aix[4-9]*)
12502 if test "$host_cpu" = ia64; then
12503 # On IA64, the linker does run time linking by default, so we don't
12504 # have to do anything special.
12505 aix_use_runtimelinking=no
12506 exp_sym_flag='-Bexport'
12507 no_entry_flag=""
12508 else
12509 # If we're using GNU nm, then we don't want the "-C" option.
12510 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12511 # Also, AIX nm treats weak defined symbols like other global
12512 # defined symbols, whereas GNU nm marks them as "W".
12513 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12514 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'
12515 else
12516 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'
12518 aix_use_runtimelinking=no
12520 # Test if we are trying to use run time linking or normal
12521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12522 # need to do runtime linking.
12523 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12524 for ld_flag in $LDFLAGS; do
12525 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12526 aix_use_runtimelinking=yes
12527 break
12529 done
12531 esac
12533 exp_sym_flag='-bexport'
12534 no_entry_flag='-bnoentry'
12537 # When large executables or shared objects are built, AIX ld can
12538 # have problems creating the table of contents. If linking a library
12539 # or program results in "error TOC overflow" add -mminimal-toc to
12540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12543 archive_cmds_GO=''
12544 hardcode_direct_GO=yes
12545 hardcode_direct_absolute_GO=yes
12546 hardcode_libdir_separator_GO=':'
12547 link_all_deplibs_GO=yes
12548 file_list_spec_GO='${wl}-f,'
12550 if test "$GCC" = yes; then
12551 case $host_os in aix4.[012]|aix4.[012].*)
12552 # We only want to do this on AIX 4.2 and lower, the check
12553 # below for broken collect2 doesn't work under 4.3+
12554 collect2name=`${CC} -print-prog-name=collect2`
12555 if test -f "$collect2name" &&
12556 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12557 then
12558 # We have reworked collect2
12560 else
12561 # We have old collect2
12562 hardcode_direct_GO=unsupported
12563 # It fails to find uninstalled libraries when the uninstalled
12564 # path is not listed in the libpath. Setting hardcode_minus_L
12565 # to unsupported forces relinking
12566 hardcode_minus_L_GO=yes
12567 hardcode_libdir_flag_spec_GO='-L$libdir'
12568 hardcode_libdir_separator_GO=
12571 esac
12572 shared_flag='-shared'
12573 if test "$aix_use_runtimelinking" = yes; then
12574 shared_flag="$shared_flag "'${wl}-G'
12576 else
12577 # not using gcc
12578 if test "$host_cpu" = ia64; then
12579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12580 # chokes on -Wl,-G. The following line is correct:
12581 shared_flag='-G'
12582 else
12583 if test "$aix_use_runtimelinking" = yes; then
12584 shared_flag='${wl}-G'
12585 else
12586 shared_flag='${wl}-bM:SRE'
12591 export_dynamic_flag_spec_GO='${wl}-bexpall'
12592 # It seems that -bexpall does not export symbols beginning with
12593 # underscore (_), so it is better to generate a list of symbols to export.
12594 always_export_symbols_GO=yes
12595 if test "$aix_use_runtimelinking" = yes; then
12596 # Warning - without using the other runtime loading flags (-brtl),
12597 # -berok will link without error, but may produce a broken library.
12598 allow_undefined_flag_GO='-berok'
12599 # Determine the default libpath from the value encoded in an
12600 # empty executable.
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12605 main ()
12609 return 0;
12611 _ACEOF
12612 if ac_fn_c_try_link "$LINENO"; then :
12614 lt_aix_libpath_sed='
12615 /Import File Strings/,/^$/ {
12616 /^0/ {
12617 s/^0 *\(.*\)$/\1/
12621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12622 # Check for a 64-bit object if we didn't find anything.
12623 if test -z "$aix_libpath"; then
12624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12627 rm -f core conftest.err conftest.$ac_objext \
12628 conftest$ac_exeext conftest.$ac_ext
12629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12631 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12632 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"
12633 else
12634 if test "$host_cpu" = ia64; then
12635 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12636 allow_undefined_flag_GO="-z nodefs"
12637 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"
12638 else
12639 # Determine the default libpath from the value encoded in an
12640 # empty executable.
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12645 main ()
12649 return 0;
12651 _ACEOF
12652 if ac_fn_c_try_link "$LINENO"; then :
12654 lt_aix_libpath_sed='
12655 /Import File Strings/,/^$/ {
12656 /^0/ {
12657 s/^0 *\(.*\)$/\1/
12661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12662 # Check for a 64-bit object if we didn't find anything.
12663 if test -z "$aix_libpath"; then
12664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12667 rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12671 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12672 # Warning - without using the other run time loading flags,
12673 # -berok will link without error, but may produce a broken library.
12674 no_undefined_flag_GO=' ${wl}-bernotok'
12675 allow_undefined_flag_GO=' ${wl}-berok'
12676 if test "$with_gnu_ld" = yes; then
12677 # We only use this code for GNU lds that support --whole-archive.
12678 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12679 else
12680 # Exported symbols can be pulled into shared objects from archives
12681 whole_archive_flag_spec_GO='$convenience'
12683 archive_cmds_need_lc_GO=yes
12684 # This is similar to how AIX traditionally builds its shared libraries.
12685 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'
12690 amigaos*)
12691 case $host_cpu in
12692 powerpc)
12693 # see comment about AmigaOS4 .so support
12694 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12695 archive_expsym_cmds_GO=''
12697 m68k)
12698 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)'
12699 hardcode_libdir_flag_spec_GO='-L$libdir'
12700 hardcode_minus_L_GO=yes
12702 esac
12705 bsdi[45]*)
12706 export_dynamic_flag_spec_GO=-rdynamic
12709 cygwin* | mingw* | pw32* | cegcc*)
12710 # When not using gcc, we currently assume that we are using
12711 # Microsoft Visual C++.
12712 # hardcode_libdir_flag_spec is actually meaningless, as there is
12713 # no search path for DLLs.
12714 hardcode_libdir_flag_spec_GO=' '
12715 allow_undefined_flag_GO=unsupported
12716 # Tell ltmain to make .lib files, not .a files.
12717 libext=lib
12718 # Tell ltmain to make .dll files, not .so files.
12719 shrext_cmds=".dll"
12720 # FIXME: Setting linknames here is a bad hack.
12721 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12722 # The linker will automatically build a .lib file if we build a DLL.
12723 old_archive_from_new_cmds_GO='true'
12724 # FIXME: Should let the user specify the lib program.
12725 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12726 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12727 enable_shared_with_static_runtimes_GO=yes
12730 darwin* | rhapsody*)
12733 archive_cmds_need_lc_GO=no
12734 hardcode_direct_GO=no
12735 hardcode_automatic_GO=yes
12736 hardcode_shlibpath_var_GO=unsupported
12737 if test "$lt_cv_ld_force_load" = "yes"; then
12738 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\"`'
12739 else
12740 whole_archive_flag_spec_GO=''
12742 link_all_deplibs_GO=yes
12743 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12744 case $cc_basename in
12745 ifort*) _lt_dar_can_shared=yes ;;
12746 *) _lt_dar_can_shared=$GCC ;;
12747 esac
12748 if test "$_lt_dar_can_shared" = "yes"; then
12749 output_verbose_link_cmd=func_echo_all
12750 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}"
12751 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12752 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}"
12753 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}"
12755 else
12756 ld_shlibs_GO=no
12761 dgux*)
12762 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12763 hardcode_libdir_flag_spec_GO='-L$libdir'
12764 hardcode_shlibpath_var_GO=no
12767 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12768 # support. Future versions do this automatically, but an explicit c++rt0.o
12769 # does not break anything, and helps significantly (at the cost of a little
12770 # extra space).
12771 freebsd2.2*)
12772 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12773 hardcode_libdir_flag_spec_GO='-R$libdir'
12774 hardcode_direct_GO=yes
12775 hardcode_shlibpath_var_GO=no
12778 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12779 freebsd2.*)
12780 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12781 hardcode_direct_GO=yes
12782 hardcode_minus_L_GO=yes
12783 hardcode_shlibpath_var_GO=no
12786 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12787 freebsd* | dragonfly*)
12788 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12789 hardcode_libdir_flag_spec_GO='-R$libdir'
12790 hardcode_direct_GO=yes
12791 hardcode_shlibpath_var_GO=no
12794 hpux9*)
12795 if test "$GCC" = yes; then
12796 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'
12797 else
12798 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'
12800 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12801 hardcode_libdir_separator_GO=:
12802 hardcode_direct_GO=yes
12804 # hardcode_minus_L: Not really in the search PATH,
12805 # but as the default location of the library.
12806 hardcode_minus_L_GO=yes
12807 export_dynamic_flag_spec_GO='${wl}-E'
12810 hpux10*)
12811 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12812 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12813 else
12814 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12816 if test "$with_gnu_ld" = no; then
12817 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12818 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12819 hardcode_libdir_separator_GO=:
12820 hardcode_direct_GO=yes
12821 hardcode_direct_absolute_GO=yes
12822 export_dynamic_flag_spec_GO='${wl}-E'
12823 # hardcode_minus_L: Not really in the search PATH,
12824 # but as the default location of the library.
12825 hardcode_minus_L_GO=yes
12829 hpux11*)
12830 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12831 case $host_cpu in
12832 hppa*64*)
12833 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12835 ia64*)
12836 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12839 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12841 esac
12842 else
12843 case $host_cpu in
12844 hppa*64*)
12845 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12847 ia64*)
12848 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12851 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12853 esac
12855 if test "$with_gnu_ld" = no; then
12856 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12857 hardcode_libdir_separator_GO=:
12859 case $host_cpu in
12860 hppa*64*|ia64*)
12861 hardcode_direct_GO=no
12862 hardcode_shlibpath_var_GO=no
12865 hardcode_direct_GO=yes
12866 hardcode_direct_absolute_GO=yes
12867 export_dynamic_flag_spec_GO='${wl}-E'
12869 # hardcode_minus_L: Not really in the search PATH,
12870 # but as the default location of the library.
12871 hardcode_minus_L_GO=yes
12873 esac
12877 irix5* | irix6* | nonstopux*)
12878 if test "$GCC" = yes; then
12879 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'
12880 # Try to use the -exported_symbol ld option, if it does not
12881 # work, assume that -exports_file does not work either and
12882 # implicitly export all symbols.
12883 save_LDFLAGS="$LDFLAGS"
12884 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 int foo(void) {}
12888 _ACEOF
12889 if ac_fn_c_try_link "$LINENO"; then :
12890 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'
12893 rm -f core conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LDFLAGS="$save_LDFLAGS"
12896 else
12897 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'
12898 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'
12900 archive_cmds_need_lc_GO='no'
12901 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12902 hardcode_libdir_separator_GO=:
12903 inherit_rpath_GO=yes
12904 link_all_deplibs_GO=yes
12907 netbsd*)
12908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12909 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12910 else
12911 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12913 hardcode_libdir_flag_spec_GO='-R$libdir'
12914 hardcode_direct_GO=yes
12915 hardcode_shlibpath_var_GO=no
12918 newsos6)
12919 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12920 hardcode_direct_GO=yes
12921 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12922 hardcode_libdir_separator_GO=:
12923 hardcode_shlibpath_var_GO=no
12926 *nto* | *qnx*)
12929 openbsd*)
12930 if test -f /usr/libexec/ld.so; then
12931 hardcode_direct_GO=yes
12932 hardcode_shlibpath_var_GO=no
12933 hardcode_direct_absolute_GO=yes
12934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12935 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12936 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12937 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12938 export_dynamic_flag_spec_GO='${wl}-E'
12939 else
12940 case $host_os in
12941 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12942 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12943 hardcode_libdir_flag_spec_GO='-R$libdir'
12946 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12947 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12949 esac
12951 else
12952 ld_shlibs_GO=no
12956 os2*)
12957 hardcode_libdir_flag_spec_GO='-L$libdir'
12958 hardcode_minus_L_GO=yes
12959 allow_undefined_flag_GO=unsupported
12960 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'
12961 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12964 osf3*)
12965 if test "$GCC" = yes; then
12966 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12967 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'
12968 else
12969 allow_undefined_flag_GO=' -expect_unresolved \*'
12970 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'
12972 archive_cmds_need_lc_GO='no'
12973 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12974 hardcode_libdir_separator_GO=:
12977 osf4* | osf5*) # as osf3* with the addition of -msym flag
12978 if test "$GCC" = yes; then
12979 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12980 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'
12981 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12982 else
12983 allow_undefined_flag_GO=' -expect_unresolved \*'
12984 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'
12985 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~
12986 $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'
12988 # Both c and cxx compiler support -rpath directly
12989 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12991 archive_cmds_need_lc_GO='no'
12992 hardcode_libdir_separator_GO=:
12995 solaris*)
12996 no_undefined_flag_GO=' -z defs'
12997 if test "$GCC" = yes; then
12998 wlarc='${wl}'
12999 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13000 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13001 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13002 else
13003 case `$CC -V 2>&1` in
13004 *"Compilers 5.0"*)
13005 wlarc=''
13006 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13007 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13008 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13011 wlarc='${wl}'
13012 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13013 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13014 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13016 esac
13018 hardcode_libdir_flag_spec_GO='-R$libdir'
13019 hardcode_shlibpath_var_GO=no
13020 case $host_os in
13021 solaris2.[0-5] | solaris2.[0-5].*) ;;
13023 # The compiler driver will combine and reorder linker options,
13024 # but understands `-z linker_flag'. GCC discards it without `$wl',
13025 # but is careful enough not to reorder.
13026 # Supported since Solaris 2.6 (maybe 2.5.1?)
13027 if test "$GCC" = yes; then
13028 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13029 else
13030 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13033 esac
13034 link_all_deplibs_GO=yes
13037 sunos4*)
13038 if test "x$host_vendor" = xsequent; then
13039 # Use $CC to link under sequent, because it throws in some extra .o
13040 # files that make .init and .fini sections work.
13041 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13042 else
13043 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13045 hardcode_libdir_flag_spec_GO='-L$libdir'
13046 hardcode_direct_GO=yes
13047 hardcode_minus_L_GO=yes
13048 hardcode_shlibpath_var_GO=no
13051 sysv4)
13052 case $host_vendor in
13053 sni)
13054 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13055 hardcode_direct_GO=yes # is this really true???
13057 siemens)
13058 ## LD is ld it makes a PLAMLIB
13059 ## CC just makes a GrossModule.
13060 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13061 reload_cmds_GO='$CC -r -o $output$reload_objs'
13062 hardcode_direct_GO=no
13064 motorola)
13065 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13066 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13068 esac
13069 runpath_var='LD_RUN_PATH'
13070 hardcode_shlibpath_var_GO=no
13073 sysv4.3*)
13074 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13075 hardcode_shlibpath_var_GO=no
13076 export_dynamic_flag_spec_GO='-Bexport'
13079 sysv4*MP*)
13080 if test -d /usr/nec; then
13081 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13082 hardcode_shlibpath_var_GO=no
13083 runpath_var=LD_RUN_PATH
13084 hardcode_runpath_var=yes
13085 ld_shlibs_GO=yes
13089 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13090 no_undefined_flag_GO='${wl}-z,text'
13091 archive_cmds_need_lc_GO=no
13092 hardcode_shlibpath_var_GO=no
13093 runpath_var='LD_RUN_PATH'
13095 if test "$GCC" = yes; then
13096 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 else
13099 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 sysv5* | sco3.2v5* | sco5v6*)
13105 # Note: We can NOT use -z defs as we might desire, because we do not
13106 # link with -lc, and that would cause any symbols used from libc to
13107 # always be unresolved, which means just about no library would
13108 # ever link correctly. If we're not using GNU ld we use -z text
13109 # though, which does catch some bad symbols but isn't as heavy-handed
13110 # as -z defs.
13111 no_undefined_flag_GO='${wl}-z,text'
13112 allow_undefined_flag_GO='${wl}-z,nodefs'
13113 archive_cmds_need_lc_GO=no
13114 hardcode_shlibpath_var_GO=no
13115 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13116 hardcode_libdir_separator_GO=':'
13117 link_all_deplibs_GO=yes
13118 export_dynamic_flag_spec_GO='${wl}-Bexport'
13119 runpath_var='LD_RUN_PATH'
13121 if test "$GCC" = yes; then
13122 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13123 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13124 else
13125 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13126 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13130 uts4*)
13131 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13132 hardcode_libdir_flag_spec_GO='-L$libdir'
13133 hardcode_shlibpath_var_GO=no
13137 ld_shlibs_GO=no
13139 esac
13141 if test x$host_vendor = xsni; then
13142 case $host in
13143 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13144 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13146 esac
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13151 $as_echo "$ld_shlibs_GO" >&6; }
13152 test "$ld_shlibs_GO" = no && can_build_shared=no
13154 with_gnu_ld_GO=$with_gnu_ld
13162 # Do we need to explicitly link libc?
13164 case "x$archive_cmds_need_lc_GO" in
13165 x|xyes)
13166 # Assume -lc should be added
13167 archive_cmds_need_lc_GO=yes
13169 if test "$enable_shared" = yes && test "$GCC" = yes; then
13170 case $archive_cmds_GO in
13171 *'~'*)
13172 # FIXME: we may have to deal with multi-command sequences.
13174 '$CC '*)
13175 # Test whether the compiler implicitly links with -lc since on some
13176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13177 # to ld, don't add -lc before -lgcc.
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13179 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13180 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 $RM conftest*
13184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13187 (eval $ac_compile) 2>&5
13188 ac_status=$?
13189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190 test $ac_status = 0; } 2>conftest.err; then
13191 soname=conftest
13192 lib=conftest
13193 libobjs=conftest.$ac_objext
13194 deplibs=
13195 wl=$lt_prog_compiler_wl_GO
13196 pic_flag=$lt_prog_compiler_pic_GO
13197 compiler_flags=-v
13198 linker_flags=-v
13199 verstring=
13200 output_objdir=.
13201 libname=conftest
13202 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13203 allow_undefined_flag_GO=
13204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13205 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13206 ac_status=$?
13207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13208 test $ac_status = 0; }
13209 then
13210 lt_cv_archive_cmds_need_lc_GO=no
13211 else
13212 lt_cv_archive_cmds_need_lc_GO=yes
13214 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13215 else
13216 cat conftest.err 1>&5
13218 $RM conftest*
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13222 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13223 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13225 esac
13228 esac
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13294 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13295 hardcode_action_GO=
13296 if test -n "$hardcode_libdir_flag_spec_GO" ||
13297 test -n "$runpath_var_GO" ||
13298 test "X$hardcode_automatic_GO" = "Xyes" ; then
13300 # We can hardcode non-existent directories.
13301 if test "$hardcode_direct_GO" != no &&
13302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13303 # have to relink, otherwise we might link with an installed library
13304 # when we should be linking with a yet-to-be-installed one
13305 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13306 test "$hardcode_minus_L_GO" != no; then
13307 # Linking always hardcodes the temporary library directory.
13308 hardcode_action_GO=relink
13309 else
13310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13311 hardcode_action_GO=immediate
13313 else
13314 # We cannot hardcode anything, or else we can only hardcode existing
13315 # directories.
13316 hardcode_action_GO=unsupported
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13319 $as_echo "$hardcode_action_GO" >&6; }
13321 if test "$hardcode_action_GO" = relink ||
13322 test "$inherit_rpath_GO" = yes; then
13323 # Fast installation is not supported
13324 enable_fast_install=no
13325 elif test "$shlibpath_overrides_runpath" = yes ||
13326 test "$enable_shared" = no; then
13327 # Fast installation is not necessary
13328 enable_fast_install=needless
13339 ac_ext=c
13340 ac_cpp='$CPP $CPPFLAGS'
13341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13346 GCC=$lt_save_GCC
13347 CC="$lt_save_CC"
13352 ac_config_commands="$ac_config_commands libtool"
13357 # Only expand once:
13363 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13366 for ac_prog in gawk mawk nawk awk
13368 # Extract the first word of "$ac_prog", so it can be a program name with args.
13369 set dummy $ac_prog; ac_word=$2
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371 $as_echo_n "checking for $ac_word... " >&6; }
13372 if test "${ac_cv_prog_AWK+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 if test -n "$AWK"; then
13376 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13377 else
13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 for as_dir in $PATH
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13385 ac_cv_prog_AWK="$ac_prog"
13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 break 2
13389 done
13390 done
13391 IFS=$as_save_IFS
13395 AWK=$ac_cv_prog_AWK
13396 if test -n "$AWK"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13398 $as_echo "$AWK" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13405 test -n "$AWK" && break
13406 done
13409 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13412 # Check whether --enable-werror was given.
13413 if test "${enable_werror+set}" = set; then :
13414 enableval=$enable_werror;
13417 if test "x$enable_werror" != "xno"; then
13418 WERROR="-Werror"
13422 glibgo_toolexecdir=no
13423 glibgo_toolexeclibdir=no
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13426 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13427 # Check whether --enable-version-specific-runtime-libs was given.
13428 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13429 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13430 yes) version_specific_libs=yes ;;
13431 no) version_specific_libs=no ;;
13432 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13433 esac
13434 else
13435 version_specific_libs=no
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13439 $as_echo "$version_specific_libs" >&6; }
13441 # Version-specific runtime libs processing.
13442 if test $version_specific_libs = yes; then
13443 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13444 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13447 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13448 # Install a library built with a cross compiler in tooldir, not libdir.
13449 if test -n "$with_cross_host" &&
13450 test x"$with_cross_host" != x"no"; then
13451 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13452 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13453 else
13454 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13455 nover_glibgo_toolexeclibdir='${libdir}'
13457 multi_os_directory=`$GOC -print-multi-os-directory`
13458 case $multi_os_directory in
13459 .) ;; # Avoid trailing /.
13460 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13461 esac
13463 if test x"$glibgo_toolexecdir" = x"no"; then
13464 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13465 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13472 # See if the user wants to configure without libffi. Some
13473 # architectures don't support it. FIXME: We should set a default
13474 # based on the host.
13476 # Check whether --with-libffi was given.
13477 if test "${with_libffi+set}" = set; then :
13478 withval=$with_libffi; :
13479 else
13480 with_libffi=${with_libffi_default-yes}
13484 LIBFFI=
13485 LIBFFIINCS=
13486 if test "$with_libffi" != no; then
13488 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13490 LIBFFI=../libffi/libffi_convenience.la
13491 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13496 # See if the user wants to configure without libatomic. This is useful if we are
13497 # on an architecture for which libgo does not need an atomic support library and
13498 # libatomic does not support our C compiler.
13500 # Check whether --with-libatomic was given.
13501 if test "${with_libatomic+set}" = set; then :
13502 withval=$with_libatomic; :
13503 else
13504 with_libatomic=${with_libatomic_default-yes}
13508 LIBATOMIC=
13509 if test "$with_libatomic" != no; then
13510 LIBATOMIC=../libatomic/libatomic_convenience.la
13514 # Used to tell GNU make to include a file without telling automake to
13515 # include it.
13516 go_include="-include"
13519 is_darwin=no
13520 is_freebsd=no
13521 is_irix=no
13522 is_linux=no
13523 is_netbsd=no
13524 is_openbsd=no
13525 is_dragonfly=no
13526 is_rtems=no
13527 is_solaris=no
13528 GOOS=unknown
13529 case ${host} in
13530 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13531 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13532 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13533 *-*-linux*) is_linux=yes; GOOS=linux ;;
13534 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13535 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13536 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13537 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13538 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13539 esac
13540 if test $is_darwin = yes; then
13541 LIBGO_IS_DARWIN_TRUE=
13542 LIBGO_IS_DARWIN_FALSE='#'
13543 else
13544 LIBGO_IS_DARWIN_TRUE='#'
13545 LIBGO_IS_DARWIN_FALSE=
13548 if test $is_freebsd = yes; then
13549 LIBGO_IS_FREEBSD_TRUE=
13550 LIBGO_IS_FREEBSD_FALSE='#'
13551 else
13552 LIBGO_IS_FREEBSD_TRUE='#'
13553 LIBGO_IS_FREEBSD_FALSE=
13556 if test $is_irix = yes; then
13557 LIBGO_IS_IRIX_TRUE=
13558 LIBGO_IS_IRIX_FALSE='#'
13559 else
13560 LIBGO_IS_IRIX_TRUE='#'
13561 LIBGO_IS_IRIX_FALSE=
13564 if test $is_linux = yes; then
13565 LIBGO_IS_LINUX_TRUE=
13566 LIBGO_IS_LINUX_FALSE='#'
13567 else
13568 LIBGO_IS_LINUX_TRUE='#'
13569 LIBGO_IS_LINUX_FALSE=
13572 if test $is_netbsd = yes; then
13573 LIBGO_IS_NETBSD_TRUE=
13574 LIBGO_IS_NETBSD_FALSE='#'
13575 else
13576 LIBGO_IS_NETBSD_TRUE='#'
13577 LIBGO_IS_NETBSD_FALSE=
13580 if test $is_openbsd = yes; then
13581 LIBGO_IS_OPENBSD_TRUE=
13582 LIBGO_IS_OPENBSD_FALSE='#'
13583 else
13584 LIBGO_IS_OPENBSD_TRUE='#'
13585 LIBGO_IS_OPENBSD_FALSE=
13588 if test $is_dragonfly = yes; then
13589 LIBGO_IS_DRAGONFLY_TRUE=
13590 LIBGO_IS_DRAGONFLY_FALSE='#'
13591 else
13592 LIBGO_IS_DRAGONFLY_TRUE='#'
13593 LIBGO_IS_DRAGONFLY_FALSE=
13596 if test $is_rtems = yes; then
13597 LIBGO_IS_RTEMS_TRUE=
13598 LIBGO_IS_RTEMS_FALSE='#'
13599 else
13600 LIBGO_IS_RTEMS_TRUE='#'
13601 LIBGO_IS_RTEMS_FALSE=
13604 if test $is_solaris = yes; then
13605 LIBGO_IS_SOLARIS_TRUE=
13606 LIBGO_IS_SOLARIS_FALSE='#'
13607 else
13608 LIBGO_IS_SOLARIS_TRUE='#'
13609 LIBGO_IS_SOLARIS_FALSE=
13614 USE_DEJAGNU=no
13615 case ${host} in
13616 *-*-rtems*) USE_DEJAGNU=yes ;;
13617 ${build}) ;;
13618 *) USE_DEJAGNU=yes ;;
13619 esac
13622 is_386=no
13623 is_alpha=no
13624 is_arm=no
13625 is_arm64=no
13626 is_m68k=no
13627 mips_abi=unknown
13628 is_ppc=no
13629 is_ppc64=no
13630 is_ppc64le=no
13631 is_s390=no
13632 is_s390x=no
13633 is_sparc=no
13634 is_sparc64=no
13635 is_x86_64=no
13636 GOARCH=unknown
13637 case ${host} in
13638 alpha*-*-*)
13639 is_alpha=yes
13640 GOARCH=alpha
13642 aarch64-*-*)
13643 is_arm64=yes
13644 GOARCH=arm64
13646 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13647 is_arm=yes
13648 GOARCH=arm
13650 i[34567]86-*-* | x86_64-*-*)
13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13652 /* end confdefs.h. */
13654 #ifdef __x86_64__
13655 #error 64-bit
13656 #endif
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659 is_386=yes
13660 else
13661 is_x86_64=yes
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 if test "$is_386" = "yes"; then
13665 GOARCH=386
13666 else
13667 GOARCH=amd64
13670 m68k*-*-*)
13671 is_m68k=yes
13672 GOARCH=m68k
13674 mips*-*-*)
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13678 #if _MIPS_SIM != _ABIO32
13679 #error not o32
13680 #endif
13681 _ACEOF
13682 if ac_fn_c_try_compile "$LINENO"; then :
13683 mips_abi="o32"
13684 else
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13688 #if _MIPS_SIM != _ABIN32
13689 #error not n32
13690 #endif
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"; then :
13693 mips_abi="n32"
13694 else
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13698 #if _MIPS_SIM != _ABI64
13699 #error not n64
13700 #endif
13701 _ACEOF
13702 if ac_fn_c_try_compile "$LINENO"; then :
13703 mips_abi="n64"
13704 else
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13708 #if _MIPS_SIM != _ABIO64
13709 #error not o64
13710 #endif
13711 _ACEOF
13712 if ac_fn_c_try_compile "$LINENO"; then :
13713 mips_abi="o64"
13714 else
13715 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13716 mips_abi="n32"
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13725 case "$mips_abi" in
13726 "o32") GOARCH=mipso32 ;;
13727 "n32") GOARCH=mipsn32 ;;
13728 "n64") GOARCH=mipsn64 ;;
13729 "o64") GOARCH=mipso64 ;;
13730 esac
13732 rs6000*-*-* | powerpc*-*-*)
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13736 #ifdef _ARCH_PPC64
13737 #error 64-bit
13738 #endif
13739 _ACEOF
13740 if ac_fn_c_try_compile "$LINENO"; then :
13741 is_ppc=yes
13742 else
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13746 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13747 #error 64be
13748 #endif
13749 _ACEOF
13750 if ac_fn_c_try_compile "$LINENO"; then :
13751 is_ppc64le=yes
13752 else
13753 is_ppc64=yes
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13758 if test "$is_ppc" = "yes"; then
13759 GOARCH=ppc
13760 elif test "$is_ppc64" = "yes"; then
13761 GOARCH=ppc64
13762 else
13763 GOARCH=ppc64le
13766 s390*-*-*)
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13770 #if defined(__s390x__)
13771 #error 64-bit
13772 #endif
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775 is_s390=yes
13776 else
13777 is_s390x=yes
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 if test "$is_s390" = "yes"; then
13781 GOARCH=s390
13782 else
13783 GOARCH=s390x
13786 sparc*-*-*)
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 #if defined(__sparcv9) || defined(__arch64__)
13791 #error 64-bit
13792 #endif
13793 _ACEOF
13794 if ac_fn_c_try_compile "$LINENO"; then :
13795 is_sparc=yes
13796 else
13797 is_sparc64=yes
13799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800 if test "$is_sparc" = "yes"; then
13801 GOARCH=sparc
13802 else
13803 GOARCH=sparc64
13806 esac
13807 if test $is_386 = yes; then
13808 LIBGO_IS_386_TRUE=
13809 LIBGO_IS_386_FALSE='#'
13810 else
13811 LIBGO_IS_386_TRUE='#'
13812 LIBGO_IS_386_FALSE=
13815 if test $is_alpha = yes; then
13816 LIBGO_IS_ALPHA_TRUE=
13817 LIBGO_IS_ALPHA_FALSE='#'
13818 else
13819 LIBGO_IS_ALPHA_TRUE='#'
13820 LIBGO_IS_ALPHA_FALSE=
13823 if test $is_arm = yes; then
13824 LIBGO_IS_ARM_TRUE=
13825 LIBGO_IS_ARM_FALSE='#'
13826 else
13827 LIBGO_IS_ARM_TRUE='#'
13828 LIBGO_IS_ARM_FALSE=
13831 if test $is_arm64 = yes; then
13832 LIBGO_IS_ARM64_TRUE=
13833 LIBGO_IS_ARM64_FALSE='#'
13834 else
13835 LIBGO_IS_ARM64_TRUE='#'
13836 LIBGO_IS_ARM64_FALSE=
13839 if test $is_m68k = yes; then
13840 LIBGO_IS_M68K_TRUE=
13841 LIBGO_IS_M68K_FALSE='#'
13842 else
13843 LIBGO_IS_M68K_TRUE='#'
13844 LIBGO_IS_M68K_FALSE=
13847 if test $mips_abi != unknown; then
13848 LIBGO_IS_MIPS_TRUE=
13849 LIBGO_IS_MIPS_FALSE='#'
13850 else
13851 LIBGO_IS_MIPS_TRUE='#'
13852 LIBGO_IS_MIPS_FALSE=
13855 if test $mips_abi = o32; then
13856 LIBGO_IS_MIPSO32_TRUE=
13857 LIBGO_IS_MIPSO32_FALSE='#'
13858 else
13859 LIBGO_IS_MIPSO32_TRUE='#'
13860 LIBGO_IS_MIPSO32_FALSE=
13863 if test $mips_abi = n32; then
13864 LIBGO_IS_MIPSN32_TRUE=
13865 LIBGO_IS_MIPSN32_FALSE='#'
13866 else
13867 LIBGO_IS_MIPSN32_TRUE='#'
13868 LIBGO_IS_MIPSN32_FALSE=
13871 if test $mips_abi = n64; then
13872 LIBGO_IS_MIPSN64_TRUE=
13873 LIBGO_IS_MIPSN64_FALSE='#'
13874 else
13875 LIBGO_IS_MIPSN64_TRUE='#'
13876 LIBGO_IS_MIPSN64_FALSE=
13879 if test $mips_abi = o64; then
13880 LIBGO_IS_MIPSO64_TRUE=
13881 LIBGO_IS_MIPSO64_FALSE='#'
13882 else
13883 LIBGO_IS_MIPSO64_TRUE='#'
13884 LIBGO_IS_MIPSO64_FALSE=
13887 if test $is_ppc = yes; then
13888 LIBGO_IS_PPC_TRUE=
13889 LIBGO_IS_PPC_FALSE='#'
13890 else
13891 LIBGO_IS_PPC_TRUE='#'
13892 LIBGO_IS_PPC_FALSE=
13895 if test $is_ppc64 = yes; then
13896 LIBGO_IS_PPC64_TRUE=
13897 LIBGO_IS_PPC64_FALSE='#'
13898 else
13899 LIBGO_IS_PPC64_TRUE='#'
13900 LIBGO_IS_PPC64_FALSE=
13903 if test $is_ppc64le = yes; then
13904 LIBGO_IS_PPC64LE_TRUE=
13905 LIBGO_IS_PPC64LE_FALSE='#'
13906 else
13907 LIBGO_IS_PPC64LE_TRUE='#'
13908 LIBGO_IS_PPC64LE_FALSE=
13911 if test $is_s390 = yes; then
13912 LIBGO_IS_S390_TRUE=
13913 LIBGO_IS_S390_FALSE='#'
13914 else
13915 LIBGO_IS_S390_TRUE='#'
13916 LIBGO_IS_S390_FALSE=
13919 if test $is_s390x = yes; then
13920 LIBGO_IS_S390X_TRUE=
13921 LIBGO_IS_S390X_FALSE='#'
13922 else
13923 LIBGO_IS_S390X_TRUE='#'
13924 LIBGO_IS_S390X_FALSE=
13927 if test $is_sparc = yes; then
13928 LIBGO_IS_SPARC_TRUE=
13929 LIBGO_IS_SPARC_FALSE='#'
13930 else
13931 LIBGO_IS_SPARC_TRUE='#'
13932 LIBGO_IS_SPARC_FALSE=
13935 if test $is_sparc64 = yes; then
13936 LIBGO_IS_SPARC64_TRUE=
13937 LIBGO_IS_SPARC64_FALSE='#'
13938 else
13939 LIBGO_IS_SPARC64_TRUE='#'
13940 LIBGO_IS_SPARC64_FALSE=
13943 if test $is_x86_64 = yes; then
13944 LIBGO_IS_X86_64_TRUE=
13945 LIBGO_IS_X86_64_FALSE='#'
13946 else
13947 LIBGO_IS_X86_64_TRUE='#'
13948 LIBGO_IS_X86_64_FALSE=
13953 GO_LIBCALL_OS_FILE=
13954 GO_LIBCALL_OS_ARCH_FILE=
13955 GO_SYSCALL_OS_FILE=
13956 GO_SYSCALL_OS_ARCH_FILE=
13957 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13958 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13960 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13961 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13963 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13964 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13966 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13967 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13974 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13975 case "$target" in
13976 mips-sgi-irix6.5*)
13977 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13978 # msghdr in <sys/socket.h>.
13979 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13981 *-*-solaris2.1[01])
13982 # Solaris 10+ needs this so struct msghdr gets the msg_control
13983 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13984 # above doesn't work with C99.
13985 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13987 esac
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13991 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13992 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13994 else
13995 CFLAGS_hold=$CFLAGS
13996 CFLAGS="$CFLAGS -fsplit-stack"
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 int i;
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002 libgo_cv_c_split_stack_supported=yes
14003 else
14004 libgo_cv_c_split_stack_supported=no
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 CFLAGS=$CFLAGS_hold
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14010 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14013 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14014 if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 cat > conftest1.c << EOF
14018 extern void f();
14019 int main() { f(); return 0; }
14021 cat > conftest2.c << EOF
14022 void f() {}
14024 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c
14025 $CC -c $CFLAGS $CPPFLAGS conftest2.c
14026 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext; then
14027 libgo_cv_c_linker_split_non_split=yes
14028 else
14029 libgo_cv_c_linker_split_non_split=no
14031 rm -f conftest1.* conftest2.* conftest
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14034 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14036 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14037 SPLIT_STACK=-fsplit-stack
14039 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14041 else
14042 SPLIT_STACK=
14045 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14046 USING_SPLIT_STACK_TRUE=
14047 USING_SPLIT_STACK_FALSE='#'
14048 else
14049 USING_SPLIT_STACK_TRUE='#'
14050 USING_SPLIT_STACK_FALSE=
14054 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14055 GO_SPLIT_STACK=-fno-split-stack
14056 else
14057 GO_SPLIT_STACK=
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14062 $as_echo_n "checking whether linker supports split stack... " >&6; }
14063 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 libgo_cv_c_linker_supports_split_stack=no
14067 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14068 libgo_cv_c_linker_supports_split_stack=yes
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14072 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14073 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14075 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14080 $as_echo_n "checking whether compiler is llgo... " >&6; }
14081 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 libgo_cv_c_goc_is_llgo=no
14085 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14086 libgo_cv_c_goc_is_llgo=yes
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14090 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14091 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14092 GOC_IS_LLGO_TRUE=
14093 GOC_IS_LLGO_FALSE='#'
14094 else
14095 GOC_IS_LLGO_TRUE='#'
14096 GOC_IS_LLGO_FALSE=
14100 MATH_LIBS=
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14102 $as_echo_n "checking for sqrt in -lm... " >&6; }
14103 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 ac_check_lib_save_LIBS=$LIBS
14107 LIBS="-lm $LIBS"
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14111 /* Override any GCC internal prototype to avoid an error.
14112 Use char because int might match the return type of a GCC
14113 builtin and then its argument prototype would still apply. */
14114 #ifdef __cplusplus
14115 extern "C"
14116 #endif
14117 char sqrt ();
14119 main ()
14121 return sqrt ();
14123 return 0;
14125 _ACEOF
14126 if ac_fn_c_try_link "$LINENO"; then :
14127 ac_cv_lib_m_sqrt=yes
14128 else
14129 ac_cv_lib_m_sqrt=no
14131 rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext conftest.$ac_ext
14133 LIBS=$ac_check_lib_save_LIBS
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14136 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14137 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14138 MATH_LIBS=-lm
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14144 $as_echo_n "checking for socket libraries... " >&6; }
14145 if test "${libgo_cv_lib_sockets+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 libgo_cv_lib_sockets=
14149 libgo_check_both=no
14150 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14151 if test "x$ac_cv_func_connect" = x""yes; then :
14152 libgo_check_socket=no
14153 else
14154 libgo_check_socket=yes
14157 if test "$libgo_check_socket" = "yes"; then
14158 unset ac_cv_func_connect
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14160 $as_echo_n "checking for main in -lsocket... " >&6; }
14161 if test "${ac_cv_lib_socket_main+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 ac_check_lib_save_LIBS=$LIBS
14165 LIBS="-lsocket $LIBS"
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14171 main ()
14173 return main ();
14175 return 0;
14177 _ACEOF
14178 if ac_fn_c_try_link "$LINENO"; then :
14179 ac_cv_lib_socket_main=yes
14180 else
14181 ac_cv_lib_socket_main=no
14183 rm -f core conftest.err conftest.$ac_objext \
14184 conftest$ac_exeext conftest.$ac_ext
14185 LIBS=$ac_check_lib_save_LIBS
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14188 $as_echo "$ac_cv_lib_socket_main" >&6; }
14189 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14190 libgo_cv_lib_sockets="-lsocket"
14191 else
14192 libgo_check_both=yes
14196 if test "$libgo_check_both" = "yes"; then
14197 libgo_old_libs=$LIBS
14198 LIBS="$LIBS -lsocket -lnsl"
14199 unset ac_cv_func_accept
14200 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14201 if test "x$ac_cv_func_accept" = x""yes; then :
14202 libgo_check_nsl=no
14203 libgo_cv_lib_sockets="-lsocket -lnsl"
14206 unset ac_cv_func_accept
14207 LIBS=$libgo_old_libs
14209 unset ac_cv_func_gethostbyname
14210 libgo_old_libs="$LIBS"
14211 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14212 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14214 else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14216 $as_echo_n "checking for main in -lnsl... " >&6; }
14217 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-lnsl $LIBS"
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14227 main ()
14229 return main ();
14231 return 0;
14233 _ACEOF
14234 if ac_fn_c_try_link "$LINENO"; then :
14235 ac_cv_lib_nsl_main=yes
14236 else
14237 ac_cv_lib_nsl_main=no
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241 LIBS=$ac_check_lib_save_LIBS
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14244 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14245 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14246 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14251 unset ac_cv_func_gethostbyname
14252 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14253 if test "x$ac_cv_func_sendfile" = x""yes; then :
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14257 $as_echo_n "checking for main in -lsendfile... " >&6; }
14258 if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 ac_check_lib_save_LIBS=$LIBS
14262 LIBS="-lsendfile $LIBS"
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14268 main ()
14270 return main ();
14272 return 0;
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 ac_cv_lib_sendfile_main=yes
14277 else
14278 ac_cv_lib_sendfile_main=no
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14285 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14286 if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14287 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14292 LIBS=$libgo_old_libs
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14296 $as_echo "$libgo_cv_lib_sockets" >&6; }
14297 NET_LIBS="$libgo_cv_lib_sockets"
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14301 $as_echo_n "checking whether -pthread is supported... " >&6; }
14302 if test "${libgo_cv_lib_pthread+set}" = set; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 CFLAGS_hold=$CFLAGS
14306 CFLAGS="$CFLAGS -pthread"
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309 int i;
14310 _ACEOF
14311 if ac_fn_c_try_compile "$LINENO"; then :
14312 libgo_cv_lib_pthread=yes
14313 else
14314 libgo_cv_lib_pthread=no
14316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14317 CFLAGS=$CFLAGS_hold
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14320 $as_echo "$libgo_cv_lib_pthread" >&6; }
14321 PTHREAD_CFLAGS=
14322 if test "$libgo_cv_lib_pthread" = yes; then
14323 PTHREAD_CFLAGS=-pthread
14327 PTHREAD_LIBS=
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14329 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14330 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 ac_check_lib_save_LIBS=$LIBS
14334 LIBS="-lpthread $LIBS"
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14338 /* Override any GCC internal prototype to avoid an error.
14339 Use char because int might match the return type of a GCC
14340 builtin and then its argument prototype would still apply. */
14341 #ifdef __cplusplus
14342 extern "C"
14343 #endif
14344 char pthread_create ();
14346 main ()
14348 return pthread_create ();
14350 return 0;
14352 _ACEOF
14353 if ac_fn_c_try_link "$LINENO"; then :
14354 ac_cv_lib_pthread_pthread_create=yes
14355 else
14356 ac_cv_lib_pthread_pthread_create=no
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LIBS=$ac_check_lib_save_LIBS
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14363 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14364 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14365 PTHREAD_LIBS=-lpthread
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14371 $as_echo_n "checking for library containing sched_yield... " >&6; }
14372 if test "${ac_cv_search_sched_yield+set}" = set; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 ac_func_search_save_LIBS=$LIBS
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14379 /* Override any GCC internal prototype to avoid an error.
14380 Use char because int might match the return type of a GCC
14381 builtin and then its argument prototype would still apply. */
14382 #ifdef __cplusplus
14383 extern "C"
14384 #endif
14385 char sched_yield ();
14387 main ()
14389 return sched_yield ();
14391 return 0;
14393 _ACEOF
14394 for ac_lib in '' rt; do
14395 if test -z "$ac_lib"; then
14396 ac_res="none required"
14397 else
14398 ac_res=-l$ac_lib
14399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14401 if ac_fn_c_try_link "$LINENO"; then :
14402 ac_cv_search_sched_yield=$ac_res
14404 rm -f core conftest.err conftest.$ac_objext \
14405 conftest$ac_exeext
14406 if test "${ac_cv_search_sched_yield+set}" = set; then :
14407 break
14409 done
14410 if test "${ac_cv_search_sched_yield+set}" = set; then :
14412 else
14413 ac_cv_search_sched_yield=no
14415 rm conftest.$ac_ext
14416 LIBS=$ac_func_search_save_LIBS
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14419 $as_echo "$ac_cv_search_sched_yield" >&6; }
14420 ac_res=$ac_cv_search_sched_yield
14421 if test "$ac_res" != no; then :
14422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14427 $as_echo_n "checking for library containing nanosleep... " >&6; }
14428 if test "${ac_cv_search_nanosleep+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 ac_func_search_save_LIBS=$LIBS
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14435 /* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply. */
14438 #ifdef __cplusplus
14439 extern "C"
14440 #endif
14441 char nanosleep ();
14443 main ()
14445 return nanosleep ();
14447 return 0;
14449 _ACEOF
14450 for ac_lib in '' rt; do
14451 if test -z "$ac_lib"; then
14452 ac_res="none required"
14453 else
14454 ac_res=-l$ac_lib
14455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14457 if ac_fn_c_try_link "$LINENO"; then :
14458 ac_cv_search_nanosleep=$ac_res
14460 rm -f core conftest.err conftest.$ac_objext \
14461 conftest$ac_exeext
14462 if test "${ac_cv_search_nanosleep+set}" = set; then :
14463 break
14465 done
14466 if test "${ac_cv_search_nanosleep+set}" = set; then :
14468 else
14469 ac_cv_search_nanosleep=no
14471 rm conftest.$ac_ext
14472 LIBS=$ac_func_search_save_LIBS
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14475 $as_echo "$ac_cv_search_nanosleep" >&6; }
14476 ac_res=$ac_cv_search_nanosleep
14477 if test "$ac_res" != no; then :
14478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14483 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14484 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 ac_func_search_save_LIBS=$LIBS
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14491 /* Override any GCC internal prototype to avoid an error.
14492 Use char because int might match the return type of a GCC
14493 builtin and then its argument prototype would still apply. */
14494 #ifdef __cplusplus
14495 extern "C"
14496 #endif
14497 char clock_gettime ();
14499 main ()
14501 return clock_gettime ();
14503 return 0;
14505 _ACEOF
14506 for ac_lib in '' rt; do
14507 if test -z "$ac_lib"; then
14508 ac_res="none required"
14509 else
14510 ac_res=-l$ac_lib
14511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14513 if ac_fn_c_try_link "$LINENO"; then :
14514 ac_cv_search_clock_gettime=$ac_res
14516 rm -f core conftest.err conftest.$ac_objext \
14517 conftest$ac_exeext
14518 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14519 break
14521 done
14522 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14524 else
14525 ac_cv_search_clock_gettime=no
14527 rm conftest.$ac_ext
14528 LIBS=$ac_func_search_save_LIBS
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14531 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14532 ac_res=$ac_cv_search_clock_gettime
14533 if test "$ac_res" != no; then :
14534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14540 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14541 if test "${ac_cv_c_bigendian+set}" = set; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 ac_cv_c_bigendian=unknown
14545 # See if we're dealing with a universal compiler.
14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 #ifndef __APPLE_CC__
14549 not a universal capable compiler
14550 #endif
14551 typedef int dummy;
14553 _ACEOF
14554 if ac_fn_c_try_compile "$LINENO"; then :
14556 # Check for potential -arch flags. It is not universal unless
14557 # there are at least two -arch flags with different values.
14558 ac_arch=
14559 ac_prev=
14560 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14561 if test -n "$ac_prev"; then
14562 case $ac_word in
14563 i?86 | x86_64 | ppc | ppc64)
14564 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14565 ac_arch=$ac_word
14566 else
14567 ac_cv_c_bigendian=universal
14568 break
14571 esac
14572 ac_prev=
14573 elif test "x$ac_word" = "x-arch"; then
14574 ac_prev=arch
14576 done
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 if test $ac_cv_c_bigendian = unknown; then
14580 # See if sys/param.h defines the BYTE_ORDER macro.
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583 #include <sys/types.h>
14584 #include <sys/param.h>
14587 main ()
14589 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14590 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14591 && LITTLE_ENDIAN)
14592 bogus endian macros
14593 #endif
14596 return 0;
14598 _ACEOF
14599 if ac_fn_c_try_compile "$LINENO"; then :
14600 # It does; now see whether it defined to BIG_ENDIAN or not.
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14603 #include <sys/types.h>
14604 #include <sys/param.h>
14607 main ()
14609 #if BYTE_ORDER != BIG_ENDIAN
14610 not big endian
14611 #endif
14614 return 0;
14616 _ACEOF
14617 if ac_fn_c_try_compile "$LINENO"; then :
14618 ac_cv_c_bigendian=yes
14619 else
14620 ac_cv_c_bigendian=no
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 if test $ac_cv_c_bigendian = unknown; then
14627 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14630 #include <limits.h>
14633 main ()
14635 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14636 bogus endian macros
14637 #endif
14640 return 0;
14642 _ACEOF
14643 if ac_fn_c_try_compile "$LINENO"; then :
14644 # It does; now see whether it defined to _BIG_ENDIAN or not.
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 #include <limits.h>
14650 main ()
14652 #ifndef _BIG_ENDIAN
14653 not big endian
14654 #endif
14657 return 0;
14659 _ACEOF
14660 if ac_fn_c_try_compile "$LINENO"; then :
14661 ac_cv_c_bigendian=yes
14662 else
14663 ac_cv_c_bigendian=no
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669 if test $ac_cv_c_bigendian = unknown; then
14670 # Compile a test program.
14671 if test "$cross_compiling" = yes; then :
14672 # Try to guess by grepping values from an object file.
14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 short int ascii_mm[] =
14676 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14677 short int ascii_ii[] =
14678 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14679 int use_ascii (int i) {
14680 return ascii_mm[i] + ascii_ii[i];
14682 short int ebcdic_ii[] =
14683 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14684 short int ebcdic_mm[] =
14685 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14686 int use_ebcdic (int i) {
14687 return ebcdic_mm[i] + ebcdic_ii[i];
14689 extern int foo;
14692 main ()
14694 return use_ascii (foo) == use_ebcdic (foo);
14696 return 0;
14698 _ACEOF
14699 if ac_fn_c_try_compile "$LINENO"; then :
14700 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14701 ac_cv_c_bigendian=yes
14703 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14704 if test "$ac_cv_c_bigendian" = unknown; then
14705 ac_cv_c_bigendian=no
14706 else
14707 # finding both strings is unlikely to happen, but who knows?
14708 ac_cv_c_bigendian=unknown
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 else
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14716 $ac_includes_default
14718 main ()
14721 /* Are we little or big endian? From Harbison&Steele. */
14722 union
14724 long int l;
14725 char c[sizeof (long int)];
14726 } u;
14727 u.l = 1;
14728 return u.c[sizeof (long int) - 1] == 1;
14731 return 0;
14733 _ACEOF
14734 if ac_fn_c_try_run "$LINENO"; then :
14735 ac_cv_c_bigendian=no
14736 else
14737 ac_cv_c_bigendian=yes
14739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14740 conftest.$ac_objext conftest.beam conftest.$ac_ext
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14746 $as_echo "$ac_cv_c_bigendian" >&6; }
14747 case $ac_cv_c_bigendian in #(
14748 yes)
14749 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14750 ;; #(
14752 ;; #(
14753 universal)
14755 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14757 ;; #(
14759 as_fn_error "unknown endianness
14760 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14761 esac
14766 # Check whether --with-system-libunwind was given.
14767 if test "${with_system_libunwind+set}" = set; then :
14768 withval=$with_system_libunwind;
14771 # If system-libunwind was not specifically set, pick a default setting.
14772 if test x$with_system_libunwind = x; then
14773 case ${target} in
14774 ia64-*-hpux*) with_system_libunwind=yes ;;
14775 *) with_system_libunwind=no ;;
14776 esac
14778 # Based on system-libunwind and target, do we have ipinfo?
14779 if test x$with_system_libunwind = xyes; then
14780 case ${target} in
14781 ia64-*-*) have_unwind_getipinfo=no ;;
14782 *) have_unwind_getipinfo=yes ;;
14783 esac
14784 else
14785 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14787 case ${target} in
14788 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14789 *) have_unwind_getipinfo=yes ;;
14790 esac
14794 if test x$have_unwind_getipinfo = xyes; then
14796 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14801 for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14802 do :
14803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14804 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14805 eval as_val=\$$as_ac_Header
14806 if test "x$as_val" = x""yes; then :
14807 cat >>confdefs.h <<_ACEOF
14808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14809 _ACEOF
14813 done
14816 for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
14817 do :
14818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14819 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14820 #include <sys/socket.h>
14821 #endif
14824 eval as_val=\$$as_ac_Header
14825 if test "x$as_val" = x""yes; then :
14826 cat >>confdefs.h <<_ACEOF
14827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14828 _ACEOF
14832 done
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14836 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14837 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 CFLAGS_hold=$CFLAGS
14841 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14845 #include <sys/types.h>
14846 #ifdef HAVE_LINUX_FILTER_H
14847 #include <linux/filter.h>
14848 #endif
14849 #include <ustat.h>
14851 _ACEOF
14852 if ac_fn_c_try_compile "$LINENO"; then :
14853 libgo_cv_c_ustat_h=yes
14854 else
14855 libgo_cv_c_ustat_h=no
14857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 CFLAGS=$CFLAGS_hold
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14861 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14862 if test $libgo_cv_c_ustat_h = yes; then
14864 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14868 if test "$ac_cv_header_sys_mman_h" = yes; then
14869 HAVE_SYS_MMAN_H_TRUE=
14870 HAVE_SYS_MMAN_H_FALSE='#'
14871 else
14872 HAVE_SYS_MMAN_H_TRUE='#'
14873 HAVE_SYS_MMAN_H_FALSE=
14877 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14878 do :
14879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14881 eval as_val=\$$as_ac_var
14882 if test "x$as_val" = x""yes; then :
14883 cat >>confdefs.h <<_ACEOF
14884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14885 _ACEOF
14888 done
14890 if test "$ac_cv_func_strerror_r" = yes; then
14891 HAVE_STRERROR_R_TRUE=
14892 HAVE_STRERROR_R_FALSE='#'
14893 else
14894 HAVE_STRERROR_R_TRUE='#'
14895 HAVE_STRERROR_R_FALSE=
14898 if test "$ac_cv_func_wait4" = yes; then
14899 HAVE_WAIT4_TRUE=
14900 HAVE_WAIT4_FALSE='#'
14901 else
14902 HAVE_WAIT4_TRUE='#'
14903 HAVE_WAIT4_FALSE=
14907 for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
14908 do :
14909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14910 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14911 eval as_val=\$$as_ac_var
14912 if test "x$as_val" = x""yes; then :
14913 cat >>confdefs.h <<_ACEOF
14914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14915 _ACEOF
14918 done
14920 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14921 if test "x$ac_cv_type_off_t" = x""yes; then :
14923 else
14925 cat >>confdefs.h <<_ACEOF
14926 #define off_t long int
14927 _ACEOF
14931 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14932 if test "x$ac_cv_type_loff_t" = x""yes; then :
14934 cat >>confdefs.h <<_ACEOF
14935 #define HAVE_LOFF_T 1
14936 _ACEOF
14942 LIBS_hold="$LIBS"
14943 LIBS="$LIBS -lm"
14944 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14945 do :
14946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14948 eval as_val=\$$as_ac_var
14949 if test "x$as_val" = x""yes; then :
14950 cat >>confdefs.h <<_ACEOF
14951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14952 _ACEOF
14955 done
14957 LIBS="$LIBS_hold"
14959 CFLAGS_hold="$CFLAGS"
14960 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14961 LIBS_hold="$LIBS"
14962 LIBS="$LIBS $PTHREAD_LIBS"
14963 for ac_func in sem_timedwait
14964 do :
14965 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14966 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14967 cat >>confdefs.h <<_ACEOF
14968 #define HAVE_SEM_TIMEDWAIT 1
14969 _ACEOF
14972 done
14974 CFLAGS="$CFLAGS_hold"
14975 LIBS="$LIBS_hold"
14977 LIBS_hold="$LIBS"
14978 LIBS="$LIBS $MATH_LIBS"
14979 for ac_func in matherr
14980 do :
14981 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14982 if test "x$ac_cv_func_matherr" = x""yes; then :
14983 cat >>confdefs.h <<_ACEOF
14984 #define HAVE_MATHERR 1
14985 _ACEOF
14988 done
14990 LIBS="$LIBS_hold"
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14993 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14994 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15001 uint32 i;
15002 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 libgo_cv_func___sync_bool_compare_and_swap_4=yes
15007 else
15008 libgo_cv_func___sync_bool_compare_and_swap_4=no
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
15014 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
15015 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
15017 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
15022 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
15023 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15029 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15030 uint64 i;
15031 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15033 _ACEOF
15034 if ac_fn_c_try_link "$LINENO"; then :
15035 libgo_cv_func___sync_bool_compare_and_swap_8=yes
15036 else
15037 libgo_cv_func___sync_bool_compare_and_swap_8=no
15039 rm -f core conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
15043 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
15044 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
15046 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
15051 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
15052 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15058 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15059 uint32 i;
15060 int main() { return __sync_fetch_and_add (&i, 1); }
15062 _ACEOF
15063 if ac_fn_c_try_link "$LINENO"; then :
15064 libgo_cv_func___sync_fetch_and_add_4=yes
15065 else
15066 libgo_cv_func___sync_fetch_and_add_4=no
15068 rm -f core conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15072 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15073 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15075 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15080 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15081 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15087 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15088 uint64 i;
15089 int main() { return __sync_add_and_fetch (&i, 1); }
15091 _ACEOF
15092 if ac_fn_c_try_link "$LINENO"; then :
15093 libgo_cv_func___sync_add_and_fetch_8=yes
15094 else
15095 libgo_cv_func___sync_add_and_fetch_8=no
15097 rm -f core conftest.err conftest.$ac_objext \
15098 conftest$ac_exeext conftest.$ac_ext
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15101 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15102 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15104 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15109 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15110 if test "${libgo_cv_c_stringops+set}" = set; then :
15111 $as_echo_n "(cached) " >&6
15112 else
15113 CFLAGS_hold=$CFLAGS
15114 CFLAGS="$CFLAGS -minline-all-stringops"
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117 int i;
15118 _ACEOF
15119 if ac_fn_c_try_compile "$LINENO"; then :
15120 libgo_cv_c_stringops=yes
15121 else
15122 libgo_cv_c_stringops=no
15124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125 CFLAGS=$CFLAGS_hold
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15128 $as_echo "$libgo_cv_c_stringops" >&6; }
15129 STRINGOPS_FLAG=
15130 if test "$libgo_cv_c_stringops" = yes; then
15131 STRINGOPS_FLAG=-minline-all-stringops
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15136 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15137 if test "${libgo_cv_c_fancymath+set}" = set; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 CFLAGS_hold=$CFLAGS
15141 CFLAGS="$CFLAGS -mfancy-math-387"
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15144 int i;
15145 _ACEOF
15146 if ac_fn_c_try_compile "$LINENO"; then :
15147 libgo_cv_c_fancymath=yes
15148 else
15149 libgo_cv_c_fancymath=no
15151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152 CFLAGS=$CFLAGS_hold
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15155 $as_echo "$libgo_cv_c_fancymath" >&6; }
15156 MATH_FLAG=
15157 if test "$libgo_cv_c_fancymath" = yes; then
15158 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15159 else
15160 MATH_FLAG="-ffp-contract=off"
15164 CFLAGS_hold=$CFLAGS
15165 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15166 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15167 if test "x$ac_cv_type_off64_t" = x""yes; then :
15169 cat >>confdefs.h <<_ACEOF
15170 #define HAVE_OFF64_T 1
15171 _ACEOF
15176 CFLAGS=$CFLAGS_hold
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15179 $as_echo_n "checking epoll_event size... " >&6; }
15180 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15181 $as_echo_n "(cached) " >&6
15182 else
15183 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15185 else
15186 libgo_cv_c_epoll_event_size=0
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15191 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15192 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15196 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15197 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15198 $as_echo_n "(cached) " >&6
15199 else
15200 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15201 #include <sys/epoll.h>"; then :
15203 else
15204 libgo_cv_c_epoll_event_fd_offset=0
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15209 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15210 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 #include <sys/stat.h>
15217 _ACEOF
15218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15219 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15220 have_stat_timespec=yes
15221 else
15222 have_stat_timespec=no
15224 rm -f conftest*
15226 if test $have_stat_timespec = yes; then
15227 HAVE_STAT_TIMESPEC_TRUE=
15228 HAVE_STAT_TIMESPEC_FALSE='#'
15229 else
15230 HAVE_STAT_TIMESPEC_TRUE='#'
15231 HAVE_STAT_TIMESPEC_FALSE=
15235 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15237 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15238 libgo_has_struct_exception=yes
15239 else
15240 libgo_has_struct_exception=no
15243 if test "$libgo_has_struct_exception" = "yes"; then
15245 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15250 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15251 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 CFLAGS_hold="$CFLAGS"
15255 CFLAGS="$PTHREAD_CFLAGS"
15256 LIBS_hold="$LIBS"
15257 LIBS="$LIBS $PTHREAD_LIBS"
15258 # The cast to long int works around a bug in the HP C Compiler
15259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15261 # This bug is HP SR number 8606223364.
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15263 $as_echo_n "checking size of void *... " >&6; }
15264 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15265 $as_echo_n "(cached) " >&6
15266 else
15267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15269 else
15270 if test "$ac_cv_type_void_p" = yes; then
15271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15273 { as_fn_set_status 77
15274 as_fn_error "cannot compute sizeof (void *)
15275 See \`config.log' for more details." "$LINENO" 5; }; }
15276 else
15277 ac_cv_sizeof_void_p=0
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15283 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15287 cat >>confdefs.h <<_ACEOF
15288 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15289 _ACEOF
15292 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15293 if test "$cross_compiling" = yes; then :
15294 case "$target:$ptr_type_size" in
15295 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15296 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15298 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15299 esac
15301 else
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15305 #include <pthread.h>
15306 #include <stdlib.h>
15307 #include <ucontext.h>
15308 #include <unistd.h>
15310 __thread int tls;
15312 static char stack[10 * 1024 * 1024];
15313 static ucontext_t c;
15315 /* Called via makecontext/setcontext. */
15317 static void
15318 cfn (void)
15320 exit (tls);
15323 /* Called via pthread_create. */
15325 static void *
15326 tfn (void *dummy)
15328 /* The thread should still see this value after calling
15329 setcontext. */
15330 tls = 0;
15332 setcontext (&c);
15334 /* The call to setcontext should not return. */
15335 abort ();
15339 main ()
15341 pthread_t tid;
15343 /* The thread should not see this value. */
15344 tls = 1;
15346 if (getcontext (&c) < 0)
15347 abort ();
15349 c.uc_stack.ss_sp = stack;
15350 #ifdef MAKECONTEXT_STACK_TOP
15351 c.uc_stack.ss_sp += sizeof stack;
15352 #endif
15353 c.uc_stack.ss_flags = 0;
15354 c.uc_stack.ss_size = sizeof stack;
15355 c.uc_link = NULL;
15356 makecontext (&c, cfn, 0);
15358 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15359 abort ();
15361 if (pthread_join (tid, NULL) != 0)
15362 abort ();
15364 /* The thread should have called exit. */
15365 abort ();
15368 _ACEOF
15369 if ac_fn_c_try_run "$LINENO"; then :
15370 libgo_cv_lib_setcontext_clobbers_tls=no
15371 else
15372 libgo_cv_lib_setcontext_clobbers_tls=yes
15374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15375 conftest.$ac_objext conftest.beam conftest.$ac_ext
15378 CFLAGS="$CFLAGS_hold"
15379 LIBS="$LIBS_hold"
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15383 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15384 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15386 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15391 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15392 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15393 $as_echo_n "(cached) " >&6
15394 else
15396 libgo_cv_ro_eh_frame=no
15397 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15398 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15399 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15400 libgo_cv_ro_eh_frame=yes
15401 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15402 | grep -v '#write' > /dev/null; then
15403 libgo_cv_ro_eh_frame=yes
15406 rm -f conftest.*
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15410 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15411 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15413 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15415 else
15417 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15422 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15423 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15424 $as_echo_n "(cached) " >&6
15425 else
15426 CFLAGS_hold=$CFLAGS
15427 CFLAGS="$CFLAGS -Qunused-arguments"
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429 /* end confdefs.h. */
15430 int i;
15431 _ACEOF
15432 if ac_fn_c_try_compile "$LINENO"; then :
15433 libgo_cv_c_unused_arguments=yes
15434 else
15435 libgo_cv_c_unused_arguments=no
15437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15438 CFLAGS=$CFLAGS_hold
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15441 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15444 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15445 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15446 $as_echo_n "(cached) " >&6
15447 else
15449 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15450 CFLAGS_hold=$CFLAGS
15451 if test "$libgo_cv_c_unused_arguments" = yes; then
15452 CFLAGS="$CFLAGS -Qunused-arguments"
15454 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15455 libgo_cv_as_comdat_gnu=yes
15456 else
15457 libgo_cv_as_comdat_gnu=no
15459 CFLAGS=$CFLAGS_hold
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15463 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15464 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15466 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15471 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15472 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15473 $as_echo_n "(cached) " >&6
15474 else
15476 libgo_cv_as_x86_pcrel=yes
15477 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15478 CFLAGS_hold=$CFLAGS
15479 if test "$libgo_cv_c_unused_arguments" = yes; then
15480 CFLAGS="$CFLAGS -Qunused-arguments"
15482 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15483 libgo_cv_as_x86_pcrel=no
15485 CFLAGS=$CFLAGS_hold
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15489 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15490 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15492 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15497 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15498 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15499 $as_echo_n "(cached) " >&6
15500 else
15502 libgo_cv_as_x86_64_unwind_section_type=yes
15503 echo '.section .eh_frame,"a",@unwind' > conftest.s
15504 CFLAGS_hold=$CFLAGS
15505 if test "$libgo_cv_c_unused_arguments" = yes; then
15506 CFLAGS="$CFLAGS -Qunused-arguments"
15508 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15509 libgo_cv_as_x86_64_unwind_section_type=no
15511 CFLAGS=$CFLAGS_hold
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15515 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15516 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15518 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15522 cat >confcache <<\_ACEOF
15523 # This file is a shell script that caches the results of configure
15524 # tests run on this system so they can be shared between configure
15525 # scripts and configure runs, see configure's option --config-cache.
15526 # It is not useful on other systems. If it contains results you don't
15527 # want to keep, you may remove or edit it.
15529 # config.status only pays attention to the cache file if you give it
15530 # the --recheck option to rerun configure.
15532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15534 # following values.
15536 _ACEOF
15538 # The following way of writing the cache mishandles newlines in values,
15539 # but we know of no workaround that is simple, portable, and efficient.
15540 # So, we kill variables containing newlines.
15541 # Ultrix sh set writes to stderr and can't be redirected directly,
15542 # and sets the high bit in the cache file unless we assign to the vars.
15544 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15545 eval ac_val=\$$ac_var
15546 case $ac_val in #(
15547 *${as_nl}*)
15548 case $ac_var in #(
15549 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15550 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15551 esac
15552 case $ac_var in #(
15553 _ | IFS | as_nl) ;; #(
15554 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15555 *) { eval $ac_var=; unset $ac_var;} ;;
15556 esac ;;
15557 esac
15558 done
15560 (set) 2>&1 |
15561 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15562 *${as_nl}ac_space=\ *)
15563 # `set' does not quote correctly, so add quotes: double-quote
15564 # substitution turns \\\\ into \\, and sed turns \\ into \.
15565 sed -n \
15566 "s/'/'\\\\''/g;
15567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15568 ;; #(
15570 # `set' quotes correctly as required by POSIX, so do not add quotes.
15571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15573 esac |
15574 sort
15576 sed '
15577 /^ac_cv_env_/b end
15578 t clear
15579 :clear
15580 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15581 t end
15582 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15583 :end' >>confcache
15584 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15585 if test -w "$cache_file"; then
15586 test "x$cache_file" != "x/dev/null" &&
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15588 $as_echo "$as_me: updating cache $cache_file" >&6;}
15589 cat confcache >$cache_file
15590 else
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15592 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15595 rm -f confcache
15597 if test ${multilib} = yes; then
15598 multilib_arg="--enable-multilib"
15599 else
15600 multilib_arg=
15603 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15606 ac_config_commands="$ac_config_commands default"
15609 cat >confcache <<\_ACEOF
15610 # This file is a shell script that caches the results of configure
15611 # tests run on this system so they can be shared between configure
15612 # scripts and configure runs, see configure's option --config-cache.
15613 # It is not useful on other systems. If it contains results you don't
15614 # want to keep, you may remove or edit it.
15616 # config.status only pays attention to the cache file if you give it
15617 # the --recheck option to rerun configure.
15619 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15621 # following values.
15623 _ACEOF
15625 # The following way of writing the cache mishandles newlines in values,
15626 # but we know of no workaround that is simple, portable, and efficient.
15627 # So, we kill variables containing newlines.
15628 # Ultrix sh set writes to stderr and can't be redirected directly,
15629 # and sets the high bit in the cache file unless we assign to the vars.
15631 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15632 eval ac_val=\$$ac_var
15633 case $ac_val in #(
15634 *${as_nl}*)
15635 case $ac_var in #(
15636 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15637 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15638 esac
15639 case $ac_var in #(
15640 _ | IFS | as_nl) ;; #(
15641 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15642 *) { eval $ac_var=; unset $ac_var;} ;;
15643 esac ;;
15644 esac
15645 done
15647 (set) 2>&1 |
15648 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15649 *${as_nl}ac_space=\ *)
15650 # `set' does not quote correctly, so add quotes: double-quote
15651 # substitution turns \\\\ into \\, and sed turns \\ into \.
15652 sed -n \
15653 "s/'/'\\\\''/g;
15654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15655 ;; #(
15657 # `set' quotes correctly as required by POSIX, so do not add quotes.
15658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15660 esac |
15661 sort
15663 sed '
15664 /^ac_cv_env_/b end
15665 t clear
15666 :clear
15667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15668 t end
15669 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15670 :end' >>confcache
15671 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15672 if test -w "$cache_file"; then
15673 test "x$cache_file" != "x/dev/null" &&
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15675 $as_echo "$as_me: updating cache $cache_file" >&6;}
15676 cat confcache >$cache_file
15677 else
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15679 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15682 rm -f confcache
15684 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15685 # Let make expand exec_prefix.
15686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15688 DEFS=-DHAVE_CONFIG_H
15690 ac_libobjs=
15691 ac_ltlibobjs=
15692 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15693 # 1. Remove the extension, and $U if already installed.
15694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15695 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15697 # will be set to the directory where LIBOBJS objects are built.
15698 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15699 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15700 done
15701 LIBOBJS=$ac_libobjs
15703 LTLIBOBJS=$ac_ltlibobjs
15706 if test -n "$EXEEXT"; then
15707 am__EXEEXT_TRUE=
15708 am__EXEEXT_FALSE='#'
15709 else
15710 am__EXEEXT_TRUE='#'
15711 am__EXEEXT_FALSE=
15714 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15715 as_fn_error "conditional \"AMDEP\" was never defined.
15716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15718 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15719 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15722 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15723 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15727 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15731 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15735 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15739 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15742 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15743 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15747 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15751 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15754 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15755 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15758 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15759 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15762 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15763 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15766 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15767 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15770 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15771 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15774 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15775 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15778 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15779 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15782 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15783 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15786 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15787 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15790 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15791 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15794 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15795 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15798 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15799 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15802 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15803 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15806 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15807 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15810 if test -z "${LIBGO_IS_PPC64LE_TRUE}" && test -z "${LIBGO_IS_PPC64LE_FALSE}"; then
15811 as_fn_error "conditional \"LIBGO_IS_PPC64LE\" was never defined.
15812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814 if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
15815 as_fn_error "conditional \"LIBGO_IS_S390\" was never defined.
15816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818 if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
15819 as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined.
15820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15823 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15826 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15827 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15830 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15831 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15834 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15835 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15838 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15839 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15843 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15844 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15847 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15848 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15851 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15852 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15855 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15856 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15860 : ${CONFIG_STATUS=./config.status}
15861 ac_write_fail=0
15862 ac_clean_files_save=$ac_clean_files
15863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15865 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15866 as_write_fail=0
15867 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15868 #! $SHELL
15869 # Generated by $as_me.
15870 # Run this file to recreate the current configuration.
15871 # Compiler output produced by configure, useful for debugging
15872 # configure, is in config.log if it exists.
15874 debug=false
15875 ac_cs_recheck=false
15876 ac_cs_silent=false
15878 SHELL=\${CONFIG_SHELL-$SHELL}
15879 export SHELL
15880 _ASEOF
15881 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15882 ## -------------------- ##
15883 ## M4sh Initialization. ##
15884 ## -------------------- ##
15886 # Be more Bourne compatible
15887 DUALCASE=1; export DUALCASE # for MKS sh
15888 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15889 emulate sh
15890 NULLCMD=:
15891 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15892 # is contrary to our usage. Disable this feature.
15893 alias -g '${1+"$@"}'='"$@"'
15894 setopt NO_GLOB_SUBST
15895 else
15896 case `(set -o) 2>/dev/null` in #(
15897 *posix*) :
15898 set -o posix ;; #(
15899 *) :
15901 esac
15905 as_nl='
15907 export as_nl
15908 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15909 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15911 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15912 # Prefer a ksh shell builtin over an external printf program on Solaris,
15913 # but without wasting forks for bash or zsh.
15914 if test -z "$BASH_VERSION$ZSH_VERSION" \
15915 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15916 as_echo='print -r --'
15917 as_echo_n='print -rn --'
15918 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15919 as_echo='printf %s\n'
15920 as_echo_n='printf %s'
15921 else
15922 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15923 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15924 as_echo_n='/usr/ucb/echo -n'
15925 else
15926 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15927 as_echo_n_body='eval
15928 arg=$1;
15929 case $arg in #(
15930 *"$as_nl"*)
15931 expr "X$arg" : "X\\(.*\\)$as_nl";
15932 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15933 esac;
15934 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15936 export as_echo_n_body
15937 as_echo_n='sh -c $as_echo_n_body as_echo'
15939 export as_echo_body
15940 as_echo='sh -c $as_echo_body as_echo'
15943 # The user is always right.
15944 if test "${PATH_SEPARATOR+set}" != set; then
15945 PATH_SEPARATOR=:
15946 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15947 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15948 PATH_SEPARATOR=';'
15953 # IFS
15954 # We need space, tab and new line, in precisely that order. Quoting is
15955 # there to prevent editors from complaining about space-tab.
15956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15957 # splitting by setting IFS to empty value.)
15958 IFS=" "" $as_nl"
15960 # Find who we are. Look in the path if we contain no directory separator.
15961 case $0 in #((
15962 *[\\/]* ) as_myself=$0 ;;
15963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15964 for as_dir in $PATH
15966 IFS=$as_save_IFS
15967 test -z "$as_dir" && as_dir=.
15968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15969 done
15970 IFS=$as_save_IFS
15973 esac
15974 # We did not find ourselves, most probably we were run as `sh COMMAND'
15975 # in which case we are not to be found in the path.
15976 if test "x$as_myself" = x; then
15977 as_myself=$0
15979 if test ! -f "$as_myself"; then
15980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15981 exit 1
15984 # Unset variables that we do not need and which cause bugs (e.g. in
15985 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15986 # suppresses any "Segmentation fault" message there. '((' could
15987 # trigger a bug in pdksh 5.2.14.
15988 for as_var in BASH_ENV ENV MAIL MAILPATH
15989 do eval test x\${$as_var+set} = xset \
15990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15991 done
15992 PS1='$ '
15993 PS2='> '
15994 PS4='+ '
15996 # NLS nuisances.
15997 LC_ALL=C
15998 export LC_ALL
15999 LANGUAGE=C
16000 export LANGUAGE
16002 # CDPATH.
16003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16006 # as_fn_error ERROR [LINENO LOG_FD]
16007 # ---------------------------------
16008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16010 # script with status $?, using 1 if that was 0.
16011 as_fn_error ()
16013 as_status=$?; test $as_status -eq 0 && as_status=1
16014 if test "$3"; then
16015 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16018 $as_echo "$as_me: error: $1" >&2
16019 as_fn_exit $as_status
16020 } # as_fn_error
16023 # as_fn_set_status STATUS
16024 # -----------------------
16025 # Set $? to STATUS, without forking.
16026 as_fn_set_status ()
16028 return $1
16029 } # as_fn_set_status
16031 # as_fn_exit STATUS
16032 # -----------------
16033 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16034 as_fn_exit ()
16036 set +e
16037 as_fn_set_status $1
16038 exit $1
16039 } # as_fn_exit
16041 # as_fn_unset VAR
16042 # ---------------
16043 # Portably unset VAR.
16044 as_fn_unset ()
16046 { eval $1=; unset $1;}
16048 as_unset=as_fn_unset
16049 # as_fn_append VAR VALUE
16050 # ----------------------
16051 # Append the text in VALUE to the end of the definition contained in VAR. Take
16052 # advantage of any shell optimizations that allow amortized linear growth over
16053 # repeated appends, instead of the typical quadratic growth present in naive
16054 # implementations.
16055 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16056 eval 'as_fn_append ()
16058 eval $1+=\$2
16060 else
16061 as_fn_append ()
16063 eval $1=\$$1\$2
16065 fi # as_fn_append
16067 # as_fn_arith ARG...
16068 # ------------------
16069 # Perform arithmetic evaluation on the ARGs, and store the result in the
16070 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16071 # must be portable across $(()) and expr.
16072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16073 eval 'as_fn_arith ()
16075 as_val=$(( $* ))
16077 else
16078 as_fn_arith ()
16080 as_val=`expr "$@" || test $? -eq 1`
16082 fi # as_fn_arith
16085 if expr a : '\(a\)' >/dev/null 2>&1 &&
16086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16087 as_expr=expr
16088 else
16089 as_expr=false
16092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16093 as_basename=basename
16094 else
16095 as_basename=false
16098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16099 as_dirname=dirname
16100 else
16101 as_dirname=false
16104 as_me=`$as_basename -- "$0" ||
16105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16106 X"$0" : 'X\(//\)$' \| \
16107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16108 $as_echo X/"$0" |
16109 sed '/^.*\/\([^/][^/]*\)\/*$/{
16110 s//\1/
16113 /^X\/\(\/\/\)$/{
16114 s//\1/
16117 /^X\/\(\/\).*/{
16118 s//\1/
16121 s/.*/./; q'`
16123 # Avoid depending upon Character Ranges.
16124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16127 as_cr_digits='0123456789'
16128 as_cr_alnum=$as_cr_Letters$as_cr_digits
16130 ECHO_C= ECHO_N= ECHO_T=
16131 case `echo -n x` in #(((((
16132 -n*)
16133 case `echo 'xy\c'` in
16134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16135 xy) ECHO_C='\c';;
16136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16137 ECHO_T=' ';;
16138 esac;;
16140 ECHO_N='-n';;
16141 esac
16143 rm -f conf$$ conf$$.exe conf$$.file
16144 if test -d conf$$.dir; then
16145 rm -f conf$$.dir/conf$$.file
16146 else
16147 rm -f conf$$.dir
16148 mkdir conf$$.dir 2>/dev/null
16150 if (echo >conf$$.file) 2>/dev/null; then
16151 if ln -s conf$$.file conf$$ 2>/dev/null; then
16152 as_ln_s='ln -s'
16153 # ... but there are two gotchas:
16154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16156 # In both cases, we have to default to `cp -p'.
16157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16158 as_ln_s='cp -p'
16159 elif ln conf$$.file conf$$ 2>/dev/null; then
16160 as_ln_s=ln
16161 else
16162 as_ln_s='cp -p'
16164 else
16165 as_ln_s='cp -p'
16167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16168 rmdir conf$$.dir 2>/dev/null
16171 # as_fn_mkdir_p
16172 # -------------
16173 # Create "$as_dir" as a directory, including parents if necessary.
16174 as_fn_mkdir_p ()
16177 case $as_dir in #(
16178 -*) as_dir=./$as_dir;;
16179 esac
16180 test -d "$as_dir" || eval $as_mkdir_p || {
16181 as_dirs=
16182 while :; do
16183 case $as_dir in #(
16184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16185 *) as_qdir=$as_dir;;
16186 esac
16187 as_dirs="'$as_qdir' $as_dirs"
16188 as_dir=`$as_dirname -- "$as_dir" ||
16189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16190 X"$as_dir" : 'X\(//\)[^/]' \| \
16191 X"$as_dir" : 'X\(//\)$' \| \
16192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16193 $as_echo X"$as_dir" |
16194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16195 s//\1/
16198 /^X\(\/\/\)[^/].*/{
16199 s//\1/
16202 /^X\(\/\/\)$/{
16203 s//\1/
16206 /^X\(\/\).*/{
16207 s//\1/
16210 s/.*/./; q'`
16211 test -d "$as_dir" && break
16212 done
16213 test -z "$as_dirs" || eval "mkdir $as_dirs"
16214 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16217 } # as_fn_mkdir_p
16218 if mkdir -p . 2>/dev/null; then
16219 as_mkdir_p='mkdir -p "$as_dir"'
16220 else
16221 test -d ./-p && rmdir ./-p
16222 as_mkdir_p=false
16225 if test -x / >/dev/null 2>&1; then
16226 as_test_x='test -x'
16227 else
16228 if ls -dL / >/dev/null 2>&1; then
16229 as_ls_L_option=L
16230 else
16231 as_ls_L_option=
16233 as_test_x='
16234 eval sh -c '\''
16235 if test -d "$1"; then
16236 test -d "$1/.";
16237 else
16238 case $1 in #(
16239 -*)set "./$1";;
16240 esac;
16241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16242 ???[sx]*):;;*)false;;esac;fi
16243 '\'' sh
16246 as_executable_p=$as_test_x
16248 # Sed expression to map a string onto a valid CPP name.
16249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16251 # Sed expression to map a string onto a valid variable name.
16252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16255 exec 6>&1
16256 ## ----------------------------------- ##
16257 ## Main body of $CONFIG_STATUS script. ##
16258 ## ----------------------------------- ##
16259 _ASEOF
16260 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16263 # Save the log message, to keep $0 and so on meaningful, and to
16264 # report actual input values of CONFIG_FILES etc. instead of their
16265 # values after options handling.
16266 ac_log="
16267 This file was extended by package-unused $as_me version-unused, which was
16268 generated by GNU Autoconf 2.64. Invocation command line was
16270 CONFIG_FILES = $CONFIG_FILES
16271 CONFIG_HEADERS = $CONFIG_HEADERS
16272 CONFIG_LINKS = $CONFIG_LINKS
16273 CONFIG_COMMANDS = $CONFIG_COMMANDS
16274 $ $0 $@
16276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16279 _ACEOF
16281 case $ac_config_files in *"
16282 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16283 esac
16285 case $ac_config_headers in *"
16286 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16287 esac
16290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16291 # Files that config.status was made for.
16292 config_files="$ac_config_files"
16293 config_headers="$ac_config_headers"
16294 config_commands="$ac_config_commands"
16296 _ACEOF
16298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16299 ac_cs_usage="\
16300 \`$as_me' instantiates files and other configuration actions
16301 from templates according to the current configuration. Unless the files
16302 and actions are specified as TAGs, all are instantiated by default.
16304 Usage: $0 [OPTION]... [TAG]...
16306 -h, --help print this help, then exit
16307 -V, --version print version number and configuration settings, then exit
16308 -q, --quiet, --silent
16309 do not print progress messages
16310 -d, --debug don't remove temporary files
16311 --recheck update $as_me by reconfiguring in the same conditions
16312 --file=FILE[:TEMPLATE]
16313 instantiate the configuration file FILE
16314 --header=FILE[:TEMPLATE]
16315 instantiate the configuration header FILE
16317 Configuration files:
16318 $config_files
16320 Configuration headers:
16321 $config_headers
16323 Configuration commands:
16324 $config_commands
16326 Report bugs to the package provider."
16328 _ACEOF
16329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16330 ac_cs_version="\\
16331 package-unused config.status version-unused
16332 configured by $0, generated by GNU Autoconf 2.64,
16333 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16335 Copyright (C) 2009 Free Software Foundation, Inc.
16336 This config.status script is free software; the Free Software Foundation
16337 gives unlimited permission to copy, distribute and modify it."
16339 ac_pwd='$ac_pwd'
16340 srcdir='$srcdir'
16341 INSTALL='$INSTALL'
16342 MKDIR_P='$MKDIR_P'
16343 AWK='$AWK'
16344 test -n "\$AWK" || AWK=awk
16345 _ACEOF
16347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16348 # The default lists apply if the user does not specify any file.
16349 ac_need_defaults=:
16350 while test $# != 0
16352 case $1 in
16353 --*=*)
16354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16355 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16356 ac_shift=:
16359 ac_option=$1
16360 ac_optarg=$2
16361 ac_shift=shift
16363 esac
16365 case $ac_option in
16366 # Handling of the options.
16367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16368 ac_cs_recheck=: ;;
16369 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16370 $as_echo "$ac_cs_version"; exit ;;
16371 --debug | --debu | --deb | --de | --d | -d )
16372 debug=: ;;
16373 --file | --fil | --fi | --f )
16374 $ac_shift
16375 case $ac_optarg in
16376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16377 esac
16378 as_fn_append CONFIG_FILES " '$ac_optarg'"
16379 ac_need_defaults=false;;
16380 --header | --heade | --head | --hea )
16381 $ac_shift
16382 case $ac_optarg in
16383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16384 esac
16385 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16386 ac_need_defaults=false;;
16387 --he | --h)
16388 # Conflict between --help and --header
16389 as_fn_error "ambiguous option: \`$1'
16390 Try \`$0 --help' for more information.";;
16391 --help | --hel | -h )
16392 $as_echo "$ac_cs_usage"; exit ;;
16393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16395 ac_cs_silent=: ;;
16397 # This is an error.
16398 -*) as_fn_error "unrecognized option: \`$1'
16399 Try \`$0 --help' for more information." ;;
16401 *) as_fn_append ac_config_targets " $1"
16402 ac_need_defaults=false ;;
16404 esac
16405 shift
16406 done
16408 ac_configure_extra_args=
16410 if $ac_cs_silent; then
16411 exec 6>/dev/null
16412 ac_configure_extra_args="$ac_configure_extra_args --silent"
16415 _ACEOF
16416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16417 if \$ac_cs_recheck; then
16418 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16419 shift
16420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16421 CONFIG_SHELL='$SHELL'
16422 export CONFIG_SHELL
16423 exec "\$@"
16426 _ACEOF
16427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16428 exec 5>>config.log
16430 echo
16431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16432 ## Running $as_me. ##
16433 _ASBOX
16434 $as_echo "$ac_log"
16435 } >&5
16437 _ACEOF
16438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16440 # INIT-COMMANDS
16443 srcdir="$srcdir"
16444 host="$host"
16445 target="$target"
16446 with_multisubdir="$with_multisubdir"
16447 with_multisrctop="$with_multisrctop"
16448 with_target_subdir="$with_target_subdir"
16449 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16450 multi_basedir="$multi_basedir"
16451 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16452 CC="$CC"
16453 CXX="$CXX"
16454 GFORTRAN="$GFORTRAN"
16455 GCJ="$GCJ"
16456 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16459 # The HP-UX ksh and POSIX shell print the target directory to stdout
16460 # if CDPATH is set.
16461 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16463 sed_quote_subst='$sed_quote_subst'
16464 double_quote_subst='$double_quote_subst'
16465 delay_variable_subst='$delay_variable_subst'
16466 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16467 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16468 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16469 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16470 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16471 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16472 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16473 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16474 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16475 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16476 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16477 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16478 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16479 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16480 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16481 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16482 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16483 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16484 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16485 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16486 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16487 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16488 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16489 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16490 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16491 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16492 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16493 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16494 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16495 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16496 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16497 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16498 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16499 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16500 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16501 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16502 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16503 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16504 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16505 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16506 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16507 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16508 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16509 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16510 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16511 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16512 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16513 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16514 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"`'
16515 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16516 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16517 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16518 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16519 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16520 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16521 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16522 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16523 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16524 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16525 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16526 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16527 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16528 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16529 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16530 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16531 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16532 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16533 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16534 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16535 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16536 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16537 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16538 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16539 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16540 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16541 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16542 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16543 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16544 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16545 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16546 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16547 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16548 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16549 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16550 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16551 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16552 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16553 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16554 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16555 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16556 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16557 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16558 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16559 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16560 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16561 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16562 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16563 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16564 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16565 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16566 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16567 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16568 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16569 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16570 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16571 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16572 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16573 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16574 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16575 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16576 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16577 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16578 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16579 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16580 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16581 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16582 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16583 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16584 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16585 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16586 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16587 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16588 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16589 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16590 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16591 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16592 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16593 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16594 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16595 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16596 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16597 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16598 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16599 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16600 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16601 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16602 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16603 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16604 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16605 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16606 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16607 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16608 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16609 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16610 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16611 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16612 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16613 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16614 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16615 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16616 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16617 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16618 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16619 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16620 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16621 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16622 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16623 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16624 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16625 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16626 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16627 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16628 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16630 LTCC='$LTCC'
16631 LTCFLAGS='$LTCFLAGS'
16632 compiler='$compiler_DEFAULT'
16634 # A function that is used when there is no print builtin or printf.
16635 func_fallback_echo ()
16637 eval 'cat <<_LTECHO_EOF
16639 _LTECHO_EOF'
16642 # Quote evaled strings.
16643 for var in SED \
16644 GREP \
16645 EGREP \
16646 FGREP \
16647 SHELL \
16648 ECHO \
16649 LD \
16650 NM \
16651 LN_S \
16652 lt_SP2NL \
16653 lt_NL2SP \
16654 reload_flag \
16655 OBJDUMP \
16656 deplibs_check_method \
16657 file_magic_cmd \
16658 AR \
16659 AR_FLAGS \
16660 STRIP \
16661 RANLIB \
16662 CC \
16663 CFLAGS \
16664 compiler \
16665 lt_cv_sys_global_symbol_pipe \
16666 lt_cv_sys_global_symbol_to_cdecl \
16667 lt_cv_sys_global_symbol_to_c_name_address \
16668 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16669 lt_prog_compiler_no_builtin_flag \
16670 lt_prog_compiler_wl \
16671 lt_prog_compiler_pic \
16672 lt_prog_compiler_static \
16673 lt_cv_prog_compiler_c_o \
16674 need_locks \
16675 DSYMUTIL \
16676 NMEDIT \
16677 LIPO \
16678 OTOOL \
16679 OTOOL64 \
16680 shrext_cmds \
16681 export_dynamic_flag_spec \
16682 whole_archive_flag_spec \
16683 compiler_needs_object \
16684 with_gnu_ld \
16685 allow_undefined_flag \
16686 no_undefined_flag \
16687 hardcode_libdir_flag_spec \
16688 hardcode_libdir_flag_spec_ld \
16689 hardcode_libdir_separator \
16690 fix_srcfile_path \
16691 exclude_expsyms \
16692 include_expsyms \
16693 file_list_spec \
16694 variables_saved_for_relink \
16695 libname_spec \
16696 library_names_spec \
16697 soname_spec \
16698 install_override_mode \
16699 finish_eval \
16700 old_striplib \
16701 striplib \
16702 LD_GO \
16703 reload_flag_GO \
16704 compiler_GO \
16705 lt_prog_compiler_no_builtin_flag_GO \
16706 lt_prog_compiler_wl_GO \
16707 lt_prog_compiler_pic_GO \
16708 lt_prog_compiler_static_GO \
16709 lt_cv_prog_compiler_c_o_GO \
16710 export_dynamic_flag_spec_GO \
16711 whole_archive_flag_spec_GO \
16712 compiler_needs_object_GO \
16713 with_gnu_ld_GO \
16714 allow_undefined_flag_GO \
16715 no_undefined_flag_GO \
16716 hardcode_libdir_flag_spec_GO \
16717 hardcode_libdir_flag_spec_ld_GO \
16718 hardcode_libdir_separator_GO \
16719 fix_srcfile_path_GO \
16720 exclude_expsyms_GO \
16721 include_expsyms_GO \
16722 file_list_spec_GO; do
16723 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16724 *[\\\\\\\`\\"\\\$]*)
16725 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16728 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16730 esac
16731 done
16733 # Double-quote double-evaled strings.
16734 for var in reload_cmds \
16735 old_postinstall_cmds \
16736 old_postuninstall_cmds \
16737 old_archive_cmds \
16738 extract_expsyms_cmds \
16739 old_archive_from_new_cmds \
16740 old_archive_from_expsyms_cmds \
16741 archive_cmds \
16742 archive_expsym_cmds \
16743 module_cmds \
16744 module_expsym_cmds \
16745 export_symbols_cmds \
16746 prelink_cmds \
16747 postinstall_cmds \
16748 postuninstall_cmds \
16749 finish_cmds \
16750 sys_lib_search_path_spec \
16751 sys_lib_dlsearch_path_spec \
16752 reload_cmds_GO \
16753 old_archive_cmds_GO \
16754 old_archive_from_new_cmds_GO \
16755 old_archive_from_expsyms_cmds_GO \
16756 archive_cmds_GO \
16757 archive_expsym_cmds_GO \
16758 module_cmds_GO \
16759 module_expsym_cmds_GO \
16760 export_symbols_cmds_GO \
16761 prelink_cmds_GO; do
16762 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16763 *[\\\\\\\`\\"\\\$]*)
16764 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16767 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16769 esac
16770 done
16772 ac_aux_dir='$ac_aux_dir'
16773 xsi_shell='$xsi_shell'
16774 lt_shell_append='$lt_shell_append'
16776 # See if we are running on zsh, and set the options which allow our
16777 # commands through without removal of \ escapes INIT.
16778 if test -n "\${ZSH_VERSION+set}" ; then
16779 setopt NO_GLOB_SUBST
16783 PACKAGE='$PACKAGE'
16784 VERSION='$VERSION'
16785 TIMESTAMP='$TIMESTAMP'
16786 RM='$RM'
16787 ofile='$ofile'
16794 # Variables needed in config.status (file generation) which aren't already
16795 # passed by autoconf.
16796 SUBDIRS="$SUBDIRS"
16799 _ACEOF
16801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16803 # Handling of arguments.
16804 for ac_config_target in $ac_config_targets
16806 case $ac_config_target in
16807 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16808 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16809 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16810 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16811 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16812 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16813 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16815 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16816 esac
16817 done
16820 # If the user did not use the arguments to specify the items to instantiate,
16821 # then the envvar interface is used. Set only those that are not.
16822 # We use the long form for the default assignment because of an extremely
16823 # bizarre bug on SunOS 4.1.3.
16824 if $ac_need_defaults; then
16825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16826 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16827 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16830 # Have a temporary directory for convenience. Make it in the build tree
16831 # simply because there is no reason against having it here, and in addition,
16832 # creating and moving files from /tmp can sometimes cause problems.
16833 # Hook for its removal unless debugging.
16834 # Note that there is a small window in which the directory will not be cleaned:
16835 # after its creation but before its name has been assigned to `$tmp'.
16836 $debug ||
16838 tmp=
16839 trap 'exit_status=$?
16840 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16842 trap 'as_fn_exit 1' 1 2 13 15
16844 # Create a (secure) tmp directory for tmp files.
16847 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16848 test -n "$tmp" && test -d "$tmp"
16849 } ||
16851 tmp=./conf$$-$RANDOM
16852 (umask 077 && mkdir "$tmp")
16853 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16855 # Set up the scripts for CONFIG_FILES section.
16856 # No need to generate them if there are no CONFIG_FILES.
16857 # This happens for instance with `./config.status config.h'.
16858 if test -n "$CONFIG_FILES"; then
16861 ac_cr=`echo X | tr X '\015'`
16862 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16863 # But we know of no other shell where ac_cr would be empty at this
16864 # point, so we can use a bashism as a fallback.
16865 if test "x$ac_cr" = x; then
16866 eval ac_cr=\$\'\\r\'
16868 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16869 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16870 ac_cs_awk_cr='\r'
16871 else
16872 ac_cs_awk_cr=$ac_cr
16875 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16876 _ACEOF
16880 echo "cat >conf$$subs.awk <<_ACEOF" &&
16881 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16882 echo "_ACEOF"
16883 } >conf$$subs.sh ||
16884 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16885 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16886 ac_delim='%!_!# '
16887 for ac_last_try in false false false false false :; do
16888 . ./conf$$subs.sh ||
16889 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16891 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16892 if test $ac_delim_n = $ac_delim_num; then
16893 break
16894 elif $ac_last_try; then
16895 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16896 else
16897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16899 done
16900 rm -f conf$$subs.sh
16902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16903 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16904 _ACEOF
16905 sed -n '
16907 s/^/S["/; s/!.*/"]=/
16910 s/^[^!]*!//
16911 :repl
16912 t repl
16913 s/'"$ac_delim"'$//
16914 t delim
16917 s/\(.\{148\}\).*/\1/
16918 t more1
16919 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16922 b repl
16923 :more1
16924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16927 s/.\{148\}//
16928 t nl
16929 :delim
16931 s/\(.\{148\}\).*/\1/
16932 t more2
16933 s/["\\]/\\&/g; s/^/"/; s/$/"/
16936 :more2
16937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16940 s/.\{148\}//
16941 t delim
16942 ' <conf$$subs.awk | sed '
16943 /^[^""]/{
16945 s/\n//
16947 ' >>$CONFIG_STATUS || ac_write_fail=1
16948 rm -f conf$$subs.awk
16949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16950 _ACAWK
16951 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16952 for (key in S) S_is_set[key] = 1
16953 FS = "\a"
16957 line = $ 0
16958 nfields = split(line, field, "@")
16959 substed = 0
16960 len = length(field[1])
16961 for (i = 2; i < nfields; i++) {
16962 key = field[i]
16963 keylen = length(key)
16964 if (S_is_set[key]) {
16965 value = S[key]
16966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16967 len += length(value) + length(field[++i])
16968 substed = 1
16969 } else
16970 len += 1 + keylen
16973 print line
16976 _ACAWK
16977 _ACEOF
16978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16979 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16980 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16981 else
16983 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16984 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16985 _ACEOF
16987 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16988 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16989 # trailing colons and then remove the whole line if VPATH becomes empty
16990 # (actually we leave an empty line to preserve line numbers).
16991 if test "x$srcdir" = x.; then
16992 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16993 s/:*\$(srcdir):*/:/
16994 s/:*\${srcdir}:*/:/
16995 s/:*@srcdir@:*/:/
16996 s/^\([^=]*=[ ]*\):*/\1/
16997 s/:*$//
16998 s/^[^=]*=[ ]*$//
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17003 fi # test -n "$CONFIG_FILES"
17005 # Set up the scripts for CONFIG_HEADERS section.
17006 # No need to generate them if there are no CONFIG_HEADERS.
17007 # This happens for instance with `./config.status Makefile'.
17008 if test -n "$CONFIG_HEADERS"; then
17009 cat >"$tmp/defines.awk" <<\_ACAWK ||
17010 BEGIN {
17011 _ACEOF
17013 # Transform confdefs.h into an awk script `defines.awk', embedded as
17014 # here-document in config.status, that substitutes the proper values into
17015 # config.h.in to produce config.h.
17017 # Create a delimiter string that does not exist in confdefs.h, to ease
17018 # handling of long lines.
17019 ac_delim='%!_!# '
17020 for ac_last_try in false false :; do
17021 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17022 if test -z "$ac_t"; then
17023 break
17024 elif $ac_last_try; then
17025 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17026 else
17027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17029 done
17031 # For the awk script, D is an array of macro values keyed by name,
17032 # likewise P contains macro parameters if any. Preserve backslash
17033 # newline sequences.
17035 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17036 sed -n '
17037 s/.\{148\}/&'"$ac_delim"'/g
17038 t rset
17039 :rset
17040 s/^[ ]*#[ ]*define[ ][ ]*/ /
17041 t def
17043 :def
17044 s/\\$//
17045 t bsnl
17046 s/["\\]/\\&/g
17047 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17048 D["\1"]=" \3"/p
17049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17051 :bsnl
17052 s/["\\]/\\&/g
17053 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17054 D["\1"]=" \3\\\\\\n"\\/p
17055 t cont
17056 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17057 t cont
17059 :cont
17061 s/.\{148\}/&'"$ac_delim"'/g
17062 t clear
17063 :clear
17064 s/\\$//
17065 t bsnlc
17066 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17068 :bsnlc
17069 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17070 b cont
17071 ' <confdefs.h | sed '
17072 s/'"$ac_delim"'/"\\\
17073 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17076 for (key in D) D_is_set[key] = 1
17077 FS = "\a"
17079 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17080 line = \$ 0
17081 split(line, arg, " ")
17082 if (arg[1] == "#") {
17083 defundef = arg[2]
17084 mac1 = arg[3]
17085 } else {
17086 defundef = substr(arg[1], 2)
17087 mac1 = arg[2]
17089 split(mac1, mac2, "(") #)
17090 macro = mac2[1]
17091 prefix = substr(line, 1, index(line, defundef) - 1)
17092 if (D_is_set[macro]) {
17093 # Preserve the white space surrounding the "#".
17094 print prefix "define", macro P[macro] D[macro]
17095 next
17096 } else {
17097 # Replace #undef with comments. This is necessary, for example,
17098 # in the case of _POSIX_SOURCE, which is predefined and required
17099 # on some systems where configure will not decide to define it.
17100 if (defundef == "undef") {
17101 print "/*", prefix defundef, macro, "*/"
17102 next
17106 { print }
17107 _ACAWK
17108 _ACEOF
17109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17110 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17111 fi # test -n "$CONFIG_HEADERS"
17114 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17115 shift
17116 for ac_tag
17118 case $ac_tag in
17119 :[FHLC]) ac_mode=$ac_tag; continue;;
17120 esac
17121 case $ac_mode$ac_tag in
17122 :[FHL]*:*);;
17123 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17124 :[FH]-) ac_tag=-:-;;
17125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17126 esac
17127 ac_save_IFS=$IFS
17128 IFS=:
17129 set x $ac_tag
17130 IFS=$ac_save_IFS
17131 shift
17132 ac_file=$1
17133 shift
17135 case $ac_mode in
17136 :L) ac_source=$1;;
17137 :[FH])
17138 ac_file_inputs=
17139 for ac_f
17141 case $ac_f in
17142 -) ac_f="$tmp/stdin";;
17143 *) # Look for the file first in the build tree, then in the source tree
17144 # (if the path is not absolute). The absolute path cannot be DOS-style,
17145 # because $ac_f cannot contain `:'.
17146 test -f "$ac_f" ||
17147 case $ac_f in
17148 [\\/$]*) false;;
17149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17150 esac ||
17151 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17152 esac
17153 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17154 as_fn_append ac_file_inputs " '$ac_f'"
17155 done
17157 # Let's still pretend it is `configure' which instantiates (i.e., don't
17158 # use $as_me), people would be surprised to read:
17159 # /* config.h. Generated by config.status. */
17160 configure_input='Generated from '`
17161 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17162 `' by configure.'
17163 if test x"$ac_file" != x-; then
17164 configure_input="$ac_file. $configure_input"
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17166 $as_echo "$as_me: creating $ac_file" >&6;}
17168 # Neutralize special characters interpreted by sed in replacement strings.
17169 case $configure_input in #(
17170 *\&* | *\|* | *\\* )
17171 ac_sed_conf_input=`$as_echo "$configure_input" |
17172 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17173 *) ac_sed_conf_input=$configure_input;;
17174 esac
17176 case $ac_tag in
17177 *:-:* | *:-) cat >"$tmp/stdin" \
17178 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17179 esac
17181 esac
17183 ac_dir=`$as_dirname -- "$ac_file" ||
17184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17185 X"$ac_file" : 'X\(//\)[^/]' \| \
17186 X"$ac_file" : 'X\(//\)$' \| \
17187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17188 $as_echo X"$ac_file" |
17189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17190 s//\1/
17193 /^X\(\/\/\)[^/].*/{
17194 s//\1/
17197 /^X\(\/\/\)$/{
17198 s//\1/
17201 /^X\(\/\).*/{
17202 s//\1/
17205 s/.*/./; q'`
17206 as_dir="$ac_dir"; as_fn_mkdir_p
17207 ac_builddir=.
17209 case "$ac_dir" in
17210 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17212 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17213 # A ".." for each directory in $ac_dir_suffix.
17214 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17215 case $ac_top_builddir_sub in
17216 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17217 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17218 esac ;;
17219 esac
17220 ac_abs_top_builddir=$ac_pwd
17221 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17222 # for backward compatibility:
17223 ac_top_builddir=$ac_top_build_prefix
17225 case $srcdir in
17226 .) # We are building in place.
17227 ac_srcdir=.
17228 ac_top_srcdir=$ac_top_builddir_sub
17229 ac_abs_top_srcdir=$ac_pwd ;;
17230 [\\/]* | ?:[\\/]* ) # Absolute name.
17231 ac_srcdir=$srcdir$ac_dir_suffix;
17232 ac_top_srcdir=$srcdir
17233 ac_abs_top_srcdir=$srcdir ;;
17234 *) # Relative name.
17235 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17236 ac_top_srcdir=$ac_top_build_prefix$srcdir
17237 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17238 esac
17239 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17242 case $ac_mode in
17245 # CONFIG_FILE
17248 case $INSTALL in
17249 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17250 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17251 esac
17252 ac_MKDIR_P=$MKDIR_P
17253 case $MKDIR_P in
17254 [\\/$]* | ?:[\\/]* ) ;;
17255 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17256 esac
17257 _ACEOF
17259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17260 # If the template does not know about datarootdir, expand it.
17261 # FIXME: This hack should be removed a few years after 2.60.
17262 ac_datarootdir_hack=; ac_datarootdir_seen=
17263 ac_sed_dataroot='
17264 /datarootdir/ {
17268 /@datadir@/p
17269 /@docdir@/p
17270 /@infodir@/p
17271 /@localedir@/p
17272 /@mandir@/p'
17273 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17274 *datarootdir*) ac_datarootdir_seen=yes;;
17275 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17277 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17278 _ACEOF
17279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17280 ac_datarootdir_hack='
17281 s&@datadir@&$datadir&g
17282 s&@docdir@&$docdir&g
17283 s&@infodir@&$infodir&g
17284 s&@localedir@&$localedir&g
17285 s&@mandir@&$mandir&g
17286 s&\\\${datarootdir}&$datarootdir&g' ;;
17287 esac
17288 _ACEOF
17290 # Neutralize VPATH when `$srcdir' = `.'.
17291 # Shell code in configure.ac might set extrasub.
17292 # FIXME: do we really want to maintain this feature?
17293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17294 ac_sed_extra="$ac_vpsub
17295 $extrasub
17296 _ACEOF
17297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17300 s|@configure_input@|$ac_sed_conf_input|;t t
17301 s&@top_builddir@&$ac_top_builddir_sub&;t t
17302 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17303 s&@srcdir@&$ac_srcdir&;t t
17304 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17305 s&@top_srcdir@&$ac_top_srcdir&;t t
17306 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17307 s&@builddir@&$ac_builddir&;t t
17308 s&@abs_builddir@&$ac_abs_builddir&;t t
17309 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17310 s&@INSTALL@&$ac_INSTALL&;t t
17311 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17312 $ac_datarootdir_hack
17314 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17315 || as_fn_error "could not create $ac_file" "$LINENO" 5
17317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17318 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17321 which seems to be undefined. Please make sure it is defined." >&5
17322 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17323 which seems to be undefined. Please make sure it is defined." >&2;}
17325 rm -f "$tmp/stdin"
17326 case $ac_file in
17327 -) cat "$tmp/out" && rm -f "$tmp/out";;
17328 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17329 esac \
17330 || as_fn_error "could not create $ac_file" "$LINENO" 5
17334 # CONFIG_HEADER
17336 if test x"$ac_file" != x-; then
17338 $as_echo "/* $configure_input */" \
17339 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17340 } >"$tmp/config.h" \
17341 || as_fn_error "could not create $ac_file" "$LINENO" 5
17342 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17344 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17345 else
17346 rm -f "$ac_file"
17347 mv "$tmp/config.h" "$ac_file" \
17348 || as_fn_error "could not create $ac_file" "$LINENO" 5
17350 else
17351 $as_echo "/* $configure_input */" \
17352 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17353 || as_fn_error "could not create -" "$LINENO" 5
17355 # Compute "$ac_file"'s index in $config_headers.
17356 _am_arg="$ac_file"
17357 _am_stamp_count=1
17358 for _am_header in $config_headers :; do
17359 case $_am_header in
17360 $_am_arg | $_am_arg:* )
17361 break ;;
17363 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17364 esac
17365 done
17366 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17367 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17368 X"$_am_arg" : 'X\(//\)[^/]' \| \
17369 X"$_am_arg" : 'X\(//\)$' \| \
17370 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17371 $as_echo X"$_am_arg" |
17372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17373 s//\1/
17376 /^X\(\/\/\)[^/].*/{
17377 s//\1/
17380 /^X\(\/\/\)$/{
17381 s//\1/
17384 /^X\(\/\).*/{
17385 s//\1/
17388 s/.*/./; q'`/stamp-h$_am_stamp_count
17391 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17392 $as_echo "$as_me: executing $ac_file commands" >&6;}
17394 esac
17397 case $ac_file$ac_mode in
17398 "default-1":C)
17399 # Only add multilib support code if we just rebuilt the top-level
17400 # Makefile.
17401 case " $CONFIG_FILES " in
17402 *" Makefile "*)
17403 ac_file=Makefile . ${multi_basedir}/config-ml.in
17405 esac ;;
17406 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17407 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17408 # are listed without --file. Let's play safe and only enable the eval
17409 # if we detect the quoting.
17410 case $CONFIG_FILES in
17411 *\'*) eval set x "$CONFIG_FILES" ;;
17412 *) set x $CONFIG_FILES ;;
17413 esac
17414 shift
17415 for mf
17417 # Strip MF so we end up with the name of the file.
17418 mf=`echo "$mf" | sed -e 's/:.*$//'`
17419 # Check whether this is an Automake generated Makefile or not.
17420 # We used to match only the files named `Makefile.in', but
17421 # some people rename them; so instead we look at the file content.
17422 # Grep'ing the first line is not enough: some people post-process
17423 # each Makefile.in and add a new line on top of each file to say so.
17424 # Grep'ing the whole file is not good either: AIX grep has a line
17425 # limit of 2048, but all sed's we know have understand at least 4000.
17426 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17427 dirpart=`$as_dirname -- "$mf" ||
17428 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17429 X"$mf" : 'X\(//\)[^/]' \| \
17430 X"$mf" : 'X\(//\)$' \| \
17431 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17432 $as_echo X"$mf" |
17433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17434 s//\1/
17437 /^X\(\/\/\)[^/].*/{
17438 s//\1/
17441 /^X\(\/\/\)$/{
17442 s//\1/
17445 /^X\(\/\).*/{
17446 s//\1/
17449 s/.*/./; q'`
17450 else
17451 continue
17453 # Extract the definition of DEPDIR, am__include, and am__quote
17454 # from the Makefile without running `make'.
17455 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17456 test -z "$DEPDIR" && continue
17457 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17458 test -z "am__include" && continue
17459 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17460 # When using ansi2knr, U may be empty or an underscore; expand it
17461 U=`sed -n 's/^U = //p' < "$mf"`
17462 # Find all dependency output files, they are included files with
17463 # $(DEPDIR) in their names. We invoke sed twice because it is the
17464 # simplest approach to changing $(DEPDIR) to its actual value in the
17465 # expansion.
17466 for file in `sed -n "
17467 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17468 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17469 # Make sure the directory exists.
17470 test -f "$dirpart/$file" && continue
17471 fdir=`$as_dirname -- "$file" ||
17472 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17473 X"$file" : 'X\(//\)[^/]' \| \
17474 X"$file" : 'X\(//\)$' \| \
17475 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17476 $as_echo X"$file" |
17477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17478 s//\1/
17481 /^X\(\/\/\)[^/].*/{
17482 s//\1/
17485 /^X\(\/\/\)$/{
17486 s//\1/
17489 /^X\(\/\).*/{
17490 s//\1/
17493 s/.*/./; q'`
17494 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17495 # echo "creating $dirpart/$file"
17496 echo '# dummy' > "$dirpart/$file"
17497 done
17498 done
17501 "libtool":C)
17503 # See if we are running on zsh, and set the options which allow our
17504 # commands through without removal of \ escapes.
17505 if test -n "${ZSH_VERSION+set}" ; then
17506 setopt NO_GLOB_SUBST
17509 cfgfile="${ofile}T"
17510 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17511 $RM "$cfgfile"
17513 cat <<_LT_EOF >> "$cfgfile"
17514 #! $SHELL
17516 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17517 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17518 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17519 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17521 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17522 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17523 # Written by Gordon Matzigkeit, 1996
17525 # This file is part of GNU Libtool.
17527 # GNU Libtool is free software; you can redistribute it and/or
17528 # modify it under the terms of the GNU General Public License as
17529 # published by the Free Software Foundation; either version 2 of
17530 # the License, or (at your option) any later version.
17532 # As a special exception to the GNU General Public License,
17533 # if you distribute this file as part of a program or library that
17534 # is built using GNU Libtool, you may include this file under the
17535 # same distribution terms that you use for the rest of that program.
17537 # GNU Libtool is distributed in the hope that it will be useful,
17538 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17539 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17540 # GNU General Public License for more details.
17542 # You should have received a copy of the GNU General Public License
17543 # along with GNU Libtool; see the file COPYING. If not, a copy
17544 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17545 # obtained by writing to the Free Software Foundation, Inc.,
17546 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17549 # The names of the tagged configurations supported by this script.
17550 available_tags="GO "
17552 # ### BEGIN LIBTOOL CONFIG
17554 # A sed program that does not truncate output.
17555 SED=$lt_SED
17557 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17558 Xsed="\$SED -e 1s/^X//"
17560 # A grep program that handles long lines.
17561 GREP=$lt_GREP
17563 # An ERE matcher.
17564 EGREP=$lt_EGREP
17566 # A literal string matcher.
17567 FGREP=$lt_FGREP
17569 # Shell to use when invoking shell scripts.
17570 SHELL=$lt_SHELL
17572 # An echo program that protects backslashes.
17573 ECHO=$lt_ECHO
17575 # Which release of libtool.m4 was used?
17576 macro_version=$macro_version
17577 macro_revision=$macro_revision
17579 # Whether or not to build shared libraries.
17580 build_libtool_libs=$enable_shared
17582 # Whether or not to build static libraries.
17583 build_old_libs=$enable_static
17585 # What type of objects to build.
17586 pic_mode=$pic_mode
17588 # Whether or not to optimize for fast installation.
17589 fast_install=$enable_fast_install
17591 # The host system.
17592 host_alias=$host_alias
17593 host=$host
17594 host_os=$host_os
17596 # The build system.
17597 build_alias=$build_alias
17598 build=$build
17599 build_os=$build_os
17601 # A BSD- or MS-compatible name lister.
17602 NM=$lt_NM
17604 # Whether we need soft or hard links.
17605 LN_S=$lt_LN_S
17607 # What is the maximum length of a command?
17608 max_cmd_len=$max_cmd_len
17610 # Object file suffix (normally "o").
17611 objext=$ac_objext
17613 # Executable file suffix (normally "").
17614 exeext=$exeext
17616 # whether the shell understands "unset".
17617 lt_unset=$lt_unset
17619 # turn spaces into newlines.
17620 SP2NL=$lt_lt_SP2NL
17622 # turn newlines into spaces.
17623 NL2SP=$lt_lt_NL2SP
17625 # An object symbol dumper.
17626 OBJDUMP=$lt_OBJDUMP
17628 # Method to check whether dependent libraries are shared objects.
17629 deplibs_check_method=$lt_deplibs_check_method
17631 # Command to use when deplibs_check_method == "file_magic".
17632 file_magic_cmd=$lt_file_magic_cmd
17634 # The archiver.
17635 AR=$lt_AR
17636 AR_FLAGS=$lt_AR_FLAGS
17638 # A symbol stripping program.
17639 STRIP=$lt_STRIP
17641 # Commands used to install an old-style archive.
17642 RANLIB=$lt_RANLIB
17643 old_postinstall_cmds=$lt_old_postinstall_cmds
17644 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17646 # Whether to use a lock for old archive extraction.
17647 lock_old_archive_extraction=$lock_old_archive_extraction
17649 # A C compiler.
17650 LTCC=$lt_CC
17652 # LTCC compiler flags.
17653 LTCFLAGS=$lt_CFLAGS
17655 # Take the output of nm and produce a listing of raw symbols and C names.
17656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17658 # Transform the output of nm in a proper C declaration.
17659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17661 # Transform the output of nm in a C name address pair.
17662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17664 # Transform the output of nm in a C name address pair when lib prefix is needed.
17665 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17667 # The name of the directory that contains temporary libtool files.
17668 objdir=$objdir
17670 # Used to examine libraries when file_magic_cmd begins with "file".
17671 MAGIC_CMD=$MAGIC_CMD
17673 # Must we lock files when doing compilation?
17674 need_locks=$lt_need_locks
17676 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17677 DSYMUTIL=$lt_DSYMUTIL
17679 # Tool to change global to local symbols on Mac OS X.
17680 NMEDIT=$lt_NMEDIT
17682 # Tool to manipulate fat objects and archives on Mac OS X.
17683 LIPO=$lt_LIPO
17685 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17686 OTOOL=$lt_OTOOL
17688 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17689 OTOOL64=$lt_OTOOL64
17691 # Old archive suffix (normally "a").
17692 libext=$libext
17694 # Shared library suffix (normally ".so").
17695 shrext_cmds=$lt_shrext_cmds
17697 # The commands to extract the exported symbol list from a shared archive.
17698 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17700 # Variables whose values should be saved in libtool wrapper scripts and
17701 # restored at link time.
17702 variables_saved_for_relink=$lt_variables_saved_for_relink
17704 # Do we need the "lib" prefix for modules?
17705 need_lib_prefix=$need_lib_prefix
17707 # Do we need a version for libraries?
17708 need_version=$need_version
17710 # Library versioning type.
17711 version_type=$version_type
17713 # Shared library runtime path variable.
17714 runpath_var=$runpath_var
17716 # Shared library path variable.
17717 shlibpath_var=$shlibpath_var
17719 # Is shlibpath searched before the hard-coded library search path?
17720 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17722 # Format of library name prefix.
17723 libname_spec=$lt_libname_spec
17725 # List of archive names. First name is the real one, the rest are links.
17726 # The last name is the one that the linker finds with -lNAME
17727 library_names_spec=$lt_library_names_spec
17729 # The coded name of the library, if different from the real name.
17730 soname_spec=$lt_soname_spec
17732 # Permission mode override for installation of shared libraries.
17733 install_override_mode=$lt_install_override_mode
17735 # Command to use after installation of a shared archive.
17736 postinstall_cmds=$lt_postinstall_cmds
17738 # Command to use after uninstallation of a shared archive.
17739 postuninstall_cmds=$lt_postuninstall_cmds
17741 # Commands used to finish a libtool library installation in a directory.
17742 finish_cmds=$lt_finish_cmds
17744 # As "finish_cmds", except a single script fragment to be evaled but
17745 # not shown.
17746 finish_eval=$lt_finish_eval
17748 # Whether we should hardcode library paths into libraries.
17749 hardcode_into_libs=$hardcode_into_libs
17751 # Compile-time system search path for libraries.
17752 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17754 # Run-time system search path for libraries.
17755 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17757 # Whether dlopen is supported.
17758 dlopen_support=$enable_dlopen
17760 # Whether dlopen of programs is supported.
17761 dlopen_self=$enable_dlopen_self
17763 # Whether dlopen of statically linked programs is supported.
17764 dlopen_self_static=$enable_dlopen_self_static
17766 # Commands to strip libraries.
17767 old_striplib=$lt_old_striplib
17768 striplib=$lt_striplib
17771 # The linker used to build libraries.
17772 LD=$lt_LD
17774 # How to create reloadable object files.
17775 reload_flag=$lt_reload_flag
17776 reload_cmds=$lt_reload_cmds
17778 # Commands used to build an old-style archive.
17779 old_archive_cmds=$lt_old_archive_cmds
17781 # A language specific compiler.
17782 CC=$lt_compiler
17784 # Is the compiler the GNU compiler?
17785 with_gcc=$GCC
17787 # Compiler flag to turn off builtin functions.
17788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17790 # How to pass a linker flag through the compiler.
17791 wl=$lt_lt_prog_compiler_wl
17793 # Additional compiler flags for building library objects.
17794 pic_flag=$lt_lt_prog_compiler_pic
17796 # Compiler flag to prevent dynamic linking.
17797 link_static_flag=$lt_lt_prog_compiler_static
17799 # Does compiler simultaneously support -c and -o options?
17800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17802 # Whether or not to add -lc for building shared libraries.
17803 build_libtool_need_lc=$archive_cmds_need_lc
17805 # Whether or not to disallow shared libs when runtime libs are static.
17806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17808 # Compiler flag to allow reflexive dlopens.
17809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17811 # Compiler flag to generate shared objects directly from archives.
17812 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17814 # Whether the compiler copes with passing no objects directly.
17815 compiler_needs_object=$lt_compiler_needs_object
17817 # Create an old-style archive from a shared archive.
17818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17820 # Create a temporary old-style archive to link instead of a shared archive.
17821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17823 # Commands used to build a shared archive.
17824 archive_cmds=$lt_archive_cmds
17825 archive_expsym_cmds=$lt_archive_expsym_cmds
17827 # Commands used to build a loadable module if different from building
17828 # a shared archive.
17829 module_cmds=$lt_module_cmds
17830 module_expsym_cmds=$lt_module_expsym_cmds
17832 # Whether we are building with GNU ld or not.
17833 with_gnu_ld=$lt_with_gnu_ld
17835 # Flag that allows shared libraries with undefined symbols to be built.
17836 allow_undefined_flag=$lt_allow_undefined_flag
17838 # Flag that enforces no undefined symbols.
17839 no_undefined_flag=$lt_no_undefined_flag
17841 # Flag to hardcode \$libdir into a binary during linking.
17842 # This must work even if \$libdir does not exist
17843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17845 # If ld is used when linking, flag to hardcode \$libdir into a binary
17846 # during linking. This must work even if \$libdir does not exist.
17847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17849 # Whether we need a single "-rpath" flag with a separated argument.
17850 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17852 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17853 # DIR into the resulting binary.
17854 hardcode_direct=$hardcode_direct
17856 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17857 # DIR into the resulting binary and the resulting library dependency is
17858 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17859 # library is relocated.
17860 hardcode_direct_absolute=$hardcode_direct_absolute
17862 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17863 # into the resulting binary.
17864 hardcode_minus_L=$hardcode_minus_L
17866 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17867 # into the resulting binary.
17868 hardcode_shlibpath_var=$hardcode_shlibpath_var
17870 # Set to "yes" if building a shared library automatically hardcodes DIR
17871 # into the library and all subsequent libraries and executables linked
17872 # against it.
17873 hardcode_automatic=$hardcode_automatic
17875 # Set to yes if linker adds runtime paths of dependent libraries
17876 # to runtime path list.
17877 inherit_rpath=$inherit_rpath
17879 # Whether libtool must link a program against all its dependency libraries.
17880 link_all_deplibs=$link_all_deplibs
17882 # Fix the shell variable \$srcfile for the compiler.
17883 fix_srcfile_path=$lt_fix_srcfile_path
17885 # Set to "yes" if exported symbols are required.
17886 always_export_symbols=$always_export_symbols
17888 # The commands to list exported symbols.
17889 export_symbols_cmds=$lt_export_symbols_cmds
17891 # Symbols that should not be listed in the preloaded symbols.
17892 exclude_expsyms=$lt_exclude_expsyms
17894 # Symbols that must always be exported.
17895 include_expsyms=$lt_include_expsyms
17897 # Commands necessary for linking programs (against libraries) with templates.
17898 prelink_cmds=$lt_prelink_cmds
17900 # Specify filename containing input files.
17901 file_list_spec=$lt_file_list_spec
17903 # How to hardcode a shared library path into an executable.
17904 hardcode_action=$hardcode_action
17906 # ### END LIBTOOL CONFIG
17908 _LT_EOF
17910 case $host_os in
17911 aix3*)
17912 cat <<\_LT_EOF >> "$cfgfile"
17913 # AIX sometimes has problems with the GCC collect2 program. For some
17914 # reason, if we set the COLLECT_NAMES environment variable, the problems
17915 # vanish in a puff of smoke.
17916 if test "X${COLLECT_NAMES+set}" != Xset; then
17917 COLLECT_NAMES=
17918 export COLLECT_NAMES
17920 _LT_EOF
17922 esac
17925 ltmain="$ac_aux_dir/ltmain.sh"
17928 # We use sed instead of cat because bash on DJGPP gets confused if
17929 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17930 # text mode, it properly converts lines to CR/LF. This bash problem
17931 # is reportedly fixed, but why not run on old versions too?
17932 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17933 || (rm -f "$cfgfile"; exit 1)
17935 case $xsi_shell in
17936 yes)
17937 cat << \_LT_EOF >> "$cfgfile"
17939 # func_dirname file append nondir_replacement
17940 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17941 # otherwise set result to NONDIR_REPLACEMENT.
17942 func_dirname ()
17944 case ${1} in
17945 */*) func_dirname_result="${1%/*}${2}" ;;
17946 * ) func_dirname_result="${3}" ;;
17947 esac
17950 # func_basename file
17951 func_basename ()
17953 func_basename_result="${1##*/}"
17956 # func_dirname_and_basename file append nondir_replacement
17957 # perform func_basename and func_dirname in a single function
17958 # call:
17959 # dirname: Compute the dirname of FILE. If nonempty,
17960 # add APPEND to the result, otherwise set result
17961 # to NONDIR_REPLACEMENT.
17962 # value returned in "$func_dirname_result"
17963 # basename: Compute filename of FILE.
17964 # value retuned in "$func_basename_result"
17965 # Implementation must be kept synchronized with func_dirname
17966 # and func_basename. For efficiency, we do not delegate to
17967 # those functions but instead duplicate the functionality here.
17968 func_dirname_and_basename ()
17970 case ${1} in
17971 */*) func_dirname_result="${1%/*}${2}" ;;
17972 * ) func_dirname_result="${3}" ;;
17973 esac
17974 func_basename_result="${1##*/}"
17977 # func_stripname prefix suffix name
17978 # strip PREFIX and SUFFIX off of NAME.
17979 # PREFIX and SUFFIX must not contain globbing or regex special
17980 # characters, hashes, percent signs, but SUFFIX may contain a leading
17981 # dot (in which case that matches only a dot).
17982 func_stripname ()
17984 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17985 # positional parameters, so assign one to ordinary parameter first.
17986 func_stripname_result=${3}
17987 func_stripname_result=${func_stripname_result#"${1}"}
17988 func_stripname_result=${func_stripname_result%"${2}"}
17991 # func_opt_split
17992 func_opt_split ()
17994 func_opt_split_opt=${1%%=*}
17995 func_opt_split_arg=${1#*=}
17998 # func_lo2o object
17999 func_lo2o ()
18001 case ${1} in
18002 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18003 *) func_lo2o_result=${1} ;;
18004 esac
18007 # func_xform libobj-or-source
18008 func_xform ()
18010 func_xform_result=${1%.*}.lo
18013 # func_arith arithmetic-term...
18014 func_arith ()
18016 func_arith_result=$(( $* ))
18019 # func_len string
18020 # STRING may not start with a hyphen.
18021 func_len ()
18023 func_len_result=${#1}
18026 _LT_EOF
18028 *) # Bourne compatible functions.
18029 cat << \_LT_EOF >> "$cfgfile"
18031 # func_dirname file append nondir_replacement
18032 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18033 # otherwise set result to NONDIR_REPLACEMENT.
18034 func_dirname ()
18036 # Extract subdirectory from the argument.
18037 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18038 if test "X$func_dirname_result" = "X${1}"; then
18039 func_dirname_result="${3}"
18040 else
18041 func_dirname_result="$func_dirname_result${2}"
18045 # func_basename file
18046 func_basename ()
18048 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18052 # func_stripname prefix suffix name
18053 # strip PREFIX and SUFFIX off of NAME.
18054 # PREFIX and SUFFIX must not contain globbing or regex special
18055 # characters, hashes, percent signs, but SUFFIX may contain a leading
18056 # dot (in which case that matches only a dot).
18057 # func_strip_suffix prefix name
18058 func_stripname ()
18060 case ${2} in
18061 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18062 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18063 esac
18066 # sed scripts:
18067 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18068 my_sed_long_arg='1s/^-[^=]*=//'
18070 # func_opt_split
18071 func_opt_split ()
18073 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18074 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18077 # func_lo2o object
18078 func_lo2o ()
18080 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18083 # func_xform libobj-or-source
18084 func_xform ()
18086 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18089 # func_arith arithmetic-term...
18090 func_arith ()
18092 func_arith_result=`expr "$@"`
18095 # func_len string
18096 # STRING may not start with a hyphen.
18097 func_len ()
18099 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18102 _LT_EOF
18103 esac
18105 case $lt_shell_append in
18106 yes)
18107 cat << \_LT_EOF >> "$cfgfile"
18109 # func_append var value
18110 # Append VALUE to the end of shell variable VAR.
18111 func_append ()
18113 eval "$1+=\$2"
18115 _LT_EOF
18118 cat << \_LT_EOF >> "$cfgfile"
18120 # func_append var value
18121 # Append VALUE to the end of shell variable VAR.
18122 func_append ()
18124 eval "$1=\$$1\$2"
18127 _LT_EOF
18129 esac
18132 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18133 || (rm -f "$cfgfile"; exit 1)
18135 mv -f "$cfgfile" "$ofile" ||
18136 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18137 chmod +x "$ofile"
18140 cat <<_LT_EOF >> "$ofile"
18142 # ### BEGIN LIBTOOL TAG CONFIG: GO
18144 # The linker used to build libraries.
18145 LD=$lt_LD_GO
18147 # How to create reloadable object files.
18148 reload_flag=$lt_reload_flag_GO
18149 reload_cmds=$lt_reload_cmds_GO
18151 # Commands used to build an old-style archive.
18152 old_archive_cmds=$lt_old_archive_cmds_GO
18154 # A language specific compiler.
18155 CC=$lt_compiler_GO
18157 # Is the compiler the GNU compiler?
18158 with_gcc=$GCC_GO
18160 # Compiler flag to turn off builtin functions.
18161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18163 # How to pass a linker flag through the compiler.
18164 wl=$lt_lt_prog_compiler_wl_GO
18166 # Additional compiler flags for building library objects.
18167 pic_flag=$lt_lt_prog_compiler_pic_GO
18169 # Compiler flag to prevent dynamic linking.
18170 link_static_flag=$lt_lt_prog_compiler_static_GO
18172 # Does compiler simultaneously support -c and -o options?
18173 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18175 # Whether or not to add -lc for building shared libraries.
18176 build_libtool_need_lc=$archive_cmds_need_lc_GO
18178 # Whether or not to disallow shared libs when runtime libs are static.
18179 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18181 # Compiler flag to allow reflexive dlopens.
18182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18184 # Compiler flag to generate shared objects directly from archives.
18185 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18187 # Whether the compiler copes with passing no objects directly.
18188 compiler_needs_object=$lt_compiler_needs_object_GO
18190 # Create an old-style archive from a shared archive.
18191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18193 # Create a temporary old-style archive to link instead of a shared archive.
18194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18196 # Commands used to build a shared archive.
18197 archive_cmds=$lt_archive_cmds_GO
18198 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18200 # Commands used to build a loadable module if different from building
18201 # a shared archive.
18202 module_cmds=$lt_module_cmds_GO
18203 module_expsym_cmds=$lt_module_expsym_cmds_GO
18205 # Whether we are building with GNU ld or not.
18206 with_gnu_ld=$lt_with_gnu_ld_GO
18208 # Flag that allows shared libraries with undefined symbols to be built.
18209 allow_undefined_flag=$lt_allow_undefined_flag_GO
18211 # Flag that enforces no undefined symbols.
18212 no_undefined_flag=$lt_no_undefined_flag_GO
18214 # Flag to hardcode \$libdir into a binary during linking.
18215 # This must work even if \$libdir does not exist
18216 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18218 # If ld is used when linking, flag to hardcode \$libdir into a binary
18219 # during linking. This must work even if \$libdir does not exist.
18220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18222 # Whether we need a single "-rpath" flag with a separated argument.
18223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18225 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18226 # DIR into the resulting binary.
18227 hardcode_direct=$hardcode_direct_GO
18229 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18230 # DIR into the resulting binary and the resulting library dependency is
18231 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18232 # library is relocated.
18233 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18235 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18236 # into the resulting binary.
18237 hardcode_minus_L=$hardcode_minus_L_GO
18239 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18240 # into the resulting binary.
18241 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18243 # Set to "yes" if building a shared library automatically hardcodes DIR
18244 # into the library and all subsequent libraries and executables linked
18245 # against it.
18246 hardcode_automatic=$hardcode_automatic_GO
18248 # Set to yes if linker adds runtime paths of dependent libraries
18249 # to runtime path list.
18250 inherit_rpath=$inherit_rpath_GO
18252 # Whether libtool must link a program against all its dependency libraries.
18253 link_all_deplibs=$link_all_deplibs_GO
18255 # Fix the shell variable \$srcfile for the compiler.
18256 fix_srcfile_path=$lt_fix_srcfile_path_GO
18258 # Set to "yes" if exported symbols are required.
18259 always_export_symbols=$always_export_symbols_GO
18261 # The commands to list exported symbols.
18262 export_symbols_cmds=$lt_export_symbols_cmds_GO
18264 # Symbols that should not be listed in the preloaded symbols.
18265 exclude_expsyms=$lt_exclude_expsyms_GO
18267 # Symbols that must always be exported.
18268 include_expsyms=$lt_include_expsyms_GO
18270 # Commands necessary for linking programs (against libraries) with templates.
18271 prelink_cmds=$lt_prelink_cmds_GO
18273 # Specify filename containing input files.
18274 file_list_spec=$lt_file_list_spec_GO
18276 # How to hardcode a shared library path into an executable.
18277 hardcode_action=$hardcode_action_GO
18279 # ### END LIBTOOL TAG CONFIG: GO
18280 _LT_EOF
18283 "default":C) if test -n "$CONFIG_FILES"; then
18284 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18285 # that multilib installs will end up installed in the correct place.
18286 # The testsuite needs it for multilib-aware ABI baseline files.
18287 # To work around this not being passed down from config-ml.in ->
18288 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18289 # append it here. Only modify Makefiles that have just been created.
18291 # Also, get rid of this simulated-VPATH thing that automake does.
18292 cat > vpsed << \_EOF
18293 s!`test -f '$<' || echo '$(srcdir)/'`!!
18294 _EOF
18295 for i in $SUBDIRS; do
18296 case $CONFIG_FILES in
18297 *${i}/Makefile*)
18298 #echo "Adding MULTISUBDIR to $i/Makefile"
18299 sed -f vpsed $i/Makefile > tmp
18300 grep '^MULTISUBDIR =' Makefile >> tmp
18301 mv tmp $i/Makefile
18303 esac
18304 done
18305 rm vpsed
18309 esac
18310 done # for ac_tag
18313 as_fn_exit 0
18314 _ACEOF
18315 ac_clean_files=$ac_clean_files_save
18317 test $ac_write_fail = 0 ||
18318 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18321 # configure is writing to config.log, and then calls config.status.
18322 # config.status does its own redirection, appending to config.log.
18323 # Unfortunately, on DOS this fails, as config.log is still kept open
18324 # by configure, so config.status won't be able to write to it; its
18325 # output is simply discarded. So we exec the FD to /dev/null,
18326 # effectively closing config.log, so it can be properly (re)opened and
18327 # appended to by config.status. When coming back to configure, we
18328 # need to make the FD available again.
18329 if test "$no_create" != yes; then
18330 ac_cs_success=:
18331 ac_config_status_args=
18332 test "$silent" = yes &&
18333 ac_config_status_args="$ac_config_status_args --quiet"
18334 exec 5>/dev/null
18335 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18336 exec 5>>config.log
18337 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18338 # would make configure fail if this is the last instruction.
18339 $ac_cs_success || as_fn_exit $?
18341 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18343 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}