2017-10-07 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / libgo / configure
blob1e5e41bed213495596b24230651e1bc97ded9884
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 HWCAP_CFLAGS
628 OSCFLAGS
629 GO_SYSCALL_OS_ARCH_FILE
630 GO_SYSCALL_OS_FILE
631 GO_LIBCALL_OS_ARCH_FILE
632 GO_LIBCALL_OS_FILE
633 ALLGOARCHFAMILY
634 ALLGOARCH
635 GOARCH_MINFRAMESIZE
636 GOARCH_HUGEPAGESIZE
637 GOARCH_INT64ALIGN
638 GOARCH_PCQUANTUM
639 GOARCH_PHYSPAGESIZE
640 GOARCH_CACHELINESIZE
641 GOARCH_BIGENDIAN
642 GOARCH_FAMILY
643 GOARCH
644 USE_DEJAGNU
645 ALLGOOS
646 GOOS
647 LIBGO_IS_BSD_FALSE
648 LIBGO_IS_BSD_TRUE
649 LIBGO_IS_AIX_FALSE
650 LIBGO_IS_AIX_TRUE
651 LIBGO_IS_SOLARIS_FALSE
652 LIBGO_IS_SOLARIS_TRUE
653 LIBGO_IS_RTEMS_FALSE
654 LIBGO_IS_RTEMS_TRUE
655 LIBGO_IS_DRAGONFLY_FALSE
656 LIBGO_IS_DRAGONFLY_TRUE
657 LIBGO_IS_OPENBSD_FALSE
658 LIBGO_IS_OPENBSD_TRUE
659 LIBGO_IS_NETBSD_FALSE
660 LIBGO_IS_NETBSD_TRUE
661 LIBGO_IS_LINUX_FALSE
662 LIBGO_IS_LINUX_TRUE
663 LIBGO_IS_IRIX_FALSE
664 LIBGO_IS_IRIX_TRUE
665 LIBGO_IS_FREEBSD_FALSE
666 LIBGO_IS_FREEBSD_TRUE
667 LIBGO_IS_DARWIN_FALSE
668 LIBGO_IS_DARWIN_TRUE
669 go_include
670 LIBATOMIC
671 USE_LIBFFI_FALSE
672 USE_LIBFFI_TRUE
673 LIBFFIINCS
674 LIBFFI
675 nover_glibgo_toolexeclibdir
676 glibgo_toolexeclibdir
677 glibgo_toolexecdir
678 WERROR
679 WARN_FLAGS
680 CC_FOR_BUILD
681 enable_static
682 enable_shared
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
690 OBJDUMP
691 LN_S
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LIBTOOL
696 OBJCOPY
697 RANLIB
699 FGREP
700 EGREP
701 GREP
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 GOCFLAGS
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 multi_basedir
761 libtool_VERSION
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_multilib
804 enable_dependency_tracking
805 enable_maintainer_mode
806 with_gnu_ld
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 enable_libtool_lock
812 enable_werror
813 enable_version_specific_runtime_libs
814 with_libffi
815 with_libatomic
816 with_system_libunwind
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
822 CPPFLAGS'
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
873 ac_prev=
874 ac_dashdash=
875 for ac_option
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
884 case $ac_option in
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *) ac_optarg=yes ;;
887 esac
889 # Accept the important Cygnus configure options, so we can diagnose typos.
891 case $ac_dashdash$ac_option in
893 ac_dashdash=yes ;;
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
912 --config-cache | -C)
913 cache_file=config.cache ;;
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 ac_prev=sbindir ;;
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 | --sbi=* | --sb=*)
1116 sbindir=$ac_optarg ;;
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1121 | --sha | --sh)
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 | --sha=* | --sh=*)
1127 sharedstatedir=$ac_optarg ;;
1129 -site | --site | --sit)
1130 ac_prev=site ;;
1131 -site=* | --site=* | --sit=*)
1132 site=$ac_optarg ;;
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 ac_prev=srcdir ;;
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 verbose=yes ;;
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1157 -with-* | --with-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1207 -*) as_fn_error "unrecognized option: \`$ac_option'
1208 Try \`$0 --help' for more information."
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 case $ac_envvar in #(
1215 '' | [0-9]* | *[!_$as_cr_alnum]* )
1216 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1217 esac
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1229 esac
1230 done
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 as_fn_error "missing argument to $ac_option"
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1241 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1264 done
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278 If a cross compiler is detected then cross compile mode will be used." >&2
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287 test "$silent" = yes && exec 6>/dev/null
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error "working directory cannot be determined"
1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error "pwd does not report name of working directory"
1298 # Find the source files, if location was not specified.
1299 if test -z "$srcdir"; then
1300 ac_srcdir_defaulted=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir=`$as_dirname -- "$as_myself" ||
1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307 $as_echo X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 s//\1/
1312 /^X\(\/\/\)[^/].*/{
1313 s//\1/
1316 /^X\(\/\/\)$/{
1317 s//\1/
1320 /^X\(\/\).*/{
1321 s//\1/
1324 s/.*/./; q'`
1325 srcdir=$ac_confdir
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 srcdir=..
1329 else
1330 ac_srcdir_defaulted=no
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 ac_abs_confdir=`(
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1339 pwd)`
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 srcdir=.
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1347 case $srcdir in
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 esac
1350 for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 done
1358 # Report the --help message.
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1363 cat <<_ACEOF
1364 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1371 Defaults for the options are specified in brackets.
1373 Configuration:
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 [PREFIX]
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1395 For better control, use the options below.
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1417 _ACEOF
1419 cat <<\_ACEOF
1421 Program names:
1422 --program-prefix=PREFIX prepend PREFIX to installed program names
1423 --program-suffix=SUFFIX append SUFFIX to installed program names
1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 --target=TARGET configure for building compilers for TARGET [HOST]
1430 _ACEOF
1433 if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive ) echo "Configuration of package-unused version-unused:";;
1436 esac
1437 cat <<\_ACEOF
1439 Optional Features:
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-multilib build many library versions (default)
1444 --disable-dependency-tracking speeds up one-time build
1445 --enable-dependency-tracking do not reject slow dependency extractors
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --enable-shared[=PKGS] build shared libraries [default=yes]
1449 --enable-static[=PKGS] build static libraries [default=yes]
1450 --enable-fast-install[=PKGS]
1451 optimize for fast installation [default=yes]
1452 --disable-libtool-lock avoid locking (might break parallel builds)
1453 --enable-werror turns on -Werror [default=yes]
1454 --enable-version-specific-runtime-libs
1455 Specify that runtime libraries should be installed
1456 in a compiler-specific directory
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --without-libffi don't use libffi
1465 --without-libatomic don't use libatomic
1466 --with-system-libunwind use installed libunwind
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 GOC Go compiler command
1477 GOCFLAGS Go compiler flags
1478 CPP C preprocessor
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to the package provider.
1484 _ACEOF
1485 ac_status=$?
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 package-unused configure version-unused
1547 generated by GNU Autoconf 2.64
1549 Copyright (C) 2009 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553 exit
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1591 ac_retval=1
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 return $ac_retval
1596 } # ac_fn_c_try_compile
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_link ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 return $ac_retval
1642 } # ac_fn_c_try_link
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 eval "$3=yes"
1663 else
1664 eval "$3=no"
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 } # ac_fn_c_check_header_compile
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_cpp ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } >/dev/null && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1705 ac_retval=1
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1710 } # ac_fn_c_try_cpp
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1716 ac_fn_c_try_run ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=$ac_status
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1752 } # ac_fn_c_try_run
1754 # ac_fn_c_check_func LINENO FUNC VAR
1755 # ----------------------------------
1756 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1757 ac_fn_c_check_func ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below.
1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774 <limits.h> exists even on freestanding compilers. */
1776 #ifdef __STDC__
1777 # include <limits.h>
1778 #else
1779 # include <assert.h>
1780 #endif
1782 #undef $2
1784 /* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1787 #ifdef __cplusplus
1788 extern "C"
1789 #endif
1790 char $2 ();
1791 /* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794 #if defined __stub_$2 || defined __stub___$2
1795 choke me
1796 #endif
1799 main ()
1801 return $2 ();
1803 return 0;
1805 _ACEOF
1806 if ac_fn_c_try_link "$LINENO"; then :
1807 eval "$3=yes"
1808 else
1809 eval "$3=no"
1811 rm -f core conftest.err conftest.$ac_objext \
1812 conftest$ac_exeext conftest.$ac_ext
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_func
1821 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824 # the include files in INCLUDES and setting the cache variable VAR
1825 # accordingly.
1826 ac_fn_c_check_header_mongrel ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 else
1839 # Is the header compilable?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841 $as_echo_n "checking $2 usability... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_header_compiler=yes
1849 else
1850 ac_header_compiler=no
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854 $as_echo "$ac_header_compiler" >&6; }
1856 # Is the header present?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858 $as_echo_n "checking $2 presence... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_cpp "$LINENO"; then :
1864 ac_header_preproc=yes
1865 else
1866 ac_header_preproc=no
1868 rm -f conftest.err conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870 $as_echo "$ac_header_preproc" >&6; }
1872 # So? What about this header?
1873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874 yes:no: )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 no:yes:* )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1884 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1888 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 esac
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 eval "$3=\$ac_header_compiler"
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906 } # ac_fn_c_check_header_mongrel
1908 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1909 # -------------------------------------------
1910 # Tests whether TYPE exists after having included INCLUDES, setting cache
1911 # variable VAR accordingly.
1912 ac_fn_c_check_type ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1919 else
1920 eval "$3=no"
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1925 main ()
1927 if (sizeof ($2))
1928 return 0;
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1938 main ()
1940 if (sizeof (($2)))
1941 return 0;
1943 return 0;
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1948 else
1949 eval "$3=yes"
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 } # ac_fn_c_check_type
1962 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1963 # --------------------------------------------
1964 # Tries to find the compile-time value of EXPR in a program that includes
1965 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1966 # computed
1967 ac_fn_c_compute_int ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if test "$cross_compiling" = yes; then
1971 # Depending upon the size, compute the lo and hi bounds.
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 static int test_array [1 - 2 * !(($2) >= 0)];
1979 test_array [0] = 0
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_lo=0 ac_mid=0
1987 while :; do
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1992 main ()
1994 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1995 test_array [0] = 0
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_hi=$ac_mid; break
2003 else
2004 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2005 if test $ac_lo -le $ac_mid; then
2006 ac_lo= ac_hi=
2007 break
2009 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 main ()
2020 static int test_array [1 - 2 * !(($2) < 0)];
2021 test_array [0] = 0
2024 return 0;
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_hi=-1 ac_mid=-1
2029 while :; do
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2034 main ()
2036 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2037 test_array [0] = 0
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_lo=$ac_mid; break
2045 else
2046 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2047 if test $ac_mid -le $ac_hi; then
2048 ac_lo= ac_hi=
2049 break
2051 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 done
2055 else
2056 ac_lo= ac_hi=
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 # Binary search between lo and hi bounds.
2062 while test "x$ac_lo" != "x$ac_hi"; do
2063 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2071 test_array [0] = 0
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_hi=$ac_mid
2079 else
2080 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 done
2084 case $ac_lo in #((
2085 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2086 '') ac_retval=1 ;;
2087 esac
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2092 static long int longval () { return $2; }
2093 static unsigned long int ulongval () { return $2; }
2094 #include <stdio.h>
2095 #include <stdlib.h>
2097 main ()
2100 FILE *f = fopen ("conftest.val", "w");
2101 if (! f)
2102 return 1;
2103 if (($2) < 0)
2105 long int i = longval ();
2106 if (i != ($2))
2107 return 1;
2108 fprintf (f, "%ld", i);
2110 else
2112 unsigned long int i = ulongval ();
2113 if (i != ($2))
2114 return 1;
2115 fprintf (f, "%lu", i);
2117 /* Do not output a trailing newline, as this causes \r\n confusion
2118 on some platforms. */
2119 return ferror (f) || fclose (f) != 0;
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_run "$LINENO"; then :
2126 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2127 else
2128 ac_retval=1
2130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2131 conftest.$ac_objext conftest.beam conftest.$ac_ext
2132 rm -f conftest.val
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2136 return $ac_retval
2138 } # ac_fn_c_compute_int
2139 cat >config.log <<_ACEOF
2140 This file contains any messages produced by compilers while
2141 running configure, to aid debugging if configure makes a mistake.
2143 It was created by package-unused $as_me version-unused, which was
2144 generated by GNU Autoconf 2.64. Invocation command line was
2146 $ $0 $@
2148 _ACEOF
2149 exec 5>>config.log
2151 cat <<_ASUNAME
2152 ## --------- ##
2153 ## Platform. ##
2154 ## --------- ##
2156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2168 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2173 _ASUNAME
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 $as_echo "PATH: $as_dir"
2181 done
2182 IFS=$as_save_IFS
2184 } >&5
2186 cat >&5 <<_ACEOF
2189 ## ----------- ##
2190 ## Core tests. ##
2191 ## ----------- ##
2193 _ACEOF
2196 # Keep a trace of the command line.
2197 # Strip out --no-create and --no-recursion so they do not pile up.
2198 # Strip out --silent because we don't want to record it for future runs.
2199 # Also quote any args containing shell meta-characters.
2200 # Make two passes to allow for proper duplicate-argument suppression.
2201 ac_configure_args=
2202 ac_configure_args0=
2203 ac_configure_args1=
2204 ac_must_keep_next=false
2205 for ac_pass in 1 2
2207 for ac_arg
2209 case $ac_arg in
2210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil)
2213 continue ;;
2214 *\'*)
2215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 esac
2217 case $ac_pass in
2218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2220 as_fn_append ac_configure_args1 " '$ac_arg'"
2221 if test $ac_must_keep_next = true; then
2222 ac_must_keep_next=false # Got value, back to normal.
2223 else
2224 case $ac_arg in
2225 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228 | -with-* | --with-* | -without-* | --without-* | --x)
2229 case "$ac_configure_args0 " in
2230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2231 esac
2233 -* ) ac_must_keep_next=true ;;
2234 esac
2236 as_fn_append ac_configure_args " '$ac_arg'"
2238 esac
2239 done
2240 done
2241 { ac_configure_args0=; unset ac_configure_args0;}
2242 { ac_configure_args1=; unset ac_configure_args1;}
2244 # When interrupted or exit'd, cleanup temporary files, and complete
2245 # config.log. We remove comments because anyway the quotes in there
2246 # would cause problems or look ugly.
2247 # WARNING: Use '\'' to represent an apostrophe within the trap.
2248 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249 trap 'exit_status=$?
2250 # Save into config.log some information that might help in debugging.
2252 echo
2254 cat <<\_ASBOX
2255 ## ---------------- ##
2256 ## Cache variables. ##
2257 ## ---------------- ##
2258 _ASBOX
2259 echo
2260 # The following way of writing the cache mishandles newlines in values,
2262 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in #(
2265 *${as_nl}*)
2266 case $ac_var in #(
2267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269 esac
2270 case $ac_var in #(
2271 _ | IFS | as_nl) ;; #(
2272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273 *) { eval $ac_var=; unset $ac_var;} ;;
2274 esac ;;
2275 esac
2276 done
2277 (set) 2>&1 |
2278 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279 *${as_nl}ac_space=\ *)
2280 sed -n \
2281 "s/'\''/'\''\\\\'\'''\''/g;
2282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283 ;; #(
2285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2287 esac |
2288 sort
2290 echo
2292 cat <<\_ASBOX
2293 ## ----------------- ##
2294 ## Output variables. ##
2295 ## ----------------- ##
2296 _ASBOX
2297 echo
2298 for ac_var in $ac_subst_vars
2300 eval ac_val=\$$ac_var
2301 case $ac_val in
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303 esac
2304 $as_echo "$ac_var='\''$ac_val'\''"
2305 done | sort
2306 echo
2308 if test -n "$ac_subst_files"; then
2309 cat <<\_ASBOX
2310 ## ------------------- ##
2311 ## File substitutions. ##
2312 ## ------------------- ##
2313 _ASBOX
2314 echo
2315 for ac_var in $ac_subst_files
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2326 if test -s confdefs.h; then
2327 cat <<\_ASBOX
2328 ## ----------- ##
2329 ## confdefs.h. ##
2330 ## ----------- ##
2331 _ASBOX
2332 echo
2333 cat confdefs.h
2334 echo
2336 test "$ac_signal" != 0 &&
2337 $as_echo "$as_me: caught signal $ac_signal"
2338 $as_echo "$as_me: exit $exit_status"
2339 } >&5
2340 rm -f core *.core core.conftest.* &&
2341 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2342 exit $exit_status
2344 for ac_signal in 1 2 13 15; do
2345 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2346 done
2347 ac_signal=0
2349 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2350 rm -f -r conftest* confdefs.h
2352 $as_echo "/* confdefs.h */" > confdefs.h
2354 # Predefined preprocessor variables.
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_NAME "$PACKAGE_NAME"
2358 _ACEOF
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2362 _ACEOF
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2366 _ACEOF
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_STRING "$PACKAGE_STRING"
2370 _ACEOF
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2374 _ACEOF
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_URL "$PACKAGE_URL"
2378 _ACEOF
2381 # Let the site file select an alternate cache file if it wants to.
2382 # Prefer an explicitly selected file to automatically selected ones.
2383 ac_site_file1=NONE
2384 ac_site_file2=NONE
2385 if test -n "$CONFIG_SITE"; then
2386 ac_site_file1=$CONFIG_SITE
2387 elif test "x$prefix" != xNONE; then
2388 ac_site_file1=$prefix/share/config.site
2389 ac_site_file2=$prefix/etc/config.site
2390 else
2391 ac_site_file1=$ac_default_prefix/share/config.site
2392 ac_site_file2=$ac_default_prefix/etc/config.site
2394 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2396 test "x$ac_site_file" = xNONE && continue
2397 if test -r "$ac_site_file"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2399 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2400 sed 's/^/| /' "$ac_site_file" >&5
2401 . "$ac_site_file"
2403 done
2405 if test -r "$cache_file"; then
2406 # Some versions of bash will fail to source /dev/null (special
2407 # files actually), so we avoid doing that.
2408 if test -f "$cache_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2410 $as_echo "$as_me: loading cache $cache_file" >&6;}
2411 case $cache_file in
2412 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2413 *) . "./$cache_file";;
2414 esac
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2418 $as_echo "$as_me: creating cache $cache_file" >&6;}
2419 >$cache_file
2422 # Check that the precious variables saved in the cache have kept the same
2423 # value.
2424 ac_cache_corrupted=false
2425 for ac_var in $ac_precious_vars; do
2426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2427 eval ac_new_set=\$ac_env_${ac_var}_set
2428 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2429 eval ac_new_val=\$ac_env_${ac_var}_value
2430 case $ac_old_set,$ac_new_set in
2431 set,)
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2435 ,set)
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2438 ac_cache_corrupted=: ;;
2439 ,);;
2441 if test "x$ac_old_val" != "x$ac_new_val"; then
2442 # differences in whitespace do not lead to failure.
2443 ac_old_val_w=`echo x $ac_old_val`
2444 ac_new_val_w=`echo x $ac_new_val`
2445 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2447 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2448 ac_cache_corrupted=:
2449 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2451 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2452 eval $ac_var=\$ac_old_val
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2455 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2457 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2458 fi;;
2459 esac
2460 # Pass precious variables to config.status.
2461 if test "$ac_new_set" = set; then
2462 case $ac_new_val in
2463 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2464 *) ac_arg=$ac_var=$ac_new_val ;;
2465 esac
2466 case " $ac_configure_args " in
2467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2468 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2469 esac
2471 done
2472 if $ac_cache_corrupted; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2476 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2477 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2479 ## -------------------- ##
2480 ## Main body of script. ##
2481 ## -------------------- ##
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494 ac_config_headers="$ac_config_headers config.h"
2497 libtool_VERSION=12:0:0
2500 # Default to --enable-multilib
2501 # Check whether --enable-multilib was given.
2502 if test "${enable_multilib+set}" = set; then :
2503 enableval=$enable_multilib; case "$enableval" in
2504 yes) multilib=yes ;;
2505 no) multilib=no ;;
2506 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2507 esac
2508 else
2509 multilib=yes
2513 # We may get other options which we leave undocumented:
2514 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2515 # See config-ml.in if you want the gory details.
2517 if test "$srcdir" = "."; then
2518 if test "$with_target_subdir" != "."; then
2519 multi_basedir="$srcdir/$with_multisrctop../.."
2520 else
2521 multi_basedir="$srcdir/$with_multisrctop.."
2523 else
2524 multi_basedir="$srcdir/.."
2528 # Even if the default multilib is not a cross compilation,
2529 # it may be that some of the other multilibs are.
2530 if test $cross_compiling = no && test $multilib = yes \
2531 && test "x${with_multisubdir}" != x ; then
2532 cross_compiling=maybe
2535 ac_config_commands="$ac_config_commands default-1"
2538 ac_aux_dir=
2539 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2540 for ac_t in install-sh install.sh shtool; do
2541 if test -f "$ac_dir/$ac_t"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/$ac_t -c"
2544 break 2
2546 done
2547 done
2548 if test -z "$ac_aux_dir"; then
2549 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2552 # These three variables are undocumented and unsupported,
2553 # and are intended to be withdrawn in a future Autoconf release.
2554 # They can cause serious problems if a builder's source tree is in a directory
2555 # whose full name contains unusual characters.
2556 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2557 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2558 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561 # Make sure we can run config.sub.
2562 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2563 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2566 $as_echo_n "checking build system type... " >&6; }
2567 if test "${ac_cv_build+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 ac_build_alias=$build_alias
2571 test "x$ac_build_alias" = x &&
2572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2573 test "x$ac_build_alias" = x &&
2574 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2575 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2576 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2580 $as_echo "$ac_cv_build" >&6; }
2581 case $ac_cv_build in
2582 *-*-*) ;;
2583 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2584 esac
2585 build=$ac_cv_build
2586 ac_save_IFS=$IFS; IFS='-'
2587 set x $ac_cv_build
2588 shift
2589 build_cpu=$1
2590 build_vendor=$2
2591 shift; shift
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2594 build_os=$*
2595 IFS=$ac_save_IFS
2596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2600 $as_echo_n "checking host system type... " >&6; }
2601 if test "${ac_cv_host+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test "x$host_alias" = x; then
2605 ac_cv_host=$ac_cv_build
2606 else
2607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2608 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2613 $as_echo "$ac_cv_host" >&6; }
2614 case $ac_cv_host in
2615 *-*-*) ;;
2616 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2617 esac
2618 host=$ac_cv_host
2619 ac_save_IFS=$IFS; IFS='-'
2620 set x $ac_cv_host
2621 shift
2622 host_cpu=$1
2623 host_vendor=$2
2624 shift; shift
2625 # Remember, the first character of IFS is used to create $*,
2626 # except with old shells:
2627 host_os=$*
2628 IFS=$ac_save_IFS
2629 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2633 $as_echo_n "checking target system type... " >&6; }
2634 if test "${ac_cv_target+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test "x$target_alias" = x; then
2638 ac_cv_target=$ac_cv_host
2639 else
2640 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2641 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2646 $as_echo "$ac_cv_target" >&6; }
2647 case $ac_cv_target in
2648 *-*-*) ;;
2649 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2650 esac
2651 target=$ac_cv_target
2652 ac_save_IFS=$IFS; IFS='-'
2653 set x $ac_cv_target
2654 shift
2655 target_cpu=$1
2656 target_vendor=$2
2657 shift; shift
2658 # Remember, the first character of IFS is used to create $*,
2659 # except with old shells:
2660 target_os=$*
2661 IFS=$ac_save_IFS
2662 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2665 # The aliases save the names the user supplied, while $host etc.
2666 # will get canonicalized.
2667 test -n "$target_alias" &&
2668 test "$program_prefix$program_suffix$program_transform_name" = \
2669 NONENONEs,x,x, &&
2670 program_prefix=${target_alias}-
2672 target_alias=${target_alias-$host_alias}
2674 am__api_version='1.11'
2676 # Find a good install program. We prefer a C program (faster),
2677 # so one script is as good as another. But avoid the broken or
2678 # incompatible versions:
2679 # SysV /etc/install, /usr/sbin/install
2680 # SunOS /usr/etc/install
2681 # IRIX /sbin/install
2682 # AIX /bin/install
2683 # AmigaOS /C/install, which installs bootblocks on floppy discs
2684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2687 # OS/2's system install, which has a completely different semantic
2688 # ./install, which can be erroneously created by make from ./install.sh.
2689 # Reject install programs that cannot install multiple files.
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2691 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2692 if test -z "$INSTALL"; then
2693 if test "${ac_cv_path_install+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 # Account for people who put trailing slashes in PATH elements.
2702 case $as_dir/ in #((
2703 ./ | .// | /[cC]/* | \
2704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2706 /usr/ucb/* ) ;;
2708 # OSF1 and SCO ODT 3.0 have their own names for install.
2709 # Don't use installbsd from OSF since it installs stuff as root
2710 # by default.
2711 for ac_prog in ginstall scoinst install; do
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2714 if test $ac_prog = install &&
2715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # AIX install. It has an incompatible calling convention.
2718 elif test $ac_prog = install &&
2719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # program-specific install script used by HP pwplus--don't use.
2722 else
2723 rm -rf conftest.one conftest.two conftest.dir
2724 echo one > conftest.one
2725 echo two > conftest.two
2726 mkdir conftest.dir
2727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2728 test -s conftest.one && test -s conftest.two &&
2729 test -s conftest.dir/conftest.one &&
2730 test -s conftest.dir/conftest.two
2731 then
2732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2733 break 3
2737 done
2738 done
2740 esac
2742 done
2743 IFS=$as_save_IFS
2745 rm -rf conftest.one conftest.two conftest.dir
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2750 else
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2759 $as_echo "$INSTALL" >&6; }
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2770 $as_echo_n "checking whether build environment is sane... " >&6; }
2771 # Just in case
2772 sleep 1
2773 echo timestamp > conftest.file
2774 # Reject unsafe characters in $srcdir or the absolute working directory
2775 # name. Accept space and tab only in the latter.
2776 am_lf='
2778 case `pwd` in
2779 *[\\\"\#\$\&\'\`$am_lf]*)
2780 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2781 esac
2782 case $srcdir in
2783 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2784 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2785 esac
2787 # Do `set' in a subshell so we don't clobber the current shell's
2788 # arguments. Must try -L first in case configure is actually a
2789 # symlink; some systems play weird games with the mod time of symlinks
2790 # (eg FreeBSD returns the mod time of the symlink's containing
2791 # directory).
2792 if (
2793 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2794 if test "$*" = "X"; then
2795 # -L didn't work.
2796 set X `ls -t "$srcdir/configure" conftest.file`
2798 rm -f conftest.file
2799 if test "$*" != "X $srcdir/configure conftest.file" \
2800 && test "$*" != "X conftest.file $srcdir/configure"; then
2802 # If neither matched, then we have a broken ls. This can happen
2803 # if, for instance, CONFIG_SHELL is bash and it inherits a
2804 # broken ls alias from the environment. This has actually
2805 # happened. Such a system could not be considered "sane".
2806 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2807 alias in your environment" "$LINENO" 5
2810 test "$2" = conftest.file
2812 then
2813 # Ok.
2815 else
2816 as_fn_error "newly created file is older than distributed files!
2817 Check your system clock" "$LINENO" 5
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2820 $as_echo "yes" >&6; }
2821 test "$program_prefix" != NONE &&
2822 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2823 # Use a double $ so make ignores it.
2824 test "$program_suffix" != NONE &&
2825 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2826 # Double any \ or $.
2827 # By default was `s,x,x', remove it if useless.
2828 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2829 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2831 # expand $ac_aux_dir to an absolute path
2832 am_aux_dir=`cd $ac_aux_dir && pwd`
2834 if test x"${MISSING+set}" != xset; then
2835 case $am_aux_dir in
2836 *\ * | *\ *)
2837 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2839 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2840 esac
2842 # Use eval to expand $SHELL
2843 if eval "$MISSING --run true"; then
2844 am_missing_run="$MISSING --run "
2845 else
2846 am_missing_run=
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2848 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2851 if test x"${install_sh}" != xset; then
2852 case $am_aux_dir in
2853 *\ * | *\ *)
2854 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856 install_sh="\${SHELL} $am_aux_dir/install-sh"
2857 esac
2860 # Installed binaries are usually stripped using `strip' when the user
2861 # run `make install-strip'. However `strip' might not be the right
2862 # tool to use in cross-compilation environments, therefore Automake
2863 # will honor the `STRIP' environment variable to overrule this program.
2864 if test "$cross_compiling" != no; then
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}strip; ac_word=$2
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if test "${ac_cv_prog_STRIP+set}" = set; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 if test -n "$STRIP"; then
2874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2887 done
2888 done
2889 IFS=$as_save_IFS
2893 STRIP=$ac_cv_prog_STRIP
2894 if test -n "$STRIP"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2896 $as_echo "$STRIP" >&6; }
2897 else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2904 if test -z "$ac_cv_prog_STRIP"; then
2905 ac_ct_STRIP=$STRIP
2906 # Extract the first word of "strip", so it can be a program name with args.
2907 set dummy strip; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 if test -n "$ac_ct_STRIP"; then
2914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_ac_ct_STRIP="strip"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2927 done
2928 done
2929 IFS=$as_save_IFS
2933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2934 if test -n "$ac_ct_STRIP"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2936 $as_echo "$ac_ct_STRIP" >&6; }
2937 else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2942 if test "x$ac_ct_STRIP" = x; then
2943 STRIP=":"
2944 else
2945 case $cross_compiling:$ac_tool_warned in
2946 yes:)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2949 ac_tool_warned=yes ;;
2950 esac
2951 STRIP=$ac_ct_STRIP
2953 else
2954 STRIP="$ac_cv_prog_STRIP"
2958 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2961 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2962 if test -z "$MKDIR_P"; then
2963 if test "${ac_cv_path_mkdir+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_prog in mkdir gmkdir; do
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2974 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2975 'mkdir (GNU coreutils) '* | \
2976 'mkdir (coreutils) '* | \
2977 'mkdir (fileutils) '4.1*)
2978 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2979 break 3;;
2980 esac
2981 done
2982 done
2983 done
2984 IFS=$as_save_IFS
2988 if test "${ac_cv_path_mkdir+set}" = set; then
2989 MKDIR_P="$ac_cv_path_mkdir -p"
2990 else
2991 # As a last resort, use the slow shell script. Don't cache a
2992 # value for MKDIR_P within a source directory, because that will
2993 # break other packages using the cache if that directory is
2994 # removed, or if the value is a relative name.
2995 test -d ./--version && rmdir ./--version
2996 MKDIR_P="$ac_install_sh -d"
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3000 $as_echo "$MKDIR_P" >&6; }
3002 mkdir_p="$MKDIR_P"
3003 case $mkdir_p in
3004 [\\/$]* | ?:[\\/]*) ;;
3005 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3006 esac
3008 for ac_prog in gawk mawk nawk awk
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if test "${ac_cv_prog_AWK+set}" = set; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if test -n "$AWK"; then
3018 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_AWK="$ac_prog"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3031 done
3032 done
3033 IFS=$as_save_IFS
3037 AWK=$ac_cv_prog_AWK
3038 if test -n "$AWK"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3040 $as_echo "$AWK" >&6; }
3041 else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3047 test -n "$AWK" && break
3048 done
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3051 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3052 set x ${MAKE-make}
3053 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3054 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 cat >conftest.make <<\_ACEOF
3058 SHELL = /bin/sh
3059 all:
3060 @echo '@@@%%%=$(MAKE)=@@@%%%'
3061 _ACEOF
3062 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3063 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3064 *@@@%%%=?*=@@@%%%*)
3065 eval ac_cv_prog_make_${ac_make}_set=yes;;
3067 eval ac_cv_prog_make_${ac_make}_set=no;;
3068 esac
3069 rm -f conftest.make
3071 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3073 $as_echo "yes" >&6; }
3074 SET_MAKE=
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 SET_MAKE="MAKE=${MAKE-make}"
3081 rm -rf .tst 2>/dev/null
3082 mkdir .tst 2>/dev/null
3083 if test -d .tst; then
3084 am__leading_dot=.
3085 else
3086 am__leading_dot=_
3088 rmdir .tst 2>/dev/null
3090 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3091 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3092 # is not polluted with repeated "-I."
3093 am__isrc=' -I$(srcdir)'
3094 # test to see if srcdir already configured
3095 if test -f $srcdir/config.status; then
3096 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3100 # test whether we have cygpath
3101 if test -z "$CYGPATH_W"; then
3102 if (cygpath --version) >/dev/null 2>/dev/null; then
3103 CYGPATH_W='cygpath -w'
3104 else
3105 CYGPATH_W=echo
3110 # Define the identity of the package.
3111 PACKAGE='libgo'
3112 VERSION='version-unused'
3115 # Some tools Automake needs.
3117 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3120 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3123 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3126 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3129 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3131 # We need awk for the "check" target. The system "awk" is bad on
3132 # some platforms.
3133 # Always define AMTAR for backward compatibility. Yes, it's still used
3134 # in the wild :-( We should find a proper way to deprecate it ...
3135 AMTAR='$${TAR-tar}'
3137 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3148 ac_ext=c
3149 ac_cpp='$CPP $CPPFLAGS'
3150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if test "${ac_cv_prog_CC+set}" = set; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3175 done
3176 done
3177 IFS=$as_save_IFS
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$ac_cv_prog_CC"; then
3193 ac_ct_CC=$CC
3194 # Extract the first word of "gcc", so it can be a program name with args.
3195 set dummy gcc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_ac_ct_CC="gcc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3215 done
3216 done
3217 IFS=$as_save_IFS
3221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224 $as_echo "$ac_ct_CC" >&6; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3230 if test "x$ac_ct_CC" = x; then
3231 CC=""
3232 else
3233 case $cross_compiling:$ac_tool_warned in
3234 yes:)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3238 esac
3239 CC=$ac_ct_CC
3241 else
3242 CC="$ac_cv_prog_CC"
3245 if test -z "$CC"; then
3246 if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3248 set dummy ${ac_tool_prefix}cc; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if test "${ac_cv_prog_CC+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_CC="${ac_tool_prefix}cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3268 done
3269 done
3270 IFS=$as_save_IFS
3274 CC=$ac_cv_prog_CC
3275 if test -n "$CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3286 if test -z "$CC"; then
3287 # Extract the first word of "cc", so it can be a program name with args.
3288 set dummy cc; ac_word=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_prog_CC+set}" = set; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
3296 else
3297 ac_prog_rejected=no
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3306 ac_prog_rejected=yes
3307 continue
3309 ac_cv_prog_CC="cc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3313 done
3314 done
3315 IFS=$as_save_IFS
3317 if test $ac_prog_rejected = yes; then
3318 # We found a bogon in the path, so make sure we never use it.
3319 set dummy $ac_cv_prog_CC
3320 shift
3321 if test $# != 0; then
3322 # We chose a different compiler from the bogus one.
3323 # However, it has the same basename, so the bogon will be chosen
3324 # first if we set CC to just the basename; use the full file name.
3325 shift
3326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3342 if test -z "$CC"; then
3343 if test -n "$ac_tool_prefix"; then
3344 for ac_prog in cl.exe
3346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if test "${ac_cv_prog_CC+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3367 done
3368 done
3369 IFS=$as_save_IFS
3373 CC=$ac_cv_prog_CC
3374 if test -n "$CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376 $as_echo "$CC" >&6; }
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3383 test -n "$CC" && break
3384 done
3386 if test -z "$CC"; then
3387 ac_ct_CC=$CC
3388 for ac_prog in cl.exe
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391 set dummy $ac_prog; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_ac_ct_CC="$ac_prog"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3413 IFS=$as_save_IFS
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420 $as_echo "$ac_ct_CC" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3427 test -n "$ac_ct_CC" && break
3428 done
3430 if test "x$ac_ct_CC" = x; then
3431 CC=""
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434 yes:)
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437 ac_tool_warned=yes ;;
3438 esac
3439 CC=$ac_ct_CC
3446 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error "no acceptable C compiler found in \$PATH
3449 See \`config.log' for more details." "$LINENO" 5; }
3451 # Provide some information about the compiler.
3452 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3453 set X $ac_compile
3454 ac_compiler=$2
3455 for ac_option in --version -v -V -qversion; do
3456 { { ac_try="$ac_compiler $ac_option >&5"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3464 ac_status=$?
3465 if test -s conftest.err; then
3466 sed '10a\
3467 ... rest of stderr output deleted ...
3468 10q' conftest.err >conftest.er1
3469 cat conftest.er1 >&5
3470 rm -f conftest.er1 conftest.err
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3474 done
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3480 main ()
3484 return 0;
3486 _ACEOF
3487 ac_clean_files_save=$ac_clean_files
3488 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3489 # Try to create an executable without -o first, disregard a.out.
3490 # It will help us diagnose broken compilers, and finding out an intuition
3491 # of exeext.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3493 $as_echo_n "checking for C compiler default output file name... " >&6; }
3494 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3496 # The possible output files:
3497 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3499 ac_rmfiles=
3500 for ac_file in $ac_files
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505 esac
3506 done
3507 rm -f $ac_rmfiles
3509 if { { ac_try="$ac_link_default"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_link_default") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3521 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3522 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3523 # so that the user can short-circuit this test for compilers unknown to
3524 # Autoconf.
3525 for ac_file in $ac_files ''
3527 test -f "$ac_file" || continue
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3531 [ab].out )
3532 # We found the default executable, but exeext='' is most
3533 # certainly right.
3534 break;;
3535 *.* )
3536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3537 then :; else
3538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 # We set ac_cv_exeext here because the later test for it is not
3541 # safe: cross compilers may not add the suffix if given an `-o'
3542 # argument, so we may need to know it at that point already.
3543 # Even if this section looks crufty: it has the advantage of
3544 # actually working.
3545 break;;
3547 break;;
3548 esac
3549 done
3550 test "$ac_cv_exeext" = no && ac_cv_exeext=
3552 else
3553 ac_file=''
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 if test -z "$ac_file"; then :
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 { as_fn_set_status 77
3564 as_fn_error "C compiler cannot create executables
3565 See \`config.log' for more details." "$LINENO" 5; }; }
3567 ac_exeext=$ac_cv_exeext
3569 # Check that the compiler produces executables we can run. If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572 $as_echo_n "checking whether the C compiler works... " >&6; }
3573 # If not cross compiling, check that we can run a simple program.
3574 if test "$cross_compiling" != yes; then
3575 if { ac_try='./$ac_file'
3576 { { case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_try") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }; }; then
3586 cross_compiling=no
3587 else
3588 if test "$cross_compiling" = maybe; then
3589 cross_compiling=yes
3590 else
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error "cannot run C compiled programs.
3594 If you meant to cross compile, use \`--host'.
3595 See \`config.log' for more details." "$LINENO" 5; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 $as_echo "yes" >&6; }
3602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3603 ac_clean_files=$ac_clean_files_save
3604 # Check that the compiler produces executables we can run. If not, either
3605 # the compiler is broken, or we cross compile.
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607 $as_echo_n "checking whether we are cross compiling... " >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3609 $as_echo "$cross_compiling" >&6; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3612 $as_echo_n "checking for suffix of executables... " >&6; }
3613 if { { ac_try="$ac_link"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_link") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3625 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3626 # work properly (i.e., refer to `conftest.exe'), while it won't with
3627 # `rm'.
3628 for ac_file in conftest.exe conftest conftest.*; do
3629 test -f "$ac_file" || continue
3630 case $ac_file in
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3633 break;;
3634 * ) break;;
3635 esac
3636 done
3637 else
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error "cannot compute suffix of executables: cannot compile and link
3641 See \`config.log' for more details." "$LINENO" 5; }
3643 rm -f conftest$ac_cv_exeext
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3645 $as_echo "$ac_cv_exeext" >&6; }
3647 rm -f conftest.$ac_ext
3648 EXEEXT=$ac_cv_exeext
3649 ac_exeext=$EXEEXT
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3651 $as_echo_n "checking for suffix of object files... " >&6; }
3652 if test "${ac_cv_objext+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3659 main ()
3663 return 0;
3665 _ACEOF
3666 rm -f conftest.o conftest.obj
3667 if { { ac_try="$ac_compile"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_compile") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; then :
3678 for ac_file in conftest.o conftest.obj conftest.*; do
3679 test -f "$ac_file" || continue;
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3683 break;;
3684 esac
3685 done
3686 else
3687 $as_echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error "cannot compute suffix of object files: cannot compile
3693 See \`config.log' for more details." "$LINENO" 5; }
3695 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3698 $as_echo "$ac_cv_objext" >&6; }
3699 OBJEXT=$ac_cv_objext
3700 ac_objext=$OBJEXT
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3702 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3703 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3710 main ()
3712 #ifndef __GNUC__
3713 choke me
3714 #endif
3717 return 0;
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_compiler_gnu=yes
3722 else
3723 ac_compiler_gnu=no
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3730 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3731 if test $ac_compiler_gnu = yes; then
3732 GCC=yes
3733 else
3734 GCC=
3736 ac_test_CFLAGS=${CFLAGS+set}
3737 ac_save_CFLAGS=$CFLAGS
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3739 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3740 if test "${ac_cv_prog_cc_g+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 ac_save_c_werror_flag=$ac_c_werror_flag
3744 ac_c_werror_flag=yes
3745 ac_cv_prog_cc_g=no
3746 CFLAGS="-g"
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3751 main ()
3755 return 0;
3757 _ACEOF
3758 if ac_fn_c_try_compile "$LINENO"; then :
3759 ac_cv_prog_cc_g=yes
3760 else
3761 CFLAGS=""
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3766 main ()
3770 return 0;
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3775 else
3776 ac_c_werror_flag=$ac_save_c_werror_flag
3777 CFLAGS="-g"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 main ()
3786 return 0;
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_prog_cc_g=yes
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 ac_c_werror_flag=$ac_save_c_werror_flag
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3800 $as_echo "$ac_cv_prog_cc_g" >&6; }
3801 if test "$ac_test_CFLAGS" = set; then
3802 CFLAGS=$ac_save_CFLAGS
3803 elif test $ac_cv_prog_cc_g = yes; then
3804 if test "$GCC" = yes; then
3805 CFLAGS="-g -O2"
3806 else
3807 CFLAGS="-g"
3809 else
3810 if test "$GCC" = yes; then
3811 CFLAGS="-O2"
3812 else
3813 CFLAGS=
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3817 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3818 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 ac_cv_prog_cc_c89=no
3822 ac_save_CC=$CC
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <stdarg.h>
3826 #include <stdio.h>
3827 #include <sys/types.h>
3828 #include <sys/stat.h>
3829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3830 struct buf { int x; };
3831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3832 static char *e (p, i)
3833 char **p;
3834 int i;
3836 return p[i];
3838 static char *f (char * (*g) (char **, int), char **p, ...)
3840 char *s;
3841 va_list v;
3842 va_start (v,p);
3843 s = g (p, va_arg (v,int));
3844 va_end (v);
3845 return s;
3848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3849 function prototypes and stuff, but not '\xHH' hex character constants.
3850 These don't provoke an error unfortunately, instead are silently treated
3851 as 'x'. The following induces an error, until -std is added to get
3852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3853 array size at least. It's necessary to write '\x00'==0 to get something
3854 that's true only with -std. */
3855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3857 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3858 inside strings and character constants. */
3859 #define FOO(x) 'x'
3860 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3862 int test (int i, double x);
3863 struct s1 {int (*f) (int a);};
3864 struct s2 {int (*f) (double a);};
3865 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3866 int argc;
3867 char **argv;
3869 main ()
3871 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3873 return 0;
3875 _ACEOF
3876 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3879 CC="$ac_save_CC $ac_arg"
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_cv_prog_cc_c89=$ac_arg
3883 rm -f core conftest.err conftest.$ac_objext
3884 test "x$ac_cv_prog_cc_c89" != "xno" && break
3885 done
3886 rm -f conftest.$ac_ext
3887 CC=$ac_save_CC
3890 # AC_CACHE_VAL
3891 case "x$ac_cv_prog_cc_c89" in
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3894 $as_echo "none needed" >&6; } ;;
3895 xno)
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3897 $as_echo "unsupported" >&6; } ;;
3899 CC="$CC $ac_cv_prog_cc_c89"
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3902 esac
3903 if test "x$ac_cv_prog_cc_c89" != xno; then :
3907 ac_ext=c
3908 ac_cpp='$CPP $CPPFLAGS'
3909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 DEPDIR="${am__leading_dot}deps"
3914 ac_config_commands="$ac_config_commands depfiles"
3917 am_make=${MAKE-make}
3918 cat > confinc << 'END'
3919 am__doit:
3920 @echo this is the am__doit target
3921 .PHONY: am__doit
3923 # If we don't find an include directive, just comment out the code.
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3925 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3926 am__include="#"
3927 am__quote=
3928 _am_result=none
3929 # First try GNU make style include.
3930 echo "include confinc" > confmf
3931 # Ignore all kinds of additional output from `make'.
3932 case `$am_make -s -f confmf 2> /dev/null` in #(
3933 *the\ am__doit\ target*)
3934 am__include=include
3935 am__quote=
3936 _am_result=GNU
3938 esac
3939 # Now try BSD make style include.
3940 if test "$am__include" = "#"; then
3941 echo '.include "confinc"' > confmf
3942 case `$am_make -s -f confmf 2> /dev/null` in #(
3943 *the\ am__doit\ target*)
3944 am__include=.include
3945 am__quote="\""
3946 _am_result=BSD
3948 esac
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3953 $as_echo "$_am_result" >&6; }
3954 rm -f confinc confmf
3956 # Check whether --enable-dependency-tracking was given.
3957 if test "${enable_dependency_tracking+set}" = set; then :
3958 enableval=$enable_dependency_tracking;
3961 if test "x$enable_dependency_tracking" != xno; then
3962 am_depcomp="$ac_aux_dir/depcomp"
3963 AMDEPBACKSLASH='\'
3964 am__nodep='_no'
3966 if test "x$enable_dependency_tracking" != xno; then
3967 AMDEP_TRUE=
3968 AMDEP_FALSE='#'
3969 else
3970 AMDEP_TRUE='#'
3971 AMDEP_FALSE=
3976 depcc="$CC" am_compiler_list=
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3979 $as_echo_n "checking dependency style of $depcc... " >&6; }
3980 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3984 # We make a subdir and do the tests there. Otherwise we can end up
3985 # making bogus files that we don't know about and never remove. For
3986 # instance it was reported that on HP-UX the gcc test will end up
3987 # making a dummy file named `D' -- because `-MD' means `put the output
3988 # in D'.
3989 rm -rf conftest.dir
3990 mkdir conftest.dir
3991 # Copy depcomp to subdir because otherwise we won't find it if we're
3992 # using a relative directory.
3993 cp "$am_depcomp" conftest.dir
3994 cd conftest.dir
3995 # We will build objects and dependencies in a subdirectory because
3996 # it helps to detect inapplicable dependency modes. For instance
3997 # both Tru64's cc and ICC support -MD to output dependencies as a
3998 # side effect of compilation, but ICC will put the dependencies in
3999 # the current directory while Tru64 will put them in the object
4000 # directory.
4001 mkdir sub
4003 am_cv_CC_dependencies_compiler_type=none
4004 if test "$am_compiler_list" = ""; then
4005 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4007 am__universal=false
4008 case " $depcc " in #(
4009 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4010 esac
4012 for depmode in $am_compiler_list; do
4013 # Setup a source with many dependencies, because some compilers
4014 # like to wrap large dependency lists on column 80 (with \), and
4015 # we should not choose a depcomp mode which is confused by this.
4017 # We need to recreate these files for each test, as the compiler may
4018 # overwrite some of them when testing with obscure command lines.
4019 # This happens at least with the AIX C compiler.
4020 : > sub/conftest.c
4021 for i in 1 2 3 4 5 6; do
4022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4024 # Solaris 8's {/usr,}/bin/sh.
4025 touch sub/conftst$i.h
4026 done
4027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4030 # mode. It turns out that the SunPro C++ compiler does not properly
4031 # handle `-M -o', and we need to detect this. Also, some Intel
4032 # versions had trouble with output in subdirs
4033 am__obj=sub/conftest.${OBJEXT-o}
4034 am__minus_obj="-o $am__obj"
4035 case $depmode in
4036 gcc)
4037 # This depmode causes a compiler race in universal mode.
4038 test "$am__universal" = false || continue
4040 nosideeffect)
4041 # after this tag, mechanisms are not by side-effect, so they'll
4042 # only be used when explicitly requested
4043 if test "x$enable_dependency_tracking" = xyes; then
4044 continue
4045 else
4046 break
4049 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4050 # This compiler won't grok `-c -o', but also, the minuso test has
4051 # not run yet. These depmodes are late enough in the game, and
4052 # so weak that their functioning should not be impacted.
4053 am__obj=conftest.${OBJEXT-o}
4054 am__minus_obj=
4056 none) break ;;
4057 esac
4058 if depmode=$depmode \
4059 source=sub/conftest.c object=$am__obj \
4060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4061 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4062 >/dev/null 2>conftest.err &&
4063 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4065 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4067 # icc doesn't choke on unknown options, it will just issue warnings
4068 # or remarks (even with -Werror). So we grep stderr for any message
4069 # that says an option was ignored or not supported.
4070 # When given -MP, icc 7.0 and 7.1 complain thusly:
4071 # icc: Command line warning: ignoring option '-M'; no argument required
4072 # The diagnosis changed in icc 8.0:
4073 # icc: Command line remark: option '-MP' not supported
4074 if (grep 'ignoring option' conftest.err ||
4075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4076 am_cv_CC_dependencies_compiler_type=$depmode
4077 break
4080 done
4082 cd ..
4083 rm -rf conftest.dir
4084 else
4085 am_cv_CC_dependencies_compiler_type=none
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4090 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4091 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4094 test "x$enable_dependency_tracking" != xno \
4095 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4096 am__fastdepCC_TRUE=
4097 am__fastdepCC_FALSE='#'
4098 else
4099 am__fastdepCC_TRUE='#'
4100 am__fastdepCC_FALSE=
4104 ac_ext=go
4105 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4106 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compile_gnu=yes
4108 if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if test "${ac_cv_prog_GOC+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$GOC"; then
4117 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4132 IFS=$as_save_IFS
4136 GOC=$ac_cv_prog_GOC
4137 if test -n "$GOC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4139 $as_echo "$GOC" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4147 if test -z "$ac_cv_prog_GOC"; then
4148 ac_ct_GOC=$GOC
4149 # Extract the first word of "gccgo", so it can be a program name with args.
4150 set dummy gccgo; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 if test -n "$ac_ct_GOC"; then
4157 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_prog_ac_ct_GOC="gccgo"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4170 done
4171 done
4172 IFS=$as_save_IFS
4176 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4177 if test -n "$ac_ct_GOC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4179 $as_echo "$ac_ct_GOC" >&6; }
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4185 if test "x$ac_ct_GOC" = x; then
4186 GOC=""
4187 else
4188 case $cross_compiling:$ac_tool_warned in
4189 yes:)
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4192 ac_tool_warned=yes ;;
4193 esac
4194 GOC=$ac_ct_GOC
4196 else
4197 GOC="$ac_cv_prog_GOC"
4200 if test -z "$GOC"; then
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if test "${ac_cv_prog_GOC+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$GOC"; then
4210 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 GOC=$ac_cv_prog_GOC
4230 if test -n "$GOC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4232 $as_echo "$GOC" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4241 if test -z "$GOC"; then
4242 # Extract the first word of "gccgo", so it can be a program name with args.
4243 set dummy gccgo; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if test "${ac_cv_prog_GOC+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$GOC"; then
4250 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4251 else
4252 ac_prog_rejected=no
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4261 ac_prog_rejected=yes
4262 continue
4264 ac_cv_prog_GOC="gccgo"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4268 done
4269 done
4270 IFS=$as_save_IFS
4272 if test $ac_prog_rejected = yes; then
4273 # We found a bogon in the path, so make sure we never use it.
4274 set dummy $ac_cv_prog_GOC
4275 shift
4276 if test $# != 0; then
4277 # We chose a different compiler from the bogus one.
4278 # However, it has the same basename, so the bogon will be chosen
4279 # first if we set GOC to just the basename; use the full file name.
4280 shift
4281 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4286 GOC=$ac_cv_prog_GOC
4287 if test -n "$GOC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4289 $as_echo "$GOC" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4301 set X $ac_compile
4302 ac_compiler=$2
4303 { { ac_try="$ac_compiler --version >&5"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_compiler --version >&5") 2>conftest.err
4311 ac_status=$?
4312 if test -s conftest.err; then
4313 sed '10a\
4314 ... rest of stderr output deleted ...
4315 10q' conftest.err >conftest.er1
4316 cat conftest.er1 >&5
4317 rm -f conftest.er1 conftest.err
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }
4321 GOCFLAGS="-g -O2"
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 case ${host} in
4333 *-*-aix*)
4334 # static hash tables crashes on AIX when libgo is built with O2
4335 CFLAGS="$CFLAGS -fno-section-anchors"
4336 GOCFLAGS="$GOCFLAGS -fno-section-anchors"
4338 esac
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4342 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4343 # Check whether --enable-maintainer-mode was given.
4344 if test "${enable_maintainer_mode+set}" = set; then :
4345 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4346 else
4347 USE_MAINTAINER_MODE=no
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4351 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4352 if test $USE_MAINTAINER_MODE = yes; then
4353 MAINTAINER_MODE_TRUE=
4354 MAINTAINER_MODE_FALSE='#'
4355 else
4356 MAINTAINER_MODE_TRUE='#'
4357 MAINTAINER_MODE_FALSE=
4360 MAINT=$MAINTAINER_MODE_TRUE
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4365 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4366 if test "${ac_cv_path_SED+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4370 for ac_i in 1 2 3 4 5 6 7; do
4371 ac_script="$ac_script$as_nl$ac_script"
4372 done
4373 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4374 { ac_script=; unset ac_script;}
4375 if test -z "$SED"; then
4376 ac_path_SED_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in sed gsed; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4386 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4387 # Check for GNU ac_path_SED and select it if it is found.
4388 # Check for GNU $ac_path_SED
4389 case `"$ac_path_SED" --version 2>&1` in
4390 *GNU*)
4391 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4393 ac_count=0
4394 $as_echo_n 0123456789 >"conftest.in"
4395 while :
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo '' >> "conftest.nl"
4401 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 as_fn_arith $ac_count + 1 && ac_count=$as_val
4404 if test $ac_count -gt ${ac_path_SED_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_SED="$ac_path_SED"
4407 ac_path_SED_max=$ac_count
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4411 done
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4415 $ac_path_SED_found && break 3
4416 done
4417 done
4418 done
4419 IFS=$as_save_IFS
4420 if test -z "$ac_cv_path_SED"; then
4421 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4423 else
4424 ac_cv_path_SED=$SED
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4429 $as_echo "$ac_cv_path_SED" >&6; }
4430 SED="$ac_cv_path_SED"
4431 rm -f conftest.sed
4433 test -z "$SED" && SED=sed
4434 Xsed="$SED -e 1s/^X//"
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4447 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4448 if test "${ac_cv_path_GREP+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if test -z "$GREP"; then
4452 ac_path_GREP_found=false
4453 # Loop through the user's path and test for each of PROGNAME-LIST
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_prog in grep ggrep; do
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4462 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4463 # Check for GNU ac_path_GREP and select it if it is found.
4464 # Check for GNU $ac_path_GREP
4465 case `"$ac_path_GREP" --version 2>&1` in
4466 *GNU*)
4467 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4469 ac_count=0
4470 $as_echo_n 0123456789 >"conftest.in"
4471 while :
4473 cat "conftest.in" "conftest.in" >"conftest.tmp"
4474 mv "conftest.tmp" "conftest.in"
4475 cp "conftest.in" "conftest.nl"
4476 $as_echo 'GREP' >> "conftest.nl"
4477 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479 as_fn_arith $ac_count + 1 && ac_count=$as_val
4480 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4481 # Best one so far, save it but keep looking for a better one
4482 ac_cv_path_GREP="$ac_path_GREP"
4483 ac_path_GREP_max=$ac_count
4485 # 10*(2^10) chars as input seems more than enough
4486 test $ac_count -gt 10 && break
4487 done
4488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489 esac
4491 $ac_path_GREP_found && break 3
4492 done
4493 done
4494 done
4495 IFS=$as_save_IFS
4496 if test -z "$ac_cv_path_GREP"; then
4497 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4499 else
4500 ac_cv_path_GREP=$GREP
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4505 $as_echo "$ac_cv_path_GREP" >&6; }
4506 GREP="$ac_cv_path_GREP"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4510 $as_echo_n "checking for egrep... " >&6; }
4511 if test "${ac_cv_path_EGREP+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4515 then ac_cv_path_EGREP="$GREP -E"
4516 else
4517 if test -z "$EGREP"; then
4518 ac_path_EGREP_found=false
4519 # Loop through the user's path and test for each of PROGNAME-LIST
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_prog in egrep; do
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4528 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4529 # Check for GNU ac_path_EGREP and select it if it is found.
4530 # Check for GNU $ac_path_EGREP
4531 case `"$ac_path_EGREP" --version 2>&1` in
4532 *GNU*)
4533 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4535 ac_count=0
4536 $as_echo_n 0123456789 >"conftest.in"
4537 while :
4539 cat "conftest.in" "conftest.in" >"conftest.tmp"
4540 mv "conftest.tmp" "conftest.in"
4541 cp "conftest.in" "conftest.nl"
4542 $as_echo 'EGREP' >> "conftest.nl"
4543 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4545 as_fn_arith $ac_count + 1 && ac_count=$as_val
4546 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4547 # Best one so far, save it but keep looking for a better one
4548 ac_cv_path_EGREP="$ac_path_EGREP"
4549 ac_path_EGREP_max=$ac_count
4551 # 10*(2^10) chars as input seems more than enough
4552 test $ac_count -gt 10 && break
4553 done
4554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4555 esac
4557 $ac_path_EGREP_found && break 3
4558 done
4559 done
4560 done
4561 IFS=$as_save_IFS
4562 if test -z "$ac_cv_path_EGREP"; then
4563 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4565 else
4566 ac_cv_path_EGREP=$EGREP
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4572 $as_echo "$ac_cv_path_EGREP" >&6; }
4573 EGREP="$ac_cv_path_EGREP"
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4577 $as_echo_n "checking for fgrep... " >&6; }
4578 if test "${ac_cv_path_FGREP+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4582 then ac_cv_path_FGREP="$GREP -F"
4583 else
4584 if test -z "$FGREP"; then
4585 ac_path_FGREP_found=false
4586 # Loop through the user's path and test for each of PROGNAME-LIST
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_prog in fgrep; do
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4595 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4596 # Check for GNU ac_path_FGREP and select it if it is found.
4597 # Check for GNU $ac_path_FGREP
4598 case `"$ac_path_FGREP" --version 2>&1` in
4599 *GNU*)
4600 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4602 ac_count=0
4603 $as_echo_n 0123456789 >"conftest.in"
4604 while :
4606 cat "conftest.in" "conftest.in" >"conftest.tmp"
4607 mv "conftest.tmp" "conftest.in"
4608 cp "conftest.in" "conftest.nl"
4609 $as_echo 'FGREP' >> "conftest.nl"
4610 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612 as_fn_arith $ac_count + 1 && ac_count=$as_val
4613 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4614 # Best one so far, save it but keep looking for a better one
4615 ac_cv_path_FGREP="$ac_path_FGREP"
4616 ac_path_FGREP_max=$ac_count
4618 # 10*(2^10) chars as input seems more than enough
4619 test $ac_count -gt 10 && break
4620 done
4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622 esac
4624 $ac_path_FGREP_found && break 3
4625 done
4626 done
4627 done
4628 IFS=$as_save_IFS
4629 if test -z "$ac_cv_path_FGREP"; then
4630 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4632 else
4633 ac_cv_path_FGREP=$FGREP
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4639 $as_echo "$ac_cv_path_FGREP" >&6; }
4640 FGREP="$ac_cv_path_FGREP"
4643 test -z "$GREP" && GREP=grep
4661 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4663 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4666 $as_echo_n "checking how to print strings... " >&6; }
4667 # Test print first, because it will be a builtin if present.
4668 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4669 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4670 ECHO='print -r --'
4671 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4672 ECHO='printf %s\n'
4673 else
4674 # Use this function as a fallback that always works.
4675 func_fallback_echo ()
4677 eval 'cat <<_LTECHO_EOF
4679 _LTECHO_EOF'
4681 ECHO='func_fallback_echo'
4684 # func_echo_all arg...
4685 # Invoke $ECHO with all args, space-separated.
4686 func_echo_all ()
4688 $ECHO ""
4691 case "$ECHO" in
4692 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4693 $as_echo "printf" >&6; } ;;
4694 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4695 $as_echo "print -r" >&6; } ;;
4696 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4697 $as_echo "cat" >&6; } ;;
4698 esac
4715 # Check whether --with-gnu-ld was given.
4716 if test "${with_gnu_ld+set}" = set; then :
4717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4718 else
4719 with_gnu_ld=no
4722 ac_prog=ld
4723 if test "$GCC" = yes; then
4724 # Check if gcc -print-prog-name=ld gives a path.
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4726 $as_echo_n "checking for ld used by $CC... " >&6; }
4727 case $host in
4728 *-*-mingw*)
4729 # gcc leaves a trailing carriage return which upsets mingw
4730 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4732 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4733 esac
4734 case $ac_prog in
4735 # Accept absolute paths.
4736 [\\/]* | ?:[\\/]*)
4737 re_direlt='/[^/][^/]*/\.\./'
4738 # Canonicalize the pathname of ld
4739 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4740 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4741 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4742 done
4743 test -z "$LD" && LD="$ac_prog"
4746 # If it fails, then pretend we aren't using GCC.
4747 ac_prog=ld
4750 # If it is relative, then search for the first ld in PATH.
4751 with_gnu_ld=unknown
4753 esac
4754 elif test "$with_gnu_ld" = yes; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4756 $as_echo_n "checking for GNU ld... " >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4759 $as_echo_n "checking for non-GNU ld... " >&6; }
4761 if test "${lt_cv_path_LD+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 if test -z "$LD"; then
4765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4766 for ac_dir in $PATH; do
4767 IFS="$lt_save_ifs"
4768 test -z "$ac_dir" && ac_dir=.
4769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4770 lt_cv_path_LD="$ac_dir/$ac_prog"
4771 # Check to see if the program is GNU ld. I'd rather use --version,
4772 # but apparently some variants of GNU ld only accept -v.
4773 # Break only if it was the GNU/non-GNU ld that we prefer.
4774 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4775 *GNU* | *'with BFD'*)
4776 test "$with_gnu_ld" != no && break
4779 test "$with_gnu_ld" != yes && break
4781 esac
4783 done
4784 IFS="$lt_save_ifs"
4785 else
4786 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4790 LD="$lt_cv_path_LD"
4791 if test -n "$LD"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4793 $as_echo "$LD" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4798 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4800 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4801 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4805 case `$LD -v 2>&1 </dev/null` in
4806 *GNU* | *'with BFD'*)
4807 lt_cv_prog_gnu_ld=yes
4810 lt_cv_prog_gnu_ld=no
4812 esac
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4815 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4816 with_gnu_ld=$lt_cv_prog_gnu_ld
4826 if test -n "$ac_tool_prefix"; then
4827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4828 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$RANLIB"; then
4835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4848 done
4849 done
4850 IFS=$as_save_IFS
4854 RANLIB=$ac_cv_prog_RANLIB
4855 if test -n "$RANLIB"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4857 $as_echo "$RANLIB" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4865 if test -z "$ac_cv_prog_RANLIB"; then
4866 ac_ct_RANLIB=$RANLIB
4867 # Extract the first word of "ranlib", so it can be a program name with args.
4868 set dummy ranlib; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test -n "$ac_ct_RANLIB"; then
4875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_ac_ct_RANLIB="ranlib"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4888 done
4889 done
4890 IFS=$as_save_IFS
4894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4895 if test -n "$ac_ct_RANLIB"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4897 $as_echo "$ac_ct_RANLIB" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4903 if test "x$ac_ct_RANLIB" = x; then
4904 RANLIB=":"
4905 else
4906 case $cross_compiling:$ac_tool_warned in
4907 yes:)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4910 ac_tool_warned=yes ;;
4911 esac
4912 RANLIB=$ac_ct_RANLIB
4914 else
4915 RANLIB="$ac_cv_prog_RANLIB"
4918 if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$OBJCOPY"; then
4927 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 OBJCOPY=$ac_cv_prog_OBJCOPY
4947 if test -n "$OBJCOPY"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4949 $as_echo "$OBJCOPY" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4957 if test -z "$ac_cv_prog_OBJCOPY"; then
4958 ac_ct_OBJCOPY=$OBJCOPY
4959 # Extract the first word of "objcopy", so it can be a program name with args.
4960 set dummy objcopy; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$ac_ct_OBJCOPY"; then
4967 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4987 if test -n "$ac_ct_OBJCOPY"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4989 $as_echo "$ac_ct_OBJCOPY" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4995 if test "x$ac_ct_OBJCOPY" = x; then
4996 OBJCOPY="missing-objcopy"
4997 else
4998 case $cross_compiling:$ac_tool_warned in
4999 yes:)
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5002 ac_tool_warned=yes ;;
5003 esac
5004 OBJCOPY=$ac_ct_OBJCOPY
5006 else
5007 OBJCOPY="$ac_cv_prog_OBJCOPY"
5011 enable_dlopen=yes
5015 case `pwd` in
5016 *\ * | *\ *)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5018 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5019 esac
5023 macro_version='2.2.7a'
5024 macro_revision='1.3134'
5038 ltmain="$ac_aux_dir/ltmain.sh"
5040 # Backslashify metacharacters that are still active within
5041 # double-quoted strings.
5042 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5044 # Same as above, but do not quote variable references.
5045 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5047 # Sed substitution to delay expansion of an escaped shell variable in a
5048 # double_quote_subst'ed string.
5049 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5051 # Sed substitution to delay expansion of an escaped single quote.
5052 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5054 # Sed substitution to avoid accidental globbing in evaled expressions
5055 no_glob_subst='s/\*/\\\*/g'
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5058 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5059 if test "${lt_cv_path_NM+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$NM"; then
5063 # Let the user override the test.
5064 lt_cv_path_NM="$NM"
5065 else
5066 lt_nm_to_check="${ac_tool_prefix}nm"
5067 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5068 lt_nm_to_check="$lt_nm_to_check nm"
5070 for lt_tmp_nm in $lt_nm_to_check; do
5071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5072 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5073 IFS="$lt_save_ifs"
5074 test -z "$ac_dir" && ac_dir=.
5075 tmp_nm="$ac_dir/$lt_tmp_nm"
5076 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5077 # Check to see if the nm accepts a BSD-compat flag.
5078 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5079 # nm: unknown option "B" ignored
5080 # Tru64's nm complains that /dev/null is an invalid object file
5081 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5082 */dev/null* | *'Invalid file or object type'*)
5083 lt_cv_path_NM="$tmp_nm -B"
5084 break
5087 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5088 */dev/null*)
5089 lt_cv_path_NM="$tmp_nm -p"
5090 break
5093 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5094 continue # so that we can try to find one that supports BSD flags
5096 esac
5098 esac
5100 done
5101 IFS="$lt_save_ifs"
5102 done
5103 : ${lt_cv_path_NM=no}
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5107 $as_echo "$lt_cv_path_NM" >&6; }
5108 if test "$lt_cv_path_NM" != "no"; then
5109 NM="$lt_cv_path_NM"
5110 else
5111 # Didn't find any BSD compatible name lister, look for dumpbin.
5112 if test -n "$DUMPBIN"; then :
5113 # Let the user override the test.
5114 else
5115 if test -n "$ac_tool_prefix"; then
5116 for ac_prog in dumpbin "link -dump"
5118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$DUMPBIN"; then
5126 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5141 IFS=$as_save_IFS
5145 DUMPBIN=$ac_cv_prog_DUMPBIN
5146 if test -n "$DUMPBIN"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5148 $as_echo "$DUMPBIN" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5155 test -n "$DUMPBIN" && break
5156 done
5158 if test -z "$DUMPBIN"; then
5159 ac_ct_DUMPBIN=$DUMPBIN
5160 for ac_prog in dumpbin "link -dump"
5162 # Extract the first word of "$ac_prog", so it can be a program name with args.
5163 set dummy $ac_prog; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if test -n "$ac_ct_DUMPBIN"; then
5170 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5185 IFS=$as_save_IFS
5189 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5190 if test -n "$ac_ct_DUMPBIN"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5192 $as_echo "$ac_ct_DUMPBIN" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5199 test -n "$ac_ct_DUMPBIN" && break
5200 done
5202 if test "x$ac_ct_DUMPBIN" = x; then
5203 DUMPBIN=":"
5204 else
5205 case $cross_compiling:$ac_tool_warned in
5206 yes:)
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209 ac_tool_warned=yes ;;
5210 esac
5211 DUMPBIN=$ac_ct_DUMPBIN
5215 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5216 *COFF*)
5217 DUMPBIN="$DUMPBIN -symbols"
5220 DUMPBIN=:
5222 esac
5225 if test "$DUMPBIN" != ":"; then
5226 NM="$DUMPBIN"
5229 test -z "$NM" && NM=nm
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5237 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5238 if test "${lt_cv_nm_interface+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 lt_cv_nm_interface="BSD nm"
5242 echo "int some_variable = 0;" > conftest.$ac_ext
5243 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5244 (eval "$ac_compile" 2>conftest.err)
5245 cat conftest.err >&5
5246 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5247 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5248 cat conftest.err >&5
5249 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5250 cat conftest.out >&5
5251 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5252 lt_cv_nm_interface="MS dumpbin"
5254 rm -f conftest*
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5257 $as_echo "$lt_cv_nm_interface" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5260 $as_echo_n "checking whether ln -s works... " >&6; }
5261 LN_S=$as_ln_s
5262 if test "$LN_S" = "ln -s"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264 $as_echo "yes" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5267 $as_echo "no, using $LN_S" >&6; }
5270 # find the maximum length of command line arguments
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5272 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5273 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5277 teststring="ABCD"
5279 case $build_os in
5280 msdosdjgpp*)
5281 # On DJGPP, this test can blow up pretty badly due to problems in libc
5282 # (any single argument exceeding 2000 bytes causes a buffer overrun
5283 # during glob expansion). Even if it were fixed, the result of this
5284 # check would be larger than it should be.
5285 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5288 gnu*)
5289 # Under GNU Hurd, this test is not required because there is
5290 # no limit to the length of command line arguments.
5291 # Libtool will interpret -1 as no limit whatsoever
5292 lt_cv_sys_max_cmd_len=-1;
5295 cygwin* | mingw* | cegcc*)
5296 # On Win9x/ME, this test blows up -- it succeeds, but takes
5297 # about 5 minutes as the teststring grows exponentially.
5298 # Worse, since 9x/ME are not pre-emptively multitasking,
5299 # you end up with a "frozen" computer, even though with patience
5300 # the test eventually succeeds (with a max line length of 256k).
5301 # Instead, let's just punt: use the minimum linelength reported by
5302 # all of the supported platforms: 8192 (on NT/2K/XP).
5303 lt_cv_sys_max_cmd_len=8192;
5306 mint*)
5307 # On MiNT this can take a long time and run out of memory.
5308 lt_cv_sys_max_cmd_len=8192;
5311 amigaos*)
5312 # On AmigaOS with pdksh, this test takes hours, literally.
5313 # So we just punt and use a minimum line length of 8192.
5314 lt_cv_sys_max_cmd_len=8192;
5317 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5318 # This has been around since 386BSD, at least. Likely further.
5319 if test -x /sbin/sysctl; then
5320 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5321 elif test -x /usr/sbin/sysctl; then
5322 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5323 else
5324 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5326 # And add a safety zone
5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5331 interix*)
5332 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5333 lt_cv_sys_max_cmd_len=196608
5336 osf*)
5337 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5338 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5339 # nice to cause kernel panics so lets avoid the loop below.
5340 # First set a reasonable default.
5341 lt_cv_sys_max_cmd_len=16384
5343 if test -x /sbin/sysconfig; then
5344 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5345 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5346 esac
5349 sco3.2v5*)
5350 lt_cv_sys_max_cmd_len=102400
5352 sysv5* | sco5v6* | sysv4.2uw2*)
5353 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5354 if test -n "$kargmax"; then
5355 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5356 else
5357 lt_cv_sys_max_cmd_len=32768
5361 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5362 if test -n "$lt_cv_sys_max_cmd_len"; then
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365 else
5366 # Make teststring a little bigger before we do anything with it.
5367 # a 1K string should be a reasonable start.
5368 for i in 1 2 3 4 5 6 7 8 ; do
5369 teststring=$teststring$teststring
5370 done
5371 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5372 # If test is not a shell built-in, we'll probably end up computing a
5373 # maximum length that is only half of the actual maximum length, but
5374 # we can't tell.
5375 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5376 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5377 test $i != 17 # 1/2 MB should be enough
5379 i=`expr $i + 1`
5380 teststring=$teststring$teststring
5381 done
5382 # Only check the string length outside the loop.
5383 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5384 teststring=
5385 # Add a significant safety factor because C++ compilers can tack on
5386 # massive amounts of additional arguments before passing them to the
5387 # linker. It appears as though 1/2 is a usable value.
5388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5391 esac
5395 if test -n $lt_cv_sys_max_cmd_len ; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5397 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5400 $as_echo "none" >&6; }
5402 max_cmd_len=$lt_cv_sys_max_cmd_len
5409 : ${CP="cp -f"}
5410 : ${MV="mv -f"}
5411 : ${RM="rm -f"}
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5414 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5415 # Try some XSI features
5416 xsi_shell=no
5417 ( _lt_dummy="a/b/c"
5418 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5419 = c,a/b,, \
5420 && eval 'test $(( 1 + 1 )) -eq 2 \
5421 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5422 && xsi_shell=yes
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5424 $as_echo "$xsi_shell" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5428 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5429 lt_shell_append=no
5430 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5431 >/dev/null 2>&1 \
5432 && lt_shell_append=yes
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5434 $as_echo "$lt_shell_append" >&6; }
5437 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5438 lt_unset=unset
5439 else
5440 lt_unset=false
5447 # test EBCDIC or ASCII
5448 case `echo X|tr X '\101'` in
5449 A) # ASCII based system
5450 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5451 lt_SP2NL='tr \040 \012'
5452 lt_NL2SP='tr \015\012 \040\040'
5454 *) # EBCDIC based system
5455 lt_SP2NL='tr \100 \n'
5456 lt_NL2SP='tr \r\n \100\100'
5458 esac
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5469 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5470 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 lt_cv_ld_reload_flag='-r'
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5476 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5477 reload_flag=$lt_cv_ld_reload_flag
5478 case $reload_flag in
5479 "" | " "*) ;;
5480 *) reload_flag=" $reload_flag" ;;
5481 esac
5482 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5483 case $host_os in
5484 darwin*)
5485 if test "$GCC" = yes; then
5486 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5487 else
5488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5491 esac
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 if test -n "$OBJDUMP"; then
5510 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5523 done
5524 done
5525 IFS=$as_save_IFS
5529 OBJDUMP=$ac_cv_prog_OBJDUMP
5530 if test -n "$OBJDUMP"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5532 $as_echo "$OBJDUMP" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5540 if test -z "$ac_cv_prog_OBJDUMP"; then
5541 ac_ct_OBJDUMP=$OBJDUMP
5542 # Extract the first word of "objdump", so it can be a program name with args.
5543 set dummy objdump; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -n "$ac_ct_OBJDUMP"; then
5550 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5563 done
5564 done
5565 IFS=$as_save_IFS
5569 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5570 if test -n "$ac_ct_OBJDUMP"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5572 $as_echo "$ac_ct_OBJDUMP" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5578 if test "x$ac_ct_OBJDUMP" = x; then
5579 OBJDUMP="false"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587 OBJDUMP=$ac_ct_OBJDUMP
5589 else
5590 OBJDUMP="$ac_cv_prog_OBJDUMP"
5593 test -z "$OBJDUMP" && OBJDUMP=objdump
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5604 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5605 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 lt_cv_file_magic_cmd='$MAGIC_CMD'
5609 lt_cv_file_magic_test_file=
5610 lt_cv_deplibs_check_method='unknown'
5611 # Need to set the preceding variable on all platforms that support
5612 # interlibrary dependencies.
5613 # 'none' -- dependencies not supported.
5614 # `unknown' -- same as none, but documents that we really don't know.
5615 # 'pass_all' -- all dependencies passed with no checks.
5616 # 'test_compile' -- check by making test program.
5617 # 'file_magic [[regex]]' -- check by looking for files in library path
5618 # which responds to the $file_magic_cmd with a given extended regex.
5619 # If you have `file' or equivalent on your system and you're not sure
5620 # whether `pass_all' will *always* work, you probably want this one.
5622 case $host_os in
5623 aix[4-9]*)
5624 lt_cv_deplibs_check_method=pass_all
5627 beos*)
5628 lt_cv_deplibs_check_method=pass_all
5631 bsdi[45]*)
5632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5633 lt_cv_file_magic_cmd='/usr/bin/file -L'
5634 lt_cv_file_magic_test_file=/shlib/libc.so
5637 cygwin*)
5638 # func_win32_libid is a shell function defined in ltmain.sh
5639 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5640 lt_cv_file_magic_cmd='func_win32_libid'
5643 mingw* | pw32*)
5644 # Base MSYS/MinGW do not provide the 'file' command needed by
5645 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5646 # unless we find 'file', for example because we are cross-compiling.
5647 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5648 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5650 lt_cv_file_magic_cmd='func_win32_libid'
5651 else
5652 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5653 lt_cv_file_magic_cmd='$OBJDUMP -f'
5657 cegcc*)
5658 # use the weaker test based on 'objdump'. See mingw*.
5659 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5660 lt_cv_file_magic_cmd='$OBJDUMP -f'
5663 darwin* | rhapsody*)
5664 lt_cv_deplibs_check_method=pass_all
5667 freebsd* | dragonfly*)
5668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5669 case $host_cpu in
5670 i*86 )
5671 # Not sure whether the presence of OpenBSD here was a mistake.
5672 # Let's accept both of them until this is cleared up.
5673 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5674 lt_cv_file_magic_cmd=/usr/bin/file
5675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5677 esac
5678 else
5679 lt_cv_deplibs_check_method=pass_all
5683 gnu*)
5684 lt_cv_deplibs_check_method=pass_all
5687 haiku*)
5688 lt_cv_deplibs_check_method=pass_all
5691 hpux10.20* | hpux11*)
5692 lt_cv_file_magic_cmd=/usr/bin/file
5693 case $host_cpu in
5694 ia64*)
5695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5696 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5698 hppa*64*)
5699 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]'
5700 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5703 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5704 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5706 esac
5709 interix[3-9]*)
5710 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5714 irix5* | irix6* | nonstopux*)
5715 case $LD in
5716 *-32|*"-32 ") libmagic=32-bit;;
5717 *-n32|*"-n32 ") libmagic=N32;;
5718 *-64|*"-64 ") libmagic=64-bit;;
5719 *) libmagic=never-match;;
5720 esac
5721 lt_cv_deplibs_check_method=pass_all
5724 # This must be Linux ELF.
5725 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5726 lt_cv_deplibs_check_method=pass_all
5729 netbsd*)
5730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5732 else
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5737 newos6*)
5738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5739 lt_cv_file_magic_cmd=/usr/bin/file
5740 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5743 *nto* | *qnx*)
5744 lt_cv_deplibs_check_method=pass_all
5747 openbsd*)
5748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5750 else
5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5755 osf3* | osf4* | osf5*)
5756 lt_cv_deplibs_check_method=pass_all
5759 rdos*)
5760 lt_cv_deplibs_check_method=pass_all
5763 solaris*)
5764 lt_cv_deplibs_check_method=pass_all
5767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5768 lt_cv_deplibs_check_method=pass_all
5771 sysv4 | sysv4.3*)
5772 case $host_vendor in
5773 motorola)
5774 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]'
5775 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5777 ncr)
5778 lt_cv_deplibs_check_method=pass_all
5780 sequent)
5781 lt_cv_file_magic_cmd='/bin/file'
5782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5784 sni)
5785 lt_cv_file_magic_cmd='/bin/file'
5786 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5787 lt_cv_file_magic_test_file=/lib/libc.so
5789 siemens)
5790 lt_cv_deplibs_check_method=pass_all
5793 lt_cv_deplibs_check_method=pass_all
5795 esac
5798 tpf*)
5799 lt_cv_deplibs_check_method=pass_all
5801 esac
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5805 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5806 file_magic_cmd=$lt_cv_file_magic_cmd
5807 deplibs_check_method=$lt_cv_deplibs_check_method
5808 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ar; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if test "${ac_cv_prog_AR+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if test -n "$AR"; then
5830 ac_cv_prog_AR="$AR" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_AR="${ac_tool_prefix}ar"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5843 done
5844 done
5845 IFS=$as_save_IFS
5849 AR=$ac_cv_prog_AR
5850 if test -n "$AR"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5852 $as_echo "$AR" >&6; }
5853 else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5860 if test -z "$ac_cv_prog_AR"; then
5861 ac_ct_AR=$AR
5862 # Extract the first word of "ar", so it can be a program name with args.
5863 set dummy ar; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$ac_ct_AR"; then
5870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_AR="ar"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5883 done
5884 done
5885 IFS=$as_save_IFS
5889 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5890 if test -n "$ac_ct_AR"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5892 $as_echo "$ac_ct_AR" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5898 if test "x$ac_ct_AR" = x; then
5899 AR="false"
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907 AR=$ac_ct_AR
5909 else
5910 AR="$ac_cv_prog_AR"
5913 test -z "$AR" && AR=ar
5914 test -z "$AR_FLAGS" && AR_FLAGS=cru
5926 if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}strip; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if test "${ac_cv_prog_STRIP+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$STRIP"; then
5935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5948 done
5949 done
5950 IFS=$as_save_IFS
5954 STRIP=$ac_cv_prog_STRIP
5955 if test -n "$STRIP"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5957 $as_echo "$STRIP" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5965 if test -z "$ac_cv_prog_STRIP"; then
5966 ac_ct_STRIP=$STRIP
5967 # Extract the first word of "strip", so it can be a program name with args.
5968 set dummy strip; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if test -n "$ac_ct_STRIP"; then
5975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_ac_ct_STRIP="strip"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5988 done
5989 done
5990 IFS=$as_save_IFS
5994 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5995 if test -n "$ac_ct_STRIP"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5997 $as_echo "$ac_ct_STRIP" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6003 if test "x$ac_ct_STRIP" = x; then
6004 STRIP=":"
6005 else
6006 case $cross_compiling:$ac_tool_warned in
6007 yes:)
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010 ac_tool_warned=yes ;;
6011 esac
6012 STRIP=$ac_ct_STRIP
6014 else
6015 STRIP="$ac_cv_prog_STRIP"
6018 test -z "$STRIP" && STRIP=:
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if test -n "$RANLIB"; then
6034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6047 done
6048 done
6049 IFS=$as_save_IFS
6053 RANLIB=$ac_cv_prog_RANLIB
6054 if test -n "$RANLIB"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6056 $as_echo "$RANLIB" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6064 if test -z "$ac_cv_prog_RANLIB"; then
6065 ac_ct_RANLIB=$RANLIB
6066 # Extract the first word of "ranlib", so it can be a program name with args.
6067 set dummy ranlib; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -n "$ac_ct_RANLIB"; then
6074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_prog_ac_ct_RANLIB="ranlib"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6087 done
6088 done
6089 IFS=$as_save_IFS
6093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6094 if test -n "$ac_ct_RANLIB"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6096 $as_echo "$ac_ct_RANLIB" >&6; }
6097 else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6102 if test "x$ac_ct_RANLIB" = x; then
6103 RANLIB=":"
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106 yes:)
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111 RANLIB=$ac_ct_RANLIB
6113 else
6114 RANLIB="$ac_cv_prog_RANLIB"
6117 test -z "$RANLIB" && RANLIB=:
6124 # Determine commands to create old-style static archives.
6125 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6126 old_postinstall_cmds='chmod 644 $oldlib'
6127 old_postuninstall_cmds=
6129 if test -n "$RANLIB"; then
6130 case $host_os in
6131 openbsd*)
6132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6137 esac
6138 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6141 case $host_os in
6142 darwin*)
6143 lock_old_archive_extraction=yes ;;
6145 lock_old_archive_extraction=no ;;
6146 esac
6186 # If no C compiler was specified, use CC.
6187 LTCC=${LTCC-"$CC"}
6189 # If no C compiler flags were specified, use CFLAGS.
6190 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6192 # Allow CC to be a program name with arguments.
6193 compiler=$CC
6196 # Check for command to grab the raw symbol name followed by C symbol from nm.
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6198 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6199 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6203 # These are sane defaults that work on at least a few old systems.
6204 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6206 # Character class describing NM global symbol codes.
6207 symcode='[BCDEGRST]'
6209 # Regexp to match symbols that can be accessed directly from C.
6210 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6212 # Define system-specific variables.
6213 case $host_os in
6214 aix*)
6215 symcode='[BCDT]'
6217 cygwin* | mingw* | pw32* | cegcc*)
6218 symcode='[ABCDGISTW]'
6220 hpux*)
6221 if test "$host_cpu" = ia64; then
6222 symcode='[ABCDEGRST]'
6225 irix* | nonstopux*)
6226 symcode='[BCDEGRST]'
6228 osf*)
6229 symcode='[BCDEGQRST]'
6231 solaris*)
6232 symcode='[BDRT]'
6234 sco3.2v5*)
6235 symcode='[DT]'
6237 sysv4.2uw2*)
6238 symcode='[DT]'
6240 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6241 symcode='[ABDT]'
6243 sysv4)
6244 symcode='[DFNSTU]'
6246 esac
6248 # If we're using GNU nm, then use its standard symbol codes.
6249 case `$NM -V 2>&1` in
6250 *GNU* | *'with BFD'*)
6251 symcode='[ABCDGIRSTW]' ;;
6252 esac
6254 # Transform an extracted symbol line into a proper C declaration.
6255 # Some systems (esp. on ia64) link data and code symbols differently,
6256 # so use this general approach.
6257 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6259 # Transform an extracted symbol line into symbol name and symbol address
6260 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6261 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'"
6263 # Handle CRLF in mingw tool chain
6264 opt_cr=
6265 case $build_os in
6266 mingw*)
6267 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6269 esac
6271 # Try without a prefix underscore, then with it.
6272 for ac_symprfx in "" "_"; do
6274 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6275 symxfrm="\\1 $ac_symprfx\\2 \\2"
6277 # Write the raw and C identifiers.
6278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6279 # Fake it for dumpbin and say T for any non-static function
6280 # and D for any global variable.
6281 # Also find C++ and __fastcall symbols from MSVC++,
6282 # which start with @ or ?.
6283 lt_cv_sys_global_symbol_pipe="$AWK '"\
6284 " {last_section=section; section=\$ 3};"\
6285 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6286 " \$ 0!~/External *\|/{next};"\
6287 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6288 " {if(hide[section]) next};"\
6289 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6290 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6291 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6292 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6293 " ' prfx=^$ac_symprfx"
6294 else
6295 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6298 # Check to see that the pipe works correctly.
6299 pipe_works=no
6301 rm -f conftest*
6302 cat > conftest.$ac_ext <<_LT_EOF
6303 #ifdef __cplusplus
6304 extern "C" {
6305 #endif
6306 char nm_test_var;
6307 void nm_test_func(void);
6308 void nm_test_func(void){}
6309 #ifdef __cplusplus
6311 #endif
6312 int main(){nm_test_var='a';nm_test_func();return(0);}
6313 _LT_EOF
6315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6316 (eval $ac_compile) 2>&5
6317 ac_status=$?
6318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6319 test $ac_status = 0; }; then
6320 # Now try to grab the symbols.
6321 nlist=conftest.nm
6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6323 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6324 ac_status=$?
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; } && test -s "$nlist"; then
6327 # Try sorting and uniquifying the output.
6328 if sort "$nlist" | uniq > "$nlist"T; then
6329 mv -f "$nlist"T "$nlist"
6330 else
6331 rm -f "$nlist"T
6334 # Make sure that we snagged all the symbols we need.
6335 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6336 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6337 cat <<_LT_EOF > conftest.$ac_ext
6338 #ifdef __cplusplus
6339 extern "C" {
6340 #endif
6342 _LT_EOF
6343 # Now generate the symbol file.
6344 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6346 cat <<_LT_EOF >> conftest.$ac_ext
6348 /* The mapping between symbol names and symbols. */
6349 const struct {
6350 const char *name;
6351 void *address;
6353 lt__PROGRAM__LTX_preloaded_symbols[] =
6355 { "@PROGRAM@", (void *) 0 },
6356 _LT_EOF
6357 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6358 cat <<\_LT_EOF >> conftest.$ac_ext
6359 {0, (void *) 0}
6362 /* This works around a problem in FreeBSD linker */
6363 #ifdef FREEBSD_WORKAROUND
6364 static const void *lt_preloaded_setup() {
6365 return lt__PROGRAM__LTX_preloaded_symbols;
6367 #endif
6369 #ifdef __cplusplus
6371 #endif
6372 _LT_EOF
6373 # Now try linking the two files.
6374 mv conftest.$ac_objext conftstm.$ac_objext
6375 lt_save_LIBS="$LIBS"
6376 lt_save_CFLAGS="$CFLAGS"
6377 LIBS="conftstm.$ac_objext"
6378 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6380 (eval $ac_link) 2>&5
6381 ac_status=$?
6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6384 pipe_works=yes
6386 LIBS="$lt_save_LIBS"
6387 CFLAGS="$lt_save_CFLAGS"
6388 else
6389 echo "cannot find nm_test_func in $nlist" >&5
6391 else
6392 echo "cannot find nm_test_var in $nlist" >&5
6394 else
6395 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6397 else
6398 echo "$progname: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6401 rm -rf conftest* conftst*
6403 # Do not use the global_symbol_pipe unless it works.
6404 if test "$pipe_works" = yes; then
6405 break
6406 else
6407 lt_cv_sys_global_symbol_pipe=
6409 done
6413 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6414 lt_cv_sys_global_symbol_to_cdecl=
6416 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6418 $as_echo "failed" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6421 $as_echo "ok" >&6; }
6446 # Check whether --enable-libtool-lock was given.
6447 if test "${enable_libtool_lock+set}" = set; then :
6448 enableval=$enable_libtool_lock;
6451 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6453 # Some flags need to be propagated to the compiler or linker for good
6454 # libtool support.
6455 case $host in
6456 ia64-*-hpux*)
6457 # Find out which ABI we are using.
6458 echo 'int i;' > conftest.$ac_ext
6459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6460 (eval $ac_compile) 2>&5
6461 ac_status=$?
6462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463 test $ac_status = 0; }; then
6464 case `/usr/bin/file conftest.$ac_objext` in
6465 *ELF-32*)
6466 HPUX_IA64_MODE="32"
6468 *ELF-64*)
6469 HPUX_IA64_MODE="64"
6471 esac
6473 rm -rf conftest*
6475 *-*-irix6*)
6476 # Find out which ABI we are using.
6477 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6479 (eval $ac_compile) 2>&5
6480 ac_status=$?
6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482 test $ac_status = 0; }; then
6483 if test "$lt_cv_prog_gnu_ld" = yes; then
6484 case `/usr/bin/file conftest.$ac_objext` in
6485 *32-bit*)
6486 LD="${LD-ld} -melf32bsmip"
6488 *N32*)
6489 LD="${LD-ld} -melf32bmipn32"
6491 *64-bit*)
6492 LD="${LD-ld} -melf64bmip"
6494 esac
6495 else
6496 case `/usr/bin/file conftest.$ac_objext` in
6497 *32-bit*)
6498 LD="${LD-ld} -32"
6500 *N32*)
6501 LD="${LD-ld} -n32"
6503 *64-bit*)
6504 LD="${LD-ld} -64"
6506 esac
6509 rm -rf conftest*
6512 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6513 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6514 # Find out which ABI we are using.
6515 echo 'int i;' > conftest.$ac_ext
6516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517 (eval $ac_compile) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 case `/usr/bin/file conftest.o` in
6522 *32-bit*)
6523 case $host in
6524 x86_64-*kfreebsd*-gnu)
6525 LD="${LD-ld} -m elf_i386_fbsd"
6527 x86_64-*linux*)
6528 case `/usr/bin/file conftest.o` in
6529 *x86-64*)
6530 LD="${LD-ld} -m elf32_x86_64"
6533 LD="${LD-ld} -m elf_i386"
6535 esac
6537 powerpc64le-*linux*)
6538 LD="${LD-ld} -m elf32lppclinux"
6540 powerpc64-*linux*)
6541 LD="${LD-ld} -m elf32ppclinux"
6543 s390x-*linux*)
6544 LD="${LD-ld} -m elf_s390"
6546 sparc64-*linux*)
6547 LD="${LD-ld} -m elf32_sparc"
6549 esac
6551 *64-bit*)
6552 case $host in
6553 x86_64-*kfreebsd*-gnu)
6554 LD="${LD-ld} -m elf_x86_64_fbsd"
6556 x86_64-*linux*)
6557 LD="${LD-ld} -m elf_x86_64"
6559 powerpcle-*linux*)
6560 LD="${LD-ld} -m elf64lppc"
6562 powerpc-*linux*)
6563 LD="${LD-ld} -m elf64ppc"
6565 s390*-*linux*|s390*-*tpf*)
6566 LD="${LD-ld} -m elf64_s390"
6568 sparc*-*linux*)
6569 LD="${LD-ld} -m elf64_sparc"
6571 esac
6573 esac
6575 rm -rf conftest*
6578 *-*-sco3.2v5*)
6579 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6580 SAVE_CFLAGS="$CFLAGS"
6581 CFLAGS="$CFLAGS -belf"
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6583 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6584 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 ac_ext=c
6588 ac_cpp='$CPP $CPPFLAGS'
6589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6597 main ()
6601 return 0;
6603 _ACEOF
6604 if ac_fn_c_try_link "$LINENO"; then :
6605 lt_cv_cc_needs_belf=yes
6606 else
6607 lt_cv_cc_needs_belf=no
6609 rm -f core conftest.err conftest.$ac_objext \
6610 conftest$ac_exeext conftest.$ac_ext
6611 ac_ext=c
6612 ac_cpp='$CPP $CPPFLAGS'
6613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6619 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6620 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6621 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6622 CFLAGS="$SAVE_CFLAGS"
6625 sparc*-*solaris*)
6626 # Find out which ABI we are using.
6627 echo 'int i;' > conftest.$ac_ext
6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6629 (eval $ac_compile) 2>&5
6630 ac_status=$?
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; }; then
6633 case `/usr/bin/file conftest.o` in
6634 *64-bit*)
6635 case $lt_cv_prog_gnu_ld in
6636 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6638 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6639 LD="${LD-ld} -64"
6642 esac
6644 esac
6646 rm -rf conftest*
6648 esac
6650 need_locks="$enable_libtool_lock"
6653 case $host_os in
6654 rhapsody* | darwin*)
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$DSYMUTIL"; then
6664 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6683 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6684 if test -n "$DSYMUTIL"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6686 $as_echo "$DSYMUTIL" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6694 if test -z "$ac_cv_prog_DSYMUTIL"; then
6695 ac_ct_DSYMUTIL=$DSYMUTIL
6696 # Extract the first word of "dsymutil", so it can be a program name with args.
6697 set dummy dsymutil; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 if test -n "$ac_ct_DSYMUTIL"; then
6704 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6717 done
6718 done
6719 IFS=$as_save_IFS
6723 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6724 if test -n "$ac_ct_DSYMUTIL"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6726 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6732 if test "x$ac_ct_DSYMUTIL" = x; then
6733 DSYMUTIL=":"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736 yes:)
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741 DSYMUTIL=$ac_ct_DSYMUTIL
6743 else
6744 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6747 if test -n "$ac_tool_prefix"; then
6748 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6749 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$NMEDIT"; then
6756 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6769 done
6770 done
6771 IFS=$as_save_IFS
6775 NMEDIT=$ac_cv_prog_NMEDIT
6776 if test -n "$NMEDIT"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6778 $as_echo "$NMEDIT" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6786 if test -z "$ac_cv_prog_NMEDIT"; then
6787 ac_ct_NMEDIT=$NMEDIT
6788 # Extract the first word of "nmedit", so it can be a program name with args.
6789 set dummy nmedit; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test -n "$ac_ct_NMEDIT"; then
6796 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6809 done
6810 done
6811 IFS=$as_save_IFS
6815 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6816 if test -n "$ac_ct_NMEDIT"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6818 $as_echo "$ac_ct_NMEDIT" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6824 if test "x$ac_ct_NMEDIT" = x; then
6825 NMEDIT=":"
6826 else
6827 case $cross_compiling:$ac_tool_warned in
6828 yes:)
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6831 ac_tool_warned=yes ;;
6832 esac
6833 NMEDIT=$ac_ct_NMEDIT
6835 else
6836 NMEDIT="$ac_cv_prog_NMEDIT"
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6841 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if test "${ac_cv_prog_LIPO+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$LIPO"; then
6848 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6861 done
6862 done
6863 IFS=$as_save_IFS
6867 LIPO=$ac_cv_prog_LIPO
6868 if test -n "$LIPO"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6870 $as_echo "$LIPO" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6878 if test -z "$ac_cv_prog_LIPO"; then
6879 ac_ct_LIPO=$LIPO
6880 # Extract the first word of "lipo", so it can be a program name with args.
6881 set dummy lipo; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 if test -n "$ac_ct_LIPO"; then
6888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_prog_ac_ct_LIPO="lipo"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6901 done
6902 done
6903 IFS=$as_save_IFS
6907 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6908 if test -n "$ac_ct_LIPO"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6910 $as_echo "$ac_ct_LIPO" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6916 if test "x$ac_ct_LIPO" = x; then
6917 LIPO=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6924 esac
6925 LIPO=$ac_ct_LIPO
6927 else
6928 LIPO="$ac_cv_prog_LIPO"
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}otool; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$OTOOL"; then
6940 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6955 IFS=$as_save_IFS
6959 OTOOL=$ac_cv_prog_OTOOL
6960 if test -n "$OTOOL"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6962 $as_echo "$OTOOL" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6970 if test -z "$ac_cv_prog_OTOOL"; then
6971 ac_ct_OTOOL=$OTOOL
6972 # Extract the first word of "otool", so it can be a program name with args.
6973 set dummy otool; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$ac_ct_OTOOL"; then
6980 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_ac_ct_OTOOL="otool"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6993 done
6994 done
6995 IFS=$as_save_IFS
6999 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7000 if test -n "$ac_ct_OTOOL"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7002 $as_echo "$ac_ct_OTOOL" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7008 if test "x$ac_ct_OTOOL" = x; then
7009 OTOOL=":"
7010 else
7011 case $cross_compiling:$ac_tool_warned in
7012 yes:)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 ac_tool_warned=yes ;;
7016 esac
7017 OTOOL=$ac_ct_OTOOL
7019 else
7020 OTOOL="$ac_cv_prog_OTOOL"
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7025 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$OTOOL64"; then
7032 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7045 done
7046 done
7047 IFS=$as_save_IFS
7051 OTOOL64=$ac_cv_prog_OTOOL64
7052 if test -n "$OTOOL64"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7054 $as_echo "$OTOOL64" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7062 if test -z "$ac_cv_prog_OTOOL64"; then
7063 ac_ct_OTOOL64=$OTOOL64
7064 # Extract the first word of "otool64", so it can be a program name with args.
7065 set dummy otool64; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$ac_ct_OTOOL64"; then
7072 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_prog_ac_ct_OTOOL64="otool64"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7091 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7092 if test -n "$ac_ct_OTOOL64"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7094 $as_echo "$ac_ct_OTOOL64" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7100 if test "x$ac_ct_OTOOL64" = x; then
7101 OTOOL64=":"
7102 else
7103 case $cross_compiling:$ac_tool_warned in
7104 yes:)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109 OTOOL64=$ac_ct_OTOOL64
7111 else
7112 OTOOL64="$ac_cv_prog_OTOOL64"
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7142 $as_echo_n "checking for -single_module linker flag... " >&6; }
7143 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 lt_cv_apple_cc_single_mod=no
7147 if test -z "${LT_MULTI_MODULE}"; then
7148 # By default we will add the -single_module flag. You can override
7149 # by either setting the environment variable LT_MULTI_MODULE
7150 # non-empty at configure time, or by adding -multi_module to the
7151 # link flags.
7152 rm -rf libconftest.dylib*
7153 echo "int foo(void){return 1;}" > conftest.c
7154 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7155 -dynamiclib -Wl,-single_module conftest.c" >&5
7156 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7157 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7158 _lt_result=$?
7159 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7160 lt_cv_apple_cc_single_mod=yes
7161 else
7162 cat conftest.err >&5
7164 rm -rf libconftest.dylib*
7165 rm -f conftest.*
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7169 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7171 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7172 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 lt_cv_ld_exported_symbols_list=no
7176 save_LDFLAGS=$LDFLAGS
7177 echo "_main" > conftest.sym
7178 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7183 main ()
7187 return 0;
7189 _ACEOF
7190 if ac_fn_c_try_link "$LINENO"; then :
7191 lt_cv_ld_exported_symbols_list=yes
7192 else
7193 lt_cv_ld_exported_symbols_list=no
7195 rm -f core conftest.err conftest.$ac_objext \
7196 conftest$ac_exeext conftest.$ac_ext
7197 LDFLAGS="$save_LDFLAGS"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7201 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7203 $as_echo_n "checking for -force_load linker flag... " >&6; }
7204 if test "${lt_cv_ld_force_load+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 lt_cv_ld_force_load=no
7208 cat > conftest.c << _LT_EOF
7209 int forced_loaded() { return 2;}
7210 _LT_EOF
7211 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7212 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7213 echo "$AR cru libconftest.a conftest.o" >&5
7214 $AR cru libconftest.a conftest.o 2>&5
7215 cat > conftest.c << _LT_EOF
7216 int main() { return 0;}
7217 _LT_EOF
7218 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7219 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7220 _lt_result=$?
7221 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7222 lt_cv_ld_force_load=yes
7223 else
7224 cat conftest.err >&5
7226 rm -f conftest.err libconftest.a conftest conftest.c
7227 rm -rf conftest.dSYM
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7231 $as_echo "$lt_cv_ld_force_load" >&6; }
7232 case $host_os in
7233 rhapsody* | darwin1.[012])
7234 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7235 darwin1.*)
7236 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7237 darwin*) # darwin 5.x on
7238 # if running on 10.5 or later, the deployment target defaults
7239 # to the OS version, if on x86, and 10.4, the deployment
7240 # target defaults to 10.4. Don't you love it?
7241 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7242 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7243 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7244 10.[012][,.]*)
7245 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7246 10.*)
7247 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7248 esac
7250 esac
7251 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7252 _lt_dar_single_mod='$single_module'
7254 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7255 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7256 else
7257 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7259 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7260 _lt_dsymutil='~$DSYMUTIL $lib || :'
7261 else
7262 _lt_dsymutil=
7265 esac
7267 ac_ext=c
7268 ac_cpp='$CPP $CPPFLAGS'
7269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7273 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7274 # On Suns, sometimes $CPP names a directory.
7275 if test -n "$CPP" && test -d "$CPP"; then
7276 CPP=
7278 if test -z "$CPP"; then
7279 if test "${ac_cv_prog_CPP+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282 # Double quotes because CPP needs to be expanded
7283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7285 ac_preproc_ok=false
7286 for ac_c_preproc_warn_flag in '' yes
7288 # Use a header file that comes with gcc, so configuring glibc
7289 # with a fresh cross-compiler works.
7290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7291 # <limits.h> exists even on freestanding compilers.
7292 # On the NeXT, cc -E runs the code through the compiler's parser,
7293 # not just through cpp. "Syntax error" is here to catch this case.
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 #ifdef __STDC__
7297 # include <limits.h>
7298 #else
7299 # include <assert.h>
7300 #endif
7301 Syntax error
7302 _ACEOF
7303 if ac_fn_c_try_cpp "$LINENO"; then :
7305 else
7306 # Broken: fails on valid input.
7307 continue
7309 rm -f conftest.err conftest.$ac_ext
7311 # OK, works on sane cases. Now check whether nonexistent headers
7312 # can be detected and how.
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <ac_nonexistent.h>
7316 _ACEOF
7317 if ac_fn_c_try_cpp "$LINENO"; then :
7318 # Broken: success on invalid input.
7319 continue
7320 else
7321 # Passes both tests.
7322 ac_preproc_ok=:
7323 break
7325 rm -f conftest.err conftest.$ac_ext
7327 done
7328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7329 rm -f conftest.err conftest.$ac_ext
7330 if $ac_preproc_ok; then :
7331 break
7334 done
7335 ac_cv_prog_CPP=$CPP
7338 CPP=$ac_cv_prog_CPP
7339 else
7340 ac_cv_prog_CPP=$CPP
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7343 $as_echo "$CPP" >&6; }
7344 ac_preproc_ok=false
7345 for ac_c_preproc_warn_flag in '' yes
7347 # Use a header file that comes with gcc, so configuring glibc
7348 # with a fresh cross-compiler works.
7349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7350 # <limits.h> exists even on freestanding compilers.
7351 # On the NeXT, cc -E runs the code through the compiler's parser,
7352 # not just through cpp. "Syntax error" is here to catch this case.
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 #ifdef __STDC__
7356 # include <limits.h>
7357 #else
7358 # include <assert.h>
7359 #endif
7360 Syntax error
7361 _ACEOF
7362 if ac_fn_c_try_cpp "$LINENO"; then :
7364 else
7365 # Broken: fails on valid input.
7366 continue
7368 rm -f conftest.err conftest.$ac_ext
7370 # OK, works on sane cases. Now check whether nonexistent headers
7371 # can be detected and how.
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 #include <ac_nonexistent.h>
7375 _ACEOF
7376 if ac_fn_c_try_cpp "$LINENO"; then :
7377 # Broken: success on invalid input.
7378 continue
7379 else
7380 # Passes both tests.
7381 ac_preproc_ok=:
7382 break
7384 rm -f conftest.err conftest.$ac_ext
7386 done
7387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7388 rm -f conftest.err conftest.$ac_ext
7389 if $ac_preproc_ok; then :
7391 else
7392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7394 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7395 See \`config.log' for more details." "$LINENO" 5; }
7398 ac_ext=c
7399 ac_cpp='$CPP $CPPFLAGS'
7400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7406 $as_echo_n "checking for ANSI C header files... " >&6; }
7407 if test "${ac_cv_header_stdc+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7412 #include <stdlib.h>
7413 #include <stdarg.h>
7414 #include <string.h>
7415 #include <float.h>
7418 main ()
7422 return 0;
7424 _ACEOF
7425 if ac_fn_c_try_compile "$LINENO"; then :
7426 ac_cv_header_stdc=yes
7427 else
7428 ac_cv_header_stdc=no
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 if test $ac_cv_header_stdc = yes; then
7433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7436 #include <string.h>
7438 _ACEOF
7439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7440 $EGREP "memchr" >/dev/null 2>&1; then :
7442 else
7443 ac_cv_header_stdc=no
7445 rm -f conftest*
7449 if test $ac_cv_header_stdc = yes; then
7450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 #include <stdlib.h>
7455 _ACEOF
7456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7457 $EGREP "free" >/dev/null 2>&1; then :
7459 else
7460 ac_cv_header_stdc=no
7462 rm -f conftest*
7466 if test $ac_cv_header_stdc = yes; then
7467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7468 if test "$cross_compiling" = yes; then :
7470 else
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 #include <ctype.h>
7474 #include <stdlib.h>
7475 #if ((' ' & 0x0FF) == 0x020)
7476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7478 #else
7479 # define ISLOWER(c) \
7480 (('a' <= (c) && (c) <= 'i') \
7481 || ('j' <= (c) && (c) <= 'r') \
7482 || ('s' <= (c) && (c) <= 'z'))
7483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7484 #endif
7486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7488 main ()
7490 int i;
7491 for (i = 0; i < 256; i++)
7492 if (XOR (islower (i), ISLOWER (i))
7493 || toupper (i) != TOUPPER (i))
7494 return 2;
7495 return 0;
7497 _ACEOF
7498 if ac_fn_c_try_run "$LINENO"; then :
7500 else
7501 ac_cv_header_stdc=no
7503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7504 conftest.$ac_objext conftest.beam conftest.$ac_ext
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7510 $as_echo "$ac_cv_header_stdc" >&6; }
7511 if test $ac_cv_header_stdc = yes; then
7513 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7519 inttypes.h stdint.h unistd.h
7520 do :
7521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7522 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7524 eval as_val=\$$as_ac_Header
7525 if test "x$as_val" = x""yes; then :
7526 cat >>confdefs.h <<_ACEOF
7527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7528 _ACEOF
7532 done
7535 for ac_header in dlfcn.h
7536 do :
7537 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7539 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7540 cat >>confdefs.h <<_ACEOF
7541 #define HAVE_DLFCN_H 1
7542 _ACEOF
7546 done
7548 if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7550 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_GOC+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$GOC"; then
7557 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7570 done
7571 done
7572 IFS=$as_save_IFS
7576 GOC=$ac_cv_prog_GOC
7577 if test -n "$GOC"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7579 $as_echo "$GOC" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7587 if test -z "$ac_cv_prog_GOC"; then
7588 ac_ct_GOC=$GOC
7589 # Extract the first word of "gccgo", so it can be a program name with args.
7590 set dummy gccgo; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 if test -n "$ac_ct_GOC"; then
7597 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_prog_ac_ct_GOC="gccgo"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7610 done
7611 done
7612 IFS=$as_save_IFS
7616 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7617 if test -n "$ac_ct_GOC"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7619 $as_echo "$ac_ct_GOC" >&6; }
7620 else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7625 if test "x$ac_ct_GOC" = x; then
7626 GOC=""
7627 else
7628 case $cross_compiling:$ac_tool_warned in
7629 yes:)
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned=yes ;;
7633 esac
7634 GOC=$ac_ct_GOC
7636 else
7637 GOC="$ac_cv_prog_GOC"
7645 # Set options
7650 enable_win32_dll=no
7653 # Check whether --enable-shared was given.
7654 if test "${enable_shared+set}" = set; then :
7655 enableval=$enable_shared; p=${PACKAGE-default}
7656 case $enableval in
7657 yes) enable_shared=yes ;;
7658 no) enable_shared=no ;;
7660 enable_shared=no
7661 # Look at the argument we got. We use all the common list separators.
7662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663 for pkg in $enableval; do
7664 IFS="$lt_save_ifs"
7665 if test "X$pkg" = "X$p"; then
7666 enable_shared=yes
7668 done
7669 IFS="$lt_save_ifs"
7671 esac
7672 else
7673 enable_shared=yes
7684 # Check whether --enable-static was given.
7685 if test "${enable_static+set}" = set; then :
7686 enableval=$enable_static; p=${PACKAGE-default}
7687 case $enableval in
7688 yes) enable_static=yes ;;
7689 no) enable_static=no ;;
7691 enable_static=no
7692 # Look at the argument we got. We use all the common list separators.
7693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694 for pkg in $enableval; do
7695 IFS="$lt_save_ifs"
7696 if test "X$pkg" = "X$p"; then
7697 enable_static=yes
7699 done
7700 IFS="$lt_save_ifs"
7702 esac
7703 else
7704 enable_static=yes
7716 # Check whether --with-pic was given.
7717 if test "${with_pic+set}" = set; then :
7718 withval=$with_pic; pic_mode="$withval"
7719 else
7720 pic_mode=default
7724 test -z "$pic_mode" && pic_mode=default
7732 # Check whether --enable-fast-install was given.
7733 if test "${enable_fast_install+set}" = set; then :
7734 enableval=$enable_fast_install; p=${PACKAGE-default}
7735 case $enableval in
7736 yes) enable_fast_install=yes ;;
7737 no) enable_fast_install=no ;;
7739 enable_fast_install=no
7740 # Look at the argument we got. We use all the common list separators.
7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742 for pkg in $enableval; do
7743 IFS="$lt_save_ifs"
7744 if test "X$pkg" = "X$p"; then
7745 enable_fast_install=yes
7747 done
7748 IFS="$lt_save_ifs"
7750 esac
7751 else
7752 enable_fast_install=yes
7765 # This can be used to rebuild libtool when needed
7766 LIBTOOL_DEPS="$ltmain"
7768 # Always use our own libtool.
7769 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7796 test -z "$LN_S" && LN_S="ln -s"
7811 if test -n "${ZSH_VERSION+set}" ; then
7812 setopt NO_GLOB_SUBST
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7816 $as_echo_n "checking for objdir... " >&6; }
7817 if test "${lt_cv_objdir+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 rm -f .libs 2>/dev/null
7821 mkdir .libs 2>/dev/null
7822 if test -d .libs; then
7823 lt_cv_objdir=.libs
7824 else
7825 # MS-DOS does not allow filenames that begin with a dot.
7826 lt_cv_objdir=_libs
7828 rmdir .libs 2>/dev/null
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7831 $as_echo "$lt_cv_objdir" >&6; }
7832 objdir=$lt_cv_objdir
7838 cat >>confdefs.h <<_ACEOF
7839 #define LT_OBJDIR "$lt_cv_objdir/"
7840 _ACEOF
7845 case $host_os in
7846 aix3*)
7847 # AIX sometimes has problems with the GCC collect2 program. For some
7848 # reason, if we set the COLLECT_NAMES environment variable, the problems
7849 # vanish in a puff of smoke.
7850 if test "X${COLLECT_NAMES+set}" != Xset; then
7851 COLLECT_NAMES=
7852 export COLLECT_NAMES
7855 esac
7857 # Global variables:
7858 ofile=libtool
7859 can_build_shared=yes
7861 # All known linkers require a `.a' archive for static linking (except MSVC,
7862 # which needs '.lib').
7863 libext=a
7865 with_gnu_ld="$lt_cv_prog_gnu_ld"
7867 old_CC="$CC"
7868 old_CFLAGS="$CFLAGS"
7870 # Set sane defaults for various variables
7871 test -z "$CC" && CC=cc
7872 test -z "$LTCC" && LTCC=$CC
7873 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7874 test -z "$LD" && LD=ld
7875 test -z "$ac_objext" && ac_objext=o
7877 for cc_temp in $compiler""; do
7878 case $cc_temp in
7879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7881 \-*) ;;
7882 *) break;;
7883 esac
7884 done
7885 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7888 # Only perform the check for file, if the check method requires it
7889 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7890 case $deplibs_check_method in
7891 file_magic*)
7892 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7894 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7895 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 case $MAGIC_CMD in
7899 [\\/*] | ?:[\\/]*)
7900 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7903 lt_save_MAGIC_CMD="$MAGIC_CMD"
7904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7906 for ac_dir in $ac_dummy; do
7907 IFS="$lt_save_ifs"
7908 test -z "$ac_dir" && ac_dir=.
7909 if test -f $ac_dir/${ac_tool_prefix}file; then
7910 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7911 if test -n "$file_magic_test_file"; then
7912 case $deplibs_check_method in
7913 "file_magic "*)
7914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7917 $EGREP "$file_magic_regex" > /dev/null; then
7919 else
7920 cat <<_LT_EOF 1>&2
7922 *** Warning: the command libtool uses to detect shared libraries,
7923 *** $file_magic_cmd, produces output that libtool cannot recognize.
7924 *** The result is that libtool may fail to recognize shared libraries
7925 *** as such. This will affect the creation of libtool libraries that
7926 *** depend on shared libraries, but programs linked with such libtool
7927 *** libraries will work regardless of this problem. Nevertheless, you
7928 *** may want to report the problem to your system manager and/or to
7929 *** bug-libtool@gnu.org
7931 _LT_EOF
7932 fi ;;
7933 esac
7935 break
7937 done
7938 IFS="$lt_save_ifs"
7939 MAGIC_CMD="$lt_save_MAGIC_CMD"
7941 esac
7944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7945 if test -n "$MAGIC_CMD"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7947 $as_echo "$MAGIC_CMD" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7957 if test -z "$lt_cv_path_MAGIC_CMD"; then
7958 if test -n "$ac_tool_prefix"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7960 $as_echo_n "checking for file... " >&6; }
7961 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 case $MAGIC_CMD in
7965 [\\/*] | ?:[\\/]*)
7966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7969 lt_save_MAGIC_CMD="$MAGIC_CMD"
7970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7972 for ac_dir in $ac_dummy; do
7973 IFS="$lt_save_ifs"
7974 test -z "$ac_dir" && ac_dir=.
7975 if test -f $ac_dir/file; then
7976 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7977 if test -n "$file_magic_test_file"; then
7978 case $deplibs_check_method in
7979 "file_magic "*)
7980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7983 $EGREP "$file_magic_regex" > /dev/null; then
7985 else
7986 cat <<_LT_EOF 1>&2
7988 *** Warning: the command libtool uses to detect shared libraries,
7989 *** $file_magic_cmd, produces output that libtool cannot recognize.
7990 *** The result is that libtool may fail to recognize shared libraries
7991 *** as such. This will affect the creation of libtool libraries that
7992 *** depend on shared libraries, but programs linked with such libtool
7993 *** libraries will work regardless of this problem. Nevertheless, you
7994 *** may want to report the problem to your system manager and/or to
7995 *** bug-libtool@gnu.org
7997 _LT_EOF
7998 fi ;;
7999 esac
8001 break
8003 done
8004 IFS="$lt_save_ifs"
8005 MAGIC_CMD="$lt_save_MAGIC_CMD"
8007 esac
8010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011 if test -n "$MAGIC_CMD"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8013 $as_echo "$MAGIC_CMD" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8020 else
8021 MAGIC_CMD=:
8027 esac
8029 # Use C for the default configuration in the libtool script
8031 lt_save_CC="$CC"
8032 ac_ext=c
8033 ac_cpp='$CPP $CPPFLAGS'
8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8039 # Source file extension for C test sources.
8040 ac_ext=c
8042 # Object file extension for compiled C test sources.
8043 objext=o
8044 objext=$objext
8046 # Code to be used in simple compile tests
8047 lt_simple_compile_test_code="int some_variable = 0;"
8049 # Code to be used in simple link tests
8050 lt_simple_link_test_code='int main(){return(0);}'
8058 # If no C compiler was specified, use CC.
8059 LTCC=${LTCC-"$CC"}
8061 # If no C compiler flags were specified, use CFLAGS.
8062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8064 # Allow CC to be a program name with arguments.
8065 compiler=$CC
8067 # Save the default compiler, since it gets overwritten when the other
8068 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8069 compiler_DEFAULT=$CC
8071 # save warnings/boilerplate of simple test code
8072 ac_outfile=conftest.$ac_objext
8073 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8075 _lt_compiler_boilerplate=`cat conftest.err`
8076 $RM conftest*
8078 ac_outfile=conftest.$ac_objext
8079 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8081 _lt_linker_boilerplate=`cat conftest.err`
8082 $RM -r conftest*
8085 ## CAVEAT EMPTOR:
8086 ## There is no encapsulation within the following macros, do not change
8087 ## the running order or otherwise move them around unless you know exactly
8088 ## what you are doing...
8089 if test -n "$compiler"; then
8091 lt_prog_compiler_no_builtin_flag=
8093 if test "$GCC" = yes; then
8094 case $cc_basename in
8095 nvcc*)
8096 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8098 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8099 esac
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8102 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8103 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 lt_cv_prog_compiler_rtti_exceptions=no
8107 ac_outfile=conftest.$ac_objext
8108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8109 lt_compiler_flag="-fno-rtti -fno-exceptions"
8110 # Insert the option either (1) after the last *FLAGS variable, or
8111 # (2) before a word containing "conftest.", or (3) at the end.
8112 # Note that $ac_compile itself does not contain backslashes and begins
8113 # with a dollar sign (not a hyphen), so the echo should work correctly.
8114 # The option is referenced via a variable to avoid confusing sed.
8115 lt_compile=`echo "$ac_compile" | $SED \
8116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8118 -e 's:$: $lt_compiler_flag:'`
8119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8120 (eval "$lt_compile" 2>conftest.err)
8121 ac_status=$?
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 if (exit $ac_status) && test -s "$ac_outfile"; then
8125 # The compiler can only warn and ignore the option if not recognized
8126 # So say no if there are warnings other than the usual output.
8127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8129 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8130 lt_cv_prog_compiler_rtti_exceptions=yes
8133 $RM conftest*
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8137 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8139 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8140 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8141 else
8152 lt_prog_compiler_wl=
8153 lt_prog_compiler_pic=
8154 lt_prog_compiler_static=
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8157 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8159 if test "$GCC" = yes; then
8160 lt_prog_compiler_wl='-Wl,'
8161 lt_prog_compiler_static='-static'
8163 case $host_os in
8164 aix*)
8165 # All AIX code is PIC.
8166 if test "$host_cpu" = ia64; then
8167 # AIX 5 now supports IA64 processor
8168 lt_prog_compiler_static='-Bstatic'
8170 lt_prog_compiler_pic='-fPIC'
8173 amigaos*)
8174 case $host_cpu in
8175 powerpc)
8176 # see comment about AmigaOS4 .so support
8177 lt_prog_compiler_pic='-fPIC'
8179 m68k)
8180 # FIXME: we need at least 68020 code to build shared libraries, but
8181 # adding the `-m68020' flag to GCC prevents building anything better,
8182 # like `-m68040'.
8183 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8185 esac
8188 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8189 # PIC is the default for these OSes.
8192 mingw* | cygwin* | pw32* | os2* | cegcc*)
8193 # This hack is so that the source file can tell whether it is being
8194 # built for inclusion in a dll (and should export symbols for example).
8195 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8196 # (--disable-auto-import) libraries
8197 lt_prog_compiler_pic='-DDLL_EXPORT'
8200 darwin* | rhapsody*)
8201 # PIC is the default on this platform
8202 # Common symbols not allowed in MH_DYLIB files
8203 lt_prog_compiler_pic='-fno-common'
8206 haiku*)
8207 # PIC is the default for Haiku.
8208 # The "-static" flag exists, but is broken.
8209 lt_prog_compiler_static=
8212 hpux*)
8213 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8214 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8215 # sets the default TLS model and affects inlining.
8216 case $host_cpu in
8217 hppa*64*)
8218 # +Z the default
8221 lt_prog_compiler_pic='-fPIC'
8223 esac
8226 interix[3-9]*)
8227 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8228 # Instead, we relocate shared libraries at runtime.
8231 msdosdjgpp*)
8232 # Just because we use GCC doesn't mean we suddenly get shared libraries
8233 # on systems that don't support them.
8234 lt_prog_compiler_can_build_shared=no
8235 enable_shared=no
8238 *nto* | *qnx*)
8239 # QNX uses GNU C++, but need to define -shared option too, otherwise
8240 # it will coredump.
8241 lt_prog_compiler_pic='-fPIC -shared'
8244 sysv4*MP*)
8245 if test -d /usr/nec; then
8246 lt_prog_compiler_pic=-Kconform_pic
8251 lt_prog_compiler_pic='-fPIC'
8253 esac
8255 case $cc_basename in
8256 nvcc*) # Cuda Compiler Driver 2.2
8257 lt_prog_compiler_wl='-Xlinker '
8258 lt_prog_compiler_pic='-Xcompiler -fPIC'
8260 esac
8261 else
8262 # PORTME Check for flag to pass linker flags through the system compiler.
8263 case $host_os in
8264 aix*)
8265 lt_prog_compiler_wl='-Wl,'
8266 if test "$host_cpu" = ia64; then
8267 # AIX 5 now supports IA64 processor
8268 lt_prog_compiler_static='-Bstatic'
8269 else
8270 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8274 mingw* | cygwin* | pw32* | os2* | cegcc*)
8275 # This hack is so that the source file can tell whether it is being
8276 # built for inclusion in a dll (and should export symbols for example).
8277 lt_prog_compiler_pic='-DDLL_EXPORT'
8280 hpux9* | hpux10* | hpux11*)
8281 lt_prog_compiler_wl='-Wl,'
8282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8283 # not for PA HP-UX.
8284 case $host_cpu in
8285 hppa*64*|ia64*)
8286 # +Z the default
8289 lt_prog_compiler_pic='+Z'
8291 esac
8292 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8293 lt_prog_compiler_static='${wl}-a ${wl}archive'
8296 irix5* | irix6* | nonstopux*)
8297 lt_prog_compiler_wl='-Wl,'
8298 # PIC (with -KPIC) is the default.
8299 lt_prog_compiler_static='-non_shared'
8302 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8303 case $cc_basename in
8304 # old Intel for x86_64 which still supported -KPIC.
8305 ecc*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='-KPIC'
8308 lt_prog_compiler_static='-static'
8310 # icc used to be incompatible with GCC.
8311 # ICC 10 doesn't accept -KPIC any more.
8312 icc* | ifort*)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-fPIC'
8315 lt_prog_compiler_static='-static'
8317 # Lahey Fortran 8.1.
8318 lf95*)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='--shared'
8321 lt_prog_compiler_static='--static'
8323 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8324 # Portland Group compilers (*not* the Pentium gcc compiler,
8325 # which looks to be a dead project)
8326 lt_prog_compiler_wl='-Wl,'
8327 lt_prog_compiler_pic='-fpic'
8328 lt_prog_compiler_static='-Bstatic'
8330 ccc*)
8331 lt_prog_compiler_wl='-Wl,'
8332 # All Alpha code is PIC.
8333 lt_prog_compiler_static='-non_shared'
8335 xl* | bgxl* | bgf* | mpixl*)
8336 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='-qpic'
8339 lt_prog_compiler_static='-qstaticlink'
8342 case `$CC -V 2>&1 | sed 5q` in
8343 *Sun\ F* | *Sun*Fortran*)
8344 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8345 lt_prog_compiler_pic='-KPIC'
8346 lt_prog_compiler_static='-Bstatic'
8347 lt_prog_compiler_wl=''
8349 *Sun\ C*)
8350 # Sun C 5.9
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8353 lt_prog_compiler_wl='-Wl,'
8355 esac
8357 esac
8360 newsos6)
8361 lt_prog_compiler_pic='-KPIC'
8362 lt_prog_compiler_static='-Bstatic'
8365 *nto* | *qnx*)
8366 # QNX uses GNU C++, but need to define -shared option too, otherwise
8367 # it will coredump.
8368 lt_prog_compiler_pic='-fPIC -shared'
8371 osf3* | osf4* | osf5*)
8372 lt_prog_compiler_wl='-Wl,'
8373 # All OSF/1 code is PIC.
8374 lt_prog_compiler_static='-non_shared'
8377 rdos*)
8378 lt_prog_compiler_static='-non_shared'
8381 solaris*)
8382 lt_prog_compiler_pic='-KPIC'
8383 lt_prog_compiler_static='-Bstatic'
8384 case $cc_basename in
8385 f77* | f90* | f95*)
8386 lt_prog_compiler_wl='-Qoption ld ';;
8388 lt_prog_compiler_wl='-Wl,';;
8389 esac
8392 sunos4*)
8393 lt_prog_compiler_wl='-Qoption ld '
8394 lt_prog_compiler_pic='-PIC'
8395 lt_prog_compiler_static='-Bstatic'
8398 sysv4 | sysv4.2uw2* | sysv4.3*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8404 sysv4*MP*)
8405 if test -d /usr/nec ;then
8406 lt_prog_compiler_pic='-Kconform_pic'
8407 lt_prog_compiler_static='-Bstatic'
8411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_pic='-KPIC'
8414 lt_prog_compiler_static='-Bstatic'
8417 unicos*)
8418 lt_prog_compiler_wl='-Wl,'
8419 lt_prog_compiler_can_build_shared=no
8422 uts4*)
8423 lt_prog_compiler_pic='-pic'
8424 lt_prog_compiler_static='-Bstatic'
8428 lt_prog_compiler_can_build_shared=no
8430 esac
8433 case $host_os in
8434 # For platforms which do not support PIC, -DPIC is meaningless:
8435 *djgpp*)
8436 lt_prog_compiler_pic=
8439 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8441 esac
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8443 $as_echo "$lt_prog_compiler_pic" >&6; }
8451 # Check to make sure the PIC flag actually works.
8453 if test -n "$lt_prog_compiler_pic"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8455 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8456 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 lt_cv_prog_compiler_pic_works=no
8460 ac_outfile=conftest.$ac_objext
8461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8462 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8463 # Insert the option either (1) after the last *FLAGS variable, or
8464 # (2) before a word containing "conftest.", or (3) at the end.
8465 # Note that $ac_compile itself does not contain backslashes and begins
8466 # with a dollar sign (not a hyphen), so the echo should work correctly.
8467 # The option is referenced via a variable to avoid confusing sed.
8468 lt_compile=`echo "$ac_compile" | $SED \
8469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8471 -e 's:$: $lt_compiler_flag:'`
8472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8473 (eval "$lt_compile" 2>conftest.err)
8474 ac_status=$?
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 if (exit $ac_status) && test -s "$ac_outfile"; then
8478 # The compiler can only warn and ignore the option if not recognized
8479 # So say no if there are warnings other than the usual output.
8480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8483 lt_cv_prog_compiler_pic_works=yes
8486 $RM conftest*
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8490 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8492 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8493 case $lt_prog_compiler_pic in
8494 "" | " "*) ;;
8495 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8496 esac
8497 else
8498 lt_prog_compiler_pic=
8499 lt_prog_compiler_can_build_shared=no
8510 # Check to make sure the static flag actually works.
8512 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8514 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8515 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 lt_cv_prog_compiler_static_works=no
8519 save_LDFLAGS="$LDFLAGS"
8520 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8521 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8522 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8523 # The linker can only warn and ignore the option if not recognized
8524 # So say no if there are warnings
8525 if test -s conftest.err; then
8526 # Append any errors to the config.log.
8527 cat conftest.err 1>&5
8528 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8530 if diff conftest.exp conftest.er2 >/dev/null; then
8531 lt_cv_prog_compiler_static_works=yes
8533 else
8534 lt_cv_prog_compiler_static_works=yes
8537 $RM -r conftest*
8538 LDFLAGS="$save_LDFLAGS"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8542 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8544 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8546 else
8547 lt_prog_compiler_static=
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8557 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8558 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 lt_cv_prog_compiler_c_o=no
8562 $RM -r conftest 2>/dev/null
8563 mkdir conftest
8564 cd conftest
8565 mkdir out
8566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8568 lt_compiler_flag="-o out/conftest2.$ac_objext"
8569 # Insert the option either (1) after the last *FLAGS variable, or
8570 # (2) before a word containing "conftest.", or (3) at the end.
8571 # Note that $ac_compile itself does not contain backslashes and begins
8572 # with a dollar sign (not a hyphen), so the echo should work correctly.
8573 lt_compile=`echo "$ac_compile" | $SED \
8574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8576 -e 's:$: $lt_compiler_flag:'`
8577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8578 (eval "$lt_compile" 2>out/conftest.err)
8579 ac_status=$?
8580 cat out/conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8583 then
8584 # The compiler can only warn and ignore the option if not recognized
8585 # So say no if there are warnings
8586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8589 lt_cv_prog_compiler_c_o=yes
8592 chmod u+w . 2>&5
8593 $RM conftest*
8594 # SGI C++ compiler will create directory out/ii_files/ for
8595 # template instantiation
8596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8597 $RM out/* && rmdir out
8598 cd ..
8599 $RM -r conftest
8600 $RM conftest*
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8604 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8612 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8613 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 lt_cv_prog_compiler_c_o=no
8617 $RM -r conftest 2>/dev/null
8618 mkdir conftest
8619 cd conftest
8620 mkdir out
8621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8623 lt_compiler_flag="-o out/conftest2.$ac_objext"
8624 # Insert the option either (1) after the last *FLAGS variable, or
8625 # (2) before a word containing "conftest.", or (3) at the end.
8626 # Note that $ac_compile itself does not contain backslashes and begins
8627 # with a dollar sign (not a hyphen), so the echo should work correctly.
8628 lt_compile=`echo "$ac_compile" | $SED \
8629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8631 -e 's:$: $lt_compiler_flag:'`
8632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8633 (eval "$lt_compile" 2>out/conftest.err)
8634 ac_status=$?
8635 cat out/conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8638 then
8639 # The compiler can only warn and ignore the option if not recognized
8640 # So say no if there are warnings
8641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8644 lt_cv_prog_compiler_c_o=yes
8647 chmod u+w . 2>&5
8648 $RM conftest*
8649 # SGI C++ compiler will create directory out/ii_files/ for
8650 # template instantiation
8651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8652 $RM out/* && rmdir out
8653 cd ..
8654 $RM -r conftest
8655 $RM conftest*
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8659 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8664 hard_links="nottested"
8665 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8666 # do not overwrite the value of need_locks provided by the user
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8668 $as_echo_n "checking if we can lock with hard links... " >&6; }
8669 hard_links=yes
8670 $RM conftest*
8671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8672 touch conftest.a
8673 ln conftest.a conftest.b 2>&5 || hard_links=no
8674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8676 $as_echo "$hard_links" >&6; }
8677 if test "$hard_links" = no; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8679 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8680 need_locks=warn
8682 else
8683 need_locks=no
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8692 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8694 runpath_var=
8695 allow_undefined_flag=
8696 always_export_symbols=no
8697 archive_cmds=
8698 archive_expsym_cmds=
8699 compiler_needs_object=no
8700 enable_shared_with_static_runtimes=no
8701 export_dynamic_flag_spec=
8702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8703 hardcode_automatic=no
8704 hardcode_direct=no
8705 hardcode_direct_absolute=no
8706 hardcode_libdir_flag_spec=
8707 hardcode_libdir_flag_spec_ld=
8708 hardcode_libdir_separator=
8709 hardcode_minus_L=no
8710 hardcode_shlibpath_var=unsupported
8711 inherit_rpath=no
8712 link_all_deplibs=unknown
8713 module_cmds=
8714 module_expsym_cmds=
8715 old_archive_from_new_cmds=
8716 old_archive_from_expsyms_cmds=
8717 thread_safe_flag_spec=
8718 whole_archive_flag_spec=
8719 # include_expsyms should be a list of space-separated symbols to be *always*
8720 # included in the symbol list
8721 include_expsyms=
8722 # exclude_expsyms can be an extended regexp of symbols to exclude
8723 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8724 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8725 # as well as any symbol that contains `d'.
8726 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8727 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8728 # platforms (ab)use it in PIC code, but their linkers get confused if
8729 # the symbol is explicitly referenced. Since portable code cannot
8730 # rely on this symbol name, it's probably fine to never include it in
8731 # preloaded symbol tables.
8732 # Exclude shared library initialization/finalization symbols.
8733 extract_expsyms_cmds=
8735 case $host_os in
8736 cygwin* | mingw* | pw32* | cegcc*)
8737 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8738 # When not using gcc, we currently assume that we are using
8739 # Microsoft Visual C++.
8740 if test "$GCC" != yes; then
8741 with_gnu_ld=no
8744 interix*)
8745 # we just hope/assume this is gcc and not c89 (= MSVC++)
8746 with_gnu_ld=yes
8748 openbsd*)
8749 with_gnu_ld=no
8751 esac
8753 ld_shlibs=yes
8755 # On some targets, GNU ld is compatible enough with the native linker
8756 # that we're better off using the native interface for both.
8757 lt_use_gnu_ld_interface=no
8758 if test "$with_gnu_ld" = yes; then
8759 case $host_os in
8760 aix*)
8761 # The AIX port of GNU ld has always aspired to compatibility
8762 # with the native linker. However, as the warning in the GNU ld
8763 # block says, versions before 2.19.5* couldn't really create working
8764 # shared libraries, regardless of the interface used.
8765 case `$LD -v 2>&1` in
8766 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8767 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8768 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8770 lt_use_gnu_ld_interface=yes
8772 esac
8775 lt_use_gnu_ld_interface=yes
8777 esac
8780 if test "$lt_use_gnu_ld_interface" = yes; then
8781 # If archive_cmds runs LD, not CC, wlarc should be empty
8782 wlarc='${wl}'
8784 # Set some defaults for GNU ld with shared library support. These
8785 # are reset later if shared libraries are not supported. Putting them
8786 # here allows them to be overridden if necessary.
8787 runpath_var=LD_RUN_PATH
8788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789 export_dynamic_flag_spec='${wl}--export-dynamic'
8790 # ancient GNU ld didn't support --whole-archive et. al.
8791 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8792 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8793 else
8794 whole_archive_flag_spec=
8796 supports_anon_versioning=no
8797 case `$LD -v 2>&1` in
8798 *GNU\ gold*) supports_anon_versioning=yes ;;
8799 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8800 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8801 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8802 *\ 2.11.*) ;; # other 2.11 versions
8803 *) supports_anon_versioning=yes ;;
8804 esac
8806 # See if GNU ld supports shared libraries.
8807 case $host_os in
8808 aix[3-9]*)
8809 # On AIX/PPC, the GNU linker is very broken
8810 if test "$host_cpu" != ia64; then
8811 ld_shlibs=no
8812 cat <<_LT_EOF 1>&2
8814 *** Warning: the GNU linker, at least up to release 2.19, is reported
8815 *** to be unable to reliably create shared libraries on AIX.
8816 *** Therefore, libtool is disabling shared libraries support. If you
8817 *** really care for shared libraries, you may want to install binutils
8818 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8819 *** You will then need to restart the configuration process.
8821 _LT_EOF
8825 amigaos*)
8826 case $host_cpu in
8827 powerpc)
8828 # see comment about AmigaOS4 .so support
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds=''
8832 m68k)
8833 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)'
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_minus_L=yes
8837 esac
8840 beos*)
8841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8842 allow_undefined_flag=unsupported
8843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8844 # support --undefined. This deserves some investigation. FIXME
8845 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 else
8847 ld_shlibs=no
8851 cygwin* | mingw* | pw32* | cegcc*)
8852 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8853 # as there is no search path for DLLs.
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 export_dynamic_flag_spec='${wl}--export-all-symbols'
8856 allow_undefined_flag=unsupported
8857 always_export_symbols=no
8858 enable_shared_with_static_runtimes=yes
8859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 # If the export-symbols file already is a .def file (1st line
8864 # is EXPORTS), use it as is; otherwise, prepend...
8865 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8866 cp $export_symbols $output_objdir/$soname.def;
8867 else
8868 echo EXPORTS > $output_objdir/$soname.def;
8869 cat $export_symbols >> $output_objdir/$soname.def;
8871 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 else
8873 ld_shlibs=no
8877 haiku*)
8878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879 link_all_deplibs=yes
8882 interix[3-9]*)
8883 hardcode_direct=no
8884 hardcode_shlibpath_var=no
8885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8886 export_dynamic_flag_spec='${wl}-E'
8887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8888 # Instead, shared libraries are loaded at an image base (0x10000000 by
8889 # default) and relocated if they conflict, which is a slow very memory
8890 # consuming and fragmenting process. To avoid this, we pick a random,
8891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8892 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8894 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'
8897 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8898 tmp_diet=no
8899 if test "$host_os" = linux-dietlibc; then
8900 case $cc_basename in
8901 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8902 esac
8904 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8905 && test "$tmp_diet" = no
8906 then
8907 tmp_addflag=
8908 tmp_sharedflag='-shared'
8909 case $cc_basename,$host_cpu in
8910 pgcc*) # Portland Group C compiler
8911 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'
8912 tmp_addflag=' $pic_flag'
8914 pgf77* | pgf90* | pgf95* | pgfortran*)
8915 # Portland Group f77 and f90 compilers
8916 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8917 tmp_addflag=' $pic_flag -Mnomain' ;;
8918 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8919 tmp_addflag=' -i_dynamic' ;;
8920 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8921 tmp_addflag=' -i_dynamic -nofor_main' ;;
8922 ifc* | ifort*) # Intel Fortran compiler
8923 tmp_addflag=' -nofor_main' ;;
8924 lf95*) # Lahey Fortran 8.1
8925 whole_archive_flag_spec=
8926 tmp_sharedflag='--shared' ;;
8927 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8928 tmp_sharedflag='-qmkshrobj'
8929 tmp_addflag= ;;
8930 nvcc*) # Cuda Compiler Driver 2.2
8931 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'
8932 compiler_needs_object=yes
8934 esac
8935 case `$CC -V 2>&1 | sed 5q` in
8936 *Sun\ C*) # Sun C 5.9
8937 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'
8938 compiler_needs_object=yes
8939 tmp_sharedflag='-G' ;;
8940 *Sun\ F*) # Sun Fortran 8.3
8941 tmp_sharedflag='-G' ;;
8942 esac
8943 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8945 if test "x$supports_anon_versioning" = xyes; then
8946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8948 echo "local: *; };" >> $output_objdir/$libname.ver~
8949 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8952 case $cc_basename in
8953 xlf* | bgf* | bgxlf* | mpixlf*)
8954 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8955 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8956 hardcode_libdir_flag_spec=
8957 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8958 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8959 if test "x$supports_anon_versioning" = xyes; then
8960 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8961 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8962 echo "local: *; };" >> $output_objdir/$libname.ver~
8963 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8966 esac
8967 else
8968 ld_shlibs=no
8972 netbsd*)
8973 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8974 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8975 wlarc=
8976 else
8977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982 solaris*)
8983 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8984 ld_shlibs=no
8985 cat <<_LT_EOF 1>&2
8987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8988 *** create shared libraries on Solaris systems. Therefore, libtool
8989 *** is disabling shared libraries support. We urge you to upgrade GNU
8990 *** binutils to release 2.9.1 or newer. Another option is to modify
8991 *** your PATH or compiler configuration so that the native linker is
8992 *** used, and then restart.
8994 _LT_EOF
8995 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998 else
8999 ld_shlibs=no
9003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9004 case `$LD -v 2>&1` in
9005 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9006 ld_shlibs=no
9007 cat <<_LT_EOF 1>&2
9009 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9010 *** reliably create shared libraries on SCO systems. Therefore, libtool
9011 *** is disabling shared libraries support. We urge you to upgrade GNU
9012 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9013 *** your PATH or compiler configuration so that the native linker is
9014 *** used, and then restart.
9016 _LT_EOF
9019 # For security reasons, it is highly recommended that you always
9020 # use absolute paths for naming shared libraries, and exclude the
9021 # DT_RUNPATH tag from executables and libraries. But doing so
9022 # requires that you compile everything twice, which is a pain.
9023 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9027 else
9028 ld_shlibs=no
9031 esac
9034 sunos4*)
9035 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9036 wlarc=
9037 hardcode_direct=yes
9038 hardcode_shlibpath_var=no
9042 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9045 else
9046 ld_shlibs=no
9049 esac
9051 if test "$ld_shlibs" = no; then
9052 runpath_var=
9053 hardcode_libdir_flag_spec=
9054 export_dynamic_flag_spec=
9055 whole_archive_flag_spec=
9057 else
9058 # PORTME fill in a description of your system's linker (not GNU ld)
9059 case $host_os in
9060 aix3*)
9061 allow_undefined_flag=unsupported
9062 always_export_symbols=yes
9063 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'
9064 # Note: this linker hardcodes the directories in LIBPATH if there
9065 # are no directories specified by -L.
9066 hardcode_minus_L=yes
9067 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9068 # Neither direct hardcoding nor static linking is supported with a
9069 # broken collect2.
9070 hardcode_direct=unsupported
9074 aix[4-9]*)
9075 if test "$host_cpu" = ia64; then
9076 # On IA64, the linker does run time linking by default, so we don't
9077 # have to do anything special.
9078 aix_use_runtimelinking=no
9079 exp_sym_flag='-Bexport'
9080 no_entry_flag=""
9081 else
9082 # If we're using GNU nm, then we don't want the "-C" option.
9083 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9084 # Also, AIX nm treats weak defined symbols like other global
9085 # defined symbols, whereas GNU nm marks them as "W".
9086 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9087 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'
9088 else
9089 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'
9091 aix_use_runtimelinking=no
9093 # Test if we are trying to use run time linking or normal
9094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9095 # need to do runtime linking.
9096 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9097 for ld_flag in $LDFLAGS; do
9098 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9099 aix_use_runtimelinking=yes
9100 break
9102 done
9104 esac
9106 exp_sym_flag='-bexport'
9107 no_entry_flag='-bnoentry'
9110 # When large executables or shared objects are built, AIX ld can
9111 # have problems creating the table of contents. If linking a library
9112 # or program results in "error TOC overflow" add -mminimal-toc to
9113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9116 archive_cmds=''
9117 hardcode_direct=yes
9118 hardcode_direct_absolute=yes
9119 hardcode_libdir_separator=':'
9120 link_all_deplibs=yes
9121 file_list_spec='${wl}-f,'
9123 if test "$GCC" = yes; then
9124 case $host_os in aix4.[012]|aix4.[012].*)
9125 # We only want to do this on AIX 4.2 and lower, the check
9126 # below for broken collect2 doesn't work under 4.3+
9127 collect2name=`${CC} -print-prog-name=collect2`
9128 if test -f "$collect2name" &&
9129 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9130 then
9131 # We have reworked collect2
9133 else
9134 # We have old collect2
9135 hardcode_direct=unsupported
9136 # It fails to find uninstalled libraries when the uninstalled
9137 # path is not listed in the libpath. Setting hardcode_minus_L
9138 # to unsupported forces relinking
9139 hardcode_minus_L=yes
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_libdir_separator=
9144 esac
9145 shared_flag='-shared'
9146 if test "$aix_use_runtimelinking" = yes; then
9147 shared_flag="$shared_flag "'${wl}-G'
9149 else
9150 # not using gcc
9151 if test "$host_cpu" = ia64; then
9152 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9153 # chokes on -Wl,-G. The following line is correct:
9154 shared_flag='-G'
9155 else
9156 if test "$aix_use_runtimelinking" = yes; then
9157 shared_flag='${wl}-G'
9158 else
9159 shared_flag='${wl}-bM:SRE'
9164 export_dynamic_flag_spec='${wl}-bexpall'
9165 # It seems that -bexpall does not export symbols beginning with
9166 # underscore (_), so it is better to generate a list of symbols to export.
9167 always_export_symbols=yes
9168 if test "$aix_use_runtimelinking" = yes; then
9169 # Warning - without using the other runtime loading flags (-brtl),
9170 # -berok will link without error, but may produce a broken library.
9171 allow_undefined_flag='-berok'
9172 # Determine the default libpath from the value encoded in an
9173 # empty executable.
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9178 main ()
9182 return 0;
9184 _ACEOF
9185 if ac_fn_c_try_link "$LINENO"; then :
9187 lt_aix_libpath_sed='
9188 /Import File Strings/,/^$/ {
9189 /^0/ {
9190 s/^0 *\(.*\)$/\1/
9194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9195 # Check for a 64-bit object if we didn't find anything.
9196 if test -z "$aix_libpath"; then
9197 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9205 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"
9206 else
9207 if test "$host_cpu" = ia64; then
9208 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9209 allow_undefined_flag="-z nodefs"
9210 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"
9211 else
9212 # Determine the default libpath from the value encoded in an
9213 # empty executable.
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9218 main ()
9222 return 0;
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"; then :
9227 lt_aix_libpath_sed='
9228 /Import File Strings/,/^$/ {
9229 /^0/ {
9230 s/^0 *\(.*\)$/\1/
9234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9235 # Check for a 64-bit object if we didn't find anything.
9236 if test -z "$aix_libpath"; then
9237 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9244 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9245 # Warning - without using the other run time loading flags,
9246 # -berok will link without error, but may produce a broken library.
9247 no_undefined_flag=' ${wl}-bernotok'
9248 allow_undefined_flag=' ${wl}-berok'
9249 if test "$with_gnu_ld" = yes; then
9250 # We only use this code for GNU lds that support --whole-archive.
9251 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9252 else
9253 # Exported symbols can be pulled into shared objects from archives
9254 whole_archive_flag_spec='$convenience'
9256 archive_cmds_need_lc=yes
9257 # This is similar to how AIX traditionally builds its shared libraries.
9258 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'
9263 amigaos*)
9264 case $host_cpu in
9265 powerpc)
9266 # see comment about AmigaOS4 .so support
9267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268 archive_expsym_cmds=''
9270 m68k)
9271 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)'
9272 hardcode_libdir_flag_spec='-L$libdir'
9273 hardcode_minus_L=yes
9275 esac
9278 bsdi[45]*)
9279 export_dynamic_flag_spec=-rdynamic
9282 cygwin* | mingw* | pw32* | cegcc*)
9283 # When not using gcc, we currently assume that we are using
9284 # Microsoft Visual C++.
9285 # hardcode_libdir_flag_spec is actually meaningless, as there is
9286 # no search path for DLLs.
9287 hardcode_libdir_flag_spec=' '
9288 allow_undefined_flag=unsupported
9289 # Tell ltmain to make .lib files, not .a files.
9290 libext=lib
9291 # Tell ltmain to make .dll files, not .so files.
9292 shrext_cmds=".dll"
9293 # FIXME: Setting linknames here is a bad hack.
9294 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9295 # The linker will automatically build a .lib file if we build a DLL.
9296 old_archive_from_new_cmds='true'
9297 # FIXME: Should let the user specify the lib program.
9298 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9299 fix_srcfile_path='`cygpath -w "$srcfile"`'
9300 enable_shared_with_static_runtimes=yes
9303 darwin* | rhapsody*)
9306 archive_cmds_need_lc=no
9307 hardcode_direct=no
9308 hardcode_automatic=yes
9309 hardcode_shlibpath_var=unsupported
9310 if test "$lt_cv_ld_force_load" = "yes"; then
9311 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\"`'
9312 else
9313 whole_archive_flag_spec=''
9315 link_all_deplibs=yes
9316 allow_undefined_flag="$_lt_dar_allow_undefined"
9317 case $cc_basename in
9318 ifort*) _lt_dar_can_shared=yes ;;
9319 *) _lt_dar_can_shared=$GCC ;;
9320 esac
9321 if test "$_lt_dar_can_shared" = "yes"; then
9322 output_verbose_link_cmd=func_echo_all
9323 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9324 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9325 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}"
9326 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}"
9328 else
9329 ld_shlibs=no
9334 dgux*)
9335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 hardcode_shlibpath_var=no
9340 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9341 # support. Future versions do this automatically, but an explicit c++rt0.o
9342 # does not break anything, and helps significantly (at the cost of a little
9343 # extra space).
9344 freebsd2.2*)
9345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9346 hardcode_libdir_flag_spec='-R$libdir'
9347 hardcode_direct=yes
9348 hardcode_shlibpath_var=no
9351 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9352 freebsd2.*)
9353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_direct=yes
9355 hardcode_minus_L=yes
9356 hardcode_shlibpath_var=no
9359 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9360 freebsd* | dragonfly*)
9361 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9362 hardcode_libdir_flag_spec='-R$libdir'
9363 hardcode_direct=yes
9364 hardcode_shlibpath_var=no
9367 hpux9*)
9368 if test "$GCC" = yes; then
9369 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'
9370 else
9371 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'
9373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9374 hardcode_libdir_separator=:
9375 hardcode_direct=yes
9377 # hardcode_minus_L: Not really in the search PATH,
9378 # but as the default location of the library.
9379 hardcode_minus_L=yes
9380 export_dynamic_flag_spec='${wl}-E'
9383 hpux10*)
9384 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9386 else
9387 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9389 if test "$with_gnu_ld" = no; then
9390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9391 hardcode_libdir_flag_spec_ld='+b $libdir'
9392 hardcode_libdir_separator=:
9393 hardcode_direct=yes
9394 hardcode_direct_absolute=yes
9395 export_dynamic_flag_spec='${wl}-E'
9396 # hardcode_minus_L: Not really in the search PATH,
9397 # but as the default location of the library.
9398 hardcode_minus_L=yes
9402 hpux11*)
9403 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9404 case $host_cpu in
9405 hppa*64*)
9406 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 ia64*)
9409 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9414 esac
9415 else
9416 case $host_cpu in
9417 hppa*64*)
9418 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 ia64*)
9421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9425 # Older versions of the 11.00 compiler do not understand -b yet
9426 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9428 $as_echo_n "checking if $CC understands -b... " >&6; }
9429 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 lt_cv_prog_compiler__b=no
9433 save_LDFLAGS="$LDFLAGS"
9434 LDFLAGS="$LDFLAGS -b"
9435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9437 # The linker can only warn and ignore the option if not recognized
9438 # So say no if there are warnings
9439 if test -s conftest.err; then
9440 # Append any errors to the config.log.
9441 cat conftest.err 1>&5
9442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444 if diff conftest.exp conftest.er2 >/dev/null; then
9445 lt_cv_prog_compiler__b=yes
9447 else
9448 lt_cv_prog_compiler__b=yes
9451 $RM -r conftest*
9452 LDFLAGS="$save_LDFLAGS"
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9456 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9458 if test x"$lt_cv_prog_compiler__b" = xyes; then
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9460 else
9461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9465 esac
9467 if test "$with_gnu_ld" = no; then
9468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9469 hardcode_libdir_separator=:
9471 case $host_cpu in
9472 hppa*64*|ia64*)
9473 hardcode_direct=no
9474 hardcode_shlibpath_var=no
9477 hardcode_direct=yes
9478 hardcode_direct_absolute=yes
9479 export_dynamic_flag_spec='${wl}-E'
9481 # hardcode_minus_L: Not really in the search PATH,
9482 # but as the default location of the library.
9483 hardcode_minus_L=yes
9485 esac
9489 irix5* | irix6* | nonstopux*)
9490 if test "$GCC" = yes; then
9491 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'
9492 # Try to use the -exported_symbol ld option, if it does not
9493 # work, assume that -exports_file does not work either and
9494 # implicitly export all symbols.
9495 save_LDFLAGS="$LDFLAGS"
9496 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499 int foo(void) {}
9500 _ACEOF
9501 if ac_fn_c_try_link "$LINENO"; then :
9502 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'
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507 LDFLAGS="$save_LDFLAGS"
9508 else
9509 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'
9510 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'
9512 archive_cmds_need_lc='no'
9513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9514 hardcode_libdir_separator=:
9515 inherit_rpath=yes
9516 link_all_deplibs=yes
9519 netbsd*)
9520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9522 else
9523 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9525 hardcode_libdir_flag_spec='-R$libdir'
9526 hardcode_direct=yes
9527 hardcode_shlibpath_var=no
9530 newsos6)
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_direct=yes
9533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534 hardcode_libdir_separator=:
9535 hardcode_shlibpath_var=no
9538 *nto* | *qnx*)
9541 openbsd*)
9542 if test -f /usr/libexec/ld.so; then
9543 hardcode_direct=yes
9544 hardcode_shlibpath_var=no
9545 hardcode_direct_absolute=yes
9546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9550 export_dynamic_flag_spec='${wl}-E'
9551 else
9552 case $host_os in
9553 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9555 hardcode_libdir_flag_spec='-R$libdir'
9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9561 esac
9563 else
9564 ld_shlibs=no
9568 os2*)
9569 hardcode_libdir_flag_spec='-L$libdir'
9570 hardcode_minus_L=yes
9571 allow_undefined_flag=unsupported
9572 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'
9573 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9576 osf3*)
9577 if test "$GCC" = yes; then
9578 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9579 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'
9580 else
9581 allow_undefined_flag=' -expect_unresolved \*'
9582 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'
9584 archive_cmds_need_lc='no'
9585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586 hardcode_libdir_separator=:
9589 osf4* | osf5*) # as osf3* with the addition of -msym flag
9590 if test "$GCC" = yes; then
9591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9592 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'
9593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9594 else
9595 allow_undefined_flag=' -expect_unresolved \*'
9596 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'
9597 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~
9598 $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'
9600 # Both c and cxx compiler support -rpath directly
9601 hardcode_libdir_flag_spec='-rpath $libdir'
9603 archive_cmds_need_lc='no'
9604 hardcode_libdir_separator=:
9607 solaris*)
9608 no_undefined_flag=' -z defs'
9609 if test "$GCC" = yes; then
9610 wlarc='${wl}'
9611 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9613 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9614 else
9615 case `$CC -V 2>&1` in
9616 *"Compilers 5.0"*)
9617 wlarc=''
9618 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9620 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9623 wlarc='${wl}'
9624 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9626 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9628 esac
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_shlibpath_var=no
9632 case $host_os in
9633 solaris2.[0-5] | solaris2.[0-5].*) ;;
9635 # The compiler driver will combine and reorder linker options,
9636 # but understands `-z linker_flag'. GCC discards it without `$wl',
9637 # but is careful enough not to reorder.
9638 # Supported since Solaris 2.6 (maybe 2.5.1?)
9639 if test "$GCC" = yes; then
9640 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9641 else
9642 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9645 esac
9646 link_all_deplibs=yes
9649 sunos4*)
9650 if test "x$host_vendor" = xsequent; then
9651 # Use $CC to link under sequent, because it throws in some extra .o
9652 # files that make .init and .fini sections work.
9653 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9654 else
9655 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_libdir_flag_spec='-L$libdir'
9658 hardcode_direct=yes
9659 hardcode_minus_L=yes
9660 hardcode_shlibpath_var=no
9663 sysv4)
9664 case $host_vendor in
9665 sni)
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_direct=yes # is this really true???
9669 siemens)
9670 ## LD is ld it makes a PLAMLIB
9671 ## CC just makes a GrossModule.
9672 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9673 reload_cmds='$CC -r -o $output$reload_objs'
9674 hardcode_direct=no
9676 motorola)
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9680 esac
9681 runpath_var='LD_RUN_PATH'
9682 hardcode_shlibpath_var=no
9685 sysv4.3*)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_shlibpath_var=no
9688 export_dynamic_flag_spec='-Bexport'
9691 sysv4*MP*)
9692 if test -d /usr/nec; then
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_shlibpath_var=no
9695 runpath_var=LD_RUN_PATH
9696 hardcode_runpath_var=yes
9697 ld_shlibs=yes
9701 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9702 no_undefined_flag='${wl}-z,text'
9703 archive_cmds_need_lc=no
9704 hardcode_shlibpath_var=no
9705 runpath_var='LD_RUN_PATH'
9707 if test "$GCC" = yes; then
9708 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 else
9711 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 sysv5* | sco3.2v5* | sco5v6*)
9717 # Note: We can NOT use -z defs as we might desire, because we do not
9718 # link with -lc, and that would cause any symbols used from libc to
9719 # always be unresolved, which means just about no library would
9720 # ever link correctly. If we're not using GNU ld we use -z text
9721 # though, which does catch some bad symbols but isn't as heavy-handed
9722 # as -z defs.
9723 no_undefined_flag='${wl}-z,text'
9724 allow_undefined_flag='${wl}-z,nodefs'
9725 archive_cmds_need_lc=no
9726 hardcode_shlibpath_var=no
9727 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9728 hardcode_libdir_separator=':'
9729 link_all_deplibs=yes
9730 export_dynamic_flag_spec='${wl}-Bexport'
9731 runpath_var='LD_RUN_PATH'
9733 if test "$GCC" = yes; then
9734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 uts4*)
9743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 hardcode_libdir_flag_spec='-L$libdir'
9745 hardcode_shlibpath_var=no
9749 ld_shlibs=no
9751 esac
9753 if test x$host_vendor = xsni; then
9754 case $host in
9755 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9756 export_dynamic_flag_spec='${wl}-Blargedynsym'
9758 esac
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9763 $as_echo "$ld_shlibs" >&6; }
9764 test "$ld_shlibs" = no && can_build_shared=no
9766 with_gnu_ld=$with_gnu_ld
9783 # Do we need to explicitly link libc?
9785 case "x$archive_cmds_need_lc" in
9786 x|xyes)
9787 # Assume -lc should be added
9788 archive_cmds_need_lc=yes
9790 if test "$enable_shared" = yes && test "$GCC" = yes; then
9791 case $archive_cmds in
9792 *'~'*)
9793 # FIXME: we may have to deal with multi-command sequences.
9795 '$CC '*)
9796 # Test whether the compiler implicitly links with -lc since on some
9797 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9798 # to ld, don't add -lc before -lgcc.
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9800 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9801 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 $RM conftest*
9805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9808 (eval $ac_compile) 2>&5
9809 ac_status=$?
9810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9811 test $ac_status = 0; } 2>conftest.err; then
9812 soname=conftest
9813 lib=conftest
9814 libobjs=conftest.$ac_objext
9815 deplibs=
9816 wl=$lt_prog_compiler_wl
9817 pic_flag=$lt_prog_compiler_pic
9818 compiler_flags=-v
9819 linker_flags=-v
9820 verstring=
9821 output_objdir=.
9822 libname=conftest
9823 lt_save_allow_undefined_flag=$allow_undefined_flag
9824 allow_undefined_flag=
9825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9826 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9827 ac_status=$?
9828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829 test $ac_status = 0; }
9830 then
9831 lt_cv_archive_cmds_need_lc=no
9832 else
9833 lt_cv_archive_cmds_need_lc=yes
9835 allow_undefined_flag=$lt_save_allow_undefined_flag
9836 else
9837 cat conftest.err 1>&5
9839 $RM conftest*
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9843 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9844 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9846 esac
9849 esac
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10008 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10010 if test "$GCC" = yes; then
10011 case $host_os in
10012 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10013 *) lt_awk_arg="/^libraries:/" ;;
10014 esac
10015 case $host_os in
10016 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10017 *) lt_sed_strip_eq="s,=/,/,g" ;;
10018 esac
10019 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10020 case $lt_search_path_spec in
10021 *\;*)
10022 # if the path contains ";" then we assume it to be the separator
10023 # otherwise default to the standard path separator (i.e. ":") - it is
10024 # assumed that no part of a normal pathname contains ";" but that should
10025 # okay in the real world where ";" in dirpaths is itself problematic.
10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10029 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10031 esac
10032 # Ok, now we have the path, separated by spaces, we can step through it
10033 # and add multilib dir if necessary.
10034 lt_tmp_lt_search_path_spec=
10035 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10036 for lt_sys_path in $lt_search_path_spec; do
10037 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10039 else
10040 test -d "$lt_sys_path" && \
10041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10043 done
10044 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10045 BEGIN {RS=" "; FS="/|\n";} {
10046 lt_foo="";
10047 lt_count=0;
10048 for (lt_i = NF; lt_i > 0; lt_i--) {
10049 if ($lt_i != "" && $lt_i != ".") {
10050 if ($lt_i == "..") {
10051 lt_count++;
10052 } else {
10053 if (lt_count == 0) {
10054 lt_foo="/" $lt_i lt_foo;
10055 } else {
10056 lt_count--;
10061 if (lt_foo != "") { lt_freq[lt_foo]++; }
10062 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10064 # AWK program above erroneously prepends '/' to C:/dos/paths
10065 # for these hosts.
10066 case $host_os in
10067 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10068 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10069 esac
10070 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10071 else
10072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10074 library_names_spec=
10075 libname_spec='lib$name'
10076 soname_spec=
10077 shrext_cmds=".so"
10078 postinstall_cmds=
10079 postuninstall_cmds=
10080 finish_cmds=
10081 finish_eval=
10082 shlibpath_var=
10083 shlibpath_overrides_runpath=unknown
10084 version_type=none
10085 dynamic_linker="$host_os ld.so"
10086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10087 need_lib_prefix=unknown
10088 hardcode_into_libs=no
10090 # when you set need_version to no, make sure it does not cause -set_version
10091 # flags to be left without arguments
10092 need_version=unknown
10094 case $host_os in
10095 aix3*)
10096 version_type=linux
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10098 shlibpath_var=LIBPATH
10100 # AIX 3 has no versioning support, so we append a major version to the name.
10101 soname_spec='${libname}${release}${shared_ext}$major'
10104 aix[4-9]*)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 hardcode_into_libs=yes
10109 if test "$host_cpu" = ia64; then
10110 # AIX 5 supports IA64
10111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 else
10114 # With GCC up to 2.95.x, collect2 would create an import file
10115 # for dependence libraries. The import file would start with
10116 # the line `#! .'. This would cause the generated library to
10117 # depend on `.', always an invalid library. This was fixed in
10118 # development snapshots of GCC prior to 3.0.
10119 case $host_os in
10120 aix4 | aix4.[01] | aix4.[01].*)
10121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10122 echo ' yes '
10123 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10125 else
10126 can_build_shared=no
10129 esac
10130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10131 # soname into executable. Probably we can add versioning support to
10132 # collect2, so additional links can be useful in future.
10133 if test "$aix_use_runtimelinking" = yes; then
10134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10135 # instead of lib<name>.a to let people know that these are not
10136 # typical AIX shared libraries.
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 else
10139 # We preserve .a as extension for shared libraries through AIX4.2
10140 # and later when we are not doing run time linking.
10141 library_names_spec='${libname}${release}.a $libname.a'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10144 shlibpath_var=LIBPATH
10148 amigaos*)
10149 case $host_cpu in
10150 powerpc)
10151 # Since July 2007 AmigaOS4 officially supports .so libraries.
10152 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155 m68k)
10156 library_names_spec='$libname.ixlibrary $libname.a'
10157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10158 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'
10160 esac
10163 beos*)
10164 library_names_spec='${libname}${shared_ext}'
10165 dynamic_linker="$host_os ld.so"
10166 shlibpath_var=LIBRARY_PATH
10169 bsdi[45]*)
10170 version_type=linux
10171 need_version=no
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10175 shlibpath_var=LD_LIBRARY_PATH
10176 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10177 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10178 # the default ld.so.conf also contains /usr/contrib/lib and
10179 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10180 # libtool to hard-code these into programs
10183 cygwin* | mingw* | pw32* | cegcc*)
10184 version_type=windows
10185 shrext_cmds=".dll"
10186 need_version=no
10187 need_lib_prefix=no
10189 case $GCC,$host_os in
10190 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10191 library_names_spec='$libname.dll.a'
10192 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10193 postinstall_cmds='base_file=`basename \${file}`~
10194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10195 dldir=$destdir/`dirname \$dlpath`~
10196 test -d \$dldir || mkdir -p \$dldir~
10197 $install_prog $dir/$dlname \$dldir/$dlname~
10198 chmod a+x \$dldir/$dlname~
10199 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10200 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10203 dlpath=$dir/\$dldll~
10204 $RM \$dlpath'
10205 shlibpath_overrides_runpath=yes
10207 case $host_os in
10208 cygwin*)
10209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10212 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10214 mingw* | cegcc*)
10215 # MinGW DLLs use traditional 'lib' prefix
10216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10218 pw32*)
10219 # pw32 DLLs use 'pw' prefix rather than 'lib'
10220 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10222 esac
10226 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10228 esac
10229 dynamic_linker='Win32 ld.exe'
10230 # FIXME: first we should search . and the directory the executable is in
10231 shlibpath_var=PATH
10234 darwin* | rhapsody*)
10235 dynamic_linker="$host_os dyld"
10236 version_type=darwin
10237 need_lib_prefix=no
10238 need_version=no
10239 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10240 soname_spec='${libname}${release}${major}$shared_ext'
10241 shlibpath_overrides_runpath=yes
10242 shlibpath_var=DYLD_LIBRARY_PATH
10243 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10245 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10249 dgux*)
10250 version_type=linux
10251 need_lib_prefix=no
10252 need_version=no
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10258 freebsd* | dragonfly*)
10259 # DragonFly does not have aout. When/if they implement a new
10260 # versioning mechanism, adjust this.
10261 if test -x /usr/bin/objformat; then
10262 objformat=`/usr/bin/objformat`
10263 else
10264 case $host_os in
10265 freebsd[23].*) objformat=aout ;;
10266 *) objformat=elf ;;
10267 esac
10269 version_type=freebsd-$objformat
10270 case $version_type in
10271 freebsd-elf*)
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10273 need_version=no
10274 need_lib_prefix=no
10276 freebsd-*)
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10278 need_version=yes
10280 esac
10281 shlibpath_var=LD_LIBRARY_PATH
10282 case $host_os in
10283 freebsd2.*)
10284 shlibpath_overrides_runpath=yes
10286 freebsd3.[01]* | freebsdelf3.[01]*)
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10290 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10291 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10292 shlibpath_overrides_runpath=no
10293 hardcode_into_libs=yes
10295 *) # from 4.6 on, and DragonFly
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10299 esac
10302 gnu*)
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 hardcode_into_libs=yes
10312 haiku*)
10313 version_type=linux
10314 need_lib_prefix=no
10315 need_version=no
10316 dynamic_linker="$host_os runtime_loader"
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 shlibpath_var=LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes
10321 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10322 hardcode_into_libs=yes
10325 hpux9* | hpux10* | hpux11*)
10326 # Give a soname corresponding to the major version so that dld.sl refuses to
10327 # link against other versions.
10328 version_type=sunos
10329 need_lib_prefix=no
10330 need_version=no
10331 case $host_cpu in
10332 ia64*)
10333 shrext_cmds='.so'
10334 hardcode_into_libs=yes
10335 dynamic_linker="$host_os dld.so"
10336 shlibpath_var=LD_LIBRARY_PATH
10337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 if test "X$HPUX_IA64_MODE" = X32; then
10341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10342 else
10343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10347 hppa*64*)
10348 shrext_cmds='.sl'
10349 hardcode_into_libs=yes
10350 dynamic_linker="$host_os dld.sl"
10351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10359 shrext_cmds='.sl'
10360 dynamic_linker="$host_os dld.sl"
10361 shlibpath_var=SHLIB_PATH
10362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
10366 esac
10367 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10368 postinstall_cmds='chmod 555 $lib'
10369 # or fails outright, so override atomically:
10370 install_override_mode=555
10373 interix[3-9]*)
10374 version_type=linux
10375 need_lib_prefix=no
10376 need_version=no
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=no
10382 hardcode_into_libs=yes
10385 irix5* | irix6* | nonstopux*)
10386 case $host_os in
10387 nonstopux*) version_type=nonstopux ;;
10389 if test "$lt_cv_prog_gnu_ld" = yes; then
10390 version_type=linux
10391 else
10392 version_type=irix
10393 fi ;;
10394 esac
10395 need_lib_prefix=no
10396 need_version=no
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10399 case $host_os in
10400 irix5* | nonstopux*)
10401 libsuff= shlibsuff=
10404 case $LD in # libtool.m4 will add one of these switches to LD
10405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10406 libsuff= shlibsuff= libmagic=32-bit;;
10407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10408 libsuff=32 shlibsuff=N32 libmagic=N32;;
10409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10411 *) libsuff= shlibsuff= libmagic=never-match;;
10412 esac
10414 esac
10415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10416 shlibpath_overrides_runpath=no
10417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10419 hardcode_into_libs=yes
10422 # No shared lib support for Linux oldld, aout, or coff.
10423 linux*oldld* | linux*aout* | linux*coff*)
10424 dynamic_linker=no
10427 # This must be Linux ELF.
10428 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10429 version_type=linux
10430 need_lib_prefix=no
10431 need_version=no
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 shlibpath_overrides_runpath=no
10438 # Some binutils ld are patched to set DT_RUNPATH
10439 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 lt_cv_shlibpath_overrides_runpath=no
10443 save_LDFLAGS=$LDFLAGS
10444 save_libdir=$libdir
10445 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10446 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10451 main ()
10455 return 0;
10457 _ACEOF
10458 if ac_fn_c_try_link "$LINENO"; then :
10459 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10460 lt_cv_shlibpath_overrides_runpath=yes
10463 rm -f core conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10465 LDFLAGS=$save_LDFLAGS
10466 libdir=$save_libdir
10470 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10472 # This implies no fast_install, which is unacceptable.
10473 # Some rework will be needed to allow for fast_install
10474 # before this can be enabled.
10475 hardcode_into_libs=yes
10477 # Append ld.so.conf contents to the search path
10478 if test -f /etc/ld.so.conf; then
10479 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' ' '`
10480 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10483 # We used to test for /lib/ld.so.1 and disable shared libraries on
10484 # powerpc, because MkLinux only supported shared libraries with the
10485 # GNU dynamic linker. Since this was broken with cross compilers,
10486 # most powerpc-linux boxes support dynamic linking these days and
10487 # people can always --disable-shared, the test was removed, and we
10488 # assume the GNU/Linux dynamic linker is in use.
10489 dynamic_linker='GNU/Linux ld.so'
10492 netbsd*)
10493 version_type=sunos
10494 need_lib_prefix=no
10495 need_version=no
10496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10499 dynamic_linker='NetBSD (a.out) ld.so'
10500 else
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 dynamic_linker='NetBSD ld.elf_so'
10505 shlibpath_var=LD_LIBRARY_PATH
10506 shlibpath_overrides_runpath=yes
10507 hardcode_into_libs=yes
10510 newsos6)
10511 version_type=linux
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=yes
10517 *nto* | *qnx*)
10518 version_type=qnx
10519 need_lib_prefix=no
10520 need_version=no
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522 soname_spec='${libname}${release}${shared_ext}$major'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=no
10525 hardcode_into_libs=yes
10526 dynamic_linker='ldqnx.so'
10529 openbsd*)
10530 version_type=sunos
10531 sys_lib_dlsearch_path_spec="/usr/lib"
10532 need_lib_prefix=no
10533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10534 case $host_os in
10535 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10536 *) need_version=no ;;
10537 esac
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10542 case $host_os in
10543 openbsd2.[89] | openbsd2.[89].*)
10544 shlibpath_overrides_runpath=no
10547 shlibpath_overrides_runpath=yes
10549 esac
10550 else
10551 shlibpath_overrides_runpath=yes
10555 os2*)
10556 libname_spec='$name'
10557 shrext_cmds=".dll"
10558 need_lib_prefix=no
10559 library_names_spec='$libname${shared_ext} $libname.a'
10560 dynamic_linker='OS/2 ld.exe'
10561 shlibpath_var=LIBPATH
10564 osf3* | osf4* | osf5*)
10565 version_type=osf
10566 need_lib_prefix=no
10567 need_version=no
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10575 rdos*)
10576 dynamic_linker=no
10579 solaris*)
10580 version_type=linux
10581 need_lib_prefix=no
10582 need_version=no
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=yes
10587 hardcode_into_libs=yes
10588 # ldd complains unless libraries are executable
10589 postinstall_cmds='chmod +x $lib'
10592 sunos4*)
10593 version_type=sunos
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10595 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath=yes
10598 if test "$with_gnu_ld" = yes; then
10599 need_lib_prefix=no
10601 need_version=yes
10604 sysv4 | sysv4.3*)
10605 version_type=linux
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 case $host_vendor in
10610 sni)
10611 shlibpath_overrides_runpath=no
10612 need_lib_prefix=no
10613 runpath_var=LD_RUN_PATH
10615 siemens)
10616 need_lib_prefix=no
10618 motorola)
10619 need_lib_prefix=no
10620 need_version=no
10621 shlibpath_overrides_runpath=no
10622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10624 esac
10627 sysv4*MP*)
10628 if test -d /usr/nec ;then
10629 version_type=linux
10630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10631 soname_spec='$libname${shared_ext}.$major'
10632 shlibpath_var=LD_LIBRARY_PATH
10636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10637 version_type=freebsd-elf
10638 need_lib_prefix=no
10639 need_version=no
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 shlibpath_overrides_runpath=yes
10644 hardcode_into_libs=yes
10645 if test "$with_gnu_ld" = yes; then
10646 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10647 else
10648 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10649 case $host_os in
10650 sco3.2v5*)
10651 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10653 esac
10655 sys_lib_dlsearch_path_spec='/usr/lib'
10658 tpf*)
10659 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10660 version_type=linux
10661 need_lib_prefix=no
10662 need_version=no
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=no
10666 hardcode_into_libs=yes
10669 uts4*)
10670 version_type=linux
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10677 dynamic_linker=no
10679 esac
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10681 $as_echo "$dynamic_linker" >&6; }
10682 test "$dynamic_linker" = no && can_build_shared=no
10684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10685 if test "$GCC" = yes; then
10686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10689 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10690 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10692 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10693 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10788 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10789 hardcode_action=
10790 if test -n "$hardcode_libdir_flag_spec" ||
10791 test -n "$runpath_var" ||
10792 test "X$hardcode_automatic" = "Xyes" ; then
10794 # We can hardcode non-existent directories.
10795 if test "$hardcode_direct" != no &&
10796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10797 # have to relink, otherwise we might link with an installed library
10798 # when we should be linking with a yet-to-be-installed one
10799 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10800 test "$hardcode_minus_L" != no; then
10801 # Linking always hardcodes the temporary library directory.
10802 hardcode_action=relink
10803 else
10804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10805 hardcode_action=immediate
10807 else
10808 # We cannot hardcode anything, or else we can only hardcode existing
10809 # directories.
10810 hardcode_action=unsupported
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10813 $as_echo "$hardcode_action" >&6; }
10815 if test "$hardcode_action" = relink ||
10816 test "$inherit_rpath" = yes; then
10817 # Fast installation is not supported
10818 enable_fast_install=no
10819 elif test "$shlibpath_overrides_runpath" = yes ||
10820 test "$enable_shared" = no; then
10821 # Fast installation is not necessary
10822 enable_fast_install=needless
10830 if test "x$enable_dlopen" != xyes; then
10831 enable_dlopen=unknown
10832 enable_dlopen_self=unknown
10833 enable_dlopen_self_static=unknown
10834 else
10835 lt_cv_dlopen=no
10836 lt_cv_dlopen_libs=
10838 case $host_os in
10839 beos*)
10840 lt_cv_dlopen="load_add_on"
10841 lt_cv_dlopen_libs=
10842 lt_cv_dlopen_self=yes
10845 mingw* | pw32* | cegcc*)
10846 lt_cv_dlopen="LoadLibrary"
10847 lt_cv_dlopen_libs=
10850 cygwin*)
10851 lt_cv_dlopen="dlopen"
10852 lt_cv_dlopen_libs=
10855 darwin*)
10856 # if libdl is installed we need to link against it
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10859 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-ldl $LIBS"
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char dlopen ();
10875 main ()
10877 return dlopen ();
10879 return 0;
10881 _ACEOF
10882 if ac_fn_c_try_link "$LINENO"; then :
10883 ac_cv_lib_dl_dlopen=yes
10884 else
10885 ac_cv_lib_dl_dlopen=no
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10892 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10893 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10895 else
10897 lt_cv_dlopen="dyld"
10898 lt_cv_dlopen_libs=
10899 lt_cv_dlopen_self=yes
10906 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10907 if test "x$ac_cv_func_shl_load" = x""yes; then :
10908 lt_cv_dlopen="shl_load"
10909 else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10911 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10912 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-ldld $LIBS"
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char shl_load ();
10928 main ()
10930 return shl_load ();
10932 return 0;
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936 ac_cv_lib_dld_shl_load=yes
10937 else
10938 ac_cv_lib_dld_shl_load=no
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10946 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10948 else
10949 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10950 if test "x$ac_cv_func_dlopen" = x""yes; then :
10951 lt_cv_dlopen="dlopen"
10952 else
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10954 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10955 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 ac_check_lib_save_LIBS=$LIBS
10959 LIBS="-ldl $LIBS"
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char dlopen ();
10971 main ()
10973 return dlopen ();
10975 return 0;
10977 _ACEOF
10978 if ac_fn_c_try_link "$LINENO"; then :
10979 ac_cv_lib_dl_dlopen=yes
10980 else
10981 ac_cv_lib_dl_dlopen=no
10983 rm -f core conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10988 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10989 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10991 else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10993 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10994 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 ac_check_lib_save_LIBS=$LIBS
10998 LIBS="-lsvld $LIBS"
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char dlopen ();
11010 main ()
11012 return dlopen ();
11014 return 0;
11016 _ACEOF
11017 if ac_fn_c_try_link "$LINENO"; then :
11018 ac_cv_lib_svld_dlopen=yes
11019 else
11020 ac_cv_lib_svld_dlopen=no
11022 rm -f core conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_check_lib_save_LIBS
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11027 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11028 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11030 else
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11032 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11033 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 ac_check_lib_save_LIBS=$LIBS
11037 LIBS="-ldld $LIBS"
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11041 /* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 char dld_link ();
11049 main ()
11051 return dld_link ();
11053 return 0;
11055 _ACEOF
11056 if ac_fn_c_try_link "$LINENO"; then :
11057 ac_cv_lib_dld_dld_link=yes
11058 else
11059 ac_cv_lib_dld_dld_link=no
11061 rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063 LIBS=$ac_check_lib_save_LIBS
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11066 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11067 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11068 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11087 esac
11089 if test "x$lt_cv_dlopen" != xno; then
11090 enable_dlopen=yes
11091 else
11092 enable_dlopen=no
11095 case $lt_cv_dlopen in
11096 dlopen)
11097 save_CPPFLAGS="$CPPFLAGS"
11098 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11100 save_LDFLAGS="$LDFLAGS"
11101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11103 save_LIBS="$LIBS"
11104 LIBS="$lt_cv_dlopen_libs $LIBS"
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11107 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11108 if test "${lt_cv_dlopen_self+set}" = set; then :
11109 $as_echo_n "(cached) " >&6
11110 else
11111 if test "$cross_compiling" = yes; then :
11112 lt_cv_dlopen_self=cross
11113 else
11114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11115 lt_status=$lt_dlunknown
11116 cat > conftest.$ac_ext <<_LT_EOF
11117 #line 11117 "configure"
11118 #include "confdefs.h"
11120 #if HAVE_DLFCN_H
11121 #include <dlfcn.h>
11122 #endif
11124 #include <stdio.h>
11126 #ifdef RTLD_GLOBAL
11127 # define LT_DLGLOBAL RTLD_GLOBAL
11128 #else
11129 # ifdef DL_GLOBAL
11130 # define LT_DLGLOBAL DL_GLOBAL
11131 # else
11132 # define LT_DLGLOBAL 0
11133 # endif
11134 #endif
11136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11137 find out it does not work in some platform. */
11138 #ifndef LT_DLLAZY_OR_NOW
11139 # ifdef RTLD_LAZY
11140 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11141 # else
11142 # ifdef DL_LAZY
11143 # define LT_DLLAZY_OR_NOW DL_LAZY
11144 # else
11145 # ifdef RTLD_NOW
11146 # define LT_DLLAZY_OR_NOW RTLD_NOW
11147 # else
11148 # ifdef DL_NOW
11149 # define LT_DLLAZY_OR_NOW DL_NOW
11150 # else
11151 # define LT_DLLAZY_OR_NOW 0
11152 # endif
11153 # endif
11154 # endif
11155 # endif
11156 #endif
11158 /* When -fvisbility=hidden is used, assume the code has been annotated
11159 correspondingly for the symbols needed. */
11160 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11161 void fnord () __attribute__((visibility("default")));
11162 #endif
11164 void fnord () { int i=42; }
11165 int main ()
11167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11168 int status = $lt_dlunknown;
11170 if (self)
11172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11173 else
11175 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11176 else puts (dlerror ());
11178 /* dlclose (self); */
11180 else
11181 puts (dlerror ());
11183 return status;
11185 _LT_EOF
11186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11187 (eval $ac_link) 2>&5
11188 ac_status=$?
11189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11190 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11191 (./conftest; exit; ) >&5 2>/dev/null
11192 lt_status=$?
11193 case x$lt_status in
11194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11197 esac
11198 else :
11199 # compilation failed
11200 lt_cv_dlopen_self=no
11203 rm -fr conftest*
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11208 $as_echo "$lt_cv_dlopen_self" >&6; }
11210 if test "x$lt_cv_dlopen_self" = xyes; then
11211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11213 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11214 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 if test "$cross_compiling" = yes; then :
11218 lt_cv_dlopen_self_static=cross
11219 else
11220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11221 lt_status=$lt_dlunknown
11222 cat > conftest.$ac_ext <<_LT_EOF
11223 #line 11223 "configure"
11224 #include "confdefs.h"
11226 #if HAVE_DLFCN_H
11227 #include <dlfcn.h>
11228 #endif
11230 #include <stdio.h>
11232 #ifdef RTLD_GLOBAL
11233 # define LT_DLGLOBAL RTLD_GLOBAL
11234 #else
11235 # ifdef DL_GLOBAL
11236 # define LT_DLGLOBAL DL_GLOBAL
11237 # else
11238 # define LT_DLGLOBAL 0
11239 # endif
11240 #endif
11242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11243 find out it does not work in some platform. */
11244 #ifndef LT_DLLAZY_OR_NOW
11245 # ifdef RTLD_LAZY
11246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11247 # else
11248 # ifdef DL_LAZY
11249 # define LT_DLLAZY_OR_NOW DL_LAZY
11250 # else
11251 # ifdef RTLD_NOW
11252 # define LT_DLLAZY_OR_NOW RTLD_NOW
11253 # else
11254 # ifdef DL_NOW
11255 # define LT_DLLAZY_OR_NOW DL_NOW
11256 # else
11257 # define LT_DLLAZY_OR_NOW 0
11258 # endif
11259 # endif
11260 # endif
11261 # endif
11262 #endif
11264 /* When -fvisbility=hidden is used, assume the code has been annotated
11265 correspondingly for the symbols needed. */
11266 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11267 void fnord () __attribute__((visibility("default")));
11268 #endif
11270 void fnord () { int i=42; }
11271 int main ()
11273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11274 int status = $lt_dlunknown;
11276 if (self)
11278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11279 else
11281 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11282 else puts (dlerror ());
11284 /* dlclose (self); */
11286 else
11287 puts (dlerror ());
11289 return status;
11291 _LT_EOF
11292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11293 (eval $ac_link) 2>&5
11294 ac_status=$?
11295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11296 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11297 (./conftest; exit; ) >&5 2>/dev/null
11298 lt_status=$?
11299 case x$lt_status in
11300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11303 esac
11304 else :
11305 # compilation failed
11306 lt_cv_dlopen_self_static=no
11309 rm -fr conftest*
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11314 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11317 CPPFLAGS="$save_CPPFLAGS"
11318 LDFLAGS="$save_LDFLAGS"
11319 LIBS="$save_LIBS"
11321 esac
11323 case $lt_cv_dlopen_self in
11324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11325 *) enable_dlopen_self=unknown ;;
11326 esac
11328 case $lt_cv_dlopen_self_static in
11329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11330 *) enable_dlopen_self_static=unknown ;;
11331 esac
11350 striplib=
11351 old_striplib=
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11353 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11354 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11358 $as_echo "yes" >&6; }
11359 else
11360 # FIXME - insert some real tests, host_os isn't really good enough
11361 case $host_os in
11362 darwin*)
11363 if test -n "$STRIP" ; then
11364 striplib="$STRIP -x"
11365 old_striplib="$STRIP -S"
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11367 $as_echo "yes" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11377 esac
11391 # Report which library types will actually be built
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11393 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11395 $as_echo "$can_build_shared" >&6; }
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11398 $as_echo_n "checking whether to build shared libraries... " >&6; }
11399 test "$can_build_shared" = "no" && enable_shared=no
11401 # On AIX, shared libraries and static libraries use the same namespace, and
11402 # are all built from PIC.
11403 case $host_os in
11404 aix3*)
11405 test "$enable_shared" = yes && enable_static=no
11406 if test -n "$RANLIB"; then
11407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11408 postinstall_cmds='$RANLIB $lib'
11412 aix[4-9]*)
11413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11414 test "$enable_shared" = yes && enable_static=no
11417 esac
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11419 $as_echo "$enable_shared" >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11422 $as_echo_n "checking whether to build static libraries... " >&6; }
11423 # Make sure either enable_shared or enable_static is yes.
11424 test "$enable_shared" = yes || enable_static=yes
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11426 $as_echo "$enable_static" >&6; }
11432 ac_ext=c
11433 ac_cpp='$CPP $CPPFLAGS'
11434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438 CC="$lt_save_CC"
11452 # Source file extension for Go test sources.
11453 ac_ext=go
11455 # Object file extension for compiled Go test sources.
11456 objext=o
11457 objext_GO=$objext
11459 # Code to be used in simple compile tests
11460 lt_simple_compile_test_code="package main; func main() { }"
11462 # Code to be used in simple link tests
11463 lt_simple_link_test_code='package main; func main() { }'
11465 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11472 # If no C compiler was specified, use CC.
11473 LTCC=${LTCC-"$CC"}
11475 # If no C compiler flags were specified, use CFLAGS.
11476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11478 # Allow CC to be a program name with arguments.
11479 compiler=$CC
11482 # save warnings/boilerplate of simple test code
11483 ac_outfile=conftest.$ac_objext
11484 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11486 _lt_compiler_boilerplate=`cat conftest.err`
11487 $RM conftest*
11489 ac_outfile=conftest.$ac_objext
11490 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492 _lt_linker_boilerplate=`cat conftest.err`
11493 $RM -r conftest*
11496 # Allow CC to be a program name with arguments.
11497 lt_save_CC="$CC"
11498 lt_save_GCC="$GCC"
11499 GCC=yes
11500 CC=${GOC-"gccgo"}
11501 compiler=$CC
11502 compiler_GO=$CC
11503 LD_GO="$LD"
11504 for cc_temp in $compiler""; do
11505 case $cc_temp in
11506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11508 \-*) ;;
11509 *) break;;
11510 esac
11511 done
11512 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11515 # Go did not exist at the time GCC didn't implicitly link libc in.
11516 archive_cmds_need_lc_GO=no
11518 old_archive_cmds_GO=$old_archive_cmds
11520 ## CAVEAT EMPTOR:
11521 ## There is no encapsulation within the following macros, do not change
11522 ## the running order or otherwise move them around unless you know exactly
11523 ## what you are doing...
11524 if test -n "$compiler"; then
11526 lt_prog_compiler_no_builtin_flag_GO=
11528 if test "$GCC" = yes; then
11529 case $cc_basename in
11530 nvcc*)
11531 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11533 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11534 esac
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11537 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 lt_cv_prog_compiler_rtti_exceptions=no
11542 ac_outfile=conftest.$ac_objext
11543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11544 lt_compiler_flag="-fno-rtti -fno-exceptions"
11545 # Insert the option either (1) after the last *FLAGS variable, or
11546 # (2) before a word containing "conftest.", or (3) at the end.
11547 # Note that $ac_compile itself does not contain backslashes and begins
11548 # with a dollar sign (not a hyphen), so the echo should work correctly.
11549 # The option is referenced via a variable to avoid confusing sed.
11550 lt_compile=`echo "$ac_compile" | $SED \
11551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11553 -e 's:$: $lt_compiler_flag:'`
11554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11555 (eval "$lt_compile" 2>conftest.err)
11556 ac_status=$?
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 if (exit $ac_status) && test -s "$ac_outfile"; then
11560 # The compiler can only warn and ignore the option if not recognized
11561 # So say no if there are warnings other than the usual output.
11562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11565 lt_cv_prog_compiler_rtti_exceptions=yes
11568 $RM conftest*
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11572 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11575 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11576 else
11584 lt_prog_compiler_wl_GO=
11585 lt_prog_compiler_pic_GO=
11586 lt_prog_compiler_static_GO=
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11589 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11591 if test "$GCC" = yes; then
11592 lt_prog_compiler_wl_GO='-Wl,'
11593 lt_prog_compiler_static_GO='-static'
11595 case $host_os in
11596 aix*)
11597 # All AIX code is PIC.
11598 if test "$host_cpu" = ia64; then
11599 # AIX 5 now supports IA64 processor
11600 lt_prog_compiler_static_GO='-Bstatic'
11602 lt_prog_compiler_pic_GO='-fPIC'
11605 amigaos*)
11606 case $host_cpu in
11607 powerpc)
11608 # see comment about AmigaOS4 .so support
11609 lt_prog_compiler_pic_GO='-fPIC'
11611 m68k)
11612 # FIXME: we need at least 68020 code to build shared libraries, but
11613 # adding the `-m68020' flag to GCC prevents building anything better,
11614 # like `-m68040'.
11615 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11617 esac
11620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11621 # PIC is the default for these OSes.
11624 mingw* | cygwin* | pw32* | os2* | cegcc*)
11625 # This hack is so that the source file can tell whether it is being
11626 # built for inclusion in a dll (and should export symbols for example).
11627 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11628 # (--disable-auto-import) libraries
11629 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11632 darwin* | rhapsody*)
11633 # PIC is the default on this platform
11634 # Common symbols not allowed in MH_DYLIB files
11635 lt_prog_compiler_pic_GO='-fno-common'
11638 haiku*)
11639 # PIC is the default for Haiku.
11640 # The "-static" flag exists, but is broken.
11641 lt_prog_compiler_static_GO=
11644 hpux*)
11645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11647 # sets the default TLS model and affects inlining.
11648 case $host_cpu in
11649 hppa*64*)
11650 # +Z the default
11653 lt_prog_compiler_pic_GO='-fPIC'
11655 esac
11658 interix[3-9]*)
11659 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11660 # Instead, we relocate shared libraries at runtime.
11663 msdosdjgpp*)
11664 # Just because we use GCC doesn't mean we suddenly get shared libraries
11665 # on systems that don't support them.
11666 lt_prog_compiler_can_build_shared_GO=no
11667 enable_shared=no
11670 *nto* | *qnx*)
11671 # QNX uses GNU C++, but need to define -shared option too, otherwise
11672 # it will coredump.
11673 lt_prog_compiler_pic_GO='-fPIC -shared'
11676 sysv4*MP*)
11677 if test -d /usr/nec; then
11678 lt_prog_compiler_pic_GO=-Kconform_pic
11683 lt_prog_compiler_pic_GO='-fPIC'
11685 esac
11687 case $cc_basename in
11688 nvcc*) # Cuda Compiler Driver 2.2
11689 lt_prog_compiler_wl_GO='-Xlinker '
11690 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11692 esac
11693 else
11694 # PORTME Check for flag to pass linker flags through the system compiler.
11695 case $host_os in
11696 aix*)
11697 lt_prog_compiler_wl_GO='-Wl,'
11698 if test "$host_cpu" = ia64; then
11699 # AIX 5 now supports IA64 processor
11700 lt_prog_compiler_static_GO='-Bstatic'
11701 else
11702 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11706 mingw* | cygwin* | pw32* | os2* | cegcc*)
11707 # This hack is so that the source file can tell whether it is being
11708 # built for inclusion in a dll (and should export symbols for example).
11709 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11712 hpux9* | hpux10* | hpux11*)
11713 lt_prog_compiler_wl_GO='-Wl,'
11714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11715 # not for PA HP-UX.
11716 case $host_cpu in
11717 hppa*64*|ia64*)
11718 # +Z the default
11721 lt_prog_compiler_pic_GO='+Z'
11723 esac
11724 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11725 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11728 irix5* | irix6* | nonstopux*)
11729 lt_prog_compiler_wl_GO='-Wl,'
11730 # PIC (with -KPIC) is the default.
11731 lt_prog_compiler_static_GO='-non_shared'
11734 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11735 case $cc_basename in
11736 # old Intel for x86_64 which still supported -KPIC.
11737 ecc*)
11738 lt_prog_compiler_wl_GO='-Wl,'
11739 lt_prog_compiler_pic_GO='-KPIC'
11740 lt_prog_compiler_static_GO='-static'
11742 # icc used to be incompatible with GCC.
11743 # ICC 10 doesn't accept -KPIC any more.
11744 icc* | ifort*)
11745 lt_prog_compiler_wl_GO='-Wl,'
11746 lt_prog_compiler_pic_GO='-fPIC'
11747 lt_prog_compiler_static_GO='-static'
11749 # Lahey Fortran 8.1.
11750 lf95*)
11751 lt_prog_compiler_wl_GO='-Wl,'
11752 lt_prog_compiler_pic_GO='--shared'
11753 lt_prog_compiler_static_GO='--static'
11755 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11756 # Portland Group compilers (*not* the Pentium gcc compiler,
11757 # which looks to be a dead project)
11758 lt_prog_compiler_wl_GO='-Wl,'
11759 lt_prog_compiler_pic_GO='-fpic'
11760 lt_prog_compiler_static_GO='-Bstatic'
11762 ccc*)
11763 lt_prog_compiler_wl_GO='-Wl,'
11764 # All Alpha code is PIC.
11765 lt_prog_compiler_static_GO='-non_shared'
11767 xl* | bgxl* | bgf* | mpixl*)
11768 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11769 lt_prog_compiler_wl_GO='-Wl,'
11770 lt_prog_compiler_pic_GO='-qpic'
11771 lt_prog_compiler_static_GO='-qstaticlink'
11774 case `$CC -V 2>&1 | sed 5q` in
11775 *Sun\ F* | *Sun*Fortran*)
11776 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11777 lt_prog_compiler_pic_GO='-KPIC'
11778 lt_prog_compiler_static_GO='-Bstatic'
11779 lt_prog_compiler_wl_GO=''
11781 *Sun\ C*)
11782 # Sun C 5.9
11783 lt_prog_compiler_pic_GO='-KPIC'
11784 lt_prog_compiler_static_GO='-Bstatic'
11785 lt_prog_compiler_wl_GO='-Wl,'
11787 esac
11789 esac
11792 newsos6)
11793 lt_prog_compiler_pic_GO='-KPIC'
11794 lt_prog_compiler_static_GO='-Bstatic'
11797 *nto* | *qnx*)
11798 # QNX uses GNU C++, but need to define -shared option too, otherwise
11799 # it will coredump.
11800 lt_prog_compiler_pic_GO='-fPIC -shared'
11803 osf3* | osf4* | osf5*)
11804 lt_prog_compiler_wl_GO='-Wl,'
11805 # All OSF/1 code is PIC.
11806 lt_prog_compiler_static_GO='-non_shared'
11809 rdos*)
11810 lt_prog_compiler_static_GO='-non_shared'
11813 solaris*)
11814 lt_prog_compiler_pic_GO='-KPIC'
11815 lt_prog_compiler_static_GO='-Bstatic'
11816 case $cc_basename in
11817 f77* | f90* | f95*)
11818 lt_prog_compiler_wl_GO='-Qoption ld ';;
11820 lt_prog_compiler_wl_GO='-Wl,';;
11821 esac
11824 sunos4*)
11825 lt_prog_compiler_wl_GO='-Qoption ld '
11826 lt_prog_compiler_pic_GO='-PIC'
11827 lt_prog_compiler_static_GO='-Bstatic'
11830 sysv4 | sysv4.2uw2* | sysv4.3*)
11831 lt_prog_compiler_wl_GO='-Wl,'
11832 lt_prog_compiler_pic_GO='-KPIC'
11833 lt_prog_compiler_static_GO='-Bstatic'
11836 sysv4*MP*)
11837 if test -d /usr/nec ;then
11838 lt_prog_compiler_pic_GO='-Kconform_pic'
11839 lt_prog_compiler_static_GO='-Bstatic'
11843 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11844 lt_prog_compiler_wl_GO='-Wl,'
11845 lt_prog_compiler_pic_GO='-KPIC'
11846 lt_prog_compiler_static_GO='-Bstatic'
11849 unicos*)
11850 lt_prog_compiler_wl_GO='-Wl,'
11851 lt_prog_compiler_can_build_shared_GO=no
11854 uts4*)
11855 lt_prog_compiler_pic_GO='-pic'
11856 lt_prog_compiler_static_GO='-Bstatic'
11860 lt_prog_compiler_can_build_shared_GO=no
11862 esac
11865 case $host_os in
11866 # For platforms which do not support PIC, -DPIC is meaningless:
11867 *djgpp*)
11868 lt_prog_compiler_pic_GO=
11871 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11873 esac
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11875 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11880 # Check to make sure the PIC flag actually works.
11882 if test -n "$lt_prog_compiler_pic_GO"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11884 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11885 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 lt_cv_prog_compiler_pic_works_GO=no
11889 ac_outfile=conftest.$ac_objext
11890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11891 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11892 # Insert the option either (1) after the last *FLAGS variable, or
11893 # (2) before a word containing "conftest.", or (3) at the end.
11894 # Note that $ac_compile itself does not contain backslashes and begins
11895 # with a dollar sign (not a hyphen), so the echo should work correctly.
11896 # The option is referenced via a variable to avoid confusing sed.
11897 lt_compile=`echo "$ac_compile" | $SED \
11898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11900 -e 's:$: $lt_compiler_flag:'`
11901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11902 (eval "$lt_compile" 2>conftest.err)
11903 ac_status=$?
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 if (exit $ac_status) && test -s "$ac_outfile"; then
11907 # The compiler can only warn and ignore the option if not recognized
11908 # So say no if there are warnings other than the usual output.
11909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11912 lt_cv_prog_compiler_pic_works_GO=yes
11915 $RM conftest*
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11919 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11921 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11922 case $lt_prog_compiler_pic_GO in
11923 "" | " "*) ;;
11924 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11925 esac
11926 else
11927 lt_prog_compiler_pic_GO=
11928 lt_prog_compiler_can_build_shared_GO=no
11936 # Check to make sure the static flag actually works.
11938 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11940 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11941 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 lt_cv_prog_compiler_static_works_GO=no
11945 save_LDFLAGS="$LDFLAGS"
11946 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11947 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11949 # The linker can only warn and ignore the option if not recognized
11950 # So say no if there are warnings
11951 if test -s conftest.err; then
11952 # Append any errors to the config.log.
11953 cat conftest.err 1>&5
11954 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11956 if diff conftest.exp conftest.er2 >/dev/null; then
11957 lt_cv_prog_compiler_static_works_GO=yes
11959 else
11960 lt_cv_prog_compiler_static_works_GO=yes
11963 $RM -r conftest*
11964 LDFLAGS="$save_LDFLAGS"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11968 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11970 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11972 else
11973 lt_prog_compiler_static_GO=
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11980 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11981 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 lt_cv_prog_compiler_c_o_GO=no
11985 $RM -r conftest 2>/dev/null
11986 mkdir conftest
11987 cd conftest
11988 mkdir out
11989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11991 lt_compiler_flag="-o out/conftest2.$ac_objext"
11992 # Insert the option either (1) after the last *FLAGS variable, or
11993 # (2) before a word containing "conftest.", or (3) at the end.
11994 # Note that $ac_compile itself does not contain backslashes and begins
11995 # with a dollar sign (not a hyphen), so the echo should work correctly.
11996 lt_compile=`echo "$ac_compile" | $SED \
11997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11999 -e 's:$: $lt_compiler_flag:'`
12000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12001 (eval "$lt_compile" 2>out/conftest.err)
12002 ac_status=$?
12003 cat out/conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12006 then
12007 # The compiler can only warn and ignore the option if not recognized
12008 # So say no if there are warnings
12009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12012 lt_cv_prog_compiler_c_o_GO=yes
12015 chmod u+w . 2>&5
12016 $RM conftest*
12017 # SGI C++ compiler will create directory out/ii_files/ for
12018 # template instantiation
12019 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12020 $RM out/* && rmdir out
12021 cd ..
12022 $RM -r conftest
12023 $RM conftest*
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12027 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12032 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12033 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 lt_cv_prog_compiler_c_o_GO=no
12037 $RM -r conftest 2>/dev/null
12038 mkdir conftest
12039 cd conftest
12040 mkdir out
12041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12043 lt_compiler_flag="-o out/conftest2.$ac_objext"
12044 # Insert the option either (1) after the last *FLAGS variable, or
12045 # (2) before a word containing "conftest.", or (3) at the end.
12046 # Note that $ac_compile itself does not contain backslashes and begins
12047 # with a dollar sign (not a hyphen), so the echo should work correctly.
12048 lt_compile=`echo "$ac_compile" | $SED \
12049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12051 -e 's:$: $lt_compiler_flag:'`
12052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12053 (eval "$lt_compile" 2>out/conftest.err)
12054 ac_status=$?
12055 cat out/conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12058 then
12059 # The compiler can only warn and ignore the option if not recognized
12060 # So say no if there are warnings
12061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12064 lt_cv_prog_compiler_c_o_GO=yes
12067 chmod u+w . 2>&5
12068 $RM conftest*
12069 # SGI C++ compiler will create directory out/ii_files/ for
12070 # template instantiation
12071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12072 $RM out/* && rmdir out
12073 cd ..
12074 $RM -r conftest
12075 $RM conftest*
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12079 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12084 hard_links="nottested"
12085 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12086 # do not overwrite the value of need_locks provided by the user
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12088 $as_echo_n "checking if we can lock with hard links... " >&6; }
12089 hard_links=yes
12090 $RM conftest*
12091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12092 touch conftest.a
12093 ln conftest.a conftest.b 2>&5 || hard_links=no
12094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12096 $as_echo "$hard_links" >&6; }
12097 if test "$hard_links" = no; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12099 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12100 need_locks=warn
12102 else
12103 need_locks=no
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12109 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12111 runpath_var=
12112 allow_undefined_flag_GO=
12113 always_export_symbols_GO=no
12114 archive_cmds_GO=
12115 archive_expsym_cmds_GO=
12116 compiler_needs_object_GO=no
12117 enable_shared_with_static_runtimes_GO=no
12118 export_dynamic_flag_spec_GO=
12119 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12120 hardcode_automatic_GO=no
12121 hardcode_direct_GO=no
12122 hardcode_direct_absolute_GO=no
12123 hardcode_libdir_flag_spec_GO=
12124 hardcode_libdir_flag_spec_ld_GO=
12125 hardcode_libdir_separator_GO=
12126 hardcode_minus_L_GO=no
12127 hardcode_shlibpath_var_GO=unsupported
12128 inherit_rpath_GO=no
12129 link_all_deplibs_GO=unknown
12130 module_cmds_GO=
12131 module_expsym_cmds_GO=
12132 old_archive_from_new_cmds_GO=
12133 old_archive_from_expsyms_cmds_GO=
12134 thread_safe_flag_spec_GO=
12135 whole_archive_flag_spec_GO=
12136 # include_expsyms should be a list of space-separated symbols to be *always*
12137 # included in the symbol list
12138 include_expsyms_GO=
12139 # exclude_expsyms can be an extended regexp of symbols to exclude
12140 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12141 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12142 # as well as any symbol that contains `d'.
12143 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12144 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12145 # platforms (ab)use it in PIC code, but their linkers get confused if
12146 # the symbol is explicitly referenced. Since portable code cannot
12147 # rely on this symbol name, it's probably fine to never include it in
12148 # preloaded symbol tables.
12149 # Exclude shared library initialization/finalization symbols.
12150 extract_expsyms_cmds=
12152 case $host_os in
12153 cygwin* | mingw* | pw32* | cegcc*)
12154 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12155 # When not using gcc, we currently assume that we are using
12156 # Microsoft Visual C++.
12157 if test "$GCC" != yes; then
12158 with_gnu_ld=no
12161 interix*)
12162 # we just hope/assume this is gcc and not c89 (= MSVC++)
12163 with_gnu_ld=yes
12165 openbsd*)
12166 with_gnu_ld=no
12168 esac
12170 ld_shlibs_GO=yes
12172 # On some targets, GNU ld is compatible enough with the native linker
12173 # that we're better off using the native interface for both.
12174 lt_use_gnu_ld_interface=no
12175 if test "$with_gnu_ld" = yes; then
12176 case $host_os in
12177 aix*)
12178 # The AIX port of GNU ld has always aspired to compatibility
12179 # with the native linker. However, as the warning in the GNU ld
12180 # block says, versions before 2.19.5* couldn't really create working
12181 # shared libraries, regardless of the interface used.
12182 case `$LD -v 2>&1` in
12183 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12184 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12185 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12187 lt_use_gnu_ld_interface=yes
12189 esac
12192 lt_use_gnu_ld_interface=yes
12194 esac
12197 if test "$lt_use_gnu_ld_interface" = yes; then
12198 # If archive_cmds runs LD, not CC, wlarc should be empty
12199 wlarc='${wl}'
12201 # Set some defaults for GNU ld with shared library support. These
12202 # are reset later if shared libraries are not supported. Putting them
12203 # here allows them to be overridden if necessary.
12204 runpath_var=LD_RUN_PATH
12205 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12206 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12207 # ancient GNU ld didn't support --whole-archive et. al.
12208 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12209 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12210 else
12211 whole_archive_flag_spec_GO=
12213 supports_anon_versioning=no
12214 case `$LD -v 2>&1` in
12215 *GNU\ gold*) supports_anon_versioning=yes ;;
12216 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12217 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12218 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12219 *\ 2.11.*) ;; # other 2.11 versions
12220 *) supports_anon_versioning=yes ;;
12221 esac
12223 # See if GNU ld supports shared libraries.
12224 case $host_os in
12225 aix[3-9]*)
12226 # On AIX/PPC, the GNU linker is very broken
12227 if test "$host_cpu" != ia64; then
12228 ld_shlibs_GO=no
12229 cat <<_LT_EOF 1>&2
12231 *** Warning: the GNU linker, at least up to release 2.19, is reported
12232 *** to be unable to reliably create shared libraries on AIX.
12233 *** Therefore, libtool is disabling shared libraries support. If you
12234 *** really care for shared libraries, you may want to install binutils
12235 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12236 *** You will then need to restart the configuration process.
12238 _LT_EOF
12242 amigaos*)
12243 case $host_cpu in
12244 powerpc)
12245 # see comment about AmigaOS4 .so support
12246 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 archive_expsym_cmds_GO=''
12249 m68k)
12250 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)'
12251 hardcode_libdir_flag_spec_GO='-L$libdir'
12252 hardcode_minus_L_GO=yes
12254 esac
12257 beos*)
12258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12259 allow_undefined_flag_GO=unsupported
12260 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12261 # support --undefined. This deserves some investigation. FIXME
12262 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12263 else
12264 ld_shlibs_GO=no
12268 cygwin* | mingw* | pw32* | cegcc*)
12269 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12270 # as there is no search path for DLLs.
12271 hardcode_libdir_flag_spec_GO='-L$libdir'
12272 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12273 allow_undefined_flag_GO=unsupported
12274 always_export_symbols_GO=no
12275 enable_shared_with_static_runtimes_GO=yes
12276 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12278 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12279 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12280 # If the export-symbols file already is a .def file (1st line
12281 # is EXPORTS), use it as is; otherwise, prepend...
12282 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12283 cp $export_symbols $output_objdir/$soname.def;
12284 else
12285 echo EXPORTS > $output_objdir/$soname.def;
12286 cat $export_symbols >> $output_objdir/$soname.def;
12288 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12289 else
12290 ld_shlibs_GO=no
12294 haiku*)
12295 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12296 link_all_deplibs_GO=yes
12299 interix[3-9]*)
12300 hardcode_direct_GO=no
12301 hardcode_shlibpath_var_GO=no
12302 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12303 export_dynamic_flag_spec_GO='${wl}-E'
12304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12305 # Instead, shared libraries are loaded at an image base (0x10000000 by
12306 # default) and relocated if they conflict, which is a slow very memory
12307 # consuming and fragmenting process. To avoid this, we pick a random,
12308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12310 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'
12311 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'
12314 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12315 tmp_diet=no
12316 if test "$host_os" = linux-dietlibc; then
12317 case $cc_basename in
12318 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12319 esac
12321 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12322 && test "$tmp_diet" = no
12323 then
12324 tmp_addflag=
12325 tmp_sharedflag='-shared'
12326 case $cc_basename,$host_cpu in
12327 pgcc*) # Portland Group C compiler
12328 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'
12329 tmp_addflag=' $pic_flag'
12331 pgf77* | pgf90* | pgf95* | pgfortran*)
12332 # Portland Group f77 and f90 compilers
12333 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'
12334 tmp_addflag=' $pic_flag -Mnomain' ;;
12335 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12336 tmp_addflag=' -i_dynamic' ;;
12337 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12338 tmp_addflag=' -i_dynamic -nofor_main' ;;
12339 ifc* | ifort*) # Intel Fortran compiler
12340 tmp_addflag=' -nofor_main' ;;
12341 lf95*) # Lahey Fortran 8.1
12342 whole_archive_flag_spec_GO=
12343 tmp_sharedflag='--shared' ;;
12344 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12345 tmp_sharedflag='-qmkshrobj'
12346 tmp_addflag= ;;
12347 nvcc*) # Cuda Compiler Driver 2.2
12348 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'
12349 compiler_needs_object_GO=yes
12351 esac
12352 case `$CC -V 2>&1 | sed 5q` in
12353 *Sun\ C*) # Sun C 5.9
12354 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'
12355 compiler_needs_object_GO=yes
12356 tmp_sharedflag='-G' ;;
12357 *Sun\ F*) # Sun Fortran 8.3
12358 tmp_sharedflag='-G' ;;
12359 esac
12360 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12362 if test "x$supports_anon_versioning" = xyes; then
12363 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12365 echo "local: *; };" >> $output_objdir/$libname.ver~
12366 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12369 case $cc_basename in
12370 xlf* | bgf* | bgxlf* | mpixlf*)
12371 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12372 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12373 hardcode_libdir_flag_spec_GO=
12374 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12375 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12376 if test "x$supports_anon_versioning" = xyes; then
12377 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12378 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12379 echo "local: *; };" >> $output_objdir/$libname.ver~
12380 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12383 esac
12384 else
12385 ld_shlibs_GO=no
12389 netbsd*)
12390 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12391 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12392 wlarc=
12393 else
12394 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12395 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12399 solaris*)
12400 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12401 ld_shlibs_GO=no
12402 cat <<_LT_EOF 1>&2
12404 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12405 *** create shared libraries on Solaris systems. Therefore, libtool
12406 *** is disabling shared libraries support. We urge you to upgrade GNU
12407 *** binutils to release 2.9.1 or newer. Another option is to modify
12408 *** your PATH or compiler configuration so that the native linker is
12409 *** used, and then restart.
12411 _LT_EOF
12412 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12413 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12414 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12415 else
12416 ld_shlibs_GO=no
12420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12421 case `$LD -v 2>&1` in
12422 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12423 ld_shlibs_GO=no
12424 cat <<_LT_EOF 1>&2
12426 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12427 *** reliably create shared libraries on SCO systems. Therefore, libtool
12428 *** is disabling shared libraries support. We urge you to upgrade GNU
12429 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12430 *** your PATH or compiler configuration so that the native linker is
12431 *** used, and then restart.
12433 _LT_EOF
12436 # For security reasons, it is highly recommended that you always
12437 # use absolute paths for naming shared libraries, and exclude the
12438 # DT_RUNPATH tag from executables and libraries. But doing so
12439 # requires that you compile everything twice, which is a pain.
12440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12441 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12442 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12443 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12444 else
12445 ld_shlibs_GO=no
12448 esac
12451 sunos4*)
12452 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12453 wlarc=
12454 hardcode_direct_GO=yes
12455 hardcode_shlibpath_var_GO=no
12459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12460 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12461 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12462 else
12463 ld_shlibs_GO=no
12466 esac
12468 if test "$ld_shlibs_GO" = no; then
12469 runpath_var=
12470 hardcode_libdir_flag_spec_GO=
12471 export_dynamic_flag_spec_GO=
12472 whole_archive_flag_spec_GO=
12474 else
12475 # PORTME fill in a description of your system's linker (not GNU ld)
12476 case $host_os in
12477 aix3*)
12478 allow_undefined_flag_GO=unsupported
12479 always_export_symbols_GO=yes
12480 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'
12481 # Note: this linker hardcodes the directories in LIBPATH if there
12482 # are no directories specified by -L.
12483 hardcode_minus_L_GO=yes
12484 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12485 # Neither direct hardcoding nor static linking is supported with a
12486 # broken collect2.
12487 hardcode_direct_GO=unsupported
12491 aix[4-9]*)
12492 if test "$host_cpu" = ia64; then
12493 # On IA64, the linker does run time linking by default, so we don't
12494 # have to do anything special.
12495 aix_use_runtimelinking=no
12496 exp_sym_flag='-Bexport'
12497 no_entry_flag=""
12498 else
12499 # If we're using GNU nm, then we don't want the "-C" option.
12500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12501 # Also, AIX nm treats weak defined symbols like other global
12502 # defined symbols, whereas GNU nm marks them as "W".
12503 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12504 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'
12505 else
12506 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'
12508 aix_use_runtimelinking=no
12510 # Test if we are trying to use run time linking or normal
12511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12512 # need to do runtime linking.
12513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12514 for ld_flag in $LDFLAGS; do
12515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12516 aix_use_runtimelinking=yes
12517 break
12519 done
12521 esac
12523 exp_sym_flag='-bexport'
12524 no_entry_flag='-bnoentry'
12527 # When large executables or shared objects are built, AIX ld can
12528 # have problems creating the table of contents. If linking a library
12529 # or program results in "error TOC overflow" add -mminimal-toc to
12530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12533 archive_cmds_GO=''
12534 hardcode_direct_GO=yes
12535 hardcode_direct_absolute_GO=yes
12536 hardcode_libdir_separator_GO=':'
12537 link_all_deplibs_GO=yes
12538 file_list_spec_GO='${wl}-f,'
12540 if test "$GCC" = yes; then
12541 case $host_os in aix4.[012]|aix4.[012].*)
12542 # We only want to do this on AIX 4.2 and lower, the check
12543 # below for broken collect2 doesn't work under 4.3+
12544 collect2name=`${CC} -print-prog-name=collect2`
12545 if test -f "$collect2name" &&
12546 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12547 then
12548 # We have reworked collect2
12550 else
12551 # We have old collect2
12552 hardcode_direct_GO=unsupported
12553 # It fails to find uninstalled libraries when the uninstalled
12554 # path is not listed in the libpath. Setting hardcode_minus_L
12555 # to unsupported forces relinking
12556 hardcode_minus_L_GO=yes
12557 hardcode_libdir_flag_spec_GO='-L$libdir'
12558 hardcode_libdir_separator_GO=
12561 esac
12562 shared_flag='-shared'
12563 if test "$aix_use_runtimelinking" = yes; then
12564 shared_flag="$shared_flag "'${wl}-G'
12566 else
12567 # not using gcc
12568 if test "$host_cpu" = ia64; then
12569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12570 # chokes on -Wl,-G. The following line is correct:
12571 shared_flag='-G'
12572 else
12573 if test "$aix_use_runtimelinking" = yes; then
12574 shared_flag='${wl}-G'
12575 else
12576 shared_flag='${wl}-bM:SRE'
12581 export_dynamic_flag_spec_GO='${wl}-bexpall'
12582 # It seems that -bexpall does not export symbols beginning with
12583 # underscore (_), so it is better to generate a list of symbols to export.
12584 always_export_symbols_GO=yes
12585 if test "$aix_use_runtimelinking" = yes; then
12586 # Warning - without using the other runtime loading flags (-brtl),
12587 # -berok will link without error, but may produce a broken library.
12588 allow_undefined_flag_GO='-berok'
12589 # Determine the default libpath from the value encoded in an
12590 # empty executable.
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12595 main ()
12599 return 0;
12601 _ACEOF
12602 if ac_fn_c_try_link "$LINENO"; then :
12604 lt_aix_libpath_sed='
12605 /Import File Strings/,/^$/ {
12606 /^0/ {
12607 s/^0 *\(.*\)$/\1/
12611 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12612 # Check for a 64-bit object if we didn't find anything.
12613 if test -z "$aix_libpath"; then
12614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12617 rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12621 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12622 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"
12623 else
12624 if test "$host_cpu" = ia64; then
12625 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12626 allow_undefined_flag_GO="-z nodefs"
12627 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"
12628 else
12629 # Determine the default libpath from the value encoded in an
12630 # empty executable.
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12635 main ()
12639 return 0;
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12644 lt_aix_libpath_sed='
12645 /Import File Strings/,/^$/ {
12646 /^0/ {
12647 s/^0 *\(.*\)$/\1/
12651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12652 # Check for a 64-bit object if we didn't find anything.
12653 if test -z "$aix_libpath"; then
12654 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12661 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12662 # Warning - without using the other run time loading flags,
12663 # -berok will link without error, but may produce a broken library.
12664 no_undefined_flag_GO=' ${wl}-bernotok'
12665 allow_undefined_flag_GO=' ${wl}-berok'
12666 if test "$with_gnu_ld" = yes; then
12667 # We only use this code for GNU lds that support --whole-archive.
12668 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12669 else
12670 # Exported symbols can be pulled into shared objects from archives
12671 whole_archive_flag_spec_GO='$convenience'
12673 archive_cmds_need_lc_GO=yes
12674 # This is similar to how AIX traditionally builds its shared libraries.
12675 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'
12680 amigaos*)
12681 case $host_cpu in
12682 powerpc)
12683 # see comment about AmigaOS4 .so support
12684 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12685 archive_expsym_cmds_GO=''
12687 m68k)
12688 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)'
12689 hardcode_libdir_flag_spec_GO='-L$libdir'
12690 hardcode_minus_L_GO=yes
12692 esac
12695 bsdi[45]*)
12696 export_dynamic_flag_spec_GO=-rdynamic
12699 cygwin* | mingw* | pw32* | cegcc*)
12700 # When not using gcc, we currently assume that we are using
12701 # Microsoft Visual C++.
12702 # hardcode_libdir_flag_spec is actually meaningless, as there is
12703 # no search path for DLLs.
12704 hardcode_libdir_flag_spec_GO=' '
12705 allow_undefined_flag_GO=unsupported
12706 # Tell ltmain to make .lib files, not .a files.
12707 libext=lib
12708 # Tell ltmain to make .dll files, not .so files.
12709 shrext_cmds=".dll"
12710 # FIXME: Setting linknames here is a bad hack.
12711 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12712 # The linker will automatically build a .lib file if we build a DLL.
12713 old_archive_from_new_cmds_GO='true'
12714 # FIXME: Should let the user specify the lib program.
12715 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12716 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12717 enable_shared_with_static_runtimes_GO=yes
12720 darwin* | rhapsody*)
12723 archive_cmds_need_lc_GO=no
12724 hardcode_direct_GO=no
12725 hardcode_automatic_GO=yes
12726 hardcode_shlibpath_var_GO=unsupported
12727 if test "$lt_cv_ld_force_load" = "yes"; then
12728 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\"`'
12729 else
12730 whole_archive_flag_spec_GO=''
12732 link_all_deplibs_GO=yes
12733 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12734 case $cc_basename in
12735 ifort*) _lt_dar_can_shared=yes ;;
12736 *) _lt_dar_can_shared=$GCC ;;
12737 esac
12738 if test "$_lt_dar_can_shared" = "yes"; then
12739 output_verbose_link_cmd=func_echo_all
12740 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}"
12741 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12742 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}"
12743 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}"
12745 else
12746 ld_shlibs_GO=no
12751 dgux*)
12752 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_libdir_flag_spec_GO='-L$libdir'
12754 hardcode_shlibpath_var_GO=no
12757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12758 # support. Future versions do this automatically, but an explicit c++rt0.o
12759 # does not break anything, and helps significantly (at the cost of a little
12760 # extra space).
12761 freebsd2.2*)
12762 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12763 hardcode_libdir_flag_spec_GO='-R$libdir'
12764 hardcode_direct_GO=yes
12765 hardcode_shlibpath_var_GO=no
12768 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12769 freebsd2.*)
12770 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12771 hardcode_direct_GO=yes
12772 hardcode_minus_L_GO=yes
12773 hardcode_shlibpath_var_GO=no
12776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12777 freebsd* | dragonfly*)
12778 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12779 hardcode_libdir_flag_spec_GO='-R$libdir'
12780 hardcode_direct_GO=yes
12781 hardcode_shlibpath_var_GO=no
12784 hpux9*)
12785 if test "$GCC" = yes; then
12786 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'
12787 else
12788 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'
12790 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12791 hardcode_libdir_separator_GO=:
12792 hardcode_direct_GO=yes
12794 # hardcode_minus_L: Not really in the search PATH,
12795 # but as the default location of the library.
12796 hardcode_minus_L_GO=yes
12797 export_dynamic_flag_spec_GO='${wl}-E'
12800 hpux10*)
12801 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12802 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12803 else
12804 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12806 if test "$with_gnu_ld" = no; then
12807 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12808 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12809 hardcode_libdir_separator_GO=:
12810 hardcode_direct_GO=yes
12811 hardcode_direct_absolute_GO=yes
12812 export_dynamic_flag_spec_GO='${wl}-E'
12813 # hardcode_minus_L: Not really in the search PATH,
12814 # but as the default location of the library.
12815 hardcode_minus_L_GO=yes
12819 hpux11*)
12820 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12821 case $host_cpu in
12822 hppa*64*)
12823 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12825 ia64*)
12826 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12829 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12831 esac
12832 else
12833 case $host_cpu in
12834 hppa*64*)
12835 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12837 ia64*)
12838 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12841 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12843 esac
12845 if test "$with_gnu_ld" = no; then
12846 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12847 hardcode_libdir_separator_GO=:
12849 case $host_cpu in
12850 hppa*64*|ia64*)
12851 hardcode_direct_GO=no
12852 hardcode_shlibpath_var_GO=no
12855 hardcode_direct_GO=yes
12856 hardcode_direct_absolute_GO=yes
12857 export_dynamic_flag_spec_GO='${wl}-E'
12859 # hardcode_minus_L: Not really in the search PATH,
12860 # but as the default location of the library.
12861 hardcode_minus_L_GO=yes
12863 esac
12867 irix5* | irix6* | nonstopux*)
12868 if test "$GCC" = yes; then
12869 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'
12870 # Try to use the -exported_symbol ld option, if it does not
12871 # work, assume that -exports_file does not work either and
12872 # implicitly export all symbols.
12873 save_LDFLAGS="$LDFLAGS"
12874 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12877 int foo(void) {}
12878 _ACEOF
12879 if ac_fn_c_try_link "$LINENO"; then :
12880 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'
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LDFLAGS="$save_LDFLAGS"
12886 else
12887 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'
12888 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'
12890 archive_cmds_need_lc_GO='no'
12891 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12892 hardcode_libdir_separator_GO=:
12893 inherit_rpath_GO=yes
12894 link_all_deplibs_GO=yes
12897 netbsd*)
12898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12899 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12900 else
12901 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12903 hardcode_libdir_flag_spec_GO='-R$libdir'
12904 hardcode_direct_GO=yes
12905 hardcode_shlibpath_var_GO=no
12908 newsos6)
12909 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12910 hardcode_direct_GO=yes
12911 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12912 hardcode_libdir_separator_GO=:
12913 hardcode_shlibpath_var_GO=no
12916 *nto* | *qnx*)
12919 openbsd*)
12920 if test -f /usr/libexec/ld.so; then
12921 hardcode_direct_GO=yes
12922 hardcode_shlibpath_var_GO=no
12923 hardcode_direct_absolute_GO=yes
12924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12925 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12926 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12927 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12928 export_dynamic_flag_spec_GO='${wl}-E'
12929 else
12930 case $host_os in
12931 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12932 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12933 hardcode_libdir_flag_spec_GO='-R$libdir'
12936 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12937 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12939 esac
12941 else
12942 ld_shlibs_GO=no
12946 os2*)
12947 hardcode_libdir_flag_spec_GO='-L$libdir'
12948 hardcode_minus_L_GO=yes
12949 allow_undefined_flag_GO=unsupported
12950 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'
12951 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12954 osf3*)
12955 if test "$GCC" = yes; then
12956 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12957 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12958 else
12959 allow_undefined_flag_GO=' -expect_unresolved \*'
12960 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'
12962 archive_cmds_need_lc_GO='no'
12963 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12964 hardcode_libdir_separator_GO=:
12967 osf4* | osf5*) # as osf3* with the addition of -msym flag
12968 if test "$GCC" = yes; then
12969 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12970 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'
12971 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12972 else
12973 allow_undefined_flag_GO=' -expect_unresolved \*'
12974 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'
12975 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~
12976 $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'
12978 # Both c and cxx compiler support -rpath directly
12979 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12981 archive_cmds_need_lc_GO='no'
12982 hardcode_libdir_separator_GO=:
12985 solaris*)
12986 no_undefined_flag_GO=' -z defs'
12987 if test "$GCC" = yes; then
12988 wlarc='${wl}'
12989 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12990 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12991 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12992 else
12993 case `$CC -V 2>&1` in
12994 *"Compilers 5.0"*)
12995 wlarc=''
12996 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12997 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13001 wlarc='${wl}'
13002 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13003 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13004 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13006 esac
13008 hardcode_libdir_flag_spec_GO='-R$libdir'
13009 hardcode_shlibpath_var_GO=no
13010 case $host_os in
13011 solaris2.[0-5] | solaris2.[0-5].*) ;;
13013 # The compiler driver will combine and reorder linker options,
13014 # but understands `-z linker_flag'. GCC discards it without `$wl',
13015 # but is careful enough not to reorder.
13016 # Supported since Solaris 2.6 (maybe 2.5.1?)
13017 if test "$GCC" = yes; then
13018 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13019 else
13020 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13023 esac
13024 link_all_deplibs_GO=yes
13027 sunos4*)
13028 if test "x$host_vendor" = xsequent; then
13029 # Use $CC to link under sequent, because it throws in some extra .o
13030 # files that make .init and .fini sections work.
13031 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13032 else
13033 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13035 hardcode_libdir_flag_spec_GO='-L$libdir'
13036 hardcode_direct_GO=yes
13037 hardcode_minus_L_GO=yes
13038 hardcode_shlibpath_var_GO=no
13041 sysv4)
13042 case $host_vendor in
13043 sni)
13044 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13045 hardcode_direct_GO=yes # is this really true???
13047 siemens)
13048 ## LD is ld it makes a PLAMLIB
13049 ## CC just makes a GrossModule.
13050 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13051 reload_cmds_GO='$CC -r -o $output$reload_objs'
13052 hardcode_direct_GO=no
13054 motorola)
13055 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13056 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13058 esac
13059 runpath_var='LD_RUN_PATH'
13060 hardcode_shlibpath_var_GO=no
13063 sysv4.3*)
13064 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13065 hardcode_shlibpath_var_GO=no
13066 export_dynamic_flag_spec_GO='-Bexport'
13069 sysv4*MP*)
13070 if test -d /usr/nec; then
13071 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13072 hardcode_shlibpath_var_GO=no
13073 runpath_var=LD_RUN_PATH
13074 hardcode_runpath_var=yes
13075 ld_shlibs_GO=yes
13079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13080 no_undefined_flag_GO='${wl}-z,text'
13081 archive_cmds_need_lc_GO=no
13082 hardcode_shlibpath_var_GO=no
13083 runpath_var='LD_RUN_PATH'
13085 if test "$GCC" = yes; then
13086 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13087 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088 else
13089 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 sysv5* | sco3.2v5* | sco5v6*)
13095 # Note: We can NOT use -z defs as we might desire, because we do not
13096 # link with -lc, and that would cause any symbols used from libc to
13097 # always be unresolved, which means just about no library would
13098 # ever link correctly. If we're not using GNU ld we use -z text
13099 # though, which does catch some bad symbols but isn't as heavy-handed
13100 # as -z defs.
13101 no_undefined_flag_GO='${wl}-z,text'
13102 allow_undefined_flag_GO='${wl}-z,nodefs'
13103 archive_cmds_need_lc_GO=no
13104 hardcode_shlibpath_var_GO=no
13105 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13106 hardcode_libdir_separator_GO=':'
13107 link_all_deplibs_GO=yes
13108 export_dynamic_flag_spec_GO='${wl}-Bexport'
13109 runpath_var='LD_RUN_PATH'
13111 if test "$GCC" = yes; then
13112 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13113 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 else
13115 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13116 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 uts4*)
13121 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13122 hardcode_libdir_flag_spec_GO='-L$libdir'
13123 hardcode_shlibpath_var_GO=no
13127 ld_shlibs_GO=no
13129 esac
13131 if test x$host_vendor = xsni; then
13132 case $host in
13133 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13134 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13136 esac
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13141 $as_echo "$ld_shlibs_GO" >&6; }
13142 test "$ld_shlibs_GO" = no && can_build_shared=no
13144 with_gnu_ld_GO=$with_gnu_ld
13152 # Do we need to explicitly link libc?
13154 case "x$archive_cmds_need_lc_GO" in
13155 x|xyes)
13156 # Assume -lc should be added
13157 archive_cmds_need_lc_GO=yes
13159 if test "$enable_shared" = yes && test "$GCC" = yes; then
13160 case $archive_cmds_GO in
13161 *'~'*)
13162 # FIXME: we may have to deal with multi-command sequences.
13164 '$CC '*)
13165 # Test whether the compiler implicitly links with -lc since on some
13166 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13167 # to ld, don't add -lc before -lgcc.
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13169 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13170 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 $RM conftest*
13174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13177 (eval $ac_compile) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; } 2>conftest.err; then
13181 soname=conftest
13182 lib=conftest
13183 libobjs=conftest.$ac_objext
13184 deplibs=
13185 wl=$lt_prog_compiler_wl_GO
13186 pic_flag=$lt_prog_compiler_pic_GO
13187 compiler_flags=-v
13188 linker_flags=-v
13189 verstring=
13190 output_objdir=.
13191 libname=conftest
13192 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13193 allow_undefined_flag_GO=
13194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13195 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13196 ac_status=$?
13197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13198 test $ac_status = 0; }
13199 then
13200 lt_cv_archive_cmds_need_lc_GO=no
13201 else
13202 lt_cv_archive_cmds_need_lc_GO=yes
13204 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13205 else
13206 cat conftest.err 1>&5
13208 $RM conftest*
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13212 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13213 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13215 esac
13218 esac
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13284 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13285 hardcode_action_GO=
13286 if test -n "$hardcode_libdir_flag_spec_GO" ||
13287 test -n "$runpath_var_GO" ||
13288 test "X$hardcode_automatic_GO" = "Xyes" ; then
13290 # We can hardcode non-existent directories.
13291 if test "$hardcode_direct_GO" != no &&
13292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13293 # have to relink, otherwise we might link with an installed library
13294 # when we should be linking with a yet-to-be-installed one
13295 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13296 test "$hardcode_minus_L_GO" != no; then
13297 # Linking always hardcodes the temporary library directory.
13298 hardcode_action_GO=relink
13299 else
13300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13301 hardcode_action_GO=immediate
13303 else
13304 # We cannot hardcode anything, or else we can only hardcode existing
13305 # directories.
13306 hardcode_action_GO=unsupported
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13309 $as_echo "$hardcode_action_GO" >&6; }
13311 if test "$hardcode_action_GO" = relink ||
13312 test "$inherit_rpath_GO" = yes; then
13313 # Fast installation is not supported
13314 enable_fast_install=no
13315 elif test "$shlibpath_overrides_runpath" = yes ||
13316 test "$enable_shared" = no; then
13317 # Fast installation is not necessary
13318 enable_fast_install=needless
13329 ac_ext=c
13330 ac_cpp='$CPP $CPPFLAGS'
13331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13336 GCC=$lt_save_GCC
13337 CC="$lt_save_CC"
13342 ac_config_commands="$ac_config_commands libtool"
13347 # Only expand once:
13353 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13356 for ac_prog in gawk mawk nawk awk
13358 # Extract the first word of "$ac_prog", so it can be a program name with args.
13359 set dummy $ac_prog; ac_word=$2
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361 $as_echo_n "checking for $ac_word... " >&6; }
13362 if test "${ac_cv_prog_AWK+set}" = set; then :
13363 $as_echo_n "(cached) " >&6
13364 else
13365 if test -n "$AWK"; then
13366 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13367 else
13368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369 for as_dir in $PATH
13371 IFS=$as_save_IFS
13372 test -z "$as_dir" && as_dir=.
13373 for ac_exec_ext in '' $ac_executable_extensions; do
13374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13375 ac_cv_prog_AWK="$ac_prog"
13376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13377 break 2
13379 done
13380 done
13381 IFS=$as_save_IFS
13385 AWK=$ac_cv_prog_AWK
13386 if test -n "$AWK"; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13388 $as_echo "$AWK" >&6; }
13389 else
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391 $as_echo "no" >&6; }
13395 test -n "$AWK" && break
13396 done
13399 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13402 # Check whether --enable-werror was given.
13403 if test "${enable_werror+set}" = set; then :
13404 enableval=$enable_werror;
13407 if test "x$enable_werror" != "xno"; then
13408 WERROR="-Werror"
13412 glibgo_toolexecdir=no
13413 glibgo_toolexeclibdir=no
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13416 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13417 # Check whether --enable-version-specific-runtime-libs was given.
13418 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13419 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13420 yes) version_specific_libs=yes ;;
13421 no) version_specific_libs=no ;;
13422 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13423 esac
13424 else
13425 version_specific_libs=no
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13429 $as_echo "$version_specific_libs" >&6; }
13431 # Version-specific runtime libs processing.
13432 if test $version_specific_libs = yes; then
13433 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13434 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13437 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13438 # Install a library built with a cross compiler in tooldir, not libdir.
13439 if test -n "$with_cross_host" &&
13440 test x"$with_cross_host" != x"no"; then
13441 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13442 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13443 else
13444 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13445 nover_glibgo_toolexeclibdir='${libdir}'
13447 multi_os_directory=`$GOC -print-multi-os-directory`
13448 case $multi_os_directory in
13449 .) ;; # Avoid trailing /.
13450 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13451 esac
13453 if test x"$glibgo_toolexecdir" = x"no"; then
13454 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13455 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13462 # See if the user wants to configure without libffi. Some
13463 # architectures don't support it. FIXME: We should set a default
13464 # based on the host.
13466 # Check whether --with-libffi was given.
13467 if test "${with_libffi+set}" = set; then :
13468 withval=$with_libffi; :
13469 else
13470 with_libffi=${with_libffi_default-yes}
13474 LIBFFI=
13475 LIBFFIINCS=
13476 if test "$with_libffi" != no; then
13478 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13480 LIBFFI=../libffi/libffi_convenience.la
13481 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13485 if test "$with_liffi" != "no"; then
13486 USE_LIBFFI_TRUE=
13487 USE_LIBFFI_FALSE='#'
13488 else
13489 USE_LIBFFI_TRUE='#'
13490 USE_LIBFFI_FALSE=
13494 # See if the user wants to configure without libatomic. This is useful if we are
13495 # on an architecture for which libgo does not need an atomic support library and
13496 # libatomic does not support our C compiler.
13498 # Check whether --with-libatomic was given.
13499 if test "${with_libatomic+set}" = set; then :
13500 withval=$with_libatomic; :
13501 else
13502 with_libatomic=${with_libatomic_default-yes}
13506 LIBATOMIC=
13507 if test "$with_libatomic" != no; then
13508 LIBATOMIC=../libatomic/libatomic_convenience.la
13512 # Used to tell GNU make to include a file without telling automake to
13513 # include it.
13514 go_include="-include"
13517 # All known GOOS values. This is the union of all operating systems
13518 # supported by the gofrontend and all operating systems supported by
13519 # the gc toolchain.
13520 ALLGOOS="aix android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
13522 is_darwin=no
13523 is_freebsd=no
13524 is_irix=no
13525 is_linux=no
13526 is_netbsd=no
13527 is_openbsd=no
13528 is_dragonfly=no
13529 is_rtems=no
13530 is_solaris=no
13531 is_aix=no
13532 GOOS=unknown
13533 case ${host} in
13534 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13535 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13536 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13537 *-*-linux*) is_linux=yes; GOOS=linux ;;
13538 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13539 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13540 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13541 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13542 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13543 *-*-aix*) is_aix=yes; GOOS=aix ;;
13544 esac
13545 if test $is_darwin = yes; then
13546 LIBGO_IS_DARWIN_TRUE=
13547 LIBGO_IS_DARWIN_FALSE='#'
13548 else
13549 LIBGO_IS_DARWIN_TRUE='#'
13550 LIBGO_IS_DARWIN_FALSE=
13553 if test $is_freebsd = yes; then
13554 LIBGO_IS_FREEBSD_TRUE=
13555 LIBGO_IS_FREEBSD_FALSE='#'
13556 else
13557 LIBGO_IS_FREEBSD_TRUE='#'
13558 LIBGO_IS_FREEBSD_FALSE=
13561 if test $is_irix = yes; then
13562 LIBGO_IS_IRIX_TRUE=
13563 LIBGO_IS_IRIX_FALSE='#'
13564 else
13565 LIBGO_IS_IRIX_TRUE='#'
13566 LIBGO_IS_IRIX_FALSE=
13569 if test $is_linux = yes; then
13570 LIBGO_IS_LINUX_TRUE=
13571 LIBGO_IS_LINUX_FALSE='#'
13572 else
13573 LIBGO_IS_LINUX_TRUE='#'
13574 LIBGO_IS_LINUX_FALSE=
13577 if test $is_netbsd = yes; then
13578 LIBGO_IS_NETBSD_TRUE=
13579 LIBGO_IS_NETBSD_FALSE='#'
13580 else
13581 LIBGO_IS_NETBSD_TRUE='#'
13582 LIBGO_IS_NETBSD_FALSE=
13585 if test $is_openbsd = yes; then
13586 LIBGO_IS_OPENBSD_TRUE=
13587 LIBGO_IS_OPENBSD_FALSE='#'
13588 else
13589 LIBGO_IS_OPENBSD_TRUE='#'
13590 LIBGO_IS_OPENBSD_FALSE=
13593 if test $is_dragonfly = yes; then
13594 LIBGO_IS_DRAGONFLY_TRUE=
13595 LIBGO_IS_DRAGONFLY_FALSE='#'
13596 else
13597 LIBGO_IS_DRAGONFLY_TRUE='#'
13598 LIBGO_IS_DRAGONFLY_FALSE=
13601 if test $is_rtems = yes; then
13602 LIBGO_IS_RTEMS_TRUE=
13603 LIBGO_IS_RTEMS_FALSE='#'
13604 else
13605 LIBGO_IS_RTEMS_TRUE='#'
13606 LIBGO_IS_RTEMS_FALSE=
13609 if test $is_solaris = yes; then
13610 LIBGO_IS_SOLARIS_TRUE=
13611 LIBGO_IS_SOLARIS_FALSE='#'
13612 else
13613 LIBGO_IS_SOLARIS_TRUE='#'
13614 LIBGO_IS_SOLARIS_FALSE=
13617 if test $is_aix = yes; then
13618 LIBGO_IS_AIX_TRUE=
13619 LIBGO_IS_AIX_FALSE='#'
13620 else
13621 LIBGO_IS_AIX_TRUE='#'
13622 LIBGO_IS_AIX_FALSE=
13625 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13626 LIBGO_IS_BSD_TRUE=
13627 LIBGO_IS_BSD_FALSE='#'
13628 else
13629 LIBGO_IS_BSD_TRUE='#'
13630 LIBGO_IS_BSD_FALSE=
13636 USE_DEJAGNU=no
13637 case ${host} in
13638 *-*-rtems*) USE_DEJAGNU=yes ;;
13639 ${build}) ;;
13640 *) USE_DEJAGNU=yes ;;
13641 esac
13644 # All known GOARCH values. This is the union of all architectures
13645 # supported by the gofrontend and all architectures supported by the
13646 # gc toolchain.
13647 # N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
13648 ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x sparc sparc64"
13650 # All known GOARCH_FAMILY values.
13651 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64"
13653 GOARCH=unknown
13654 GOARCH_FAMILY=unknown
13655 GOARCH_BIGENDIAN=0
13656 GOARCH_CACHELINESIZE=64
13657 GOARCH_PHYSPAGESIZE=4096
13658 GOARCH_PCQUANTUM=1
13659 GOARCH_INT64ALIGN=8
13660 GOARCH_HUGEPAGESIZE=0
13661 GOARCH_MINFRAMESIZE=0
13662 case ${host} in
13663 alpha*-*-*)
13664 GOARCH=alpha
13665 GOARCH_FAMILY=ALPHA
13666 GOARCH_PHYSPAGESIZE=8192
13667 GOARCH_PCQUANTUM=4
13669 aarch64-*-*)
13670 GOARCH=arm64
13671 GOARCH_FAMILY=ARM64
13672 GOARCH_CACHELINESIZE=32
13673 GOARCH_PHYSPAGESIZE=65536
13674 GOARCH_PCQUANTUM=4
13675 GOARCH_MINFRAMESIZE=8
13677 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13678 GOARCH=arm
13679 GOARCH_FAMILY=ARM
13680 GOARCH_CACHELINESIZE=32
13681 GOARCH_PCQUANTUM=4
13682 GOARCH_MINFRAMESIZE=4
13684 i[34567]86-*-* | x86_64-*-*)
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13688 #ifdef __x86_64__
13689 #error 64-bit
13690 #endif
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"; then :
13693 GOARCH=386
13694 GOARCH_FAMILY=I386
13695 GOARCH_INT64ALIGN=4
13696 GOARCH_HUGEPAGESIZE="1 << 21"
13698 else
13699 GOARCH=amd64
13700 GOARCH_FAMILY=AMD64
13701 GOARCH_HUGEPAGESIZE="1 << 21"
13704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13706 ia64-*-*)
13707 GOARCH=ia64
13708 GOARCH_FAMILY=IA64
13709 GOARCH_CACHELINESIZE=16384
13710 GOARCH_PHYSPAGESIZE=65536
13712 m68k*-*-*)
13713 GOARCH=m68k
13714 GOARCH_FAMILY=M68K
13715 GOARCH_BIGENDIAN=1
13716 GOARCH_CACHELINESIZE=16
13717 GOARCH_PCQUANTUM=4
13718 GOARCH_INT64ALIGN=2
13720 mips*-*-*)
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13724 #if _MIPS_SIM != _ABIO32
13725 #error not o32
13726 #endif
13727 _ACEOF
13728 if ac_fn_c_try_compile "$LINENO"; then :
13729 mips_abi="o32"
13730 else
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13734 #if _MIPS_SIM != _ABIN32
13735 #error not n32
13736 #endif
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739 mips_abi="n32"
13740 else
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13744 #if _MIPS_SIM != _ABI64
13745 #error not n64
13746 #endif
13747 _ACEOF
13748 if ac_fn_c_try_compile "$LINENO"; then :
13749 mips_abi="n64"
13750 else
13751 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13752 mips_abi="n32"
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759 case "$mips_abi" in
13760 "o32") GOARCH=mips ;;
13761 "n32") GOARCH=mips64p32 ;;
13762 "n64") GOARCH=mips64 ;;
13763 esac
13764 case "$mips_abi" in
13765 "o32" | "n32")
13766 GOARCH_FAMILY=MIPS
13767 GOARCH_MINFRAMESIZE=4
13769 "n64")
13770 GOARCH_FAMILY=MIPS64
13771 GOARCH_MINFRAMESIZE=8
13773 esac
13774 case "${host}" in
13775 mips*el-*-*)
13776 GOARCH="${GOARCH}le"
13779 GOARCH_BIGENDIAN=1
13781 esac
13782 GOARCH_CACHELINESIZE=32
13783 GOARCH_PHYSPAGESIZE=16384
13784 GOARCH_PCQUANTUM=4
13786 rs6000*-*-* | powerpc*-*-*)
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 #ifdef _ARCH_PPC64
13791 #error 64-bit
13792 #endif
13793 _ACEOF
13794 if ac_fn_c_try_compile "$LINENO"; then :
13795 GOARCH=ppc
13796 GOARCH_FAMILY=PPC
13797 GOARCH_BIGENDIAN=1
13799 else
13801 GOARCH_FAMILY=PPC64
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13805 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13806 #error 64be
13807 #endif
13808 _ACEOF
13809 if ac_fn_c_try_compile "$LINENO"; then :
13810 GOARCH=ppc64le
13812 else
13813 GOARCH=ppc64
13814 GOARCH_BIGENDIAN=1
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13820 GOARCH_PHYSPAGESIZE=65536
13821 GOARCH_PCQUANTUM=4
13822 GOARCH_MINFRAMESIZE=32
13824 s390*-*-*)
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13828 #if defined(__s390x__)
13829 #error 64-bit
13830 #endif
13831 _ACEOF
13832 if ac_fn_c_try_compile "$LINENO"; then :
13833 GOARCH=s390
13834 GOARCH_FAMILY=S390
13835 GOARCH_MINFRAMESIZE=4
13837 else
13838 GOARCH=s390x
13839 GOARCH_FAMILY=S390X
13840 GOARCH_MINFRAMESIZE=8
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 GOARCH_BIGENDIAN=1
13845 GOARCH_CACHELINESIZE=256
13846 GOARCH_PCQUANTUM=2
13848 sparc*-*-*)
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13852 #if defined(__sparcv9) || defined(__arch64__)
13853 #error 64-bit
13854 #endif
13855 _ACEOF
13856 if ac_fn_c_try_compile "$LINENO"; then :
13857 GOARCH=sparc
13858 GOARCH_FAMILY=SPARC
13860 else
13861 GOARCH=sparc64
13862 GOARCH_FAMILY=SPARC64
13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 GOARCH_BIGENDIAN=1
13867 GOARCH_PHYSPAGESIZE=8192
13868 GOARCH_PCQUANTUM=4
13870 esac
13883 GO_LIBCALL_OS_FILE=
13884 GO_LIBCALL_OS_ARCH_FILE=
13885 GO_SYSCALL_OS_FILE=
13886 GO_SYSCALL_OS_ARCH_FILE=
13887 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13888 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13890 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13891 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13893 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13894 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13896 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13897 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13904 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13905 case "$target" in
13906 mips-sgi-irix6.5*)
13907 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13908 # msghdr in <sys/socket.h>.
13909 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13911 *-*-solaris2.1[01])
13912 # Solaris 10+ needs this so struct msghdr gets the msg_control
13913 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13914 # above doesn't work with C99.
13915 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13917 esac
13921 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
13923 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
13924 # with a different meaning.
13925 case ${target_os} in
13926 solaris2*)
13927 ac_save_CFLAGS="$CFLAGS"
13928 CFLAGS="$CFLAGS -Wa,-nH"
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
13931 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13936 main ()
13938 return 0;
13940 return 0;
13942 _ACEOF
13943 if ac_fn_c_try_compile "$LINENO"; then :
13944 ac_hwcap_flags=yes
13945 else
13946 ac_hwcap_flags=no
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 if test "$ac_hwcap_flags" = "yes"; then
13950 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
13953 $as_echo "$ac_hwcap_flags" >&6; }
13955 CFLAGS="$ac_save_CFLAGS"
13957 esac
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13963 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13964 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13965 $as_echo_n "(cached) " >&6
13966 else
13967 CFLAGS_hold=$CFLAGS
13968 CFLAGS="$CFLAGS -fsplit-stack"
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 int i;
13972 _ACEOF
13973 if ac_fn_c_try_compile "$LINENO"; then :
13974 libgo_cv_c_split_stack_supported=yes
13975 else
13976 libgo_cv_c_split_stack_supported=no
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 CFLAGS=$CFLAGS_hold
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13982 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
13985 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
13986 if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 cat > conftest1.c << EOF
13990 extern void f();
13991 int main() { f(); return 0; }
13993 cat > conftest2.c << EOF
13994 void f() {}
13996 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
13997 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
13998 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
13999 libgo_cv_c_linker_split_non_split=yes
14000 else
14001 libgo_cv_c_linker_split_non_split=no
14003 rm -f conftest1.* conftest2.* conftest
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14006 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14008 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14009 SPLIT_STACK=-fsplit-stack
14011 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14013 else
14014 SPLIT_STACK=
14017 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14018 USING_SPLIT_STACK_TRUE=
14019 USING_SPLIT_STACK_FALSE='#'
14020 else
14021 USING_SPLIT_STACK_TRUE='#'
14022 USING_SPLIT_STACK_FALSE=
14026 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14027 GO_SPLIT_STACK=-fno-split-stack
14028 else
14029 GO_SPLIT_STACK=
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14034 $as_echo_n "checking whether linker supports split stack... " >&6; }
14035 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 libgo_cv_c_linker_supports_split_stack=no
14039 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14040 libgo_cv_c_linker_supports_split_stack=yes
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14044 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14045 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14047 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14052 $as_echo_n "checking whether compiler is llgo... " >&6; }
14053 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 libgo_cv_c_goc_is_llgo=no
14057 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14058 libgo_cv_c_goc_is_llgo=yes
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14062 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14063 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14064 GOC_IS_LLGO_TRUE=
14065 GOC_IS_LLGO_FALSE='#'
14066 else
14067 GOC_IS_LLGO_TRUE='#'
14068 GOC_IS_LLGO_FALSE=
14072 MATH_LIBS=
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14074 $as_echo_n "checking for sqrt in -lm... " >&6; }
14075 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 ac_check_lib_save_LIBS=$LIBS
14079 LIBS="-lm $LIBS"
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14083 /* Override any GCC internal prototype to avoid an error.
14084 Use char because int might match the return type of a GCC
14085 builtin and then its argument prototype would still apply. */
14086 #ifdef __cplusplus
14087 extern "C"
14088 #endif
14089 char sqrt ();
14091 main ()
14093 return sqrt ();
14095 return 0;
14097 _ACEOF
14098 if ac_fn_c_try_link "$LINENO"; then :
14099 ac_cv_lib_m_sqrt=yes
14100 else
14101 ac_cv_lib_m_sqrt=no
14103 rm -f core conftest.err conftest.$ac_objext \
14104 conftest$ac_exeext conftest.$ac_ext
14105 LIBS=$ac_check_lib_save_LIBS
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14108 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14109 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14110 MATH_LIBS=-lm
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14116 $as_echo_n "checking for socket libraries... " >&6; }
14117 if test "${libgo_cv_lib_sockets+set}" = set; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 libgo_cv_lib_sockets=
14121 libgo_check_both=no
14122 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14123 if test "x$ac_cv_func_connect" = x""yes; then :
14124 libgo_check_socket=no
14125 else
14126 libgo_check_socket=yes
14129 if test "$libgo_check_socket" = "yes"; then
14130 unset ac_cv_func_connect
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14132 $as_echo_n "checking for main in -lsocket... " >&6; }
14133 if test "${ac_cv_lib_socket_main+set}" = set; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 ac_check_lib_save_LIBS=$LIBS
14137 LIBS="-lsocket $LIBS"
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14143 main ()
14145 return main ();
14147 return 0;
14149 _ACEOF
14150 if ac_fn_c_try_link "$LINENO"; then :
14151 ac_cv_lib_socket_main=yes
14152 else
14153 ac_cv_lib_socket_main=no
14155 rm -f core conftest.err conftest.$ac_objext \
14156 conftest$ac_exeext conftest.$ac_ext
14157 LIBS=$ac_check_lib_save_LIBS
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14160 $as_echo "$ac_cv_lib_socket_main" >&6; }
14161 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14162 libgo_cv_lib_sockets="-lsocket"
14163 else
14164 libgo_check_both=yes
14168 if test "$libgo_check_both" = "yes"; then
14169 libgo_old_libs=$LIBS
14170 LIBS="$LIBS -lsocket -lnsl"
14171 unset ac_cv_func_accept
14172 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14173 if test "x$ac_cv_func_accept" = x""yes; then :
14174 libgo_check_nsl=no
14175 libgo_cv_lib_sockets="-lsocket -lnsl"
14178 unset ac_cv_func_accept
14179 LIBS=$libgo_old_libs
14181 unset ac_cv_func_gethostbyname
14182 libgo_old_libs="$LIBS"
14183 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14184 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14186 else
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14188 $as_echo_n "checking for main in -lnsl... " >&6; }
14189 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 ac_check_lib_save_LIBS=$LIBS
14193 LIBS="-lnsl $LIBS"
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14199 main ()
14201 return main ();
14203 return 0;
14205 _ACEOF
14206 if ac_fn_c_try_link "$LINENO"; then :
14207 ac_cv_lib_nsl_main=yes
14208 else
14209 ac_cv_lib_nsl_main=no
14211 rm -f core conftest.err conftest.$ac_objext \
14212 conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14216 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14217 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14218 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14223 unset ac_cv_func_gethostbyname
14224 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14225 if test "x$ac_cv_func_sendfile" = x""yes; then :
14227 else
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14229 $as_echo_n "checking for main in -lsendfile... " >&6; }
14230 if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 ac_check_lib_save_LIBS=$LIBS
14234 LIBS="-lsendfile $LIBS"
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14240 main ()
14242 return main ();
14244 return 0;
14246 _ACEOF
14247 if ac_fn_c_try_link "$LINENO"; then :
14248 ac_cv_lib_sendfile_main=yes
14249 else
14250 ac_cv_lib_sendfile_main=no
14252 rm -f core conftest.err conftest.$ac_objext \
14253 conftest$ac_exeext conftest.$ac_ext
14254 LIBS=$ac_check_lib_save_LIBS
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14257 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14258 if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14259 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14264 LIBS=$libgo_old_libs
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14268 $as_echo "$libgo_cv_lib_sockets" >&6; }
14269 NET_LIBS="$libgo_cv_lib_sockets"
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14273 $as_echo_n "checking whether -pthread is supported... " >&6; }
14274 if test "${libgo_cv_lib_pthread+set}" = set; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 CFLAGS_hold=$CFLAGS
14278 CFLAGS="$CFLAGS -pthread"
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 int i;
14282 _ACEOF
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 libgo_cv_lib_pthread=yes
14285 else
14286 libgo_cv_lib_pthread=no
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 CFLAGS=$CFLAGS_hold
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14292 $as_echo "$libgo_cv_lib_pthread" >&6; }
14293 PTHREAD_CFLAGS=
14294 if test "$libgo_cv_lib_pthread" = yes; then
14295 PTHREAD_CFLAGS=-pthread
14299 PTHREAD_LIBS=
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14301 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14302 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 ac_check_lib_save_LIBS=$LIBS
14306 LIBS="-lpthread $LIBS"
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14310 /* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14313 #ifdef __cplusplus
14314 extern "C"
14315 #endif
14316 char pthread_create ();
14318 main ()
14320 return pthread_create ();
14322 return 0;
14324 _ACEOF
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 ac_cv_lib_pthread_pthread_create=yes
14327 else
14328 ac_cv_lib_pthread_pthread_create=no
14330 rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14332 LIBS=$ac_check_lib_save_LIBS
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14335 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14336 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14337 PTHREAD_LIBS=-lpthread
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14343 $as_echo_n "checking for library containing sched_yield... " >&6; }
14344 if test "${ac_cv_search_sched_yield+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 ac_func_search_save_LIBS=$LIBS
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14354 #ifdef __cplusplus
14355 extern "C"
14356 #endif
14357 char sched_yield ();
14359 main ()
14361 return sched_yield ();
14363 return 0;
14365 _ACEOF
14366 for ac_lib in '' rt; do
14367 if test -z "$ac_lib"; then
14368 ac_res="none required"
14369 else
14370 ac_res=-l$ac_lib
14371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14373 if ac_fn_c_try_link "$LINENO"; then :
14374 ac_cv_search_sched_yield=$ac_res
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext
14378 if test "${ac_cv_search_sched_yield+set}" = set; then :
14379 break
14381 done
14382 if test "${ac_cv_search_sched_yield+set}" = set; then :
14384 else
14385 ac_cv_search_sched_yield=no
14387 rm conftest.$ac_ext
14388 LIBS=$ac_func_search_save_LIBS
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14391 $as_echo "$ac_cv_search_sched_yield" >&6; }
14392 ac_res=$ac_cv_search_sched_yield
14393 if test "$ac_res" != no; then :
14394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14399 $as_echo_n "checking for library containing nanosleep... " >&6; }
14400 if test "${ac_cv_search_nanosleep+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 ac_func_search_save_LIBS=$LIBS
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14407 /* Override any GCC internal prototype to avoid an error.
14408 Use char because int might match the return type of a GCC
14409 builtin and then its argument prototype would still apply. */
14410 #ifdef __cplusplus
14411 extern "C"
14412 #endif
14413 char nanosleep ();
14415 main ()
14417 return nanosleep ();
14419 return 0;
14421 _ACEOF
14422 for ac_lib in '' rt; do
14423 if test -z "$ac_lib"; then
14424 ac_res="none required"
14425 else
14426 ac_res=-l$ac_lib
14427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14429 if ac_fn_c_try_link "$LINENO"; then :
14430 ac_cv_search_nanosleep=$ac_res
14432 rm -f core conftest.err conftest.$ac_objext \
14433 conftest$ac_exeext
14434 if test "${ac_cv_search_nanosleep+set}" = set; then :
14435 break
14437 done
14438 if test "${ac_cv_search_nanosleep+set}" = set; then :
14440 else
14441 ac_cv_search_nanosleep=no
14443 rm conftest.$ac_ext
14444 LIBS=$ac_func_search_save_LIBS
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14447 $as_echo "$ac_cv_search_nanosleep" >&6; }
14448 ac_res=$ac_cv_search_nanosleep
14449 if test "$ac_res" != no; then :
14450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14455 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14456 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 ac_func_search_save_LIBS=$LIBS
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14463 /* Override any GCC internal prototype to avoid an error.
14464 Use char because int might match the return type of a GCC
14465 builtin and then its argument prototype would still apply. */
14466 #ifdef __cplusplus
14467 extern "C"
14468 #endif
14469 char clock_gettime ();
14471 main ()
14473 return clock_gettime ();
14475 return 0;
14477 _ACEOF
14478 for ac_lib in '' rt; do
14479 if test -z "$ac_lib"; then
14480 ac_res="none required"
14481 else
14482 ac_res=-l$ac_lib
14483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14485 if ac_fn_c_try_link "$LINENO"; then :
14486 ac_cv_search_clock_gettime=$ac_res
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext
14490 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14491 break
14493 done
14494 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14496 else
14497 ac_cv_search_clock_gettime=no
14499 rm conftest.$ac_ext
14500 LIBS=$ac_func_search_save_LIBS
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14503 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14504 ac_res=$ac_cv_search_clock_gettime
14505 if test "$ac_res" != no; then :
14506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14512 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14513 if test "${ac_cv_c_bigendian+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 ac_cv_c_bigendian=unknown
14517 # See if we're dealing with a universal compiler.
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 #ifndef __APPLE_CC__
14521 not a universal capable compiler
14522 #endif
14523 typedef int dummy;
14525 _ACEOF
14526 if ac_fn_c_try_compile "$LINENO"; then :
14528 # Check for potential -arch flags. It is not universal unless
14529 # there are at least two -arch flags with different values.
14530 ac_arch=
14531 ac_prev=
14532 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14533 if test -n "$ac_prev"; then
14534 case $ac_word in
14535 i?86 | x86_64 | ppc | ppc64)
14536 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14537 ac_arch=$ac_word
14538 else
14539 ac_cv_c_bigendian=universal
14540 break
14543 esac
14544 ac_prev=
14545 elif test "x$ac_word" = "x-arch"; then
14546 ac_prev=arch
14548 done
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14551 if test $ac_cv_c_bigendian = unknown; then
14552 # See if sys/param.h defines the BYTE_ORDER macro.
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14555 #include <sys/types.h>
14556 #include <sys/param.h>
14559 main ()
14561 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14562 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14563 && LITTLE_ENDIAN)
14564 bogus endian macros
14565 #endif
14568 return 0;
14570 _ACEOF
14571 if ac_fn_c_try_compile "$LINENO"; then :
14572 # It does; now see whether it defined to BIG_ENDIAN or not.
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575 #include <sys/types.h>
14576 #include <sys/param.h>
14579 main ()
14581 #if BYTE_ORDER != BIG_ENDIAN
14582 not big endian
14583 #endif
14586 return 0;
14588 _ACEOF
14589 if ac_fn_c_try_compile "$LINENO"; then :
14590 ac_cv_c_bigendian=yes
14591 else
14592 ac_cv_c_bigendian=no
14594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598 if test $ac_cv_c_bigendian = unknown; then
14599 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14602 #include <limits.h>
14605 main ()
14607 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14608 bogus endian macros
14609 #endif
14612 return 0;
14614 _ACEOF
14615 if ac_fn_c_try_compile "$LINENO"; then :
14616 # It does; now see whether it defined to _BIG_ENDIAN or not.
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 #include <limits.h>
14622 main ()
14624 #ifndef _BIG_ENDIAN
14625 not big endian
14626 #endif
14629 return 0;
14631 _ACEOF
14632 if ac_fn_c_try_compile "$LINENO"; then :
14633 ac_cv_c_bigendian=yes
14634 else
14635 ac_cv_c_bigendian=no
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 if test $ac_cv_c_bigendian = unknown; then
14642 # Compile a test program.
14643 if test "$cross_compiling" = yes; then :
14644 # Try to guess by grepping values from an object file.
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 short int ascii_mm[] =
14648 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14649 short int ascii_ii[] =
14650 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14651 int use_ascii (int i) {
14652 return ascii_mm[i] + ascii_ii[i];
14654 short int ebcdic_ii[] =
14655 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14656 short int ebcdic_mm[] =
14657 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14658 int use_ebcdic (int i) {
14659 return ebcdic_mm[i] + ebcdic_ii[i];
14661 extern int foo;
14664 main ()
14666 return use_ascii (foo) == use_ebcdic (foo);
14668 return 0;
14670 _ACEOF
14671 if ac_fn_c_try_compile "$LINENO"; then :
14672 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14673 ac_cv_c_bigendian=yes
14675 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14676 if test "$ac_cv_c_bigendian" = unknown; then
14677 ac_cv_c_bigendian=no
14678 else
14679 # finding both strings is unlikely to happen, but who knows?
14680 ac_cv_c_bigendian=unknown
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 else
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14688 $ac_includes_default
14690 main ()
14693 /* Are we little or big endian? From Harbison&Steele. */
14694 union
14696 long int l;
14697 char c[sizeof (long int)];
14698 } u;
14699 u.l = 1;
14700 return u.c[sizeof (long int) - 1] == 1;
14703 return 0;
14705 _ACEOF
14706 if ac_fn_c_try_run "$LINENO"; then :
14707 ac_cv_c_bigendian=no
14708 else
14709 ac_cv_c_bigendian=yes
14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14712 conftest.$ac_objext conftest.beam conftest.$ac_ext
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14718 $as_echo "$ac_cv_c_bigendian" >&6; }
14719 case $ac_cv_c_bigendian in #(
14720 yes)
14721 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14722 ;; #(
14724 ;; #(
14725 universal)
14727 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14729 ;; #(
14731 as_fn_error "unknown endianness
14732 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14733 esac
14738 # Check whether --with-system-libunwind was given.
14739 if test "${with_system_libunwind+set}" = set; then :
14740 withval=$with_system_libunwind;
14743 # If system-libunwind was not specifically set, pick a default setting.
14744 if test x$with_system_libunwind = x; then
14745 case ${target} in
14746 ia64-*-hpux*) with_system_libunwind=yes ;;
14747 *) with_system_libunwind=no ;;
14748 esac
14750 # Based on system-libunwind and target, do we have ipinfo?
14751 if test x$with_system_libunwind = xyes; then
14752 case ${target} in
14753 ia64-*-*) have_unwind_getipinfo=no ;;
14754 *) have_unwind_getipinfo=yes ;;
14755 esac
14756 else
14757 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14759 case ${target} in
14760 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14761 *) have_unwind_getipinfo=yes ;;
14762 esac
14766 if test x$have_unwind_getipinfo = xyes; then
14768 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14773 for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.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/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14774 do :
14775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14776 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14777 eval as_val=\$$as_ac_Header
14778 if test "x$as_val" = x""yes; then :
14779 cat >>confdefs.h <<_ACEOF
14780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14781 _ACEOF
14785 done
14788 for ac_header in netinet/icmp6.h
14789 do :
14790 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
14793 if test "x$ac_cv_header_netinet_icmp6_h" = x""yes; then :
14794 cat >>confdefs.h <<_ACEOF
14795 #define HAVE_NETINET_ICMP6_H 1
14796 _ACEOF
14800 done
14803 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
14804 do :
14805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14806 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14807 #include <sys/socket.h>
14808 #endif
14811 eval as_val=\$$as_ac_Header
14812 if test "x$as_val" = x""yes; then :
14813 cat >>confdefs.h <<_ACEOF
14814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14815 _ACEOF
14819 done
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14823 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14824 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14825 $as_echo_n "(cached) " >&6
14826 else
14827 CFLAGS_hold=$CFLAGS
14828 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14832 #include <sys/types.h>
14833 #ifdef HAVE_LINUX_FILTER_H
14834 #include <linux/filter.h>
14835 #endif
14836 #include <ustat.h>
14838 _ACEOF
14839 if ac_fn_c_try_compile "$LINENO"; then :
14840 libgo_cv_c_ustat_h=yes
14841 else
14842 libgo_cv_c_ustat_h=no
14844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 CFLAGS=$CFLAGS_hold
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14848 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14849 if test $libgo_cv_c_ustat_h = yes; then
14851 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14855 if test "$ac_cv_header_sys_mman_h" = yes; then
14856 HAVE_SYS_MMAN_H_TRUE=
14857 HAVE_SYS_MMAN_H_FALSE='#'
14858 else
14859 HAVE_SYS_MMAN_H_TRUE='#'
14860 HAVE_SYS_MMAN_H_FALSE=
14864 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14865 do :
14866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14868 eval as_val=\$$as_ac_var
14869 if test "x$as_val" = x""yes; then :
14870 cat >>confdefs.h <<_ACEOF
14871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14872 _ACEOF
14875 done
14877 if test "$ac_cv_func_strerror_r" = yes; then
14878 HAVE_STRERROR_R_TRUE=
14879 HAVE_STRERROR_R_FALSE='#'
14880 else
14881 HAVE_STRERROR_R_TRUE='#'
14882 HAVE_STRERROR_R_FALSE=
14885 if test "$ac_cv_func_wait4" = yes; then
14886 HAVE_WAIT4_TRUE=
14887 HAVE_WAIT4_FALSE='#'
14888 else
14889 HAVE_WAIT4_TRUE='#'
14890 HAVE_WAIT4_FALSE=
14894 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 syscall tee unlinkat unshare utimensat
14895 do :
14896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14897 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14898 eval as_val=\$$as_ac_var
14899 if test "x$as_val" = x""yes; then :
14900 cat >>confdefs.h <<_ACEOF
14901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14902 _ACEOF
14905 done
14907 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14908 if test "x$ac_cv_type_off_t" = x""yes; then :
14910 else
14912 cat >>confdefs.h <<_ACEOF
14913 #define off_t long int
14914 _ACEOF
14918 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14919 if test "x$ac_cv_type_loff_t" = x""yes; then :
14921 cat >>confdefs.h <<_ACEOF
14922 #define HAVE_LOFF_T 1
14923 _ACEOF
14929 LIBS_hold="$LIBS"
14930 LIBS="$LIBS -lm"
14931 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14932 do :
14933 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14934 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14935 eval as_val=\$$as_ac_var
14936 if test "x$as_val" = x""yes; then :
14937 cat >>confdefs.h <<_ACEOF
14938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14939 _ACEOF
14942 done
14944 LIBS="$LIBS_hold"
14946 CFLAGS_hold="$CFLAGS"
14947 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14948 LIBS_hold="$LIBS"
14949 LIBS="$LIBS $PTHREAD_LIBS"
14950 for ac_func in sem_timedwait
14951 do :
14952 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14953 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_SEM_TIMEDWAIT 1
14956 _ACEOF
14959 done
14961 CFLAGS="$CFLAGS_hold"
14962 LIBS="$LIBS_hold"
14964 LIBS_hold="$LIBS"
14965 LIBS="$LIBS $MATH_LIBS"
14966 for ac_func in matherr
14967 do :
14968 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14969 if test "x$ac_cv_func_matherr" = x""yes; then :
14970 cat >>confdefs.h <<_ACEOF
14971 #define HAVE_MATHERR 1
14972 _ACEOF
14975 done
14977 LIBS="$LIBS_hold"
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14980 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14981 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14982 $as_echo_n "(cached) " >&6
14983 else
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14987 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14988 uint32 i;
14989 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14991 _ACEOF
14992 if ac_fn_c_try_link "$LINENO"; then :
14993 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14994 else
14995 libgo_cv_func___sync_bool_compare_and_swap_4=no
14997 rm -f core conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
15001 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
15002 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
15004 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
15009 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
15010 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
15011 $as_echo_n "(cached) " >&6
15012 else
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15016 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15017 uint64 i;
15018 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15020 _ACEOF
15021 if ac_fn_c_try_link "$LINENO"; then :
15022 libgo_cv_func___sync_bool_compare_and_swap_8=yes
15023 else
15024 libgo_cv_func___sync_bool_compare_and_swap_8=no
15026 rm -f core conftest.err conftest.$ac_objext \
15027 conftest$ac_exeext conftest.$ac_ext
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
15030 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
15031 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
15033 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
15038 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
15039 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
15040 $as_echo_n "(cached) " >&6
15041 else
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15045 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15046 uint32 i;
15047 int main() { return __sync_fetch_and_add (&i, 1); }
15049 _ACEOF
15050 if ac_fn_c_try_link "$LINENO"; then :
15051 libgo_cv_func___sync_fetch_and_add_4=yes
15052 else
15053 libgo_cv_func___sync_fetch_and_add_4=no
15055 rm -f core conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15059 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15060 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15062 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15067 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15068 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15074 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15075 uint64 i;
15076 int main() { return __sync_add_and_fetch (&i, 1); }
15078 _ACEOF
15079 if ac_fn_c_try_link "$LINENO"; then :
15080 libgo_cv_func___sync_add_and_fetch_8=yes
15081 else
15082 libgo_cv_func___sync_add_and_fetch_8=no
15084 rm -f core conftest.err conftest.$ac_objext \
15085 conftest$ac_exeext conftest.$ac_ext
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15088 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15089 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15091 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15096 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15097 if test "${libgo_cv_c_stringops+set}" = set; then :
15098 $as_echo_n "(cached) " >&6
15099 else
15100 CFLAGS_hold=$CFLAGS
15101 CFLAGS="$CFLAGS -minline-all-stringops"
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104 int i;
15105 _ACEOF
15106 if ac_fn_c_try_compile "$LINENO"; then :
15107 libgo_cv_c_stringops=yes
15108 else
15109 libgo_cv_c_stringops=no
15111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 CFLAGS=$CFLAGS_hold
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15115 $as_echo "$libgo_cv_c_stringops" >&6; }
15116 STRINGOPS_FLAG=
15117 if test "$libgo_cv_c_stringops" = yes; then
15118 STRINGOPS_FLAG=-minline-all-stringops
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15123 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15124 if test "${libgo_cv_c_fancymath+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 CFLAGS_hold=$CFLAGS
15128 CFLAGS="$CFLAGS -mfancy-math-387"
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131 int i;
15132 _ACEOF
15133 if ac_fn_c_try_compile "$LINENO"; then :
15134 libgo_cv_c_fancymath=yes
15135 else
15136 libgo_cv_c_fancymath=no
15138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15139 CFLAGS=$CFLAGS_hold
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15142 $as_echo "$libgo_cv_c_fancymath" >&6; }
15143 MATH_FLAG=
15144 if test "$libgo_cv_c_fancymath" = yes; then
15145 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15146 else
15147 MATH_FLAG="-ffp-contract=off"
15151 CFLAGS_hold=$CFLAGS
15152 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15153 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15154 if test "x$ac_cv_type_off64_t" = x""yes; then :
15156 cat >>confdefs.h <<_ACEOF
15157 #define HAVE_OFF64_T 1
15158 _ACEOF
15163 CFLAGS=$CFLAGS_hold
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15166 $as_echo_n "checking epoll_event size... " >&6; }
15167 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15168 $as_echo_n "(cached) " >&6
15169 else
15170 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15172 else
15173 libgo_cv_c_epoll_event_size=0
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15178 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15179 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15183 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15184 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15185 $as_echo_n "(cached) " >&6
15186 else
15187 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15188 #include <sys/epoll.h>"; then :
15190 else
15191 libgo_cv_c_epoll_event_fd_offset=0
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15196 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15197 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202 #include <sys/stat.h>
15204 _ACEOF
15205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15206 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15207 have_stat_timespec=yes
15208 else
15209 have_stat_timespec=no
15211 rm -f conftest*
15213 if test $have_stat_timespec = yes; then
15214 HAVE_STAT_TIMESPEC_TRUE=
15215 HAVE_STAT_TIMESPEC_FALSE='#'
15216 else
15217 HAVE_STAT_TIMESPEC_TRUE='#'
15218 HAVE_STAT_TIMESPEC_FALSE=
15222 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15224 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15225 libgo_has_struct_exception=yes
15226 else
15227 libgo_has_struct_exception=no
15230 if test "$libgo_has_struct_exception" = "yes"; then
15232 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15237 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15238 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15239 $as_echo_n "(cached) " >&6
15240 else
15241 CFLAGS_hold="$CFLAGS"
15242 CFLAGS="$PTHREAD_CFLAGS"
15243 LIBS_hold="$LIBS"
15244 LIBS="$LIBS $PTHREAD_LIBS"
15245 # The cast to long int works around a bug in the HP C Compiler
15246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15248 # This bug is HP SR number 8606223364.
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15250 $as_echo_n "checking size of void *... " >&6; }
15251 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15256 else
15257 if test "$ac_cv_type_void_p" = yes; then
15258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15260 { as_fn_set_status 77
15261 as_fn_error "cannot compute sizeof (void *)
15262 See \`config.log' for more details." "$LINENO" 5; }; }
15263 else
15264 ac_cv_sizeof_void_p=0
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15270 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15274 cat >>confdefs.h <<_ACEOF
15275 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15276 _ACEOF
15279 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15280 if test "$cross_compiling" = yes; then :
15281 case "$target:$ptr_type_size" in
15282 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15283 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15285 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15286 esac
15288 else
15289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290 /* end confdefs.h. */
15292 #include <pthread.h>
15293 #include <stdlib.h>
15294 #include <ucontext.h>
15295 #include <unistd.h>
15297 __thread int tls;
15299 static char stack[10 * 1024 * 1024];
15300 static ucontext_t c;
15302 /* Called via makecontext/setcontext. */
15304 static void
15305 cfn (void)
15307 exit (tls);
15310 /* Called via pthread_create. */
15312 static void *
15313 tfn (void *dummy)
15315 /* The thread should still see this value after calling
15316 setcontext. */
15317 tls = 0;
15319 setcontext (&c);
15321 /* The call to setcontext should not return. */
15322 abort ();
15326 main ()
15328 pthread_t tid;
15330 /* The thread should not see this value. */
15331 tls = 1;
15333 if (getcontext (&c) < 0)
15334 abort ();
15336 c.uc_stack.ss_sp = stack;
15337 #ifdef MAKECONTEXT_STACK_TOP
15338 c.uc_stack.ss_sp += sizeof stack;
15339 #endif
15340 c.uc_stack.ss_flags = 0;
15341 c.uc_stack.ss_size = sizeof stack;
15342 c.uc_link = NULL;
15343 makecontext (&c, cfn, 0);
15345 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15346 abort ();
15348 if (pthread_join (tid, NULL) != 0)
15349 abort ();
15351 /* The thread should have called exit. */
15352 abort ();
15355 _ACEOF
15356 if ac_fn_c_try_run "$LINENO"; then :
15357 libgo_cv_lib_setcontext_clobbers_tls=no
15358 else
15359 libgo_cv_lib_setcontext_clobbers_tls=yes
15361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15362 conftest.$ac_objext conftest.beam conftest.$ac_ext
15365 CFLAGS="$CFLAGS_hold"
15366 LIBS="$LIBS_hold"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15370 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15371 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15373 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15378 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15379 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15380 $as_echo_n "(cached) " >&6
15381 else
15383 libgo_cv_ro_eh_frame=no
15384 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15385 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15386 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15387 libgo_cv_ro_eh_frame=yes
15388 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15389 | grep -v '#write' > /dev/null; then
15390 libgo_cv_ro_eh_frame=yes
15393 rm -f conftest.*
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15397 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15398 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15400 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15402 else
15404 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15409 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15410 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15411 $as_echo_n "(cached) " >&6
15412 else
15413 CFLAGS_hold=$CFLAGS
15414 CFLAGS="$CFLAGS -Qunused-arguments"
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15417 int i;
15418 _ACEOF
15419 if ac_fn_c_try_compile "$LINENO"; then :
15420 libgo_cv_c_unused_arguments=yes
15421 else
15422 libgo_cv_c_unused_arguments=no
15424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15425 CFLAGS=$CFLAGS_hold
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15428 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15431 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15432 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15433 $as_echo_n "(cached) " >&6
15434 else
15436 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15437 CFLAGS_hold=$CFLAGS
15438 if test "$libgo_cv_c_unused_arguments" = yes; then
15439 CFLAGS="$CFLAGS -Qunused-arguments"
15441 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15442 libgo_cv_as_comdat_gnu=yes
15443 else
15444 libgo_cv_as_comdat_gnu=no
15446 CFLAGS=$CFLAGS_hold
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15450 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15451 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15453 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15458 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15459 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15463 libgo_cv_as_x86_pcrel=yes
15464 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15465 CFLAGS_hold=$CFLAGS
15466 if test "$libgo_cv_c_unused_arguments" = yes; then
15467 CFLAGS="$CFLAGS -Qunused-arguments"
15469 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15470 libgo_cv_as_x86_pcrel=no
15472 CFLAGS=$CFLAGS_hold
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15476 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15477 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15479 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15484 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15485 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15486 $as_echo_n "(cached) " >&6
15487 else
15489 libgo_cv_as_x86_64_unwind_section_type=yes
15490 echo '.section .eh_frame,"a",@unwind' > conftest.s
15491 CFLAGS_hold=$CFLAGS
15492 if test "$libgo_cv_c_unused_arguments" = yes; then
15493 CFLAGS="$CFLAGS -Qunused-arguments"
15495 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15496 libgo_cv_as_x86_64_unwind_section_type=no
15498 CFLAGS=$CFLAGS_hold
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15502 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15503 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15505 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15510 $as_echo_n "checking assembler supports AES instructions... " >&6; }
15511 if test "${libgo_cv_as_x86_aes+set}" = set; then :
15512 $as_echo_n "(cached) " >&6
15513 else
15515 libgo_cv_as_x86_aes=yes
15516 echo 'aesenc %xmm0, %xmm1' > conftest.s
15517 CFLAGS_hold=$CFLAGS
15518 if test "$libgo_cv_c_unused_arguments" = yes; then
15519 CFLAGS="$CFLAGS -Qunused-arguments"
15521 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15522 libgo_cv_as_x86_aes=no
15524 CFLAGS=$CFLAGS_hold
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15528 $as_echo "$libgo_cv_as_x86_aes" >&6; }
15529 if test "x$libgo_cv_as_x86_aes" = xyes; then
15531 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15535 cat >confcache <<\_ACEOF
15536 # This file is a shell script that caches the results of configure
15537 # tests run on this system so they can be shared between configure
15538 # scripts and configure runs, see configure's option --config-cache.
15539 # It is not useful on other systems. If it contains results you don't
15540 # want to keep, you may remove or edit it.
15542 # config.status only pays attention to the cache file if you give it
15543 # the --recheck option to rerun configure.
15545 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15546 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15547 # following values.
15549 _ACEOF
15551 # The following way of writing the cache mishandles newlines in values,
15552 # but we know of no workaround that is simple, portable, and efficient.
15553 # So, we kill variables containing newlines.
15554 # Ultrix sh set writes to stderr and can't be redirected directly,
15555 # and sets the high bit in the cache file unless we assign to the vars.
15557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15558 eval ac_val=\$$ac_var
15559 case $ac_val in #(
15560 *${as_nl}*)
15561 case $ac_var in #(
15562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15563 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15564 esac
15565 case $ac_var in #(
15566 _ | IFS | as_nl) ;; #(
15567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15568 *) { eval $ac_var=; unset $ac_var;} ;;
15569 esac ;;
15570 esac
15571 done
15573 (set) 2>&1 |
15574 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15575 *${as_nl}ac_space=\ *)
15576 # `set' does not quote correctly, so add quotes: double-quote
15577 # substitution turns \\\\ into \\, and sed turns \\ into \.
15578 sed -n \
15579 "s/'/'\\\\''/g;
15580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15581 ;; #(
15583 # `set' quotes correctly as required by POSIX, so do not add quotes.
15584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15586 esac |
15587 sort
15589 sed '
15590 /^ac_cv_env_/b end
15591 t clear
15592 :clear
15593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15594 t end
15595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15596 :end' >>confcache
15597 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15598 if test -w "$cache_file"; then
15599 test "x$cache_file" != "x/dev/null" &&
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15601 $as_echo "$as_me: updating cache $cache_file" >&6;}
15602 cat confcache >$cache_file
15603 else
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15605 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15608 rm -f confcache
15610 if test ${multilib} = yes; then
15611 multilib_arg="--enable-multilib"
15612 else
15613 multilib_arg=
15616 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15619 ac_config_commands="$ac_config_commands default"
15622 cat >confcache <<\_ACEOF
15623 # This file is a shell script that caches the results of configure
15624 # tests run on this system so they can be shared between configure
15625 # scripts and configure runs, see configure's option --config-cache.
15626 # It is not useful on other systems. If it contains results you don't
15627 # want to keep, you may remove or edit it.
15629 # config.status only pays attention to the cache file if you give it
15630 # the --recheck option to rerun configure.
15632 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15633 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15634 # following values.
15636 _ACEOF
15638 # The following way of writing the cache mishandles newlines in values,
15639 # but we know of no workaround that is simple, portable, and efficient.
15640 # So, we kill variables containing newlines.
15641 # Ultrix sh set writes to stderr and can't be redirected directly,
15642 # and sets the high bit in the cache file unless we assign to the vars.
15644 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15645 eval ac_val=\$$ac_var
15646 case $ac_val in #(
15647 *${as_nl}*)
15648 case $ac_var in #(
15649 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15650 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15651 esac
15652 case $ac_var in #(
15653 _ | IFS | as_nl) ;; #(
15654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15655 *) { eval $ac_var=; unset $ac_var;} ;;
15656 esac ;;
15657 esac
15658 done
15660 (set) 2>&1 |
15661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15662 *${as_nl}ac_space=\ *)
15663 # `set' does not quote correctly, so add quotes: double-quote
15664 # substitution turns \\\\ into \\, and sed turns \\ into \.
15665 sed -n \
15666 "s/'/'\\\\''/g;
15667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15668 ;; #(
15670 # `set' quotes correctly as required by POSIX, so do not add quotes.
15671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15673 esac |
15674 sort
15676 sed '
15677 /^ac_cv_env_/b end
15678 t clear
15679 :clear
15680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15681 t end
15682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15683 :end' >>confcache
15684 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15685 if test -w "$cache_file"; then
15686 test "x$cache_file" != "x/dev/null" &&
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15688 $as_echo "$as_me: updating cache $cache_file" >&6;}
15689 cat confcache >$cache_file
15690 else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15692 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15695 rm -f confcache
15697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15698 # Let make expand exec_prefix.
15699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15701 DEFS=-DHAVE_CONFIG_H
15703 ac_libobjs=
15704 ac_ltlibobjs=
15705 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15706 # 1. Remove the extension, and $U if already installed.
15707 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15708 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15710 # will be set to the directory where LIBOBJS objects are built.
15711 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15712 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15713 done
15714 LIBOBJS=$ac_libobjs
15716 LTLIBOBJS=$ac_ltlibobjs
15719 if test -n "$EXEEXT"; then
15720 am__EXEEXT_TRUE=
15721 am__EXEEXT_FALSE='#'
15722 else
15723 am__EXEEXT_TRUE='#'
15724 am__EXEEXT_FALSE=
15727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15728 as_fn_error "conditional \"AMDEP\" was never defined.
15729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15732 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15735 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15736 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15739 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
15740 as_fn_error "conditional \"USE_LIBFFI\" was never defined.
15741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15744 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15747 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15748 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15751 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15752 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15755 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15756 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15760 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15763 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15764 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15767 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15768 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15771 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15772 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15775 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15776 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15779 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
15780 as_fn_error "conditional \"LIBGO_IS_AIX\" was never defined.
15781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15783 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15784 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15787 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15788 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15791 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15792 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15796 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15797 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15800 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15801 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15804 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15805 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15808 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15809 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15813 : ${CONFIG_STATUS=./config.status}
15814 ac_write_fail=0
15815 ac_clean_files_save=$ac_clean_files
15816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15819 as_write_fail=0
15820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15821 #! $SHELL
15822 # Generated by $as_me.
15823 # Run this file to recreate the current configuration.
15824 # Compiler output produced by configure, useful for debugging
15825 # configure, is in config.log if it exists.
15827 debug=false
15828 ac_cs_recheck=false
15829 ac_cs_silent=false
15831 SHELL=\${CONFIG_SHELL-$SHELL}
15832 export SHELL
15833 _ASEOF
15834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15835 ## -------------------- ##
15836 ## M4sh Initialization. ##
15837 ## -------------------- ##
15839 # Be more Bourne compatible
15840 DUALCASE=1; export DUALCASE # for MKS sh
15841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15842 emulate sh
15843 NULLCMD=:
15844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15845 # is contrary to our usage. Disable this feature.
15846 alias -g '${1+"$@"}'='"$@"'
15847 setopt NO_GLOB_SUBST
15848 else
15849 case `(set -o) 2>/dev/null` in #(
15850 *posix*) :
15851 set -o posix ;; #(
15852 *) :
15854 esac
15858 as_nl='
15860 export as_nl
15861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15865 # Prefer a ksh shell builtin over an external printf program on Solaris,
15866 # but without wasting forks for bash or zsh.
15867 if test -z "$BASH_VERSION$ZSH_VERSION" \
15868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15869 as_echo='print -r --'
15870 as_echo_n='print -rn --'
15871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15872 as_echo='printf %s\n'
15873 as_echo_n='printf %s'
15874 else
15875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15877 as_echo_n='/usr/ucb/echo -n'
15878 else
15879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15880 as_echo_n_body='eval
15881 arg=$1;
15882 case $arg in #(
15883 *"$as_nl"*)
15884 expr "X$arg" : "X\\(.*\\)$as_nl";
15885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15886 esac;
15887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15889 export as_echo_n_body
15890 as_echo_n='sh -c $as_echo_n_body as_echo'
15892 export as_echo_body
15893 as_echo='sh -c $as_echo_body as_echo'
15896 # The user is always right.
15897 if test "${PATH_SEPARATOR+set}" != set; then
15898 PATH_SEPARATOR=:
15899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15901 PATH_SEPARATOR=';'
15906 # IFS
15907 # We need space, tab and new line, in precisely that order. Quoting is
15908 # there to prevent editors from complaining about space-tab.
15909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15910 # splitting by setting IFS to empty value.)
15911 IFS=" "" $as_nl"
15913 # Find who we are. Look in the path if we contain no directory separator.
15914 case $0 in #((
15915 *[\\/]* ) as_myself=$0 ;;
15916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917 for as_dir in $PATH
15919 IFS=$as_save_IFS
15920 test -z "$as_dir" && as_dir=.
15921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15922 done
15923 IFS=$as_save_IFS
15926 esac
15927 # We did not find ourselves, most probably we were run as `sh COMMAND'
15928 # in which case we are not to be found in the path.
15929 if test "x$as_myself" = x; then
15930 as_myself=$0
15932 if test ! -f "$as_myself"; then
15933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15934 exit 1
15937 # Unset variables that we do not need and which cause bugs (e.g. in
15938 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15939 # suppresses any "Segmentation fault" message there. '((' could
15940 # trigger a bug in pdksh 5.2.14.
15941 for as_var in BASH_ENV ENV MAIL MAILPATH
15942 do eval test x\${$as_var+set} = xset \
15943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15944 done
15945 PS1='$ '
15946 PS2='> '
15947 PS4='+ '
15949 # NLS nuisances.
15950 LC_ALL=C
15951 export LC_ALL
15952 LANGUAGE=C
15953 export LANGUAGE
15955 # CDPATH.
15956 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15959 # as_fn_error ERROR [LINENO LOG_FD]
15960 # ---------------------------------
15961 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15962 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15963 # script with status $?, using 1 if that was 0.
15964 as_fn_error ()
15966 as_status=$?; test $as_status -eq 0 && as_status=1
15967 if test "$3"; then
15968 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15971 $as_echo "$as_me: error: $1" >&2
15972 as_fn_exit $as_status
15973 } # as_fn_error
15976 # as_fn_set_status STATUS
15977 # -----------------------
15978 # Set $? to STATUS, without forking.
15979 as_fn_set_status ()
15981 return $1
15982 } # as_fn_set_status
15984 # as_fn_exit STATUS
15985 # -----------------
15986 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15987 as_fn_exit ()
15989 set +e
15990 as_fn_set_status $1
15991 exit $1
15992 } # as_fn_exit
15994 # as_fn_unset VAR
15995 # ---------------
15996 # Portably unset VAR.
15997 as_fn_unset ()
15999 { eval $1=; unset $1;}
16001 as_unset=as_fn_unset
16002 # as_fn_append VAR VALUE
16003 # ----------------------
16004 # Append the text in VALUE to the end of the definition contained in VAR. Take
16005 # advantage of any shell optimizations that allow amortized linear growth over
16006 # repeated appends, instead of the typical quadratic growth present in naive
16007 # implementations.
16008 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16009 eval 'as_fn_append ()
16011 eval $1+=\$2
16013 else
16014 as_fn_append ()
16016 eval $1=\$$1\$2
16018 fi # as_fn_append
16020 # as_fn_arith ARG...
16021 # ------------------
16022 # Perform arithmetic evaluation on the ARGs, and store the result in the
16023 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16024 # must be portable across $(()) and expr.
16025 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16026 eval 'as_fn_arith ()
16028 as_val=$(( $* ))
16030 else
16031 as_fn_arith ()
16033 as_val=`expr "$@" || test $? -eq 1`
16035 fi # as_fn_arith
16038 if expr a : '\(a\)' >/dev/null 2>&1 &&
16039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16040 as_expr=expr
16041 else
16042 as_expr=false
16045 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16046 as_basename=basename
16047 else
16048 as_basename=false
16051 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16052 as_dirname=dirname
16053 else
16054 as_dirname=false
16057 as_me=`$as_basename -- "$0" ||
16058 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16059 X"$0" : 'X\(//\)$' \| \
16060 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16061 $as_echo X/"$0" |
16062 sed '/^.*\/\([^/][^/]*\)\/*$/{
16063 s//\1/
16066 /^X\/\(\/\/\)$/{
16067 s//\1/
16070 /^X\/\(\/\).*/{
16071 s//\1/
16074 s/.*/./; q'`
16076 # Avoid depending upon Character Ranges.
16077 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16080 as_cr_digits='0123456789'
16081 as_cr_alnum=$as_cr_Letters$as_cr_digits
16083 ECHO_C= ECHO_N= ECHO_T=
16084 case `echo -n x` in #(((((
16085 -n*)
16086 case `echo 'xy\c'` in
16087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16088 xy) ECHO_C='\c';;
16089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16090 ECHO_T=' ';;
16091 esac;;
16093 ECHO_N='-n';;
16094 esac
16096 rm -f conf$$ conf$$.exe conf$$.file
16097 if test -d conf$$.dir; then
16098 rm -f conf$$.dir/conf$$.file
16099 else
16100 rm -f conf$$.dir
16101 mkdir conf$$.dir 2>/dev/null
16103 if (echo >conf$$.file) 2>/dev/null; then
16104 if ln -s conf$$.file conf$$ 2>/dev/null; then
16105 as_ln_s='ln -s'
16106 # ... but there are two gotchas:
16107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16109 # In both cases, we have to default to `cp -p'.
16110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16111 as_ln_s='cp -p'
16112 elif ln conf$$.file conf$$ 2>/dev/null; then
16113 as_ln_s=ln
16114 else
16115 as_ln_s='cp -p'
16117 else
16118 as_ln_s='cp -p'
16120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16121 rmdir conf$$.dir 2>/dev/null
16124 # as_fn_mkdir_p
16125 # -------------
16126 # Create "$as_dir" as a directory, including parents if necessary.
16127 as_fn_mkdir_p ()
16130 case $as_dir in #(
16131 -*) as_dir=./$as_dir;;
16132 esac
16133 test -d "$as_dir" || eval $as_mkdir_p || {
16134 as_dirs=
16135 while :; do
16136 case $as_dir in #(
16137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16138 *) as_qdir=$as_dir;;
16139 esac
16140 as_dirs="'$as_qdir' $as_dirs"
16141 as_dir=`$as_dirname -- "$as_dir" ||
16142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16143 X"$as_dir" : 'X\(//\)[^/]' \| \
16144 X"$as_dir" : 'X\(//\)$' \| \
16145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16146 $as_echo X"$as_dir" |
16147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16148 s//\1/
16151 /^X\(\/\/\)[^/].*/{
16152 s//\1/
16155 /^X\(\/\/\)$/{
16156 s//\1/
16159 /^X\(\/\).*/{
16160 s//\1/
16163 s/.*/./; q'`
16164 test -d "$as_dir" && break
16165 done
16166 test -z "$as_dirs" || eval "mkdir $as_dirs"
16167 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16170 } # as_fn_mkdir_p
16171 if mkdir -p . 2>/dev/null; then
16172 as_mkdir_p='mkdir -p "$as_dir"'
16173 else
16174 test -d ./-p && rmdir ./-p
16175 as_mkdir_p=false
16178 if test -x / >/dev/null 2>&1; then
16179 as_test_x='test -x'
16180 else
16181 if ls -dL / >/dev/null 2>&1; then
16182 as_ls_L_option=L
16183 else
16184 as_ls_L_option=
16186 as_test_x='
16187 eval sh -c '\''
16188 if test -d "$1"; then
16189 test -d "$1/.";
16190 else
16191 case $1 in #(
16192 -*)set "./$1";;
16193 esac;
16194 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16195 ???[sx]*):;;*)false;;esac;fi
16196 '\'' sh
16199 as_executable_p=$as_test_x
16201 # Sed expression to map a string onto a valid CPP name.
16202 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16204 # Sed expression to map a string onto a valid variable name.
16205 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16208 exec 6>&1
16209 ## ----------------------------------- ##
16210 ## Main body of $CONFIG_STATUS script. ##
16211 ## ----------------------------------- ##
16212 _ASEOF
16213 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16216 # Save the log message, to keep $0 and so on meaningful, and to
16217 # report actual input values of CONFIG_FILES etc. instead of their
16218 # values after options handling.
16219 ac_log="
16220 This file was extended by package-unused $as_me version-unused, which was
16221 generated by GNU Autoconf 2.64. Invocation command line was
16223 CONFIG_FILES = $CONFIG_FILES
16224 CONFIG_HEADERS = $CONFIG_HEADERS
16225 CONFIG_LINKS = $CONFIG_LINKS
16226 CONFIG_COMMANDS = $CONFIG_COMMANDS
16227 $ $0 $@
16229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16232 _ACEOF
16234 case $ac_config_files in *"
16235 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16236 esac
16238 case $ac_config_headers in *"
16239 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16240 esac
16243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16244 # Files that config.status was made for.
16245 config_files="$ac_config_files"
16246 config_headers="$ac_config_headers"
16247 config_commands="$ac_config_commands"
16249 _ACEOF
16251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16252 ac_cs_usage="\
16253 \`$as_me' instantiates files and other configuration actions
16254 from templates according to the current configuration. Unless the files
16255 and actions are specified as TAGs, all are instantiated by default.
16257 Usage: $0 [OPTION]... [TAG]...
16259 -h, --help print this help, then exit
16260 -V, --version print version number and configuration settings, then exit
16261 -q, --quiet, --silent
16262 do not print progress messages
16263 -d, --debug don't remove temporary files
16264 --recheck update $as_me by reconfiguring in the same conditions
16265 --file=FILE[:TEMPLATE]
16266 instantiate the configuration file FILE
16267 --header=FILE[:TEMPLATE]
16268 instantiate the configuration header FILE
16270 Configuration files:
16271 $config_files
16273 Configuration headers:
16274 $config_headers
16276 Configuration commands:
16277 $config_commands
16279 Report bugs to the package provider."
16281 _ACEOF
16282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16283 ac_cs_version="\\
16284 package-unused config.status version-unused
16285 configured by $0, generated by GNU Autoconf 2.64,
16286 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16288 Copyright (C) 2009 Free Software Foundation, Inc.
16289 This config.status script is free software; the Free Software Foundation
16290 gives unlimited permission to copy, distribute and modify it."
16292 ac_pwd='$ac_pwd'
16293 srcdir='$srcdir'
16294 INSTALL='$INSTALL'
16295 MKDIR_P='$MKDIR_P'
16296 AWK='$AWK'
16297 test -n "\$AWK" || AWK=awk
16298 _ACEOF
16300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16301 # The default lists apply if the user does not specify any file.
16302 ac_need_defaults=:
16303 while test $# != 0
16305 case $1 in
16306 --*=*)
16307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16309 ac_shift=:
16312 ac_option=$1
16313 ac_optarg=$2
16314 ac_shift=shift
16316 esac
16318 case $ac_option in
16319 # Handling of the options.
16320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16321 ac_cs_recheck=: ;;
16322 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16323 $as_echo "$ac_cs_version"; exit ;;
16324 --debug | --debu | --deb | --de | --d | -d )
16325 debug=: ;;
16326 --file | --fil | --fi | --f )
16327 $ac_shift
16328 case $ac_optarg in
16329 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16330 esac
16331 as_fn_append CONFIG_FILES " '$ac_optarg'"
16332 ac_need_defaults=false;;
16333 --header | --heade | --head | --hea )
16334 $ac_shift
16335 case $ac_optarg in
16336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16337 esac
16338 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16339 ac_need_defaults=false;;
16340 --he | --h)
16341 # Conflict between --help and --header
16342 as_fn_error "ambiguous option: \`$1'
16343 Try \`$0 --help' for more information.";;
16344 --help | --hel | -h )
16345 $as_echo "$ac_cs_usage"; exit ;;
16346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16348 ac_cs_silent=: ;;
16350 # This is an error.
16351 -*) as_fn_error "unrecognized option: \`$1'
16352 Try \`$0 --help' for more information." ;;
16354 *) as_fn_append ac_config_targets " $1"
16355 ac_need_defaults=false ;;
16357 esac
16358 shift
16359 done
16361 ac_configure_extra_args=
16363 if $ac_cs_silent; then
16364 exec 6>/dev/null
16365 ac_configure_extra_args="$ac_configure_extra_args --silent"
16368 _ACEOF
16369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16370 if \$ac_cs_recheck; then
16371 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16372 shift
16373 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16374 CONFIG_SHELL='$SHELL'
16375 export CONFIG_SHELL
16376 exec "\$@"
16379 _ACEOF
16380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16381 exec 5>>config.log
16383 echo
16384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16385 ## Running $as_me. ##
16386 _ASBOX
16387 $as_echo "$ac_log"
16388 } >&5
16390 _ACEOF
16391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16393 # INIT-COMMANDS
16396 srcdir="$srcdir"
16397 host="$host"
16398 target="$target"
16399 with_multisubdir="$with_multisubdir"
16400 with_multisrctop="$with_multisrctop"
16401 with_target_subdir="$with_target_subdir"
16402 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16403 multi_basedir="$multi_basedir"
16404 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16405 CC="$CC"
16406 CXX="$CXX"
16407 GFORTRAN="$GFORTRAN"
16408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16411 # The HP-UX ksh and POSIX shell print the target directory to stdout
16412 # if CDPATH is set.
16413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16415 sed_quote_subst='$sed_quote_subst'
16416 double_quote_subst='$double_quote_subst'
16417 delay_variable_subst='$delay_variable_subst'
16418 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16419 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16420 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16421 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16422 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16423 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16424 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16425 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16426 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16427 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16428 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16429 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16430 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16431 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16432 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16433 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16434 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16435 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16436 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16437 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16438 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16439 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16440 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16441 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16442 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16443 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16444 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16445 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16446 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16447 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16448 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16449 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16450 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16451 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16452 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16453 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16454 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16455 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16456 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16457 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16458 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16459 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16460 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16461 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16462 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16463 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16464 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16465 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16466 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"`'
16467 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16468 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16469 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16470 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16471 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16472 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16473 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16474 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16475 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16476 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16477 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16478 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16479 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16480 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16481 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16482 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16483 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16484 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16485 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16486 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16487 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16488 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16489 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16490 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16491 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16492 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16493 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16494 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16495 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16496 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16497 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16498 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16499 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16500 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16501 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16502 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16503 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16504 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16505 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16506 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16507 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16508 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16509 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16510 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16511 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16512 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16513 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16514 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16515 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16516 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16517 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16518 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16519 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16520 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16521 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16522 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16523 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16524 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16525 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16526 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16527 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16528 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16529 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16530 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16531 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16532 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16533 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16534 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16535 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16536 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16537 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16538 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16539 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16540 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16541 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16542 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16543 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16544 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16545 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16546 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16547 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16548 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16549 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16550 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16551 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16552 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16553 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16554 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16555 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16556 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16557 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16558 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16559 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16560 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16561 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16562 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16563 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16564 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16565 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16566 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16567 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16568 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16569 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16570 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16571 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16572 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16573 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16574 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16575 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16576 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16577 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16578 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16579 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16580 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16582 LTCC='$LTCC'
16583 LTCFLAGS='$LTCFLAGS'
16584 compiler='$compiler_DEFAULT'
16586 # A function that is used when there is no print builtin or printf.
16587 func_fallback_echo ()
16589 eval 'cat <<_LTECHO_EOF
16591 _LTECHO_EOF'
16594 # Quote evaled strings.
16595 for var in SED \
16596 GREP \
16597 EGREP \
16598 FGREP \
16599 SHELL \
16600 ECHO \
16601 LD \
16602 NM \
16603 LN_S \
16604 lt_SP2NL \
16605 lt_NL2SP \
16606 reload_flag \
16607 OBJDUMP \
16608 deplibs_check_method \
16609 file_magic_cmd \
16610 AR \
16611 AR_FLAGS \
16612 STRIP \
16613 RANLIB \
16614 CC \
16615 CFLAGS \
16616 compiler \
16617 lt_cv_sys_global_symbol_pipe \
16618 lt_cv_sys_global_symbol_to_cdecl \
16619 lt_cv_sys_global_symbol_to_c_name_address \
16620 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16621 lt_prog_compiler_no_builtin_flag \
16622 lt_prog_compiler_wl \
16623 lt_prog_compiler_pic \
16624 lt_prog_compiler_static \
16625 lt_cv_prog_compiler_c_o \
16626 need_locks \
16627 DSYMUTIL \
16628 NMEDIT \
16629 LIPO \
16630 OTOOL \
16631 OTOOL64 \
16632 shrext_cmds \
16633 export_dynamic_flag_spec \
16634 whole_archive_flag_spec \
16635 compiler_needs_object \
16636 with_gnu_ld \
16637 allow_undefined_flag \
16638 no_undefined_flag \
16639 hardcode_libdir_flag_spec \
16640 hardcode_libdir_flag_spec_ld \
16641 hardcode_libdir_separator \
16642 fix_srcfile_path \
16643 exclude_expsyms \
16644 include_expsyms \
16645 file_list_spec \
16646 variables_saved_for_relink \
16647 libname_spec \
16648 library_names_spec \
16649 soname_spec \
16650 install_override_mode \
16651 finish_eval \
16652 old_striplib \
16653 striplib \
16654 LD_GO \
16655 reload_flag_GO \
16656 compiler_GO \
16657 lt_prog_compiler_no_builtin_flag_GO \
16658 lt_prog_compiler_wl_GO \
16659 lt_prog_compiler_pic_GO \
16660 lt_prog_compiler_static_GO \
16661 lt_cv_prog_compiler_c_o_GO \
16662 export_dynamic_flag_spec_GO \
16663 whole_archive_flag_spec_GO \
16664 compiler_needs_object_GO \
16665 with_gnu_ld_GO \
16666 allow_undefined_flag_GO \
16667 no_undefined_flag_GO \
16668 hardcode_libdir_flag_spec_GO \
16669 hardcode_libdir_flag_spec_ld_GO \
16670 hardcode_libdir_separator_GO \
16671 fix_srcfile_path_GO \
16672 exclude_expsyms_GO \
16673 include_expsyms_GO \
16674 file_list_spec_GO; do
16675 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16676 *[\\\\\\\`\\"\\\$]*)
16677 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16680 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16682 esac
16683 done
16685 # Double-quote double-evaled strings.
16686 for var in reload_cmds \
16687 old_postinstall_cmds \
16688 old_postuninstall_cmds \
16689 old_archive_cmds \
16690 extract_expsyms_cmds \
16691 old_archive_from_new_cmds \
16692 old_archive_from_expsyms_cmds \
16693 archive_cmds \
16694 archive_expsym_cmds \
16695 module_cmds \
16696 module_expsym_cmds \
16697 export_symbols_cmds \
16698 prelink_cmds \
16699 postinstall_cmds \
16700 postuninstall_cmds \
16701 finish_cmds \
16702 sys_lib_search_path_spec \
16703 sys_lib_dlsearch_path_spec \
16704 reload_cmds_GO \
16705 old_archive_cmds_GO \
16706 old_archive_from_new_cmds_GO \
16707 old_archive_from_expsyms_cmds_GO \
16708 archive_cmds_GO \
16709 archive_expsym_cmds_GO \
16710 module_cmds_GO \
16711 module_expsym_cmds_GO \
16712 export_symbols_cmds_GO \
16713 prelink_cmds_GO; do
16714 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16715 *[\\\\\\\`\\"\\\$]*)
16716 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16719 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16721 esac
16722 done
16724 ac_aux_dir='$ac_aux_dir'
16725 xsi_shell='$xsi_shell'
16726 lt_shell_append='$lt_shell_append'
16728 # See if we are running on zsh, and set the options which allow our
16729 # commands through without removal of \ escapes INIT.
16730 if test -n "\${ZSH_VERSION+set}" ; then
16731 setopt NO_GLOB_SUBST
16735 PACKAGE='$PACKAGE'
16736 VERSION='$VERSION'
16737 TIMESTAMP='$TIMESTAMP'
16738 RM='$RM'
16739 ofile='$ofile'
16746 # Variables needed in config.status (file generation) which aren't already
16747 # passed by autoconf.
16748 SUBDIRS="$SUBDIRS"
16751 _ACEOF
16753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16755 # Handling of arguments.
16756 for ac_config_target in $ac_config_targets
16758 case $ac_config_target in
16759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16760 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16761 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16762 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16763 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16764 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16765 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16767 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16768 esac
16769 done
16772 # If the user did not use the arguments to specify the items to instantiate,
16773 # then the envvar interface is used. Set only those that are not.
16774 # We use the long form for the default assignment because of an extremely
16775 # bizarre bug on SunOS 4.1.3.
16776 if $ac_need_defaults; then
16777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16778 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16782 # Have a temporary directory for convenience. Make it in the build tree
16783 # simply because there is no reason against having it here, and in addition,
16784 # creating and moving files from /tmp can sometimes cause problems.
16785 # Hook for its removal unless debugging.
16786 # Note that there is a small window in which the directory will not be cleaned:
16787 # after its creation but before its name has been assigned to `$tmp'.
16788 $debug ||
16790 tmp=
16791 trap 'exit_status=$?
16792 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16794 trap 'as_fn_exit 1' 1 2 13 15
16796 # Create a (secure) tmp directory for tmp files.
16799 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16800 test -n "$tmp" && test -d "$tmp"
16801 } ||
16803 tmp=./conf$$-$RANDOM
16804 (umask 077 && mkdir "$tmp")
16805 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16807 # Set up the scripts for CONFIG_FILES section.
16808 # No need to generate them if there are no CONFIG_FILES.
16809 # This happens for instance with `./config.status config.h'.
16810 if test -n "$CONFIG_FILES"; then
16813 ac_cr=`echo X | tr X '\015'`
16814 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16815 # But we know of no other shell where ac_cr would be empty at this
16816 # point, so we can use a bashism as a fallback.
16817 if test "x$ac_cr" = x; then
16818 eval ac_cr=\$\'\\r\'
16820 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16821 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16822 ac_cs_awk_cr='\r'
16823 else
16824 ac_cs_awk_cr=$ac_cr
16827 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16828 _ACEOF
16832 echo "cat >conf$$subs.awk <<_ACEOF" &&
16833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16834 echo "_ACEOF"
16835 } >conf$$subs.sh ||
16836 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16838 ac_delim='%!_!# '
16839 for ac_last_try in false false false false false :; do
16840 . ./conf$$subs.sh ||
16841 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16844 if test $ac_delim_n = $ac_delim_num; then
16845 break
16846 elif $ac_last_try; then
16847 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16848 else
16849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16851 done
16852 rm -f conf$$subs.sh
16854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16855 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16856 _ACEOF
16857 sed -n '
16859 s/^/S["/; s/!.*/"]=/
16862 s/^[^!]*!//
16863 :repl
16864 t repl
16865 s/'"$ac_delim"'$//
16866 t delim
16869 s/\(.\{148\}\).*/\1/
16870 t more1
16871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16874 b repl
16875 :more1
16876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16879 s/.\{148\}//
16880 t nl
16881 :delim
16883 s/\(.\{148\}\).*/\1/
16884 t more2
16885 s/["\\]/\\&/g; s/^/"/; s/$/"/
16888 :more2
16889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16892 s/.\{148\}//
16893 t delim
16894 ' <conf$$subs.awk | sed '
16895 /^[^""]/{
16897 s/\n//
16899 ' >>$CONFIG_STATUS || ac_write_fail=1
16900 rm -f conf$$subs.awk
16901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16902 _ACAWK
16903 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16904 for (key in S) S_is_set[key] = 1
16905 FS = "\a"
16909 line = $ 0
16910 nfields = split(line, field, "@")
16911 substed = 0
16912 len = length(field[1])
16913 for (i = 2; i < nfields; i++) {
16914 key = field[i]
16915 keylen = length(key)
16916 if (S_is_set[key]) {
16917 value = S[key]
16918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16919 len += length(value) + length(field[++i])
16920 substed = 1
16921 } else
16922 len += 1 + keylen
16925 print line
16928 _ACAWK
16929 _ACEOF
16930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16931 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16933 else
16935 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16936 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16937 _ACEOF
16939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16941 # trailing colons and then remove the whole line if VPATH becomes empty
16942 # (actually we leave an empty line to preserve line numbers).
16943 if test "x$srcdir" = x.; then
16944 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16945 s/:*\$(srcdir):*/:/
16946 s/:*\${srcdir}:*/:/
16947 s/:*@srcdir@:*/:/
16948 s/^\([^=]*=[ ]*\):*/\1/
16949 s/:*$//
16950 s/^[^=]*=[ ]*$//
16954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16955 fi # test -n "$CONFIG_FILES"
16957 # Set up the scripts for CONFIG_HEADERS section.
16958 # No need to generate them if there are no CONFIG_HEADERS.
16959 # This happens for instance with `./config.status Makefile'.
16960 if test -n "$CONFIG_HEADERS"; then
16961 cat >"$tmp/defines.awk" <<\_ACAWK ||
16962 BEGIN {
16963 _ACEOF
16965 # Transform confdefs.h into an awk script `defines.awk', embedded as
16966 # here-document in config.status, that substitutes the proper values into
16967 # config.h.in to produce config.h.
16969 # Create a delimiter string that does not exist in confdefs.h, to ease
16970 # handling of long lines.
16971 ac_delim='%!_!# '
16972 for ac_last_try in false false :; do
16973 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16974 if test -z "$ac_t"; then
16975 break
16976 elif $ac_last_try; then
16977 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16978 else
16979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16981 done
16983 # For the awk script, D is an array of macro values keyed by name,
16984 # likewise P contains macro parameters if any. Preserve backslash
16985 # newline sequences.
16987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16988 sed -n '
16989 s/.\{148\}/&'"$ac_delim"'/g
16990 t rset
16991 :rset
16992 s/^[ ]*#[ ]*define[ ][ ]*/ /
16993 t def
16995 :def
16996 s/\\$//
16997 t bsnl
16998 s/["\\]/\\&/g
16999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17000 D["\1"]=" \3"/p
17001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17003 :bsnl
17004 s/["\\]/\\&/g
17005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17006 D["\1"]=" \3\\\\\\n"\\/p
17007 t cont
17008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17009 t cont
17011 :cont
17013 s/.\{148\}/&'"$ac_delim"'/g
17014 t clear
17015 :clear
17016 s/\\$//
17017 t bsnlc
17018 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17020 :bsnlc
17021 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17022 b cont
17023 ' <confdefs.h | sed '
17024 s/'"$ac_delim"'/"\\\
17025 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028 for (key in D) D_is_set[key] = 1
17029 FS = "\a"
17031 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17032 line = \$ 0
17033 split(line, arg, " ")
17034 if (arg[1] == "#") {
17035 defundef = arg[2]
17036 mac1 = arg[3]
17037 } else {
17038 defundef = substr(arg[1], 2)
17039 mac1 = arg[2]
17041 split(mac1, mac2, "(") #)
17042 macro = mac2[1]
17043 prefix = substr(line, 1, index(line, defundef) - 1)
17044 if (D_is_set[macro]) {
17045 # Preserve the white space surrounding the "#".
17046 print prefix "define", macro P[macro] D[macro]
17047 next
17048 } else {
17049 # Replace #undef with comments. This is necessary, for example,
17050 # in the case of _POSIX_SOURCE, which is predefined and required
17051 # on some systems where configure will not decide to define it.
17052 if (defundef == "undef") {
17053 print "/*", prefix defundef, macro, "*/"
17054 next
17058 { print }
17059 _ACAWK
17060 _ACEOF
17061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17062 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17063 fi # test -n "$CONFIG_HEADERS"
17066 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17067 shift
17068 for ac_tag
17070 case $ac_tag in
17071 :[FHLC]) ac_mode=$ac_tag; continue;;
17072 esac
17073 case $ac_mode$ac_tag in
17074 :[FHL]*:*);;
17075 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17076 :[FH]-) ac_tag=-:-;;
17077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17078 esac
17079 ac_save_IFS=$IFS
17080 IFS=:
17081 set x $ac_tag
17082 IFS=$ac_save_IFS
17083 shift
17084 ac_file=$1
17085 shift
17087 case $ac_mode in
17088 :L) ac_source=$1;;
17089 :[FH])
17090 ac_file_inputs=
17091 for ac_f
17093 case $ac_f in
17094 -) ac_f="$tmp/stdin";;
17095 *) # Look for the file first in the build tree, then in the source tree
17096 # (if the path is not absolute). The absolute path cannot be DOS-style,
17097 # because $ac_f cannot contain `:'.
17098 test -f "$ac_f" ||
17099 case $ac_f in
17100 [\\/$]*) false;;
17101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17102 esac ||
17103 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17104 esac
17105 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17106 as_fn_append ac_file_inputs " '$ac_f'"
17107 done
17109 # Let's still pretend it is `configure' which instantiates (i.e., don't
17110 # use $as_me), people would be surprised to read:
17111 # /* config.h. Generated by config.status. */
17112 configure_input='Generated from '`
17113 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17114 `' by configure.'
17115 if test x"$ac_file" != x-; then
17116 configure_input="$ac_file. $configure_input"
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17118 $as_echo "$as_me: creating $ac_file" >&6;}
17120 # Neutralize special characters interpreted by sed in replacement strings.
17121 case $configure_input in #(
17122 *\&* | *\|* | *\\* )
17123 ac_sed_conf_input=`$as_echo "$configure_input" |
17124 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17125 *) ac_sed_conf_input=$configure_input;;
17126 esac
17128 case $ac_tag in
17129 *:-:* | *:-) cat >"$tmp/stdin" \
17130 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17131 esac
17133 esac
17135 ac_dir=`$as_dirname -- "$ac_file" ||
17136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17137 X"$ac_file" : 'X\(//\)[^/]' \| \
17138 X"$ac_file" : 'X\(//\)$' \| \
17139 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17140 $as_echo X"$ac_file" |
17141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17142 s//\1/
17145 /^X\(\/\/\)[^/].*/{
17146 s//\1/
17149 /^X\(\/\/\)$/{
17150 s//\1/
17153 /^X\(\/\).*/{
17154 s//\1/
17157 s/.*/./; q'`
17158 as_dir="$ac_dir"; as_fn_mkdir_p
17159 ac_builddir=.
17161 case "$ac_dir" in
17162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17164 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17165 # A ".." for each directory in $ac_dir_suffix.
17166 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17167 case $ac_top_builddir_sub in
17168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17170 esac ;;
17171 esac
17172 ac_abs_top_builddir=$ac_pwd
17173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17174 # for backward compatibility:
17175 ac_top_builddir=$ac_top_build_prefix
17177 case $srcdir in
17178 .) # We are building in place.
17179 ac_srcdir=.
17180 ac_top_srcdir=$ac_top_builddir_sub
17181 ac_abs_top_srcdir=$ac_pwd ;;
17182 [\\/]* | ?:[\\/]* ) # Absolute name.
17183 ac_srcdir=$srcdir$ac_dir_suffix;
17184 ac_top_srcdir=$srcdir
17185 ac_abs_top_srcdir=$srcdir ;;
17186 *) # Relative name.
17187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17188 ac_top_srcdir=$ac_top_build_prefix$srcdir
17189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17190 esac
17191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17194 case $ac_mode in
17197 # CONFIG_FILE
17200 case $INSTALL in
17201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17202 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17203 esac
17204 ac_MKDIR_P=$MKDIR_P
17205 case $MKDIR_P in
17206 [\\/$]* | ?:[\\/]* ) ;;
17207 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17208 esac
17209 _ACEOF
17211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17212 # If the template does not know about datarootdir, expand it.
17213 # FIXME: This hack should be removed a few years after 2.60.
17214 ac_datarootdir_hack=; ac_datarootdir_seen=
17215 ac_sed_dataroot='
17216 /datarootdir/ {
17220 /@datadir@/p
17221 /@docdir@/p
17222 /@infodir@/p
17223 /@localedir@/p
17224 /@mandir@/p'
17225 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17226 *datarootdir*) ac_datarootdir_seen=yes;;
17227 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17229 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17230 _ACEOF
17231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17232 ac_datarootdir_hack='
17233 s&@datadir@&$datadir&g
17234 s&@docdir@&$docdir&g
17235 s&@infodir@&$infodir&g
17236 s&@localedir@&$localedir&g
17237 s&@mandir@&$mandir&g
17238 s&\\\${datarootdir}&$datarootdir&g' ;;
17239 esac
17240 _ACEOF
17242 # Neutralize VPATH when `$srcdir' = `.'.
17243 # Shell code in configure.ac might set extrasub.
17244 # FIXME: do we really want to maintain this feature?
17245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17246 ac_sed_extra="$ac_vpsub
17247 $extrasub
17248 _ACEOF
17249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17252 s|@configure_input@|$ac_sed_conf_input|;t t
17253 s&@top_builddir@&$ac_top_builddir_sub&;t t
17254 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17255 s&@srcdir@&$ac_srcdir&;t t
17256 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17257 s&@top_srcdir@&$ac_top_srcdir&;t t
17258 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17259 s&@builddir@&$ac_builddir&;t t
17260 s&@abs_builddir@&$ac_abs_builddir&;t t
17261 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17262 s&@INSTALL@&$ac_INSTALL&;t t
17263 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17264 $ac_datarootdir_hack
17266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17267 || as_fn_error "could not create $ac_file" "$LINENO" 5
17269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17270 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17273 which seems to be undefined. Please make sure it is defined." >&5
17274 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17275 which seems to be undefined. Please make sure it is defined." >&2;}
17277 rm -f "$tmp/stdin"
17278 case $ac_file in
17279 -) cat "$tmp/out" && rm -f "$tmp/out";;
17280 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17281 esac \
17282 || as_fn_error "could not create $ac_file" "$LINENO" 5
17286 # CONFIG_HEADER
17288 if test x"$ac_file" != x-; then
17290 $as_echo "/* $configure_input */" \
17291 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17292 } >"$tmp/config.h" \
17293 || as_fn_error "could not create $ac_file" "$LINENO" 5
17294 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17296 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17297 else
17298 rm -f "$ac_file"
17299 mv "$tmp/config.h" "$ac_file" \
17300 || as_fn_error "could not create $ac_file" "$LINENO" 5
17302 else
17303 $as_echo "/* $configure_input */" \
17304 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17305 || as_fn_error "could not create -" "$LINENO" 5
17307 # Compute "$ac_file"'s index in $config_headers.
17308 _am_arg="$ac_file"
17309 _am_stamp_count=1
17310 for _am_header in $config_headers :; do
17311 case $_am_header in
17312 $_am_arg | $_am_arg:* )
17313 break ;;
17315 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17316 esac
17317 done
17318 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17319 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17320 X"$_am_arg" : 'X\(//\)[^/]' \| \
17321 X"$_am_arg" : 'X\(//\)$' \| \
17322 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17323 $as_echo X"$_am_arg" |
17324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17325 s//\1/
17328 /^X\(\/\/\)[^/].*/{
17329 s//\1/
17332 /^X\(\/\/\)$/{
17333 s//\1/
17336 /^X\(\/\).*/{
17337 s//\1/
17340 s/.*/./; q'`/stamp-h$_am_stamp_count
17343 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17344 $as_echo "$as_me: executing $ac_file commands" >&6;}
17346 esac
17349 case $ac_file$ac_mode in
17350 "default-1":C)
17351 # Only add multilib support code if we just rebuilt the top-level
17352 # Makefile.
17353 case " $CONFIG_FILES " in
17354 *" Makefile "*)
17355 ac_file=Makefile . ${multi_basedir}/config-ml.in
17357 esac ;;
17358 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17359 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17360 # are listed without --file. Let's play safe and only enable the eval
17361 # if we detect the quoting.
17362 case $CONFIG_FILES in
17363 *\'*) eval set x "$CONFIG_FILES" ;;
17364 *) set x $CONFIG_FILES ;;
17365 esac
17366 shift
17367 for mf
17369 # Strip MF so we end up with the name of the file.
17370 mf=`echo "$mf" | sed -e 's/:.*$//'`
17371 # Check whether this is an Automake generated Makefile or not.
17372 # We used to match only the files named `Makefile.in', but
17373 # some people rename them; so instead we look at the file content.
17374 # Grep'ing the first line is not enough: some people post-process
17375 # each Makefile.in and add a new line on top of each file to say so.
17376 # Grep'ing the whole file is not good either: AIX grep has a line
17377 # limit of 2048, but all sed's we know have understand at least 4000.
17378 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17379 dirpart=`$as_dirname -- "$mf" ||
17380 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17381 X"$mf" : 'X\(//\)[^/]' \| \
17382 X"$mf" : 'X\(//\)$' \| \
17383 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17384 $as_echo X"$mf" |
17385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17386 s//\1/
17389 /^X\(\/\/\)[^/].*/{
17390 s//\1/
17393 /^X\(\/\/\)$/{
17394 s//\1/
17397 /^X\(\/\).*/{
17398 s//\1/
17401 s/.*/./; q'`
17402 else
17403 continue
17405 # Extract the definition of DEPDIR, am__include, and am__quote
17406 # from the Makefile without running `make'.
17407 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17408 test -z "$DEPDIR" && continue
17409 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17410 test -z "am__include" && continue
17411 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17412 # When using ansi2knr, U may be empty or an underscore; expand it
17413 U=`sed -n 's/^U = //p' < "$mf"`
17414 # Find all dependency output files, they are included files with
17415 # $(DEPDIR) in their names. We invoke sed twice because it is the
17416 # simplest approach to changing $(DEPDIR) to its actual value in the
17417 # expansion.
17418 for file in `sed -n "
17419 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17421 # Make sure the directory exists.
17422 test -f "$dirpart/$file" && continue
17423 fdir=`$as_dirname -- "$file" ||
17424 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17425 X"$file" : 'X\(//\)[^/]' \| \
17426 X"$file" : 'X\(//\)$' \| \
17427 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17428 $as_echo X"$file" |
17429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17430 s//\1/
17433 /^X\(\/\/\)[^/].*/{
17434 s//\1/
17437 /^X\(\/\/\)$/{
17438 s//\1/
17441 /^X\(\/\).*/{
17442 s//\1/
17445 s/.*/./; q'`
17446 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17447 # echo "creating $dirpart/$file"
17448 echo '# dummy' > "$dirpart/$file"
17449 done
17450 done
17453 "libtool":C)
17455 # See if we are running on zsh, and set the options which allow our
17456 # commands through without removal of \ escapes.
17457 if test -n "${ZSH_VERSION+set}" ; then
17458 setopt NO_GLOB_SUBST
17461 cfgfile="${ofile}T"
17462 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17463 $RM "$cfgfile"
17465 cat <<_LT_EOF >> "$cfgfile"
17466 #! $SHELL
17468 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17469 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17470 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17471 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17473 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17474 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17475 # Written by Gordon Matzigkeit, 1996
17477 # This file is part of GNU Libtool.
17479 # GNU Libtool is free software; you can redistribute it and/or
17480 # modify it under the terms of the GNU General Public License as
17481 # published by the Free Software Foundation; either version 2 of
17482 # the License, or (at your option) any later version.
17484 # As a special exception to the GNU General Public License,
17485 # if you distribute this file as part of a program or library that
17486 # is built using GNU Libtool, you may include this file under the
17487 # same distribution terms that you use for the rest of that program.
17489 # GNU Libtool is distributed in the hope that it will be useful,
17490 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17491 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17492 # GNU General Public License for more details.
17494 # You should have received a copy of the GNU General Public License
17495 # along with GNU Libtool; see the file COPYING. If not, a copy
17496 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17497 # obtained by writing to the Free Software Foundation, Inc.,
17498 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17501 # The names of the tagged configurations supported by this script.
17502 available_tags="GO "
17504 # ### BEGIN LIBTOOL CONFIG
17506 # A sed program that does not truncate output.
17507 SED=$lt_SED
17509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17510 Xsed="\$SED -e 1s/^X//"
17512 # A grep program that handles long lines.
17513 GREP=$lt_GREP
17515 # An ERE matcher.
17516 EGREP=$lt_EGREP
17518 # A literal string matcher.
17519 FGREP=$lt_FGREP
17521 # Shell to use when invoking shell scripts.
17522 SHELL=$lt_SHELL
17524 # An echo program that protects backslashes.
17525 ECHO=$lt_ECHO
17527 # Which release of libtool.m4 was used?
17528 macro_version=$macro_version
17529 macro_revision=$macro_revision
17531 # Whether or not to build shared libraries.
17532 build_libtool_libs=$enable_shared
17534 # Whether or not to build static libraries.
17535 build_old_libs=$enable_static
17537 # What type of objects to build.
17538 pic_mode=$pic_mode
17540 # Whether or not to optimize for fast installation.
17541 fast_install=$enable_fast_install
17543 # The host system.
17544 host_alias=$host_alias
17545 host=$host
17546 host_os=$host_os
17548 # The build system.
17549 build_alias=$build_alias
17550 build=$build
17551 build_os=$build_os
17553 # A BSD- or MS-compatible name lister.
17554 NM=$lt_NM
17556 # Whether we need soft or hard links.
17557 LN_S=$lt_LN_S
17559 # What is the maximum length of a command?
17560 max_cmd_len=$max_cmd_len
17562 # Object file suffix (normally "o").
17563 objext=$ac_objext
17565 # Executable file suffix (normally "").
17566 exeext=$exeext
17568 # whether the shell understands "unset".
17569 lt_unset=$lt_unset
17571 # turn spaces into newlines.
17572 SP2NL=$lt_lt_SP2NL
17574 # turn newlines into spaces.
17575 NL2SP=$lt_lt_NL2SP
17577 # An object symbol dumper.
17578 OBJDUMP=$lt_OBJDUMP
17580 # Method to check whether dependent libraries are shared objects.
17581 deplibs_check_method=$lt_deplibs_check_method
17583 # Command to use when deplibs_check_method == "file_magic".
17584 file_magic_cmd=$lt_file_magic_cmd
17586 # The archiver.
17587 AR=$lt_AR
17588 AR_FLAGS=$lt_AR_FLAGS
17590 # A symbol stripping program.
17591 STRIP=$lt_STRIP
17593 # Commands used to install an old-style archive.
17594 RANLIB=$lt_RANLIB
17595 old_postinstall_cmds=$lt_old_postinstall_cmds
17596 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17598 # Whether to use a lock for old archive extraction.
17599 lock_old_archive_extraction=$lock_old_archive_extraction
17601 # A C compiler.
17602 LTCC=$lt_CC
17604 # LTCC compiler flags.
17605 LTCFLAGS=$lt_CFLAGS
17607 # Take the output of nm and produce a listing of raw symbols and C names.
17608 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17610 # Transform the output of nm in a proper C declaration.
17611 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17613 # Transform the output of nm in a C name address pair.
17614 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17616 # Transform the output of nm in a C name address pair when lib prefix is needed.
17617 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17619 # The name of the directory that contains temporary libtool files.
17620 objdir=$objdir
17622 # Used to examine libraries when file_magic_cmd begins with "file".
17623 MAGIC_CMD=$MAGIC_CMD
17625 # Must we lock files when doing compilation?
17626 need_locks=$lt_need_locks
17628 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17629 DSYMUTIL=$lt_DSYMUTIL
17631 # Tool to change global to local symbols on Mac OS X.
17632 NMEDIT=$lt_NMEDIT
17634 # Tool to manipulate fat objects and archives on Mac OS X.
17635 LIPO=$lt_LIPO
17637 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17638 OTOOL=$lt_OTOOL
17640 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17641 OTOOL64=$lt_OTOOL64
17643 # Old archive suffix (normally "a").
17644 libext=$libext
17646 # Shared library suffix (normally ".so").
17647 shrext_cmds=$lt_shrext_cmds
17649 # The commands to extract the exported symbol list from a shared archive.
17650 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17652 # Variables whose values should be saved in libtool wrapper scripts and
17653 # restored at link time.
17654 variables_saved_for_relink=$lt_variables_saved_for_relink
17656 # Do we need the "lib" prefix for modules?
17657 need_lib_prefix=$need_lib_prefix
17659 # Do we need a version for libraries?
17660 need_version=$need_version
17662 # Library versioning type.
17663 version_type=$version_type
17665 # Shared library runtime path variable.
17666 runpath_var=$runpath_var
17668 # Shared library path variable.
17669 shlibpath_var=$shlibpath_var
17671 # Is shlibpath searched before the hard-coded library search path?
17672 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17674 # Format of library name prefix.
17675 libname_spec=$lt_libname_spec
17677 # List of archive names. First name is the real one, the rest are links.
17678 # The last name is the one that the linker finds with -lNAME
17679 library_names_spec=$lt_library_names_spec
17681 # The coded name of the library, if different from the real name.
17682 soname_spec=$lt_soname_spec
17684 # Permission mode override for installation of shared libraries.
17685 install_override_mode=$lt_install_override_mode
17687 # Command to use after installation of a shared archive.
17688 postinstall_cmds=$lt_postinstall_cmds
17690 # Command to use after uninstallation of a shared archive.
17691 postuninstall_cmds=$lt_postuninstall_cmds
17693 # Commands used to finish a libtool library installation in a directory.
17694 finish_cmds=$lt_finish_cmds
17696 # As "finish_cmds", except a single script fragment to be evaled but
17697 # not shown.
17698 finish_eval=$lt_finish_eval
17700 # Whether we should hardcode library paths into libraries.
17701 hardcode_into_libs=$hardcode_into_libs
17703 # Compile-time system search path for libraries.
17704 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17706 # Run-time system search path for libraries.
17707 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17709 # Whether dlopen is supported.
17710 dlopen_support=$enable_dlopen
17712 # Whether dlopen of programs is supported.
17713 dlopen_self=$enable_dlopen_self
17715 # Whether dlopen of statically linked programs is supported.
17716 dlopen_self_static=$enable_dlopen_self_static
17718 # Commands to strip libraries.
17719 old_striplib=$lt_old_striplib
17720 striplib=$lt_striplib
17723 # The linker used to build libraries.
17724 LD=$lt_LD
17726 # How to create reloadable object files.
17727 reload_flag=$lt_reload_flag
17728 reload_cmds=$lt_reload_cmds
17730 # Commands used to build an old-style archive.
17731 old_archive_cmds=$lt_old_archive_cmds
17733 # A language specific compiler.
17734 CC=$lt_compiler
17736 # Is the compiler the GNU compiler?
17737 with_gcc=$GCC
17739 # Compiler flag to turn off builtin functions.
17740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17742 # How to pass a linker flag through the compiler.
17743 wl=$lt_lt_prog_compiler_wl
17745 # Additional compiler flags for building library objects.
17746 pic_flag=$lt_lt_prog_compiler_pic
17748 # Compiler flag to prevent dynamic linking.
17749 link_static_flag=$lt_lt_prog_compiler_static
17751 # Does compiler simultaneously support -c and -o options?
17752 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17754 # Whether or not to add -lc for building shared libraries.
17755 build_libtool_need_lc=$archive_cmds_need_lc
17757 # Whether or not to disallow shared libs when runtime libs are static.
17758 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17760 # Compiler flag to allow reflexive dlopens.
17761 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17763 # Compiler flag to generate shared objects directly from archives.
17764 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17766 # Whether the compiler copes with passing no objects directly.
17767 compiler_needs_object=$lt_compiler_needs_object
17769 # Create an old-style archive from a shared archive.
17770 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17772 # Create a temporary old-style archive to link instead of a shared archive.
17773 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17775 # Commands used to build a shared archive.
17776 archive_cmds=$lt_archive_cmds
17777 archive_expsym_cmds=$lt_archive_expsym_cmds
17779 # Commands used to build a loadable module if different from building
17780 # a shared archive.
17781 module_cmds=$lt_module_cmds
17782 module_expsym_cmds=$lt_module_expsym_cmds
17784 # Whether we are building with GNU ld or not.
17785 with_gnu_ld=$lt_with_gnu_ld
17787 # Flag that allows shared libraries with undefined symbols to be built.
17788 allow_undefined_flag=$lt_allow_undefined_flag
17790 # Flag that enforces no undefined symbols.
17791 no_undefined_flag=$lt_no_undefined_flag
17793 # Flag to hardcode \$libdir into a binary during linking.
17794 # This must work even if \$libdir does not exist
17795 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17797 # If ld is used when linking, flag to hardcode \$libdir into a binary
17798 # during linking. This must work even if \$libdir does not exist.
17799 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17801 # Whether we need a single "-rpath" flag with a separated argument.
17802 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17804 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17805 # DIR into the resulting binary.
17806 hardcode_direct=$hardcode_direct
17808 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17809 # DIR into the resulting binary and the resulting library dependency is
17810 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17811 # library is relocated.
17812 hardcode_direct_absolute=$hardcode_direct_absolute
17814 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17815 # into the resulting binary.
17816 hardcode_minus_L=$hardcode_minus_L
17818 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17819 # into the resulting binary.
17820 hardcode_shlibpath_var=$hardcode_shlibpath_var
17822 # Set to "yes" if building a shared library automatically hardcodes DIR
17823 # into the library and all subsequent libraries and executables linked
17824 # against it.
17825 hardcode_automatic=$hardcode_automatic
17827 # Set to yes if linker adds runtime paths of dependent libraries
17828 # to runtime path list.
17829 inherit_rpath=$inherit_rpath
17831 # Whether libtool must link a program against all its dependency libraries.
17832 link_all_deplibs=$link_all_deplibs
17834 # Fix the shell variable \$srcfile for the compiler.
17835 fix_srcfile_path=$lt_fix_srcfile_path
17837 # Set to "yes" if exported symbols are required.
17838 always_export_symbols=$always_export_symbols
17840 # The commands to list exported symbols.
17841 export_symbols_cmds=$lt_export_symbols_cmds
17843 # Symbols that should not be listed in the preloaded symbols.
17844 exclude_expsyms=$lt_exclude_expsyms
17846 # Symbols that must always be exported.
17847 include_expsyms=$lt_include_expsyms
17849 # Commands necessary for linking programs (against libraries) with templates.
17850 prelink_cmds=$lt_prelink_cmds
17852 # Specify filename containing input files.
17853 file_list_spec=$lt_file_list_spec
17855 # How to hardcode a shared library path into an executable.
17856 hardcode_action=$hardcode_action
17858 # ### END LIBTOOL CONFIG
17860 _LT_EOF
17862 case $host_os in
17863 aix3*)
17864 cat <<\_LT_EOF >> "$cfgfile"
17865 # AIX sometimes has problems with the GCC collect2 program. For some
17866 # reason, if we set the COLLECT_NAMES environment variable, the problems
17867 # vanish in a puff of smoke.
17868 if test "X${COLLECT_NAMES+set}" != Xset; then
17869 COLLECT_NAMES=
17870 export COLLECT_NAMES
17872 _LT_EOF
17874 esac
17877 ltmain="$ac_aux_dir/ltmain.sh"
17880 # We use sed instead of cat because bash on DJGPP gets confused if
17881 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17882 # text mode, it properly converts lines to CR/LF. This bash problem
17883 # is reportedly fixed, but why not run on old versions too?
17884 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17885 || (rm -f "$cfgfile"; exit 1)
17887 case $xsi_shell in
17888 yes)
17889 cat << \_LT_EOF >> "$cfgfile"
17891 # func_dirname file append nondir_replacement
17892 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17893 # otherwise set result to NONDIR_REPLACEMENT.
17894 func_dirname ()
17896 case ${1} in
17897 */*) func_dirname_result="${1%/*}${2}" ;;
17898 * ) func_dirname_result="${3}" ;;
17899 esac
17902 # func_basename file
17903 func_basename ()
17905 func_basename_result="${1##*/}"
17908 # func_dirname_and_basename file append nondir_replacement
17909 # perform func_basename and func_dirname in a single function
17910 # call:
17911 # dirname: Compute the dirname of FILE. If nonempty,
17912 # add APPEND to the result, otherwise set result
17913 # to NONDIR_REPLACEMENT.
17914 # value returned in "$func_dirname_result"
17915 # basename: Compute filename of FILE.
17916 # value retuned in "$func_basename_result"
17917 # Implementation must be kept synchronized with func_dirname
17918 # and func_basename. For efficiency, we do not delegate to
17919 # those functions but instead duplicate the functionality here.
17920 func_dirname_and_basename ()
17922 case ${1} in
17923 */*) func_dirname_result="${1%/*}${2}" ;;
17924 * ) func_dirname_result="${3}" ;;
17925 esac
17926 func_basename_result="${1##*/}"
17929 # func_stripname prefix suffix name
17930 # strip PREFIX and SUFFIX off of NAME.
17931 # PREFIX and SUFFIX must not contain globbing or regex special
17932 # characters, hashes, percent signs, but SUFFIX may contain a leading
17933 # dot (in which case that matches only a dot).
17934 func_stripname ()
17936 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17937 # positional parameters, so assign one to ordinary parameter first.
17938 func_stripname_result=${3}
17939 func_stripname_result=${func_stripname_result#"${1}"}
17940 func_stripname_result=${func_stripname_result%"${2}"}
17943 # func_opt_split
17944 func_opt_split ()
17946 func_opt_split_opt=${1%%=*}
17947 func_opt_split_arg=${1#*=}
17950 # func_lo2o object
17951 func_lo2o ()
17953 case ${1} in
17954 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17955 *) func_lo2o_result=${1} ;;
17956 esac
17959 # func_xform libobj-or-source
17960 func_xform ()
17962 func_xform_result=${1%.*}.lo
17965 # func_arith arithmetic-term...
17966 func_arith ()
17968 func_arith_result=$(( $* ))
17971 # func_len string
17972 # STRING may not start with a hyphen.
17973 func_len ()
17975 func_len_result=${#1}
17978 _LT_EOF
17980 *) # Bourne compatible functions.
17981 cat << \_LT_EOF >> "$cfgfile"
17983 # func_dirname file append nondir_replacement
17984 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17985 # otherwise set result to NONDIR_REPLACEMENT.
17986 func_dirname ()
17988 # Extract subdirectory from the argument.
17989 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17990 if test "X$func_dirname_result" = "X${1}"; then
17991 func_dirname_result="${3}"
17992 else
17993 func_dirname_result="$func_dirname_result${2}"
17997 # func_basename file
17998 func_basename ()
18000 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18004 # func_stripname prefix suffix name
18005 # strip PREFIX and SUFFIX off of NAME.
18006 # PREFIX and SUFFIX must not contain globbing or regex special
18007 # characters, hashes, percent signs, but SUFFIX may contain a leading
18008 # dot (in which case that matches only a dot).
18009 # func_strip_suffix prefix name
18010 func_stripname ()
18012 case ${2} in
18013 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18014 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18015 esac
18018 # sed scripts:
18019 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18020 my_sed_long_arg='1s/^-[^=]*=//'
18022 # func_opt_split
18023 func_opt_split ()
18025 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18026 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18029 # func_lo2o object
18030 func_lo2o ()
18032 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18035 # func_xform libobj-or-source
18036 func_xform ()
18038 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18041 # func_arith arithmetic-term...
18042 func_arith ()
18044 func_arith_result=`expr "$@"`
18047 # func_len string
18048 # STRING may not start with a hyphen.
18049 func_len ()
18051 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18054 _LT_EOF
18055 esac
18057 case $lt_shell_append in
18058 yes)
18059 cat << \_LT_EOF >> "$cfgfile"
18061 # func_append var value
18062 # Append VALUE to the end of shell variable VAR.
18063 func_append ()
18065 eval "$1+=\$2"
18067 _LT_EOF
18070 cat << \_LT_EOF >> "$cfgfile"
18072 # func_append var value
18073 # Append VALUE to the end of shell variable VAR.
18074 func_append ()
18076 eval "$1=\$$1\$2"
18079 _LT_EOF
18081 esac
18084 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18085 || (rm -f "$cfgfile"; exit 1)
18087 mv -f "$cfgfile" "$ofile" ||
18088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18089 chmod +x "$ofile"
18092 cat <<_LT_EOF >> "$ofile"
18094 # ### BEGIN LIBTOOL TAG CONFIG: GO
18096 # The linker used to build libraries.
18097 LD=$lt_LD_GO
18099 # How to create reloadable object files.
18100 reload_flag=$lt_reload_flag_GO
18101 reload_cmds=$lt_reload_cmds_GO
18103 # Commands used to build an old-style archive.
18104 old_archive_cmds=$lt_old_archive_cmds_GO
18106 # A language specific compiler.
18107 CC=$lt_compiler_GO
18109 # Is the compiler the GNU compiler?
18110 with_gcc=$GCC_GO
18112 # Compiler flag to turn off builtin functions.
18113 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18115 # How to pass a linker flag through the compiler.
18116 wl=$lt_lt_prog_compiler_wl_GO
18118 # Additional compiler flags for building library objects.
18119 pic_flag=$lt_lt_prog_compiler_pic_GO
18121 # Compiler flag to prevent dynamic linking.
18122 link_static_flag=$lt_lt_prog_compiler_static_GO
18124 # Does compiler simultaneously support -c and -o options?
18125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18127 # Whether or not to add -lc for building shared libraries.
18128 build_libtool_need_lc=$archive_cmds_need_lc_GO
18130 # Whether or not to disallow shared libs when runtime libs are static.
18131 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18133 # Compiler flag to allow reflexive dlopens.
18134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18136 # Compiler flag to generate shared objects directly from archives.
18137 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18139 # Whether the compiler copes with passing no objects directly.
18140 compiler_needs_object=$lt_compiler_needs_object_GO
18142 # Create an old-style archive from a shared archive.
18143 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18145 # Create a temporary old-style archive to link instead of a shared archive.
18146 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18148 # Commands used to build a shared archive.
18149 archive_cmds=$lt_archive_cmds_GO
18150 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18152 # Commands used to build a loadable module if different from building
18153 # a shared archive.
18154 module_cmds=$lt_module_cmds_GO
18155 module_expsym_cmds=$lt_module_expsym_cmds_GO
18157 # Whether we are building with GNU ld or not.
18158 with_gnu_ld=$lt_with_gnu_ld_GO
18160 # Flag that allows shared libraries with undefined symbols to be built.
18161 allow_undefined_flag=$lt_allow_undefined_flag_GO
18163 # Flag that enforces no undefined symbols.
18164 no_undefined_flag=$lt_no_undefined_flag_GO
18166 # Flag to hardcode \$libdir into a binary during linking.
18167 # This must work even if \$libdir does not exist
18168 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18170 # If ld is used when linking, flag to hardcode \$libdir into a binary
18171 # during linking. This must work even if \$libdir does not exist.
18172 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18174 # Whether we need a single "-rpath" flag with a separated argument.
18175 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18177 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18178 # DIR into the resulting binary.
18179 hardcode_direct=$hardcode_direct_GO
18181 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18182 # DIR into the resulting binary and the resulting library dependency is
18183 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18184 # library is relocated.
18185 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18187 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18188 # into the resulting binary.
18189 hardcode_minus_L=$hardcode_minus_L_GO
18191 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18192 # into the resulting binary.
18193 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18195 # Set to "yes" if building a shared library automatically hardcodes DIR
18196 # into the library and all subsequent libraries and executables linked
18197 # against it.
18198 hardcode_automatic=$hardcode_automatic_GO
18200 # Set to yes if linker adds runtime paths of dependent libraries
18201 # to runtime path list.
18202 inherit_rpath=$inherit_rpath_GO
18204 # Whether libtool must link a program against all its dependency libraries.
18205 link_all_deplibs=$link_all_deplibs_GO
18207 # Fix the shell variable \$srcfile for the compiler.
18208 fix_srcfile_path=$lt_fix_srcfile_path_GO
18210 # Set to "yes" if exported symbols are required.
18211 always_export_symbols=$always_export_symbols_GO
18213 # The commands to list exported symbols.
18214 export_symbols_cmds=$lt_export_symbols_cmds_GO
18216 # Symbols that should not be listed in the preloaded symbols.
18217 exclude_expsyms=$lt_exclude_expsyms_GO
18219 # Symbols that must always be exported.
18220 include_expsyms=$lt_include_expsyms_GO
18222 # Commands necessary for linking programs (against libraries) with templates.
18223 prelink_cmds=$lt_prelink_cmds_GO
18225 # Specify filename containing input files.
18226 file_list_spec=$lt_file_list_spec_GO
18228 # How to hardcode a shared library path into an executable.
18229 hardcode_action=$hardcode_action_GO
18231 # ### END LIBTOOL TAG CONFIG: GO
18232 _LT_EOF
18235 "default":C) if test -n "$CONFIG_FILES"; then
18236 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18237 # that multilib installs will end up installed in the correct place.
18238 # The testsuite needs it for multilib-aware ABI baseline files.
18239 # To work around this not being passed down from config-ml.in ->
18240 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18241 # append it here. Only modify Makefiles that have just been created.
18243 # Also, get rid of this simulated-VPATH thing that automake does.
18244 cat > vpsed << \_EOF
18245 s!`test -f '$<' || echo '$(srcdir)/'`!!
18246 _EOF
18247 for i in $SUBDIRS; do
18248 case $CONFIG_FILES in
18249 *${i}/Makefile*)
18250 #echo "Adding MULTISUBDIR to $i/Makefile"
18251 sed -f vpsed $i/Makefile > tmp
18252 grep '^MULTISUBDIR =' Makefile >> tmp
18253 mv tmp $i/Makefile
18255 esac
18256 done
18257 rm vpsed
18261 esac
18262 done # for ac_tag
18265 as_fn_exit 0
18266 _ACEOF
18267 ac_clean_files=$ac_clean_files_save
18269 test $ac_write_fail = 0 ||
18270 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18273 # configure is writing to config.log, and then calls config.status.
18274 # config.status does its own redirection, appending to config.log.
18275 # Unfortunately, on DOS this fails, as config.log is still kept open
18276 # by configure, so config.status won't be able to write to it; its
18277 # output is simply discarded. So we exec the FD to /dev/null,
18278 # effectively closing config.log, so it can be properly (re)opened and
18279 # appended to by config.status. When coming back to configure, we
18280 # need to make the FD available again.
18281 if test "$no_create" != yes; then
18282 ac_cs_success=:
18283 ac_config_status_args=
18284 test "$silent" = yes &&
18285 ac_config_status_args="$ac_config_status_args --quiet"
18286 exec 5>/dev/null
18287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18288 exec 5>>config.log
18289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18290 # would make configure fail if this is the last instruction.
18291 $ac_cs_success || as_fn_exit $?
18293 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18295 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}