2016-11-10 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / libgo / configure
blob7a9df58c216f495e56eae2c07c4e9e2e370d6df6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 HAVE_STAT_TIMESPEC_FALSE
606 HAVE_STAT_TIMESPEC_TRUE
607 STRUCT_EPOLL_EVENT_FD_OFFSET
608 SIZEOF_STRUCT_EPOLL_EVENT
609 MATH_FLAG
610 STRINGOPS_FLAG
611 HAVE_WAIT4_FALSE
612 HAVE_WAIT4_TRUE
613 HAVE_STRERROR_R_FALSE
614 HAVE_STRERROR_R_TRUE
615 HAVE_SYS_MMAN_H_FALSE
616 HAVE_SYS_MMAN_H_TRUE
617 PTHREAD_LIBS
618 PTHREAD_CFLAGS
619 NET_LIBS
620 MATH_LIBS
621 GOC_IS_LLGO_FALSE
622 GOC_IS_LLGO_TRUE
623 GO_SPLIT_STACK
624 USING_SPLIT_STACK_FALSE
625 USING_SPLIT_STACK_TRUE
626 SPLIT_STACK
627 OSCFLAGS
628 GO_SYSCALL_OS_ARCH_FILE
629 GO_SYSCALL_OS_FILE
630 GO_LIBCALL_OS_ARCH_FILE
631 GO_LIBCALL_OS_FILE
632 ALLGOARCHFAMILY
633 ALLGOARCH
634 GOARCH_MINFRAMESIZE
635 GOARCH_HUGEPAGESIZE
636 GOARCH_INT64ALIGN
637 GOARCH_PCQUANTUM
638 GOARCH_PHYSPAGESIZE
639 GOARCH_CACHELINESIZE
640 GOARCH_BIGENDIAN
641 GOARCH_FAMILY
642 GOARCH
643 USE_DEJAGNU
644 ALLGOOS
645 GOOS
646 LIBGO_IS_BSD_FALSE
647 LIBGO_IS_BSD_TRUE
648 LIBGO_IS_SOLARIS_FALSE
649 LIBGO_IS_SOLARIS_TRUE
650 LIBGO_IS_RTEMS_FALSE
651 LIBGO_IS_RTEMS_TRUE
652 LIBGO_IS_DRAGONFLY_FALSE
653 LIBGO_IS_DRAGONFLY_TRUE
654 LIBGO_IS_OPENBSD_FALSE
655 LIBGO_IS_OPENBSD_TRUE
656 LIBGO_IS_NETBSD_FALSE
657 LIBGO_IS_NETBSD_TRUE
658 LIBGO_IS_LINUX_FALSE
659 LIBGO_IS_LINUX_TRUE
660 LIBGO_IS_IRIX_FALSE
661 LIBGO_IS_IRIX_TRUE
662 LIBGO_IS_FREEBSD_FALSE
663 LIBGO_IS_FREEBSD_TRUE
664 LIBGO_IS_DARWIN_FALSE
665 LIBGO_IS_DARWIN_TRUE
666 go_include
667 LIBATOMIC
668 LIBFFIINCS
669 LIBFFI
670 nover_glibgo_toolexeclibdir
671 glibgo_toolexeclibdir
672 glibgo_toolexecdir
673 WERROR
674 WARN_FLAGS
675 CC_FOR_BUILD
676 enable_static
677 enable_shared
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
685 OBJDUMP
686 LN_S
688 ac_ct_DUMPBIN
689 DUMPBIN
690 LIBTOOL
691 OBJCOPY
692 RANLIB
694 FGREP
695 EGREP
696 GREP
698 MAINT
699 MAINTAINER_MODE_FALSE
700 MAINTAINER_MODE_TRUE
701 GOCFLAGS
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__quote
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
720 am__untar
721 am__tar
722 AMTAR
723 am__leading_dot
724 SET_MAKE
726 mkdir_p
727 MKDIR_P
728 INSTALL_STRIP_PROGRAM
729 STRIP
730 install_sh
731 MAKEINFO
732 AUTOHEADER
733 AUTOMAKE
734 AUTOCONF
735 ACLOCAL
736 VERSION
737 PACKAGE
738 CYGPATH_W
739 am__isrc
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 target_os
744 target_vendor
745 target_cpu
746 target
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 multi_basedir
756 libtool_VERSION
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 enable_multilib
799 enable_dependency_tracking
800 enable_maintainer_mode
801 with_gnu_ld
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 enable_libtool_lock
807 enable_werror
808 enable_version_specific_runtime_libs
809 with_libffi
810 with_libatomic
811 with_system_libunwind
813 ac_precious_vars='build_alias
814 host_alias
815 target_alias
817 CPPFLAGS'
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
868 ac_prev=
869 ac_dashdash=
870 for ac_option
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
888 ac_dashdash=yes ;;
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
907 --config-cache | -C)
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1202 -*) as_fn_error "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information."
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224 esac
1225 done
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error "missing argument to $ac_option"
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used." >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error "pwd does not report name of working directory"
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1311 /^X\(\/\/\)$/{
1312 s//\1/
1315 /^X\(\/\).*/{
1316 s//\1/
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1324 else
1325 ac_srcdir_defaulted=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1414 cat <<\_ACEOF
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 --target=TARGET configure for building compilers for TARGET [HOST]
1425 _ACEOF
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of package-unused version-unused:";;
1431 esac
1432 cat <<\_ACEOF
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-multilib build many library versions (default)
1439 --disable-dependency-tracking speeds up one-time build
1440 --enable-dependency-tracking do not reject slow dependency extractors
1441 --enable-maintainer-mode enable make rules and dependencies not useful
1442 (and sometimes confusing) to the casual installer
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-static[=PKGS] build static libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --enable-werror turns on -Werror [default=yes]
1449 --enable-version-specific-runtime-libs
1450 Specify that runtime libraries should be installed
1451 in a compiler-specific directory
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-pic try to use only PIC/non-PIC objects [default=use
1458 both]
1459 --without-libffi don't use libffi
1460 --without-libatomic don't use libatomic
1461 --with-system-libunwind use installed libunwind
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1471 GOC Go compiler command
1472 GOCFLAGS Go compiler flags
1473 CPP C preprocessor
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to the package provider.
1479 _ACEOF
1480 ac_status=$?
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
1489 ac_builddir=.
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1507 case $srcdir in
1508 .) # We are building in place.
1509 ac_srcdir=.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 package-unused configure version-unused
1542 generated by GNU Autoconf 2.64
1544 Copyright (C) 2009 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1586 ac_retval=1
1588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 return $ac_retval
1591 } # ac_fn_c_try_compile
1593 # ac_fn_c_try_link LINENO
1594 # -----------------------
1595 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_link ()
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 $as_test_x conftest$ac_exeext
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1627 ac_retval=1
1629 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631 # interfere with the next link command; also delete a directory that is
1632 # left behind by Apple's compiler. We do this before executing the actions.
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 return $ac_retval
1637 } # ac_fn_c_try_link
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658 else
1659 eval "$3=no"
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 } # ac_fn_c_check_header_compile
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } >/dev/null && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=1
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 return $ac_retval
1705 } # ac_fn_c_try_cpp
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=$ac_status
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 return $ac_retval
1747 } # ac_fn_c_try_run
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1764 #define $2 innocuous_$2
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $2 (); below.
1768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769 <limits.h> exists even on freestanding compilers. */
1771 #ifdef __STDC__
1772 # include <limits.h>
1773 #else
1774 # include <assert.h>
1775 #endif
1777 #undef $2
1779 /* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1782 #ifdef __cplusplus
1783 extern "C"
1784 #endif
1785 char $2 ();
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined __stub_$2 || defined __stub___$2
1790 choke me
1791 #endif
1794 main ()
1796 return $2 ();
1798 return 0;
1800 _ACEOF
1801 if ac_fn_c_try_link "$LINENO"; then :
1802 eval "$3=yes"
1803 else
1804 eval "$3=no"
1806 rm -f core conftest.err conftest.$ac_objext \
1807 conftest$ac_exeext conftest.$ac_ext
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814 } # ac_fn_c_check_func
1816 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1819 # the include files in INCLUDES and setting the cache variable VAR
1820 # accordingly.
1821 ac_fn_c_check_header_mongrel ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 $as_echo_n "(cached) " >&6
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 else
1834 # Is the header compilable?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1836 $as_echo_n "checking $2 usability... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_header_compiler=yes
1844 else
1845 ac_header_compiler=no
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1849 $as_echo "$ac_header_compiler" >&6; }
1851 # Is the header present?
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1853 $as_echo_n "checking $2 presence... " >&6; }
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 #include <$2>
1857 _ACEOF
1858 if ac_fn_c_try_cpp "$LINENO"; then :
1859 ac_header_preproc=yes
1860 else
1861 ac_header_preproc=no
1863 rm -f conftest.err conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865 $as_echo "$ac_header_preproc" >&6; }
1867 # So? What about this header?
1868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1869 yes:no: )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1871 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 no:yes:* )
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1877 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1879 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1881 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1883 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 esac
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 eval "$3=\$ac_header_compiler"
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 } # ac_fn_c_check_header_mongrel
1903 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1904 # -------------------------------------------
1905 # Tests whether TYPE exists after having included INCLUDES, setting cache
1906 # variable VAR accordingly.
1907 ac_fn_c_check_type ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 eval "$3=no"
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1920 main ()
1922 if (sizeof ($2))
1923 return 0;
1925 return 0;
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1933 main ()
1935 if (sizeof (($2)))
1936 return 0;
1938 return 0;
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1943 else
1944 eval "$3=yes"
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955 } # ac_fn_c_check_type
1957 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1958 # --------------------------------------------
1959 # Tries to find the compile-time value of EXPR in a program that includes
1960 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1961 # computed
1962 ac_fn_c_compute_int ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if test "$cross_compiling" = yes; then
1966 # Depending upon the size, compute the lo and hi bounds.
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1971 main ()
1973 static int test_array [1 - 2 * !(($2) >= 0)];
1974 test_array [0] = 0
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_lo=0 ac_mid=0
1982 while :; do
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1990 test_array [0] = 0
1993 return 0;
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_hi=$ac_mid; break
1998 else
1999 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2000 if test $ac_lo -le $ac_mid; then
2001 ac_lo= ac_hi=
2002 break
2004 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 done
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2013 main ()
2015 static int test_array [1 - 2 * !(($2) < 0)];
2016 test_array [0] = 0
2019 return 0;
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 ac_hi=-1 ac_mid=-1
2024 while :; do
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2029 main ()
2031 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2032 test_array [0] = 0
2035 return 0;
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 ac_lo=$ac_mid; break
2040 else
2041 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2042 if test $ac_mid -le $ac_hi; then
2043 ac_lo= ac_hi=
2044 break
2046 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 done
2050 else
2051 ac_lo= ac_hi=
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 # Binary search between lo and hi bounds.
2057 while test "x$ac_lo" != "x$ac_hi"; do
2058 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2066 test_array [0] = 0
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_hi=$ac_mid
2074 else
2075 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 done
2079 case $ac_lo in #((
2080 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2081 '') ac_retval=1 ;;
2082 esac
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2087 static long int longval () { return $2; }
2088 static unsigned long int ulongval () { return $2; }
2089 #include <stdio.h>
2090 #include <stdlib.h>
2092 main ()
2095 FILE *f = fopen ("conftest.val", "w");
2096 if (! f)
2097 return 1;
2098 if (($2) < 0)
2100 long int i = longval ();
2101 if (i != ($2))
2102 return 1;
2103 fprintf (f, "%ld", i);
2105 else
2107 unsigned long int i = ulongval ();
2108 if (i != ($2))
2109 return 1;
2110 fprintf (f, "%lu", i);
2112 /* Do not output a trailing newline, as this causes \r\n confusion
2113 on some platforms. */
2114 return ferror (f) || fclose (f) != 0;
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_run "$LINENO"; then :
2121 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2122 else
2123 ac_retval=1
2125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2126 conftest.$ac_objext conftest.beam conftest.$ac_ext
2127 rm -f conftest.val
2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2131 return $ac_retval
2133 } # ac_fn_c_compute_int
2134 cat >config.log <<_ACEOF
2135 This file contains any messages produced by compilers while
2136 running configure, to aid debugging if configure makes a mistake.
2138 It was created by package-unused $as_me version-unused, which was
2139 generated by GNU Autoconf 2.64. Invocation command line was
2141 $ $0 $@
2143 _ACEOF
2144 exec 5>>config.log
2146 cat <<_ASUNAME
2147 ## --------- ##
2148 ## Platform. ##
2149 ## --------- ##
2151 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2157 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2160 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2161 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2162 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2164 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2165 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2166 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2168 _ASUNAME
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 $as_echo "PATH: $as_dir"
2176 done
2177 IFS=$as_save_IFS
2179 } >&5
2181 cat >&5 <<_ACEOF
2184 ## ----------- ##
2185 ## Core tests. ##
2186 ## ----------- ##
2188 _ACEOF
2191 # Keep a trace of the command line.
2192 # Strip out --no-create and --no-recursion so they do not pile up.
2193 # Strip out --silent because we don't want to record it for future runs.
2194 # Also quote any args containing shell meta-characters.
2195 # Make two passes to allow for proper duplicate-argument suppression.
2196 ac_configure_args=
2197 ac_configure_args0=
2198 ac_configure_args1=
2199 ac_must_keep_next=false
2200 for ac_pass in 1 2
2202 for ac_arg
2204 case $ac_arg in
2205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207 | -silent | --silent | --silen | --sile | --sil)
2208 continue ;;
2209 *\'*)
2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2211 esac
2212 case $ac_pass in
2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2215 as_fn_append ac_configure_args1 " '$ac_arg'"
2216 if test $ac_must_keep_next = true; then
2217 ac_must_keep_next=false # Got value, back to normal.
2218 else
2219 case $ac_arg in
2220 *=* | --config-cache | -C | -disable-* | --disable-* \
2221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223 | -with-* | --with-* | -without-* | --without-* | --x)
2224 case "$ac_configure_args0 " in
2225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2226 esac
2228 -* ) ac_must_keep_next=true ;;
2229 esac
2231 as_fn_append ac_configure_args " '$ac_arg'"
2233 esac
2234 done
2235 done
2236 { ac_configure_args0=; unset ac_configure_args0;}
2237 { ac_configure_args1=; unset ac_configure_args1;}
2239 # When interrupted or exit'd, cleanup temporary files, and complete
2240 # config.log. We remove comments because anyway the quotes in there
2241 # would cause problems or look ugly.
2242 # WARNING: Use '\'' to represent an apostrophe within the trap.
2243 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244 trap 'exit_status=$?
2245 # Save into config.log some information that might help in debugging.
2247 echo
2249 cat <<\_ASBOX
2250 ## ---------------- ##
2251 ## Cache variables. ##
2252 ## ---------------- ##
2253 _ASBOX
2254 echo
2255 # The following way of writing the cache mishandles newlines in values,
2257 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2258 eval ac_val=\$$ac_var
2259 case $ac_val in #(
2260 *${as_nl}*)
2261 case $ac_var in #(
2262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264 esac
2265 case $ac_var in #(
2266 _ | IFS | as_nl) ;; #(
2267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2268 *) { eval $ac_var=; unset $ac_var;} ;;
2269 esac ;;
2270 esac
2271 done
2272 (set) 2>&1 |
2273 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2274 *${as_nl}ac_space=\ *)
2275 sed -n \
2276 "s/'\''/'\''\\\\'\'''\''/g;
2277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278 ;; #(
2280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2282 esac |
2283 sort
2285 echo
2287 cat <<\_ASBOX
2288 ## ----------------- ##
2289 ## Output variables. ##
2290 ## ----------------- ##
2291 _ASBOX
2292 echo
2293 for ac_var in $ac_subst_vars
2295 eval ac_val=\$$ac_var
2296 case $ac_val in
2297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2298 esac
2299 $as_echo "$ac_var='\''$ac_val'\''"
2300 done | sort
2301 echo
2303 if test -n "$ac_subst_files"; then
2304 cat <<\_ASBOX
2305 ## ------------------- ##
2306 ## File substitutions. ##
2307 ## ------------------- ##
2308 _ASBOX
2309 echo
2310 for ac_var in $ac_subst_files
2312 eval ac_val=\$$ac_var
2313 case $ac_val in
2314 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2315 esac
2316 $as_echo "$ac_var='\''$ac_val'\''"
2317 done | sort
2318 echo
2321 if test -s confdefs.h; then
2322 cat <<\_ASBOX
2323 ## ----------- ##
2324 ## confdefs.h. ##
2325 ## ----------- ##
2326 _ASBOX
2327 echo
2328 cat confdefs.h
2329 echo
2331 test "$ac_signal" != 0 &&
2332 $as_echo "$as_me: caught signal $ac_signal"
2333 $as_echo "$as_me: exit $exit_status"
2334 } >&5
2335 rm -f core *.core core.conftest.* &&
2336 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2337 exit $exit_status
2339 for ac_signal in 1 2 13 15; do
2340 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2341 done
2342 ac_signal=0
2344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2345 rm -f -r conftest* confdefs.h
2347 $as_echo "/* confdefs.h */" > confdefs.h
2349 # Predefined preprocessor variables.
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_NAME "$PACKAGE_NAME"
2353 _ACEOF
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2357 _ACEOF
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2361 _ACEOF
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_STRING "$PACKAGE_STRING"
2365 _ACEOF
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2369 _ACEOF
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_URL "$PACKAGE_URL"
2373 _ACEOF
2376 # Let the site file select an alternate cache file if it wants to.
2377 # Prefer an explicitly selected file to automatically selected ones.
2378 ac_site_file1=NONE
2379 ac_site_file2=NONE
2380 if test -n "$CONFIG_SITE"; then
2381 ac_site_file1=$CONFIG_SITE
2382 elif test "x$prefix" != xNONE; then
2383 ac_site_file1=$prefix/share/config.site
2384 ac_site_file2=$prefix/etc/config.site
2385 else
2386 ac_site_file1=$ac_default_prefix/share/config.site
2387 ac_site_file2=$ac_default_prefix/etc/config.site
2389 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2391 test "x$ac_site_file" = xNONE && continue
2392 if test -r "$ac_site_file"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2394 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2395 sed 's/^/| /' "$ac_site_file" >&5
2396 . "$ac_site_file"
2398 done
2400 if test -r "$cache_file"; then
2401 # Some versions of bash will fail to source /dev/null (special
2402 # files actually), so we avoid doing that.
2403 if test -f "$cache_file"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2405 $as_echo "$as_me: loading cache $cache_file" >&6;}
2406 case $cache_file in
2407 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2408 *) . "./$cache_file";;
2409 esac
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2413 $as_echo "$as_me: creating cache $cache_file" >&6;}
2414 >$cache_file
2417 # Check that the precious variables saved in the cache have kept the same
2418 # value.
2419 ac_cache_corrupted=false
2420 for ac_var in $ac_precious_vars; do
2421 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2422 eval ac_new_set=\$ac_env_${ac_var}_set
2423 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2424 eval ac_new_val=\$ac_env_${ac_var}_value
2425 case $ac_old_set,$ac_new_set in
2426 set,)
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2429 ac_cache_corrupted=: ;;
2430 ,set)
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2432 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2433 ac_cache_corrupted=: ;;
2434 ,);;
2436 if test "x$ac_old_val" != "x$ac_new_val"; then
2437 # differences in whitespace do not lead to failure.
2438 ac_old_val_w=`echo x $ac_old_val`
2439 ac_new_val_w=`echo x $ac_new_val`
2440 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2442 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2443 ac_cache_corrupted=:
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2446 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2447 eval $ac_var=\$ac_old_val
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2450 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2452 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2453 fi;;
2454 esac
2455 # Pass precious variables to config.status.
2456 if test "$ac_new_set" = set; then
2457 case $ac_new_val in
2458 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2459 *) ac_arg=$ac_var=$ac_new_val ;;
2460 esac
2461 case " $ac_configure_args " in
2462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2463 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2464 esac
2466 done
2467 if $ac_cache_corrupted; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2471 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2472 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2474 ## -------------------- ##
2475 ## Main body of script. ##
2476 ## -------------------- ##
2478 ac_ext=c
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489 ac_config_headers="$ac_config_headers config.h"
2492 libtool_VERSION=10:0:0
2495 # Default to --enable-multilib
2496 # Check whether --enable-multilib was given.
2497 if test "${enable_multilib+set}" = set; then :
2498 enableval=$enable_multilib; case "$enableval" in
2499 yes) multilib=yes ;;
2500 no) multilib=no ;;
2501 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2502 esac
2503 else
2504 multilib=yes
2508 # We may get other options which we leave undocumented:
2509 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2510 # See config-ml.in if you want the gory details.
2512 if test "$srcdir" = "."; then
2513 if test "$with_target_subdir" != "."; then
2514 multi_basedir="$srcdir/$with_multisrctop../.."
2515 else
2516 multi_basedir="$srcdir/$with_multisrctop.."
2518 else
2519 multi_basedir="$srcdir/.."
2523 # Even if the default multilib is not a cross compilation,
2524 # it may be that some of the other multilibs are.
2525 if test $cross_compiling = no && test $multilib = yes \
2526 && test "x${with_multisubdir}" != x ; then
2527 cross_compiling=maybe
2530 ac_config_commands="$ac_config_commands default-1"
2533 ac_aux_dir=
2534 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2535 for ac_t in install-sh install.sh shtool; do
2536 if test -f "$ac_dir/$ac_t"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/$ac_t -c"
2539 break 2
2541 done
2542 done
2543 if test -z "$ac_aux_dir"; then
2544 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2547 # These three variables are undocumented and unsupported,
2548 # and are intended to be withdrawn in a future Autoconf release.
2549 # They can cause serious problems if a builder's source tree is in a directory
2550 # whose full name contains unusual characters.
2551 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2552 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2553 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2556 # Make sure we can run config.sub.
2557 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2558 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2561 $as_echo_n "checking build system type... " >&6; }
2562 if test "${ac_cv_build+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 ac_build_alias=$build_alias
2566 test "x$ac_build_alias" = x &&
2567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2568 test "x$ac_build_alias" = x &&
2569 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2570 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2571 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2575 $as_echo "$ac_cv_build" >&6; }
2576 case $ac_cv_build in
2577 *-*-*) ;;
2578 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2579 esac
2580 build=$ac_cv_build
2581 ac_save_IFS=$IFS; IFS='-'
2582 set x $ac_cv_build
2583 shift
2584 build_cpu=$1
2585 build_vendor=$2
2586 shift; shift
2587 # Remember, the first character of IFS is used to create $*,
2588 # except with old shells:
2589 build_os=$*
2590 IFS=$ac_save_IFS
2591 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2595 $as_echo_n "checking host system type... " >&6; }
2596 if test "${ac_cv_host+set}" = set; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test "x$host_alias" = x; then
2600 ac_cv_host=$ac_cv_build
2601 else
2602 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2603 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2608 $as_echo "$ac_cv_host" >&6; }
2609 case $ac_cv_host in
2610 *-*-*) ;;
2611 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2612 esac
2613 host=$ac_cv_host
2614 ac_save_IFS=$IFS; IFS='-'
2615 set x $ac_cv_host
2616 shift
2617 host_cpu=$1
2618 host_vendor=$2
2619 shift; shift
2620 # Remember, the first character of IFS is used to create $*,
2621 # except with old shells:
2622 host_os=$*
2623 IFS=$ac_save_IFS
2624 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2628 $as_echo_n "checking target system type... " >&6; }
2629 if test "${ac_cv_target+set}" = set; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test "x$target_alias" = x; then
2633 ac_cv_target=$ac_cv_host
2634 else
2635 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2636 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2641 $as_echo "$ac_cv_target" >&6; }
2642 case $ac_cv_target in
2643 *-*-*) ;;
2644 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2645 esac
2646 target=$ac_cv_target
2647 ac_save_IFS=$IFS; IFS='-'
2648 set x $ac_cv_target
2649 shift
2650 target_cpu=$1
2651 target_vendor=$2
2652 shift; shift
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2655 target_os=$*
2656 IFS=$ac_save_IFS
2657 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2660 # The aliases save the names the user supplied, while $host etc.
2661 # will get canonicalized.
2662 test -n "$target_alias" &&
2663 test "$program_prefix$program_suffix$program_transform_name" = \
2664 NONENONEs,x,x, &&
2665 program_prefix=${target_alias}-
2667 target_alias=${target_alias-$host_alias}
2669 am__api_version='1.11'
2671 # Find a good install program. We prefer a C program (faster),
2672 # so one script is as good as another. But avoid the broken or
2673 # incompatible versions:
2674 # SysV /etc/install, /usr/sbin/install
2675 # SunOS /usr/etc/install
2676 # IRIX /sbin/install
2677 # AIX /bin/install
2678 # AmigaOS /C/install, which installs bootblocks on floppy discs
2679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2682 # OS/2's system install, which has a completely different semantic
2683 # ./install, which can be erroneously created by make from ./install.sh.
2684 # Reject install programs that cannot install multiple files.
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2686 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2687 if test -z "$INSTALL"; then
2688 if test "${ac_cv_path_install+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 # Account for people who put trailing slashes in PATH elements.
2697 case $as_dir/ in #((
2698 ./ | .// | /[cC]/* | \
2699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2700 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2701 /usr/ucb/* ) ;;
2703 # OSF1 and SCO ODT 3.0 have their own names for install.
2704 # Don't use installbsd from OSF since it installs stuff as root
2705 # by default.
2706 for ac_prog in ginstall scoinst install; do
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2709 if test $ac_prog = install &&
2710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # AIX install. It has an incompatible calling convention.
2713 elif test $ac_prog = install &&
2714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # program-specific install script used by HP pwplus--don't use.
2717 else
2718 rm -rf conftest.one conftest.two conftest.dir
2719 echo one > conftest.one
2720 echo two > conftest.two
2721 mkdir conftest.dir
2722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2723 test -s conftest.one && test -s conftest.two &&
2724 test -s conftest.dir/conftest.one &&
2725 test -s conftest.dir/conftest.two
2726 then
2727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2728 break 3
2732 done
2733 done
2735 esac
2737 done
2738 IFS=$as_save_IFS
2740 rm -rf conftest.one conftest.two conftest.dir
2743 if test "${ac_cv_path_install+set}" = set; then
2744 INSTALL=$ac_cv_path_install
2745 else
2746 # As a last resort, use the slow shell script. Don't cache a
2747 # value for INSTALL within a source directory, because that will
2748 # break other packages using the cache if that directory is
2749 # removed, or if the value is a relative name.
2750 INSTALL=$ac_install_sh
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2754 $as_echo "$INSTALL" >&6; }
2756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2757 # It thinks the first close brace ends the variable substitution.
2758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2765 $as_echo_n "checking whether build environment is sane... " >&6; }
2766 # Just in case
2767 sleep 1
2768 echo timestamp > conftest.file
2769 # Reject unsafe characters in $srcdir or the absolute working directory
2770 # name. Accept space and tab only in the latter.
2771 am_lf='
2773 case `pwd` in
2774 *[\\\"\#\$\&\'\`$am_lf]*)
2775 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2776 esac
2777 case $srcdir in
2778 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2779 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2780 esac
2782 # Do `set' in a subshell so we don't clobber the current shell's
2783 # arguments. Must try -L first in case configure is actually a
2784 # symlink; some systems play weird games with the mod time of symlinks
2785 # (eg FreeBSD returns the mod time of the symlink's containing
2786 # directory).
2787 if (
2788 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2789 if test "$*" = "X"; then
2790 # -L didn't work.
2791 set X `ls -t "$srcdir/configure" conftest.file`
2793 rm -f conftest.file
2794 if test "$*" != "X $srcdir/configure conftest.file" \
2795 && test "$*" != "X conftest.file $srcdir/configure"; then
2797 # If neither matched, then we have a broken ls. This can happen
2798 # if, for instance, CONFIG_SHELL is bash and it inherits a
2799 # broken ls alias from the environment. This has actually
2800 # happened. Such a system could not be considered "sane".
2801 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2802 alias in your environment" "$LINENO" 5
2805 test "$2" = conftest.file
2807 then
2808 # Ok.
2810 else
2811 as_fn_error "newly created file is older than distributed files!
2812 Check your system clock" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2815 $as_echo "yes" >&6; }
2816 test "$program_prefix" != NONE &&
2817 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2818 # Use a double $ so make ignores it.
2819 test "$program_suffix" != NONE &&
2820 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2821 # Double any \ or $.
2822 # By default was `s,x,x', remove it if useless.
2823 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2824 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2829 if test x"${MISSING+set}" != xset; then
2830 case $am_aux_dir in
2831 *\ * | *\ *)
2832 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2834 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2835 esac
2837 # Use eval to expand $SHELL
2838 if eval "$MISSING --run true"; then
2839 am_missing_run="$MISSING --run "
2840 else
2841 am_missing_run=
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2843 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2846 if test x"${install_sh}" != xset; then
2847 case $am_aux_dir in
2848 *\ * | *\ *)
2849 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2851 install_sh="\${SHELL} $am_aux_dir/install-sh"
2852 esac
2855 # Installed binaries are usually stripped using `strip' when the user
2856 # run `make install-strip'. However `strip' might not be the right
2857 # tool to use in cross-compilation environments, therefore Automake
2858 # will honor the `STRIP' environment variable to overrule this program.
2859 if test "$cross_compiling" != no; then
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}strip; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_STRIP+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$STRIP"; then
2869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2882 done
2883 done
2884 IFS=$as_save_IFS
2888 STRIP=$ac_cv_prog_STRIP
2889 if test -n "$STRIP"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2891 $as_echo "$STRIP" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2899 if test -z "$ac_cv_prog_STRIP"; then
2900 ac_ct_STRIP=$STRIP
2901 # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$ac_ct_STRIP"; then
2909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_ac_ct_STRIP="strip"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929 if test -n "$ac_ct_STRIP"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2931 $as_echo "$ac_ct_STRIP" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2937 if test "x$ac_ct_STRIP" = x; then
2938 STRIP=":"
2939 else
2940 case $cross_compiling:$ac_tool_warned in
2941 yes:)
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944 ac_tool_warned=yes ;;
2945 esac
2946 STRIP=$ac_ct_STRIP
2948 else
2949 STRIP="$ac_cv_prog_STRIP"
2953 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2956 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2957 if test -z "$MKDIR_P"; then
2958 if test "${ac_cv_path_mkdir+set}" = set; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_prog in mkdir gmkdir; do
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2969 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2970 'mkdir (GNU coreutils) '* | \
2971 'mkdir (coreutils) '* | \
2972 'mkdir (fileutils) '4.1*)
2973 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2974 break 3;;
2975 esac
2976 done
2977 done
2978 done
2979 IFS=$as_save_IFS
2983 if test "${ac_cv_path_mkdir+set}" = set; then
2984 MKDIR_P="$ac_cv_path_mkdir -p"
2985 else
2986 # As a last resort, use the slow shell script. Don't cache a
2987 # value for MKDIR_P within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the value is a relative name.
2990 test -d ./--version && rmdir ./--version
2991 MKDIR_P="$ac_install_sh -d"
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2995 $as_echo "$MKDIR_P" >&6; }
2997 mkdir_p="$MKDIR_P"
2998 case $mkdir_p in
2999 [\\/$]* | ?:[\\/]*) ;;
3000 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3001 esac
3003 for ac_prog in gawk mawk nawk awk
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_AWK+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$AWK"; then
3013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_AWK="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3026 done
3027 done
3028 IFS=$as_save_IFS
3032 AWK=$ac_cv_prog_AWK
3033 if test -n "$AWK"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035 $as_echo "$AWK" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3042 test -n "$AWK" && break
3043 done
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3047 set x ${MAKE-make}
3048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3049 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 cat >conftest.make <<\_ACEOF
3053 SHELL = /bin/sh
3054 all:
3055 @echo '@@@%%%=$(MAKE)=@@@%%%'
3056 _ACEOF
3057 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3059 *@@@%%%=?*=@@@%%%*)
3060 eval ac_cv_prog_make_${ac_make}_set=yes;;
3062 eval ac_cv_prog_make_${ac_make}_set=no;;
3063 esac
3064 rm -f conftest.make
3066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 $as_echo "yes" >&6; }
3069 SET_MAKE=
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 SET_MAKE="MAKE=${MAKE-make}"
3076 rm -rf .tst 2>/dev/null
3077 mkdir .tst 2>/dev/null
3078 if test -d .tst; then
3079 am__leading_dot=.
3080 else
3081 am__leading_dot=_
3083 rmdir .tst 2>/dev/null
3085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3086 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3087 # is not polluted with repeated "-I."
3088 am__isrc=' -I$(srcdir)'
3089 # test to see if srcdir already configured
3090 if test -f $srcdir/config.status; then
3091 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3095 # test whether we have cygpath
3096 if test -z "$CYGPATH_W"; then
3097 if (cygpath --version) >/dev/null 2>/dev/null; then
3098 CYGPATH_W='cygpath -w'
3099 else
3100 CYGPATH_W=echo
3105 # Define the identity of the package.
3106 PACKAGE='libgo'
3107 VERSION='version-unused'
3110 # Some tools Automake needs.
3112 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3115 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3118 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3121 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3124 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3126 # We need awk for the "check" target. The system "awk" is bad on
3127 # some platforms.
3128 # Always define AMTAR for backward compatibility. Yes, it's still used
3129 # in the wild :-( We should find a proper way to deprecate it ...
3130 AMTAR='$${TAR-tar}'
3132 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_CC+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3170 done
3171 done
3172 IFS=$as_save_IFS
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3187 if test -z "$ac_cv_prog_CC"; then
3188 ac_ct_CC=$CC
3189 # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC="gcc"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3210 done
3211 done
3212 IFS=$as_save_IFS
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234 CC=$ac_ct_CC
3236 else
3237 CC="$ac_cv_prog_CC"
3240 if test -z "$CC"; then
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if test "${ac_cv_prog_CC+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_prog_CC="${ac_tool_prefix}cc"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3263 done
3264 done
3265 IFS=$as_save_IFS
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3281 if test -z "$CC"; then
3282 # Extract the first word of "cc", so it can be a program name with args.
3283 set dummy cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if test "${ac_cv_prog_CC+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 ac_prog_rejected=no
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301 ac_prog_rejected=yes
3302 continue
3304 ac_cv_prog_CC="cc"
3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3308 done
3309 done
3310 IFS=$as_save_IFS
3312 if test $ac_prog_rejected = yes; then
3313 # We found a bogon in the path, so make sure we never use it.
3314 set dummy $ac_cv_prog_CC
3315 shift
3316 if test $# != 0; then
3317 # We chose a different compiler from the bogus one.
3318 # However, it has the same basename, so the bogon will be chosen
3319 # first if we set CC to just the basename; use the full file name.
3320 shift
3321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3337 if test -z "$CC"; then
3338 if test -n "$ac_tool_prefix"; then
3339 for ac_prog in cl.exe
3341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3362 done
3363 done
3364 IFS=$as_save_IFS
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3378 test -n "$CC" && break
3379 done
3381 if test -z "$CC"; then
3382 ac_ct_CC=$CC
3383 for ac_prog in cl.exe
3385 # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_ac_ct_CC="$ac_prog"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3406 done
3407 done
3408 IFS=$as_save_IFS
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3422 test -n "$ac_ct_CC" && break
3423 done
3425 if test "x$ac_ct_CC" = x; then
3426 CC=""
3427 else
3428 case $cross_compiling:$ac_tool_warned in
3429 yes:)
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned=yes ;;
3433 esac
3434 CC=$ac_ct_CC
3441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error "no acceptable C compiler found in \$PATH
3444 See \`config.log' for more details." "$LINENO" 5; }
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3448 set X $ac_compile
3449 ac_compiler=$2
3450 for ac_option in --version -v -V -qversion; do
3451 { { ac_try="$ac_compiler $ac_option >&5"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3459 ac_status=$?
3460 if test -s conftest.err; then
3461 sed '10a\
3462 ... rest of stderr output deleted ...
3463 10q' conftest.err >conftest.er1
3464 cat conftest.er1 >&5
3465 rm -f conftest.er1 conftest.err
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3469 done
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3475 main ()
3479 return 0;
3481 _ACEOF
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3486 # of exeext.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3488 $as_echo_n "checking for C compiler default output file name... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3494 ac_rmfiles=
3495 for ac_file in $ac_files
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500 esac
3501 done
3502 rm -f $ac_rmfiles
3504 if { { ac_try="$ac_link_default"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link_default") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3519 # Autoconf.
3520 for ac_file in $ac_files ''
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3526 [ab].out )
3527 # We found the default executable, but exeext='' is most
3528 # certainly right.
3529 break;;
3530 *.* )
3531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3532 then :; else
3533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535 # We set ac_cv_exeext here because the later test for it is not
3536 # safe: cross compilers may not add the suffix if given an `-o'
3537 # argument, so we may need to know it at that point already.
3538 # Even if this section looks crufty: it has the advantage of
3539 # actually working.
3540 break;;
3542 break;;
3543 esac
3544 done
3545 test "$ac_cv_exeext" = no && ac_cv_exeext=
3547 else
3548 ac_file=''
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3551 $as_echo "$ac_file" >&6; }
3552 if test -z "$ac_file"; then :
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 { as_fn_set_status 77
3559 as_fn_error "C compiler cannot create executables
3560 See \`config.log' for more details." "$LINENO" 5; }; }
3562 ac_exeext=$ac_cv_exeext
3564 # Check that the compiler produces executables we can run. If not, either
3565 # the compiler is broken, or we cross compile.
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3567 $as_echo_n "checking whether the C compiler works... " >&6; }
3568 # If not cross compiling, check that we can run a simple program.
3569 if test "$cross_compiling" != yes; then
3570 if { ac_try='./$ac_file'
3571 { { case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_try") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; }; then
3581 cross_compiling=no
3582 else
3583 if test "$cross_compiling" = maybe; then
3584 cross_compiling=yes
3585 else
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error "cannot run C compiled programs.
3589 If you meant to cross compile, use \`--host'.
3590 See \`config.log' for more details." "$LINENO" 5; }
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595 $as_echo "yes" >&6; }
3597 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3598 ac_clean_files=$ac_clean_files_save
3599 # Check that the compiler produces executables we can run. If not, either
3600 # the compiler is broken, or we cross compile.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3602 $as_echo_n "checking whether we are cross compiling... " >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3604 $as_echo "$cross_compiling" >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3607 $as_echo_n "checking for suffix of executables... " >&6; }
3608 if { { ac_try="$ac_link"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_link") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; then :
3619 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3620 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3621 # work properly (i.e., refer to `conftest.exe'), while it won't with
3622 # `rm'.
3623 for ac_file in conftest.exe conftest conftest.*; do
3624 test -f "$ac_file" || continue
3625 case $ac_file in
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3628 break;;
3629 * ) break;;
3630 esac
3631 done
3632 else
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error "cannot compute suffix of executables: cannot compile and link
3636 See \`config.log' for more details." "$LINENO" 5; }
3638 rm -f conftest$ac_cv_exeext
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3640 $as_echo "$ac_cv_exeext" >&6; }
3642 rm -f conftest.$ac_ext
3643 EXEEXT=$ac_cv_exeext
3644 ac_exeext=$EXEEXT
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3646 $as_echo_n "checking for suffix of object files... " >&6; }
3647 if test "${ac_cv_objext+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3654 main ()
3658 return 0;
3660 _ACEOF
3661 rm -f conftest.o conftest.obj
3662 if { { ac_try="$ac_compile"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_compile") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 for ac_file in conftest.o conftest.obj conftest.*; do
3674 test -f "$ac_file" || continue;
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3678 break;;
3679 esac
3680 done
3681 else
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error "cannot compute suffix of object files: cannot compile
3688 See \`config.log' for more details." "$LINENO" 5; }
3690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3693 $as_echo "$ac_cv_objext" >&6; }
3694 OBJEXT=$ac_cv_objext
3695 ac_objext=$OBJEXT
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3697 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3698 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3705 main ()
3707 #ifndef __GNUC__
3708 choke me
3709 #endif
3712 return 0;
3714 _ACEOF
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716 ac_compiler_gnu=yes
3717 else
3718 ac_compiler_gnu=no
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3725 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3726 if test $ac_compiler_gnu = yes; then
3727 GCC=yes
3728 else
3729 GCC=
3731 ac_test_CFLAGS=${CFLAGS+set}
3732 ac_save_CFLAGS=$CFLAGS
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3734 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3735 if test "${ac_cv_prog_cc_g+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 ac_save_c_werror_flag=$ac_c_werror_flag
3739 ac_c_werror_flag=yes
3740 ac_cv_prog_cc_g=no
3741 CFLAGS="-g"
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3746 main ()
3750 return 0;
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_g=yes
3755 else
3756 CFLAGS=""
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3761 main ()
3765 return 0;
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3770 else
3771 ac_c_werror_flag=$ac_save_c_werror_flag
3772 CFLAGS="-g"
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3777 main ()
3781 return 0;
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_g=yes
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 ac_c_werror_flag=$ac_save_c_werror_flag
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3795 $as_echo "$ac_cv_prog_cc_g" >&6; }
3796 if test "$ac_test_CFLAGS" = set; then
3797 CFLAGS=$ac_save_CFLAGS
3798 elif test $ac_cv_prog_cc_g = yes; then
3799 if test "$GCC" = yes; then
3800 CFLAGS="-g -O2"
3801 else
3802 CFLAGS="-g"
3804 else
3805 if test "$GCC" = yes; then
3806 CFLAGS="-O2"
3807 else
3808 CFLAGS=
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3812 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3813 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 ac_cv_prog_cc_c89=no
3817 ac_save_CC=$CC
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820 #include <stdarg.h>
3821 #include <stdio.h>
3822 #include <sys/types.h>
3823 #include <sys/stat.h>
3824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3825 struct buf { int x; };
3826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3827 static char *e (p, i)
3828 char **p;
3829 int i;
3831 return p[i];
3833 static char *f (char * (*g) (char **, int), char **p, ...)
3835 char *s;
3836 va_list v;
3837 va_start (v,p);
3838 s = g (p, va_arg (v,int));
3839 va_end (v);
3840 return s;
3843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3844 function prototypes and stuff, but not '\xHH' hex character constants.
3845 These don't provoke an error unfortunately, instead are silently treated
3846 as 'x'. The following induces an error, until -std is added to get
3847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3848 array size at least. It's necessary to write '\x00'==0 to get something
3849 that's true only with -std. */
3850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3853 inside strings and character constants. */
3854 #define FOO(x) 'x'
3855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3857 int test (int i, double x);
3858 struct s1 {int (*f) (int a);};
3859 struct s2 {int (*f) (double a);};
3860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3861 int argc;
3862 char **argv;
3864 main ()
3866 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3868 return 0;
3870 _ACEOF
3871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3872 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3874 CC="$ac_save_CC $ac_arg"
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876 ac_cv_prog_cc_c89=$ac_arg
3878 rm -f core conftest.err conftest.$ac_objext
3879 test "x$ac_cv_prog_cc_c89" != "xno" && break
3880 done
3881 rm -f conftest.$ac_ext
3882 CC=$ac_save_CC
3885 # AC_CACHE_VAL
3886 case "x$ac_cv_prog_cc_c89" in
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3889 $as_echo "none needed" >&6; } ;;
3890 xno)
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3892 $as_echo "unsupported" >&6; } ;;
3894 CC="$CC $ac_cv_prog_cc_c89"
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3896 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3897 esac
3898 if test "x$ac_cv_prog_cc_c89" != xno; then :
3902 ac_ext=c
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907 DEPDIR="${am__leading_dot}deps"
3909 ac_config_commands="$ac_config_commands depfiles"
3912 am_make=${MAKE-make}
3913 cat > confinc << 'END'
3914 am__doit:
3915 @echo this is the am__doit target
3916 .PHONY: am__doit
3918 # If we don't find an include directive, just comment out the code.
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3920 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3921 am__include="#"
3922 am__quote=
3923 _am_result=none
3924 # First try GNU make style include.
3925 echo "include confinc" > confmf
3926 # Ignore all kinds of additional output from `make'.
3927 case `$am_make -s -f confmf 2> /dev/null` in #(
3928 *the\ am__doit\ target*)
3929 am__include=include
3930 am__quote=
3931 _am_result=GNU
3933 esac
3934 # Now try BSD make style include.
3935 if test "$am__include" = "#"; then
3936 echo '.include "confinc"' > confmf
3937 case `$am_make -s -f confmf 2> /dev/null` in #(
3938 *the\ am__doit\ target*)
3939 am__include=.include
3940 am__quote="\""
3941 _am_result=BSD
3943 esac
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3948 $as_echo "$_am_result" >&6; }
3949 rm -f confinc confmf
3951 # Check whether --enable-dependency-tracking was given.
3952 if test "${enable_dependency_tracking+set}" = set; then :
3953 enableval=$enable_dependency_tracking;
3956 if test "x$enable_dependency_tracking" != xno; then
3957 am_depcomp="$ac_aux_dir/depcomp"
3958 AMDEPBACKSLASH='\'
3959 am__nodep='_no'
3961 if test "x$enable_dependency_tracking" != xno; then
3962 AMDEP_TRUE=
3963 AMDEP_FALSE='#'
3964 else
3965 AMDEP_TRUE='#'
3966 AMDEP_FALSE=
3971 depcc="$CC" am_compiler_list=
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3974 $as_echo_n "checking dependency style of $depcc... " >&6; }
3975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3979 # We make a subdir and do the tests there. Otherwise we can end up
3980 # making bogus files that we don't know about and never remove. For
3981 # instance it was reported that on HP-UX the gcc test will end up
3982 # making a dummy file named `D' -- because `-MD' means `put the output
3983 # in D'.
3984 rm -rf conftest.dir
3985 mkdir conftest.dir
3986 # Copy depcomp to subdir because otherwise we won't find it if we're
3987 # using a relative directory.
3988 cp "$am_depcomp" conftest.dir
3989 cd conftest.dir
3990 # We will build objects and dependencies in a subdirectory because
3991 # it helps to detect inapplicable dependency modes. For instance
3992 # both Tru64's cc and ICC support -MD to output dependencies as a
3993 # side effect of compilation, but ICC will put the dependencies in
3994 # the current directory while Tru64 will put them in the object
3995 # directory.
3996 mkdir sub
3998 am_cv_CC_dependencies_compiler_type=none
3999 if test "$am_compiler_list" = ""; then
4000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4002 am__universal=false
4003 case " $depcc " in #(
4004 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4005 esac
4007 for depmode in $am_compiler_list; do
4008 # Setup a source with many dependencies, because some compilers
4009 # like to wrap large dependency lists on column 80 (with \), and
4010 # we should not choose a depcomp mode which is confused by this.
4012 # We need to recreate these files for each test, as the compiler may
4013 # overwrite some of them when testing with obscure command lines.
4014 # This happens at least with the AIX C compiler.
4015 : > sub/conftest.c
4016 for i in 1 2 3 4 5 6; do
4017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4018 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4019 # Solaris 8's {/usr,}/bin/sh.
4020 touch sub/conftst$i.h
4021 done
4022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4025 # mode. It turns out that the SunPro C++ compiler does not properly
4026 # handle `-M -o', and we need to detect this. Also, some Intel
4027 # versions had trouble with output in subdirs
4028 am__obj=sub/conftest.${OBJEXT-o}
4029 am__minus_obj="-o $am__obj"
4030 case $depmode in
4031 gcc)
4032 # This depmode causes a compiler race in universal mode.
4033 test "$am__universal" = false || continue
4035 nosideeffect)
4036 # after this tag, mechanisms are not by side-effect, so they'll
4037 # only be used when explicitly requested
4038 if test "x$enable_dependency_tracking" = xyes; then
4039 continue
4040 else
4041 break
4044 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4045 # This compiler won't grok `-c -o', but also, the minuso test has
4046 # not run yet. These depmodes are late enough in the game, and
4047 # so weak that their functioning should not be impacted.
4048 am__obj=conftest.${OBJEXT-o}
4049 am__minus_obj=
4051 none) break ;;
4052 esac
4053 if depmode=$depmode \
4054 source=sub/conftest.c object=$am__obj \
4055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4056 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4057 >/dev/null 2>conftest.err &&
4058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4060 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4062 # icc doesn't choke on unknown options, it will just issue warnings
4063 # or remarks (even with -Werror). So we grep stderr for any message
4064 # that says an option was ignored or not supported.
4065 # When given -MP, icc 7.0 and 7.1 complain thusly:
4066 # icc: Command line warning: ignoring option '-M'; no argument required
4067 # The diagnosis changed in icc 8.0:
4068 # icc: Command line remark: option '-MP' not supported
4069 if (grep 'ignoring option' conftest.err ||
4070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4071 am_cv_CC_dependencies_compiler_type=$depmode
4072 break
4075 done
4077 cd ..
4078 rm -rf conftest.dir
4079 else
4080 am_cv_CC_dependencies_compiler_type=none
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4085 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4086 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4089 test "x$enable_dependency_tracking" != xno \
4090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4091 am__fastdepCC_TRUE=
4092 am__fastdepCC_FALSE='#'
4093 else
4094 am__fastdepCC_TRUE='#'
4095 am__fastdepCC_FALSE=
4099 ac_ext=go
4100 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4101 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compile_gnu=yes
4103 if test -n "$ac_tool_prefix"; then
4104 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if test "${ac_cv_prog_GOC+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 if test -n "$GOC"; then
4112 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4125 done
4126 done
4127 IFS=$as_save_IFS
4131 GOC=$ac_cv_prog_GOC
4132 if test -n "$GOC"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4134 $as_echo "$GOC" >&6; }
4135 else
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4142 if test -z "$ac_cv_prog_GOC"; then
4143 ac_ct_GOC=$GOC
4144 # Extract the first word of "gccgo", so it can be a program name with args.
4145 set dummy gccgo; ac_word=$2
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 if test -n "$ac_ct_GOC"; then
4152 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161 ac_cv_prog_ac_ct_GOC="gccgo"
4162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4167 IFS=$as_save_IFS
4171 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4172 if test -n "$ac_ct_GOC"; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4174 $as_echo "$ac_ct_GOC" >&6; }
4175 else
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4180 if test "x$ac_ct_GOC" = x; then
4181 GOC=""
4182 else
4183 case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189 GOC=$ac_ct_GOC
4191 else
4192 GOC="$ac_cv_prog_GOC"
4195 if test -z "$GOC"; then
4196 if test -n "$ac_tool_prefix"; then
4197 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4198 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if test "${ac_cv_prog_GOC+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -n "$GOC"; then
4205 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4218 done
4219 done
4220 IFS=$as_save_IFS
4224 GOC=$ac_cv_prog_GOC
4225 if test -n "$GOC"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4227 $as_echo "$GOC" >&6; }
4228 else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4236 if test -z "$GOC"; then
4237 # Extract the first word of "gccgo", so it can be a program name with args.
4238 set dummy gccgo; ac_word=$2
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if test "${ac_cv_prog_GOC+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 if test -n "$GOC"; then
4245 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4246 else
4247 ac_prog_rejected=no
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4256 ac_prog_rejected=yes
4257 continue
4259 ac_cv_prog_GOC="gccgo"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4267 if test $ac_prog_rejected = yes; then
4268 # We found a bogon in the path, so make sure we never use it.
4269 set dummy $ac_cv_prog_GOC
4270 shift
4271 if test $# != 0; then
4272 # We chose a different compiler from the bogus one.
4273 # However, it has the same basename, so the bogon will be chosen
4274 # first if we set GOC to just the basename; use the full file name.
4275 shift
4276 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4281 GOC=$ac_cv_prog_GOC
4282 if test -n "$GOC"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4284 $as_echo "$GOC" >&6; }
4285 else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4294 # Provide some information about the compiler.
4295 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4296 set X $ac_compile
4297 ac_compiler=$2
4298 { { ac_try="$ac_compiler --version >&5"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compiler --version >&5") 2>conftest.err
4306 ac_status=$?
4307 if test -s conftest.err; then
4308 sed '10a\
4309 ... rest of stderr output deleted ...
4310 10q' conftest.err >conftest.er1
4311 cat conftest.er1 >&5
4312 rm -f conftest.er1 conftest.err
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4316 GOCFLAGS="-g -O2"
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4329 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4330 # Check whether --enable-maintainer-mode was given.
4331 if test "${enable_maintainer_mode+set}" = set; then :
4332 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4333 else
4334 USE_MAINTAINER_MODE=no
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4338 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4339 if test $USE_MAINTAINER_MODE = yes; then
4340 MAINTAINER_MODE_TRUE=
4341 MAINTAINER_MODE_FALSE='#'
4342 else
4343 MAINTAINER_MODE_TRUE='#'
4344 MAINTAINER_MODE_FALSE=
4347 MAINT=$MAINTAINER_MODE_TRUE
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4352 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4353 if test "${ac_cv_path_SED+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4357 for ac_i in 1 2 3 4 5 6 7; do
4358 ac_script="$ac_script$as_nl$ac_script"
4359 done
4360 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4361 { ac_script=; unset ac_script;}
4362 if test -z "$SED"; then
4363 ac_path_SED_found=false
4364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_prog in sed gsed; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4373 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4374 # Check for GNU ac_path_SED and select it if it is found.
4375 # Check for GNU $ac_path_SED
4376 case `"$ac_path_SED" --version 2>&1` in
4377 *GNU*)
4378 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4380 ac_count=0
4381 $as_echo_n 0123456789 >"conftest.in"
4382 while :
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
4387 $as_echo '' >> "conftest.nl"
4388 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390 as_fn_arith $ac_count + 1 && ac_count=$as_val
4391 if test $ac_count -gt ${ac_path_SED_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_SED="$ac_path_SED"
4394 ac_path_SED_max=$ac_count
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4398 done
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 esac
4402 $ac_path_SED_found && break 3
4403 done
4404 done
4405 done
4406 IFS=$as_save_IFS
4407 if test -z "$ac_cv_path_SED"; then
4408 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4410 else
4411 ac_cv_path_SED=$SED
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4416 $as_echo "$ac_cv_path_SED" >&6; }
4417 SED="$ac_cv_path_SED"
4418 rm -f conftest.sed
4420 test -z "$SED" && SED=sed
4421 Xsed="$SED -e 1s/^X//"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4434 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4435 if test "${ac_cv_path_GREP+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if test -z "$GREP"; then
4439 ac_path_GREP_found=false
4440 # Loop through the user's path and test for each of PROGNAME-LIST
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_prog in grep ggrep; do
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4449 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4450 # Check for GNU ac_path_GREP and select it if it is found.
4451 # Check for GNU $ac_path_GREP
4452 case `"$ac_path_GREP" --version 2>&1` in
4453 *GNU*)
4454 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4456 ac_count=0
4457 $as_echo_n 0123456789 >"conftest.in"
4458 while :
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 $as_echo 'GREP' >> "conftest.nl"
4464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466 as_fn_arith $ac_count + 1 && ac_count=$as_val
4467 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_GREP="$ac_path_GREP"
4470 ac_path_GREP_max=$ac_count
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4474 done
4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 esac
4478 $ac_path_GREP_found && break 3
4479 done
4480 done
4481 done
4482 IFS=$as_save_IFS
4483 if test -z "$ac_cv_path_GREP"; then
4484 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4486 else
4487 ac_cv_path_GREP=$GREP
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4492 $as_echo "$ac_cv_path_GREP" >&6; }
4493 GREP="$ac_cv_path_GREP"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4497 $as_echo_n "checking for egrep... " >&6; }
4498 if test "${ac_cv_path_EGREP+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4502 then ac_cv_path_EGREP="$GREP -E"
4503 else
4504 if test -z "$EGREP"; then
4505 ac_path_EGREP_found=false
4506 # Loop through the user's path and test for each of PROGNAME-LIST
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_prog in egrep; do
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4515 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4516 # Check for GNU ac_path_EGREP and select it if it is found.
4517 # Check for GNU $ac_path_EGREP
4518 case `"$ac_path_EGREP" --version 2>&1` in
4519 *GNU*)
4520 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4522 ac_count=0
4523 $as_echo_n 0123456789 >"conftest.in"
4524 while :
4526 cat "conftest.in" "conftest.in" >"conftest.tmp"
4527 mv "conftest.tmp" "conftest.in"
4528 cp "conftest.in" "conftest.nl"
4529 $as_echo 'EGREP' >> "conftest.nl"
4530 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4532 as_fn_arith $ac_count + 1 && ac_count=$as_val
4533 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4534 # Best one so far, save it but keep looking for a better one
4535 ac_cv_path_EGREP="$ac_path_EGREP"
4536 ac_path_EGREP_max=$ac_count
4538 # 10*(2^10) chars as input seems more than enough
4539 test $ac_count -gt 10 && break
4540 done
4541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542 esac
4544 $ac_path_EGREP_found && break 3
4545 done
4546 done
4547 done
4548 IFS=$as_save_IFS
4549 if test -z "$ac_cv_path_EGREP"; then
4550 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4552 else
4553 ac_cv_path_EGREP=$EGREP
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4559 $as_echo "$ac_cv_path_EGREP" >&6; }
4560 EGREP="$ac_cv_path_EGREP"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4564 $as_echo_n "checking for fgrep... " >&6; }
4565 if test "${ac_cv_path_FGREP+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4569 then ac_cv_path_FGREP="$GREP -F"
4570 else
4571 if test -z "$FGREP"; then
4572 ac_path_FGREP_found=false
4573 # Loop through the user's path and test for each of PROGNAME-LIST
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_prog in fgrep; do
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4582 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4583 # Check for GNU ac_path_FGREP and select it if it is found.
4584 # Check for GNU $ac_path_FGREP
4585 case `"$ac_path_FGREP" --version 2>&1` in
4586 *GNU*)
4587 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4589 ac_count=0
4590 $as_echo_n 0123456789 >"conftest.in"
4591 while :
4593 cat "conftest.in" "conftest.in" >"conftest.tmp"
4594 mv "conftest.tmp" "conftest.in"
4595 cp "conftest.in" "conftest.nl"
4596 $as_echo 'FGREP' >> "conftest.nl"
4597 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599 as_fn_arith $ac_count + 1 && ac_count=$as_val
4600 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4601 # Best one so far, save it but keep looking for a better one
4602 ac_cv_path_FGREP="$ac_path_FGREP"
4603 ac_path_FGREP_max=$ac_count
4605 # 10*(2^10) chars as input seems more than enough
4606 test $ac_count -gt 10 && break
4607 done
4608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609 esac
4611 $ac_path_FGREP_found && break 3
4612 done
4613 done
4614 done
4615 IFS=$as_save_IFS
4616 if test -z "$ac_cv_path_FGREP"; then
4617 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619 else
4620 ac_cv_path_FGREP=$FGREP
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4626 $as_echo "$ac_cv_path_FGREP" >&6; }
4627 FGREP="$ac_cv_path_FGREP"
4630 test -z "$GREP" && GREP=grep
4648 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4649 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4650 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4653 $as_echo_n "checking how to print strings... " >&6; }
4654 # Test print first, because it will be a builtin if present.
4655 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4656 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4657 ECHO='print -r --'
4658 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4659 ECHO='printf %s\n'
4660 else
4661 # Use this function as a fallback that always works.
4662 func_fallback_echo ()
4664 eval 'cat <<_LTECHO_EOF
4666 _LTECHO_EOF'
4668 ECHO='func_fallback_echo'
4671 # func_echo_all arg...
4672 # Invoke $ECHO with all args, space-separated.
4673 func_echo_all ()
4675 $ECHO ""
4678 case "$ECHO" in
4679 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4680 $as_echo "printf" >&6; } ;;
4681 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4682 $as_echo "print -r" >&6; } ;;
4683 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4684 $as_echo "cat" >&6; } ;;
4685 esac
4702 # Check whether --with-gnu-ld was given.
4703 if test "${with_gnu_ld+set}" = set; then :
4704 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4705 else
4706 with_gnu_ld=no
4709 ac_prog=ld
4710 if test "$GCC" = yes; then
4711 # Check if gcc -print-prog-name=ld gives a path.
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4713 $as_echo_n "checking for ld used by $CC... " >&6; }
4714 case $host in
4715 *-*-mingw*)
4716 # gcc leaves a trailing carriage return which upsets mingw
4717 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4719 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4720 esac
4721 case $ac_prog in
4722 # Accept absolute paths.
4723 [\\/]* | ?:[\\/]*)
4724 re_direlt='/[^/][^/]*/\.\./'
4725 # Canonicalize the pathname of ld
4726 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4727 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4728 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4729 done
4730 test -z "$LD" && LD="$ac_prog"
4733 # If it fails, then pretend we aren't using GCC.
4734 ac_prog=ld
4737 # If it is relative, then search for the first ld in PATH.
4738 with_gnu_ld=unknown
4740 esac
4741 elif test "$with_gnu_ld" = yes; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4743 $as_echo_n "checking for GNU ld... " >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4746 $as_echo_n "checking for non-GNU ld... " >&6; }
4748 if test "${lt_cv_path_LD+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -z "$LD"; then
4752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4753 for ac_dir in $PATH; do
4754 IFS="$lt_save_ifs"
4755 test -z "$ac_dir" && ac_dir=.
4756 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4757 lt_cv_path_LD="$ac_dir/$ac_prog"
4758 # Check to see if the program is GNU ld. I'd rather use --version,
4759 # but apparently some variants of GNU ld only accept -v.
4760 # Break only if it was the GNU/non-GNU ld that we prefer.
4761 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4762 *GNU* | *'with BFD'*)
4763 test "$with_gnu_ld" != no && break
4766 test "$with_gnu_ld" != yes && break
4768 esac
4770 done
4771 IFS="$lt_save_ifs"
4772 else
4773 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4777 LD="$lt_cv_path_LD"
4778 if test -n "$LD"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4780 $as_echo "$LD" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4785 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4787 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4788 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4792 case `$LD -v 2>&1 </dev/null` in
4793 *GNU* | *'with BFD'*)
4794 lt_cv_prog_gnu_ld=yes
4797 lt_cv_prog_gnu_ld=no
4799 esac
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4802 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4803 with_gnu_ld=$lt_cv_prog_gnu_ld
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$RANLIB"; then
4822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 RANLIB=$ac_cv_prog_RANLIB
4842 if test -n "$RANLIB"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4844 $as_echo "$RANLIB" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4852 if test -z "$ac_cv_prog_RANLIB"; then
4853 ac_ct_RANLIB=$RANLIB
4854 # Extract the first word of "ranlib", so it can be a program name with args.
4855 set dummy ranlib; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_RANLIB"; then
4862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_RANLIB="ranlib"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4875 done
4876 done
4877 IFS=$as_save_IFS
4881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4882 if test -n "$ac_ct_RANLIB"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4884 $as_echo "$ac_ct_RANLIB" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4890 if test "x$ac_ct_RANLIB" = x; then
4891 RANLIB=":"
4892 else
4893 case $cross_compiling:$ac_tool_warned in
4894 yes:)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4898 esac
4899 RANLIB=$ac_ct_RANLIB
4901 else
4902 RANLIB="$ac_cv_prog_RANLIB"
4905 if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4907 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$OBJCOPY"; then
4914 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 OBJCOPY=$ac_cv_prog_OBJCOPY
4934 if test -n "$OBJCOPY"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4936 $as_echo "$OBJCOPY" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4944 if test -z "$ac_cv_prog_OBJCOPY"; then
4945 ac_ct_OBJCOPY=$OBJCOPY
4946 # Extract the first word of "objcopy", so it can be a program name with args.
4947 set dummy objcopy; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -n "$ac_ct_OBJCOPY"; then
4954 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4967 done
4968 done
4969 IFS=$as_save_IFS
4973 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4974 if test -n "$ac_ct_OBJCOPY"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4976 $as_echo "$ac_ct_OBJCOPY" >&6; }
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4982 if test "x$ac_ct_OBJCOPY" = x; then
4983 OBJCOPY="missing-objcopy"
4984 else
4985 case $cross_compiling:$ac_tool_warned in
4986 yes:)
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4989 ac_tool_warned=yes ;;
4990 esac
4991 OBJCOPY=$ac_ct_OBJCOPY
4993 else
4994 OBJCOPY="$ac_cv_prog_OBJCOPY"
4998 enable_dlopen=yes
5002 case `pwd` in
5003 *\ * | *\ *)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5005 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5006 esac
5010 macro_version='2.2.7a'
5011 macro_revision='1.3134'
5025 ltmain="$ac_aux_dir/ltmain.sh"
5027 # Backslashify metacharacters that are still active within
5028 # double-quoted strings.
5029 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5031 # Same as above, but do not quote variable references.
5032 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5034 # Sed substitution to delay expansion of an escaped shell variable in a
5035 # double_quote_subst'ed string.
5036 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5038 # Sed substitution to delay expansion of an escaped single quote.
5039 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5041 # Sed substitution to avoid accidental globbing in evaled expressions
5042 no_glob_subst='s/\*/\\\*/g'
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5045 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5046 if test "${lt_cv_path_NM+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$NM"; then
5050 # Let the user override the test.
5051 lt_cv_path_NM="$NM"
5052 else
5053 lt_nm_to_check="${ac_tool_prefix}nm"
5054 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5055 lt_nm_to_check="$lt_nm_to_check nm"
5057 for lt_tmp_nm in $lt_nm_to_check; do
5058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5059 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5060 IFS="$lt_save_ifs"
5061 test -z "$ac_dir" && ac_dir=.
5062 tmp_nm="$ac_dir/$lt_tmp_nm"
5063 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5064 # Check to see if the nm accepts a BSD-compat flag.
5065 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5066 # nm: unknown option "B" ignored
5067 # Tru64's nm complains that /dev/null is an invalid object file
5068 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5069 */dev/null* | *'Invalid file or object type'*)
5070 lt_cv_path_NM="$tmp_nm -B"
5071 break
5074 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5075 */dev/null*)
5076 lt_cv_path_NM="$tmp_nm -p"
5077 break
5080 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5081 continue # so that we can try to find one that supports BSD flags
5083 esac
5085 esac
5087 done
5088 IFS="$lt_save_ifs"
5089 done
5090 : ${lt_cv_path_NM=no}
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5094 $as_echo "$lt_cv_path_NM" >&6; }
5095 if test "$lt_cv_path_NM" != "no"; then
5096 NM="$lt_cv_path_NM"
5097 else
5098 # Didn't find any BSD compatible name lister, look for dumpbin.
5099 if test -n "$DUMPBIN"; then :
5100 # Let the user override the test.
5101 else
5102 if test -n "$ac_tool_prefix"; then
5103 for ac_prog in dumpbin "link -dump"
5105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$DUMPBIN"; then
5113 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 DUMPBIN=$ac_cv_prog_DUMPBIN
5133 if test -n "$DUMPBIN"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5135 $as_echo "$DUMPBIN" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5142 test -n "$DUMPBIN" && break
5143 done
5145 if test -z "$DUMPBIN"; then
5146 ac_ct_DUMPBIN=$DUMPBIN
5147 for ac_prog in dumpbin "link -dump"
5149 # Extract the first word of "$ac_prog", so it can be a program name with args.
5150 set dummy $ac_prog; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 if test -n "$ac_ct_DUMPBIN"; then
5157 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5170 done
5171 done
5172 IFS=$as_save_IFS
5176 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5177 if test -n "$ac_ct_DUMPBIN"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5179 $as_echo "$ac_ct_DUMPBIN" >&6; }
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5186 test -n "$ac_ct_DUMPBIN" && break
5187 done
5189 if test "x$ac_ct_DUMPBIN" = x; then
5190 DUMPBIN=":"
5191 else
5192 case $cross_compiling:$ac_tool_warned in
5193 yes:)
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196 ac_tool_warned=yes ;;
5197 esac
5198 DUMPBIN=$ac_ct_DUMPBIN
5202 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5203 *COFF*)
5204 DUMPBIN="$DUMPBIN -symbols"
5207 DUMPBIN=:
5209 esac
5212 if test "$DUMPBIN" != ":"; then
5213 NM="$DUMPBIN"
5216 test -z "$NM" && NM=nm
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5224 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5225 if test "${lt_cv_nm_interface+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 lt_cv_nm_interface="BSD nm"
5229 echo "int some_variable = 0;" > conftest.$ac_ext
5230 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5231 (eval "$ac_compile" 2>conftest.err)
5232 cat conftest.err >&5
5233 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5234 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5235 cat conftest.err >&5
5236 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5237 cat conftest.out >&5
5238 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5239 lt_cv_nm_interface="MS dumpbin"
5241 rm -f conftest*
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5244 $as_echo "$lt_cv_nm_interface" >&6; }
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5247 $as_echo_n "checking whether ln -s works... " >&6; }
5248 LN_S=$as_ln_s
5249 if test "$LN_S" = "ln -s"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5251 $as_echo "yes" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5254 $as_echo "no, using $LN_S" >&6; }
5257 # find the maximum length of command line arguments
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5259 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5260 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5264 teststring="ABCD"
5266 case $build_os in
5267 msdosdjgpp*)
5268 # On DJGPP, this test can blow up pretty badly due to problems in libc
5269 # (any single argument exceeding 2000 bytes causes a buffer overrun
5270 # during glob expansion). Even if it were fixed, the result of this
5271 # check would be larger than it should be.
5272 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5275 gnu*)
5276 # Under GNU Hurd, this test is not required because there is
5277 # no limit to the length of command line arguments.
5278 # Libtool will interpret -1 as no limit whatsoever
5279 lt_cv_sys_max_cmd_len=-1;
5282 cygwin* | mingw* | cegcc*)
5283 # On Win9x/ME, this test blows up -- it succeeds, but takes
5284 # about 5 minutes as the teststring grows exponentially.
5285 # Worse, since 9x/ME are not pre-emptively multitasking,
5286 # you end up with a "frozen" computer, even though with patience
5287 # the test eventually succeeds (with a max line length of 256k).
5288 # Instead, let's just punt: use the minimum linelength reported by
5289 # all of the supported platforms: 8192 (on NT/2K/XP).
5290 lt_cv_sys_max_cmd_len=8192;
5293 mint*)
5294 # On MiNT this can take a long time and run out of memory.
5295 lt_cv_sys_max_cmd_len=8192;
5298 amigaos*)
5299 # On AmigaOS with pdksh, this test takes hours, literally.
5300 # So we just punt and use a minimum line length of 8192.
5301 lt_cv_sys_max_cmd_len=8192;
5304 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5305 # This has been around since 386BSD, at least. Likely further.
5306 if test -x /sbin/sysctl; then
5307 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5308 elif test -x /usr/sbin/sysctl; then
5309 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5310 else
5311 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5313 # And add a safety zone
5314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5318 interix*)
5319 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5320 lt_cv_sys_max_cmd_len=196608
5323 osf*)
5324 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5325 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5326 # nice to cause kernel panics so lets avoid the loop below.
5327 # First set a reasonable default.
5328 lt_cv_sys_max_cmd_len=16384
5330 if test -x /sbin/sysconfig; then
5331 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5332 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5333 esac
5336 sco3.2v5*)
5337 lt_cv_sys_max_cmd_len=102400
5339 sysv5* | sco5v6* | sysv4.2uw2*)
5340 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5341 if test -n "$kargmax"; then
5342 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5343 else
5344 lt_cv_sys_max_cmd_len=32768
5348 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5349 if test -n "$lt_cv_sys_max_cmd_len"; then
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5352 else
5353 # Make teststring a little bigger before we do anything with it.
5354 # a 1K string should be a reasonable start.
5355 for i in 1 2 3 4 5 6 7 8 ; do
5356 teststring=$teststring$teststring
5357 done
5358 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5359 # If test is not a shell built-in, we'll probably end up computing a
5360 # maximum length that is only half of the actual maximum length, but
5361 # we can't tell.
5362 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5363 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5364 test $i != 17 # 1/2 MB should be enough
5366 i=`expr $i + 1`
5367 teststring=$teststring$teststring
5368 done
5369 # Only check the string length outside the loop.
5370 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5371 teststring=
5372 # Add a significant safety factor because C++ compilers can tack on
5373 # massive amounts of additional arguments before passing them to the
5374 # linker. It appears as though 1/2 is a usable value.
5375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5378 esac
5382 if test -n $lt_cv_sys_max_cmd_len ; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5384 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5387 $as_echo "none" >&6; }
5389 max_cmd_len=$lt_cv_sys_max_cmd_len
5396 : ${CP="cp -f"}
5397 : ${MV="mv -f"}
5398 : ${RM="rm -f"}
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5401 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5402 # Try some XSI features
5403 xsi_shell=no
5404 ( _lt_dummy="a/b/c"
5405 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5406 = c,a/b,, \
5407 && eval 'test $(( 1 + 1 )) -eq 2 \
5408 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5409 && xsi_shell=yes
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5411 $as_echo "$xsi_shell" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5415 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5416 lt_shell_append=no
5417 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5418 >/dev/null 2>&1 \
5419 && lt_shell_append=yes
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5421 $as_echo "$lt_shell_append" >&6; }
5424 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5425 lt_unset=unset
5426 else
5427 lt_unset=false
5434 # test EBCDIC or ASCII
5435 case `echo X|tr X '\101'` in
5436 A) # ASCII based system
5437 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5438 lt_SP2NL='tr \040 \012'
5439 lt_NL2SP='tr \015\012 \040\040'
5441 *) # EBCDIC based system
5442 lt_SP2NL='tr \100 \n'
5443 lt_NL2SP='tr \r\n \100\100'
5445 esac
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5456 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5457 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 lt_cv_ld_reload_flag='-r'
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5463 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5464 reload_flag=$lt_cv_ld_reload_flag
5465 case $reload_flag in
5466 "" | " "*) ;;
5467 *) reload_flag=" $reload_flag" ;;
5468 esac
5469 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5470 case $host_os in
5471 darwin*)
5472 if test "$GCC" = yes; then
5473 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5474 else
5475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5478 esac
5488 if test -n "$ac_tool_prefix"; then
5489 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5490 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 if test -n "$OBJDUMP"; then
5497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5510 done
5511 done
5512 IFS=$as_save_IFS
5516 OBJDUMP=$ac_cv_prog_OBJDUMP
5517 if test -n "$OBJDUMP"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5519 $as_echo "$OBJDUMP" >&6; }
5520 else
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5527 if test -z "$ac_cv_prog_OBJDUMP"; then
5528 ac_ct_OBJDUMP=$OBJDUMP
5529 # Extract the first word of "objdump", so it can be a program name with args.
5530 set dummy objdump; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 if test -n "$ac_ct_OBJDUMP"; then
5537 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5550 done
5551 done
5552 IFS=$as_save_IFS
5556 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5557 if test -n "$ac_ct_OBJDUMP"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5559 $as_echo "$ac_ct_OBJDUMP" >&6; }
5560 else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5565 if test "x$ac_ct_OBJDUMP" = x; then
5566 OBJDUMP="false"
5567 else
5568 case $cross_compiling:$ac_tool_warned in
5569 yes:)
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5572 ac_tool_warned=yes ;;
5573 esac
5574 OBJDUMP=$ac_ct_OBJDUMP
5576 else
5577 OBJDUMP="$ac_cv_prog_OBJDUMP"
5580 test -z "$OBJDUMP" && OBJDUMP=objdump
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5591 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5592 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 lt_cv_file_magic_cmd='$MAGIC_CMD'
5596 lt_cv_file_magic_test_file=
5597 lt_cv_deplibs_check_method='unknown'
5598 # Need to set the preceding variable on all platforms that support
5599 # interlibrary dependencies.
5600 # 'none' -- dependencies not supported.
5601 # `unknown' -- same as none, but documents that we really don't know.
5602 # 'pass_all' -- all dependencies passed with no checks.
5603 # 'test_compile' -- check by making test program.
5604 # 'file_magic [[regex]]' -- check by looking for files in library path
5605 # which responds to the $file_magic_cmd with a given extended regex.
5606 # If you have `file' or equivalent on your system and you're not sure
5607 # whether `pass_all' will *always* work, you probably want this one.
5609 case $host_os in
5610 aix[4-9]*)
5611 lt_cv_deplibs_check_method=pass_all
5614 beos*)
5615 lt_cv_deplibs_check_method=pass_all
5618 bsdi[45]*)
5619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5620 lt_cv_file_magic_cmd='/usr/bin/file -L'
5621 lt_cv_file_magic_test_file=/shlib/libc.so
5624 cygwin*)
5625 # func_win32_libid is a shell function defined in ltmain.sh
5626 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5627 lt_cv_file_magic_cmd='func_win32_libid'
5630 mingw* | pw32*)
5631 # Base MSYS/MinGW do not provide the 'file' command needed by
5632 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5633 # unless we find 'file', for example because we are cross-compiling.
5634 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5635 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5636 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5637 lt_cv_file_magic_cmd='func_win32_libid'
5638 else
5639 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5640 lt_cv_file_magic_cmd='$OBJDUMP -f'
5644 cegcc*)
5645 # use the weaker test based on 'objdump'. See mingw*.
5646 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5647 lt_cv_file_magic_cmd='$OBJDUMP -f'
5650 darwin* | rhapsody*)
5651 lt_cv_deplibs_check_method=pass_all
5654 freebsd* | dragonfly*)
5655 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5656 case $host_cpu in
5657 i*86 )
5658 # Not sure whether the presence of OpenBSD here was a mistake.
5659 # Let's accept both of them until this is cleared up.
5660 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5661 lt_cv_file_magic_cmd=/usr/bin/file
5662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5664 esac
5665 else
5666 lt_cv_deplibs_check_method=pass_all
5670 gnu*)
5671 lt_cv_deplibs_check_method=pass_all
5674 haiku*)
5675 lt_cv_deplibs_check_method=pass_all
5678 hpux10.20* | hpux11*)
5679 lt_cv_file_magic_cmd=/usr/bin/file
5680 case $host_cpu in
5681 ia64*)
5682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5683 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5685 hppa*64*)
5686 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]'
5687 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5690 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5691 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5693 esac
5696 interix[3-9]*)
5697 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5701 irix5* | irix6* | nonstopux*)
5702 case $LD in
5703 *-32|*"-32 ") libmagic=32-bit;;
5704 *-n32|*"-n32 ") libmagic=N32;;
5705 *-64|*"-64 ") libmagic=64-bit;;
5706 *) libmagic=never-match;;
5707 esac
5708 lt_cv_deplibs_check_method=pass_all
5711 # This must be Linux ELF.
5712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5713 lt_cv_deplibs_check_method=pass_all
5716 netbsd*)
5717 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5719 else
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5724 newos6*)
5725 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5726 lt_cv_file_magic_cmd=/usr/bin/file
5727 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5730 *nto* | *qnx*)
5731 lt_cv_deplibs_check_method=pass_all
5734 openbsd*)
5735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5737 else
5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5742 osf3* | osf4* | osf5*)
5743 lt_cv_deplibs_check_method=pass_all
5746 rdos*)
5747 lt_cv_deplibs_check_method=pass_all
5750 solaris*)
5751 lt_cv_deplibs_check_method=pass_all
5754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5755 lt_cv_deplibs_check_method=pass_all
5758 sysv4 | sysv4.3*)
5759 case $host_vendor in
5760 motorola)
5761 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]'
5762 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5764 ncr)
5765 lt_cv_deplibs_check_method=pass_all
5767 sequent)
5768 lt_cv_file_magic_cmd='/bin/file'
5769 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5771 sni)
5772 lt_cv_file_magic_cmd='/bin/file'
5773 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5774 lt_cv_file_magic_test_file=/lib/libc.so
5776 siemens)
5777 lt_cv_deplibs_check_method=pass_all
5780 lt_cv_deplibs_check_method=pass_all
5782 esac
5785 tpf*)
5786 lt_cv_deplibs_check_method=pass_all
5788 esac
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5792 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5793 file_magic_cmd=$lt_cv_file_magic_cmd
5794 deplibs_check_method=$lt_cv_deplibs_check_method
5795 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ar; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if test "${ac_cv_prog_AR+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test -n "$AR"; then
5817 ac_cv_prog_AR="$AR" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_AR="${ac_tool_prefix}ar"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5830 done
5831 done
5832 IFS=$as_save_IFS
5836 AR=$ac_cv_prog_AR
5837 if test -n "$AR"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5839 $as_echo "$AR" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5847 if test -z "$ac_cv_prog_AR"; then
5848 ac_ct_AR=$AR
5849 # Extract the first word of "ar", so it can be a program name with args.
5850 set dummy ar; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$ac_ct_AR"; then
5857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_ac_ct_AR="ar"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5870 done
5871 done
5872 IFS=$as_save_IFS
5876 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5877 if test -n "$ac_ct_AR"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5879 $as_echo "$ac_ct_AR" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5885 if test "x$ac_ct_AR" = x; then
5886 AR="false"
5887 else
5888 case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894 AR=$ac_ct_AR
5896 else
5897 AR="$ac_cv_prog_AR"
5900 test -z "$AR" && AR=ar
5901 test -z "$AR_FLAGS" && AR_FLAGS=cru
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}strip; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if test "${ac_cv_prog_STRIP+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$STRIP"; then
5922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5935 done
5936 done
5937 IFS=$as_save_IFS
5941 STRIP=$ac_cv_prog_STRIP
5942 if test -n "$STRIP"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5944 $as_echo "$STRIP" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5952 if test -z "$ac_cv_prog_STRIP"; then
5953 ac_ct_STRIP=$STRIP
5954 # Extract the first word of "strip", so it can be a program name with args.
5955 set dummy strip; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$ac_ct_STRIP"; then
5962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_STRIP="strip"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5977 IFS=$as_save_IFS
5981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5982 if test -n "$ac_ct_STRIP"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5984 $as_echo "$ac_ct_STRIP" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5990 if test "x$ac_ct_STRIP" = x; then
5991 STRIP=":"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994 yes:)
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997 ac_tool_warned=yes ;;
5998 esac
5999 STRIP=$ac_ct_STRIP
6001 else
6002 STRIP="$ac_cv_prog_STRIP"
6005 test -z "$STRIP" && STRIP=:
6012 if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$RANLIB"; then
6021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6034 done
6035 done
6036 IFS=$as_save_IFS
6040 RANLIB=$ac_cv_prog_RANLIB
6041 if test -n "$RANLIB"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6043 $as_echo "$RANLIB" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6051 if test -z "$ac_cv_prog_RANLIB"; then
6052 ac_ct_RANLIB=$RANLIB
6053 # Extract the first word of "ranlib", so it can be a program name with args.
6054 set dummy ranlib; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$ac_ct_RANLIB"; then
6061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_ac_ct_RANLIB="ranlib"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6074 done
6075 done
6076 IFS=$as_save_IFS
6080 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6081 if test -n "$ac_ct_RANLIB"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6083 $as_echo "$ac_ct_RANLIB" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6089 if test "x$ac_ct_RANLIB" = x; then
6090 RANLIB=":"
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098 RANLIB=$ac_ct_RANLIB
6100 else
6101 RANLIB="$ac_cv_prog_RANLIB"
6104 test -z "$RANLIB" && RANLIB=:
6111 # Determine commands to create old-style static archives.
6112 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6113 old_postinstall_cmds='chmod 644 $oldlib'
6114 old_postuninstall_cmds=
6116 if test -n "$RANLIB"; then
6117 case $host_os in
6118 openbsd*)
6119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6124 esac
6125 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6128 case $host_os in
6129 darwin*)
6130 lock_old_archive_extraction=yes ;;
6132 lock_old_archive_extraction=no ;;
6133 esac
6173 # If no C compiler was specified, use CC.
6174 LTCC=${LTCC-"$CC"}
6176 # If no C compiler flags were specified, use CFLAGS.
6177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6179 # Allow CC to be a program name with arguments.
6180 compiler=$CC
6183 # Check for command to grab the raw symbol name followed by C symbol from nm.
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6185 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6186 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6190 # These are sane defaults that work on at least a few old systems.
6191 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6193 # Character class describing NM global symbol codes.
6194 symcode='[BCDEGRST]'
6196 # Regexp to match symbols that can be accessed directly from C.
6197 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6199 # Define system-specific variables.
6200 case $host_os in
6201 aix*)
6202 symcode='[BCDT]'
6204 cygwin* | mingw* | pw32* | cegcc*)
6205 symcode='[ABCDGISTW]'
6207 hpux*)
6208 if test "$host_cpu" = ia64; then
6209 symcode='[ABCDEGRST]'
6212 irix* | nonstopux*)
6213 symcode='[BCDEGRST]'
6215 osf*)
6216 symcode='[BCDEGQRST]'
6218 solaris*)
6219 symcode='[BDRT]'
6221 sco3.2v5*)
6222 symcode='[DT]'
6224 sysv4.2uw2*)
6225 symcode='[DT]'
6227 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6228 symcode='[ABDT]'
6230 sysv4)
6231 symcode='[DFNSTU]'
6233 esac
6235 # If we're using GNU nm, then use its standard symbol codes.
6236 case `$NM -V 2>&1` in
6237 *GNU* | *'with BFD'*)
6238 symcode='[ABCDGIRSTW]' ;;
6239 esac
6241 # Transform an extracted symbol line into a proper C declaration.
6242 # Some systems (esp. on ia64) link data and code symbols differently,
6243 # so use this general approach.
6244 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6246 # Transform an extracted symbol line into symbol name and symbol address
6247 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6248 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'"
6250 # Handle CRLF in mingw tool chain
6251 opt_cr=
6252 case $build_os in
6253 mingw*)
6254 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6256 esac
6258 # Try without a prefix underscore, then with it.
6259 for ac_symprfx in "" "_"; do
6261 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6262 symxfrm="\\1 $ac_symprfx\\2 \\2"
6264 # Write the raw and C identifiers.
6265 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6266 # Fake it for dumpbin and say T for any non-static function
6267 # and D for any global variable.
6268 # Also find C++ and __fastcall symbols from MSVC++,
6269 # which start with @ or ?.
6270 lt_cv_sys_global_symbol_pipe="$AWK '"\
6271 " {last_section=section; section=\$ 3};"\
6272 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6273 " \$ 0!~/External *\|/{next};"\
6274 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6275 " {if(hide[section]) next};"\
6276 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6277 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6278 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6279 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6280 " ' prfx=^$ac_symprfx"
6281 else
6282 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6285 # Check to see that the pipe works correctly.
6286 pipe_works=no
6288 rm -f conftest*
6289 cat > conftest.$ac_ext <<_LT_EOF
6290 #ifdef __cplusplus
6291 extern "C" {
6292 #endif
6293 char nm_test_var;
6294 void nm_test_func(void);
6295 void nm_test_func(void){}
6296 #ifdef __cplusplus
6298 #endif
6299 int main(){nm_test_var='a';nm_test_func();return(0);}
6300 _LT_EOF
6302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303 (eval $ac_compile) 2>&5
6304 ac_status=$?
6305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306 test $ac_status = 0; }; then
6307 # Now try to grab the symbols.
6308 nlist=conftest.nm
6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6310 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6311 ac_status=$?
6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313 test $ac_status = 0; } && test -s "$nlist"; then
6314 # Try sorting and uniquifying the output.
6315 if sort "$nlist" | uniq > "$nlist"T; then
6316 mv -f "$nlist"T "$nlist"
6317 else
6318 rm -f "$nlist"T
6321 # Make sure that we snagged all the symbols we need.
6322 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6323 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6324 cat <<_LT_EOF > conftest.$ac_ext
6325 #ifdef __cplusplus
6326 extern "C" {
6327 #endif
6329 _LT_EOF
6330 # Now generate the symbol file.
6331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6333 cat <<_LT_EOF >> conftest.$ac_ext
6335 /* The mapping between symbol names and symbols. */
6336 const struct {
6337 const char *name;
6338 void *address;
6340 lt__PROGRAM__LTX_preloaded_symbols[] =
6342 { "@PROGRAM@", (void *) 0 },
6343 _LT_EOF
6344 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6345 cat <<\_LT_EOF >> conftest.$ac_ext
6346 {0, (void *) 0}
6349 /* This works around a problem in FreeBSD linker */
6350 #ifdef FREEBSD_WORKAROUND
6351 static const void *lt_preloaded_setup() {
6352 return lt__PROGRAM__LTX_preloaded_symbols;
6354 #endif
6356 #ifdef __cplusplus
6358 #endif
6359 _LT_EOF
6360 # Now try linking the two files.
6361 mv conftest.$ac_objext conftstm.$ac_objext
6362 lt_save_LIBS="$LIBS"
6363 lt_save_CFLAGS="$CFLAGS"
6364 LIBS="conftstm.$ac_objext"
6365 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6367 (eval $ac_link) 2>&5
6368 ac_status=$?
6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6371 pipe_works=yes
6373 LIBS="$lt_save_LIBS"
6374 CFLAGS="$lt_save_CFLAGS"
6375 else
6376 echo "cannot find nm_test_func in $nlist" >&5
6378 else
6379 echo "cannot find nm_test_var in $nlist" >&5
6381 else
6382 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6384 else
6385 echo "$progname: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 rm -rf conftest* conftst*
6390 # Do not use the global_symbol_pipe unless it works.
6391 if test "$pipe_works" = yes; then
6392 break
6393 else
6394 lt_cv_sys_global_symbol_pipe=
6396 done
6400 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6401 lt_cv_sys_global_symbol_to_cdecl=
6403 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6405 $as_echo "failed" >&6; }
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6408 $as_echo "ok" >&6; }
6433 # Check whether --enable-libtool-lock was given.
6434 if test "${enable_libtool_lock+set}" = set; then :
6435 enableval=$enable_libtool_lock;
6438 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6440 # Some flags need to be propagated to the compiler or linker for good
6441 # libtool support.
6442 case $host in
6443 ia64-*-hpux*)
6444 # Find out which ABI we are using.
6445 echo 'int i;' > conftest.$ac_ext
6446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6447 (eval $ac_compile) 2>&5
6448 ac_status=$?
6449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450 test $ac_status = 0; }; then
6451 case `/usr/bin/file conftest.$ac_objext` in
6452 *ELF-32*)
6453 HPUX_IA64_MODE="32"
6455 *ELF-64*)
6456 HPUX_IA64_MODE="64"
6458 esac
6460 rm -rf conftest*
6462 *-*-irix6*)
6463 # Find out which ABI we are using.
6464 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6466 (eval $ac_compile) 2>&5
6467 ac_status=$?
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; }; then
6470 if test "$lt_cv_prog_gnu_ld" = yes; then
6471 case `/usr/bin/file conftest.$ac_objext` in
6472 *32-bit*)
6473 LD="${LD-ld} -melf32bsmip"
6475 *N32*)
6476 LD="${LD-ld} -melf32bmipn32"
6478 *64-bit*)
6479 LD="${LD-ld} -melf64bmip"
6481 esac
6482 else
6483 case `/usr/bin/file conftest.$ac_objext` in
6484 *32-bit*)
6485 LD="${LD-ld} -32"
6487 *N32*)
6488 LD="${LD-ld} -n32"
6490 *64-bit*)
6491 LD="${LD-ld} -64"
6493 esac
6496 rm -rf conftest*
6499 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6500 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6501 # Find out which ABI we are using.
6502 echo 'int i;' > conftest.$ac_ext
6503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6504 (eval $ac_compile) 2>&5
6505 ac_status=$?
6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507 test $ac_status = 0; }; then
6508 case `/usr/bin/file conftest.o` in
6509 *32-bit*)
6510 case $host in
6511 x86_64-*kfreebsd*-gnu)
6512 LD="${LD-ld} -m elf_i386_fbsd"
6514 x86_64-*linux*)
6515 case `/usr/bin/file conftest.o` in
6516 *x86-64*)
6517 LD="${LD-ld} -m elf32_x86_64"
6520 LD="${LD-ld} -m elf_i386"
6522 esac
6524 powerpc64le-*linux*)
6525 LD="${LD-ld} -m elf32lppclinux"
6527 powerpc64-*linux*)
6528 LD="${LD-ld} -m elf32ppclinux"
6530 s390x-*linux*)
6531 LD="${LD-ld} -m elf_s390"
6533 sparc64-*linux*)
6534 LD="${LD-ld} -m elf32_sparc"
6536 esac
6538 *64-bit*)
6539 case $host in
6540 x86_64-*kfreebsd*-gnu)
6541 LD="${LD-ld} -m elf_x86_64_fbsd"
6543 x86_64-*linux*)
6544 LD="${LD-ld} -m elf_x86_64"
6546 powerpcle-*linux*)
6547 LD="${LD-ld} -m elf64lppc"
6549 powerpc-*linux*)
6550 LD="${LD-ld} -m elf64ppc"
6552 s390*-*linux*|s390*-*tpf*)
6553 LD="${LD-ld} -m elf64_s390"
6555 sparc*-*linux*)
6556 LD="${LD-ld} -m elf64_sparc"
6558 esac
6560 esac
6562 rm -rf conftest*
6565 *-*-sco3.2v5*)
6566 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6567 SAVE_CFLAGS="$CFLAGS"
6568 CFLAGS="$CFLAGS -belf"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6570 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6571 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 ac_ext=c
6575 ac_cpp='$CPP $CPPFLAGS'
6576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6584 main ()
6588 return 0;
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 lt_cv_cc_needs_belf=yes
6593 else
6594 lt_cv_cc_needs_belf=no
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598 ac_ext=c
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6606 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6607 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6609 CFLAGS="$SAVE_CFLAGS"
6612 sparc*-*solaris*)
6613 # Find out which ABI we are using.
6614 echo 'int i;' > conftest.$ac_ext
6615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6616 (eval $ac_compile) 2>&5
6617 ac_status=$?
6618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6619 test $ac_status = 0; }; then
6620 case `/usr/bin/file conftest.o` in
6621 *64-bit*)
6622 case $lt_cv_prog_gnu_ld in
6623 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6625 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6626 LD="${LD-ld} -64"
6629 esac
6631 esac
6633 rm -rf conftest*
6635 esac
6637 need_locks="$enable_libtool_lock"
6640 case $host_os in
6641 rhapsody* | darwin*)
6642 if test -n "$ac_tool_prefix"; then
6643 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 if test -n "$DSYMUTIL"; then
6651 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6664 done
6665 done
6666 IFS=$as_save_IFS
6670 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6671 if test -n "$DSYMUTIL"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6673 $as_echo "$DSYMUTIL" >&6; }
6674 else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6681 if test -z "$ac_cv_prog_DSYMUTIL"; then
6682 ac_ct_DSYMUTIL=$DSYMUTIL
6683 # Extract the first word of "dsymutil", so it can be a program name with args.
6684 set dummy dsymutil; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 if test -n "$ac_ct_DSYMUTIL"; then
6691 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6704 done
6705 done
6706 IFS=$as_save_IFS
6710 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6711 if test -n "$ac_ct_DSYMUTIL"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6713 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6714 else
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6719 if test "x$ac_ct_DSYMUTIL" = x; then
6720 DSYMUTIL=":"
6721 else
6722 case $cross_compiling:$ac_tool_warned in
6723 yes:)
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728 DSYMUTIL=$ac_ct_DSYMUTIL
6730 else
6731 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6734 if test -n "$ac_tool_prefix"; then
6735 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 if test -n "$NMEDIT"; then
6743 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6756 done
6757 done
6758 IFS=$as_save_IFS
6762 NMEDIT=$ac_cv_prog_NMEDIT
6763 if test -n "$NMEDIT"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6765 $as_echo "$NMEDIT" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6773 if test -z "$ac_cv_prog_NMEDIT"; then
6774 ac_ct_NMEDIT=$NMEDIT
6775 # Extract the first word of "nmedit", so it can be a program name with args.
6776 set dummy nmedit; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 if test -n "$ac_ct_NMEDIT"; then
6783 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6796 done
6797 done
6798 IFS=$as_save_IFS
6802 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6803 if test -n "$ac_ct_NMEDIT"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6805 $as_echo "$ac_ct_NMEDIT" >&6; }
6806 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6811 if test "x$ac_ct_NMEDIT" = x; then
6812 NMEDIT=":"
6813 else
6814 case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818 ac_tool_warned=yes ;;
6819 esac
6820 NMEDIT=$ac_ct_NMEDIT
6822 else
6823 NMEDIT="$ac_cv_prog_NMEDIT"
6826 if test -n "$ac_tool_prefix"; then
6827 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_prog_LIPO+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$LIPO"; then
6835 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6848 done
6849 done
6850 IFS=$as_save_IFS
6854 LIPO=$ac_cv_prog_LIPO
6855 if test -n "$LIPO"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6857 $as_echo "$LIPO" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6865 if test -z "$ac_cv_prog_LIPO"; then
6866 ac_ct_LIPO=$LIPO
6867 # Extract the first word of "lipo", so it can be a program name with args.
6868 set dummy lipo; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 if test -n "$ac_ct_LIPO"; then
6875 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_prog_ac_ct_LIPO="lipo"
6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6888 done
6889 done
6890 IFS=$as_save_IFS
6894 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6895 if test -n "$ac_ct_LIPO"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6897 $as_echo "$ac_ct_LIPO" >&6; }
6898 else
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6903 if test "x$ac_ct_LIPO" = x; then
6904 LIPO=":"
6905 else
6906 case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912 LIPO=$ac_ct_LIPO
6914 else
6915 LIPO="$ac_cv_prog_LIPO"
6918 if test -n "$ac_tool_prefix"; then
6919 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6920 set dummy ${ac_tool_prefix}otool; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 if test -n "$OTOOL"; then
6927 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6940 done
6941 done
6942 IFS=$as_save_IFS
6946 OTOOL=$ac_cv_prog_OTOOL
6947 if test -n "$OTOOL"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6949 $as_echo "$OTOOL" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6957 if test -z "$ac_cv_prog_OTOOL"; then
6958 ac_ct_OTOOL=$OTOOL
6959 # Extract the first word of "otool", so it can be a program name with args.
6960 set dummy otool; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 if test -n "$ac_ct_OTOOL"; then
6967 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_prog_ac_ct_OTOOL="otool"
6977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 break 2
6980 done
6981 done
6982 IFS=$as_save_IFS
6986 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6987 if test -n "$ac_ct_OTOOL"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6989 $as_echo "$ac_ct_OTOOL" >&6; }
6990 else
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6995 if test "x$ac_ct_OTOOL" = x; then
6996 OTOOL=":"
6997 else
6998 case $cross_compiling:$ac_tool_warned in
6999 yes:)
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002 ac_tool_warned=yes ;;
7003 esac
7004 OTOOL=$ac_ct_OTOOL
7006 else
7007 OTOOL="$ac_cv_prog_OTOOL"
7010 if test -n "$ac_tool_prefix"; then
7011 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7012 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 if test -n "$OTOOL64"; then
7019 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7032 done
7033 done
7034 IFS=$as_save_IFS
7038 OTOOL64=$ac_cv_prog_OTOOL64
7039 if test -n "$OTOOL64"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7041 $as_echo "$OTOOL64" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7049 if test -z "$ac_cv_prog_OTOOL64"; then
7050 ac_ct_OTOOL64=$OTOOL64
7051 # Extract the first word of "otool64", so it can be a program name with args.
7052 set dummy otool64; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 if test -n "$ac_ct_OTOOL64"; then
7059 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_ac_ct_OTOOL64="otool64"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7072 done
7073 done
7074 IFS=$as_save_IFS
7078 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7079 if test -n "$ac_ct_OTOOL64"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7081 $as_echo "$ac_ct_OTOOL64" >&6; }
7082 else
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7087 if test "x$ac_ct_OTOOL64" = x; then
7088 OTOOL64=":"
7089 else
7090 case $cross_compiling:$ac_tool_warned in
7091 yes:)
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7094 ac_tool_warned=yes ;;
7095 esac
7096 OTOOL64=$ac_ct_OTOOL64
7098 else
7099 OTOOL64="$ac_cv_prog_OTOOL64"
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7129 $as_echo_n "checking for -single_module linker flag... " >&6; }
7130 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 lt_cv_apple_cc_single_mod=no
7134 if test -z "${LT_MULTI_MODULE}"; then
7135 # By default we will add the -single_module flag. You can override
7136 # by either setting the environment variable LT_MULTI_MODULE
7137 # non-empty at configure time, or by adding -multi_module to the
7138 # link flags.
7139 rm -rf libconftest.dylib*
7140 echo "int foo(void){return 1;}" > conftest.c
7141 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7142 -dynamiclib -Wl,-single_module conftest.c" >&5
7143 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7144 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7145 _lt_result=$?
7146 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7147 lt_cv_apple_cc_single_mod=yes
7148 else
7149 cat conftest.err >&5
7151 rm -rf libconftest.dylib*
7152 rm -f conftest.*
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7156 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7158 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7159 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 lt_cv_ld_exported_symbols_list=no
7163 save_LDFLAGS=$LDFLAGS
7164 echo "_main" > conftest.sym
7165 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7170 main ()
7174 return 0;
7176 _ACEOF
7177 if ac_fn_c_try_link "$LINENO"; then :
7178 lt_cv_ld_exported_symbols_list=yes
7179 else
7180 lt_cv_ld_exported_symbols_list=no
7182 rm -f core conftest.err conftest.$ac_objext \
7183 conftest$ac_exeext conftest.$ac_ext
7184 LDFLAGS="$save_LDFLAGS"
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7188 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7190 $as_echo_n "checking for -force_load linker flag... " >&6; }
7191 if test "${lt_cv_ld_force_load+set}" = set; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 lt_cv_ld_force_load=no
7195 cat > conftest.c << _LT_EOF
7196 int forced_loaded() { return 2;}
7197 _LT_EOF
7198 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7199 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7200 echo "$AR cru libconftest.a conftest.o" >&5
7201 $AR cru libconftest.a conftest.o 2>&5
7202 cat > conftest.c << _LT_EOF
7203 int main() { return 0;}
7204 _LT_EOF
7205 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7206 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7207 _lt_result=$?
7208 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7209 lt_cv_ld_force_load=yes
7210 else
7211 cat conftest.err >&5
7213 rm -f conftest.err libconftest.a conftest conftest.c
7214 rm -rf conftest.dSYM
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7218 $as_echo "$lt_cv_ld_force_load" >&6; }
7219 case $host_os in
7220 rhapsody* | darwin1.[012])
7221 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7222 darwin1.*)
7223 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7224 darwin*) # darwin 5.x on
7225 # if running on 10.5 or later, the deployment target defaults
7226 # to the OS version, if on x86, and 10.4, the deployment
7227 # target defaults to 10.4. Don't you love it?
7228 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7229 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7230 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7231 10.[012][,.]*)
7232 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7233 10.*)
7234 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7235 esac
7237 esac
7238 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7239 _lt_dar_single_mod='$single_module'
7241 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7242 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7243 else
7244 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7246 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7247 _lt_dsymutil='~$DSYMUTIL $lib || :'
7248 else
7249 _lt_dsymutil=
7252 esac
7254 ac_ext=c
7255 ac_cpp='$CPP $CPPFLAGS'
7256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7260 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7261 # On Suns, sometimes $CPP names a directory.
7262 if test -n "$CPP" && test -d "$CPP"; then
7263 CPP=
7265 if test -z "$CPP"; then
7266 if test "${ac_cv_prog_CPP+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 # Double quotes because CPP needs to be expanded
7270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7272 ac_preproc_ok=false
7273 for ac_c_preproc_warn_flag in '' yes
7275 # Use a header file that comes with gcc, so configuring glibc
7276 # with a fresh cross-compiler works.
7277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7278 # <limits.h> exists even on freestanding compilers.
7279 # On the NeXT, cc -E runs the code through the compiler's parser,
7280 # not just through cpp. "Syntax error" is here to catch this case.
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 #ifdef __STDC__
7284 # include <limits.h>
7285 #else
7286 # include <assert.h>
7287 #endif
7288 Syntax error
7289 _ACEOF
7290 if ac_fn_c_try_cpp "$LINENO"; then :
7292 else
7293 # Broken: fails on valid input.
7294 continue
7296 rm -f conftest.err conftest.$ac_ext
7298 # OK, works on sane cases. Now check whether nonexistent headers
7299 # can be detected and how.
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302 #include <ac_nonexistent.h>
7303 _ACEOF
7304 if ac_fn_c_try_cpp "$LINENO"; then :
7305 # Broken: success on invalid input.
7306 continue
7307 else
7308 # Passes both tests.
7309 ac_preproc_ok=:
7310 break
7312 rm -f conftest.err conftest.$ac_ext
7314 done
7315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7316 rm -f conftest.err conftest.$ac_ext
7317 if $ac_preproc_ok; then :
7318 break
7321 done
7322 ac_cv_prog_CPP=$CPP
7325 CPP=$ac_cv_prog_CPP
7326 else
7327 ac_cv_prog_CPP=$CPP
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7330 $as_echo "$CPP" >&6; }
7331 ac_preproc_ok=false
7332 for ac_c_preproc_warn_flag in '' yes
7334 # Use a header file that comes with gcc, so configuring glibc
7335 # with a fresh cross-compiler works.
7336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7337 # <limits.h> exists even on freestanding compilers.
7338 # On the NeXT, cc -E runs the code through the compiler's parser,
7339 # not just through cpp. "Syntax error" is here to catch this case.
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 #ifdef __STDC__
7343 # include <limits.h>
7344 #else
7345 # include <assert.h>
7346 #endif
7347 Syntax error
7348 _ACEOF
7349 if ac_fn_c_try_cpp "$LINENO"; then :
7351 else
7352 # Broken: fails on valid input.
7353 continue
7355 rm -f conftest.err conftest.$ac_ext
7357 # OK, works on sane cases. Now check whether nonexistent headers
7358 # can be detected and how.
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 #include <ac_nonexistent.h>
7362 _ACEOF
7363 if ac_fn_c_try_cpp "$LINENO"; then :
7364 # Broken: success on invalid input.
7365 continue
7366 else
7367 # Passes both tests.
7368 ac_preproc_ok=:
7369 break
7371 rm -f conftest.err conftest.$ac_ext
7373 done
7374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7375 rm -f conftest.err conftest.$ac_ext
7376 if $ac_preproc_ok; then :
7378 else
7379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7381 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7382 See \`config.log' for more details." "$LINENO" 5; }
7385 ac_ext=c
7386 ac_cpp='$CPP $CPPFLAGS'
7387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7393 $as_echo_n "checking for ANSI C header files... " >&6; }
7394 if test "${ac_cv_header_stdc+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7399 #include <stdlib.h>
7400 #include <stdarg.h>
7401 #include <string.h>
7402 #include <float.h>
7405 main ()
7409 return 0;
7411 _ACEOF
7412 if ac_fn_c_try_compile "$LINENO"; then :
7413 ac_cv_header_stdc=yes
7414 else
7415 ac_cv_header_stdc=no
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 if test $ac_cv_header_stdc = yes; then
7420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423 #include <string.h>
7425 _ACEOF
7426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7427 $EGREP "memchr" >/dev/null 2>&1; then :
7429 else
7430 ac_cv_header_stdc=no
7432 rm -f conftest*
7436 if test $ac_cv_header_stdc = yes; then
7437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #include <stdlib.h>
7442 _ACEOF
7443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444 $EGREP "free" >/dev/null 2>&1; then :
7446 else
7447 ac_cv_header_stdc=no
7449 rm -f conftest*
7453 if test $ac_cv_header_stdc = yes; then
7454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7455 if test "$cross_compiling" = yes; then :
7457 else
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <ctype.h>
7461 #include <stdlib.h>
7462 #if ((' ' & 0x0FF) == 0x020)
7463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7465 #else
7466 # define ISLOWER(c) \
7467 (('a' <= (c) && (c) <= 'i') \
7468 || ('j' <= (c) && (c) <= 'r') \
7469 || ('s' <= (c) && (c) <= 'z'))
7470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7471 #endif
7473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7475 main ()
7477 int i;
7478 for (i = 0; i < 256; i++)
7479 if (XOR (islower (i), ISLOWER (i))
7480 || toupper (i) != TOUPPER (i))
7481 return 2;
7482 return 0;
7484 _ACEOF
7485 if ac_fn_c_try_run "$LINENO"; then :
7487 else
7488 ac_cv_header_stdc=no
7490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7491 conftest.$ac_objext conftest.beam conftest.$ac_ext
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7497 $as_echo "$ac_cv_header_stdc" >&6; }
7498 if test $ac_cv_header_stdc = yes; then
7500 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7504 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7505 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7506 inttypes.h stdint.h unistd.h
7507 do :
7508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7511 eval as_val=\$$as_ac_Header
7512 if test "x$as_val" = x""yes; then :
7513 cat >>confdefs.h <<_ACEOF
7514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515 _ACEOF
7519 done
7522 for ac_header in dlfcn.h
7523 do :
7524 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7526 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7527 cat >>confdefs.h <<_ACEOF
7528 #define HAVE_DLFCN_H 1
7529 _ACEOF
7533 done
7535 if test -n "$ac_tool_prefix"; then
7536 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7537 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if test "${ac_cv_prog_GOC+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 if test -n "$GOC"; then
7544 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7557 done
7558 done
7559 IFS=$as_save_IFS
7563 GOC=$ac_cv_prog_GOC
7564 if test -n "$GOC"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7566 $as_echo "$GOC" >&6; }
7567 else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7574 if test -z "$ac_cv_prog_GOC"; then
7575 ac_ct_GOC=$GOC
7576 # Extract the first word of "gccgo", so it can be a program name with args.
7577 set dummy gccgo; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 if test -n "$ac_ct_GOC"; then
7584 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_prog_ac_ct_GOC="gccgo"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7597 done
7598 done
7599 IFS=$as_save_IFS
7603 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7604 if test -n "$ac_ct_GOC"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7606 $as_echo "$ac_ct_GOC" >&6; }
7607 else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7612 if test "x$ac_ct_GOC" = x; then
7613 GOC=""
7614 else
7615 case $cross_compiling:$ac_tool_warned in
7616 yes:)
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619 ac_tool_warned=yes ;;
7620 esac
7621 GOC=$ac_ct_GOC
7623 else
7624 GOC="$ac_cv_prog_GOC"
7632 # Set options
7637 enable_win32_dll=no
7640 # Check whether --enable-shared was given.
7641 if test "${enable_shared+set}" = set; then :
7642 enableval=$enable_shared; p=${PACKAGE-default}
7643 case $enableval in
7644 yes) enable_shared=yes ;;
7645 no) enable_shared=no ;;
7647 enable_shared=no
7648 # Look at the argument we got. We use all the common list separators.
7649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7650 for pkg in $enableval; do
7651 IFS="$lt_save_ifs"
7652 if test "X$pkg" = "X$p"; then
7653 enable_shared=yes
7655 done
7656 IFS="$lt_save_ifs"
7658 esac
7659 else
7660 enable_shared=yes
7671 # Check whether --enable-static was given.
7672 if test "${enable_static+set}" = set; then :
7673 enableval=$enable_static; p=${PACKAGE-default}
7674 case $enableval in
7675 yes) enable_static=yes ;;
7676 no) enable_static=no ;;
7678 enable_static=no
7679 # Look at the argument we got. We use all the common list separators.
7680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7681 for pkg in $enableval; do
7682 IFS="$lt_save_ifs"
7683 if test "X$pkg" = "X$p"; then
7684 enable_static=yes
7686 done
7687 IFS="$lt_save_ifs"
7689 esac
7690 else
7691 enable_static=yes
7703 # Check whether --with-pic was given.
7704 if test "${with_pic+set}" = set; then :
7705 withval=$with_pic; pic_mode="$withval"
7706 else
7707 pic_mode=default
7711 test -z "$pic_mode" && pic_mode=default
7719 # Check whether --enable-fast-install was given.
7720 if test "${enable_fast_install+set}" = set; then :
7721 enableval=$enable_fast_install; p=${PACKAGE-default}
7722 case $enableval in
7723 yes) enable_fast_install=yes ;;
7724 no) enable_fast_install=no ;;
7726 enable_fast_install=no
7727 # Look at the argument we got. We use all the common list separators.
7728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7729 for pkg in $enableval; do
7730 IFS="$lt_save_ifs"
7731 if test "X$pkg" = "X$p"; then
7732 enable_fast_install=yes
7734 done
7735 IFS="$lt_save_ifs"
7737 esac
7738 else
7739 enable_fast_install=yes
7752 # This can be used to rebuild libtool when needed
7753 LIBTOOL_DEPS="$ltmain"
7755 # Always use our own libtool.
7756 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7783 test -z "$LN_S" && LN_S="ln -s"
7798 if test -n "${ZSH_VERSION+set}" ; then
7799 setopt NO_GLOB_SUBST
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7803 $as_echo_n "checking for objdir... " >&6; }
7804 if test "${lt_cv_objdir+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 rm -f .libs 2>/dev/null
7808 mkdir .libs 2>/dev/null
7809 if test -d .libs; then
7810 lt_cv_objdir=.libs
7811 else
7812 # MS-DOS does not allow filenames that begin with a dot.
7813 lt_cv_objdir=_libs
7815 rmdir .libs 2>/dev/null
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7818 $as_echo "$lt_cv_objdir" >&6; }
7819 objdir=$lt_cv_objdir
7825 cat >>confdefs.h <<_ACEOF
7826 #define LT_OBJDIR "$lt_cv_objdir/"
7827 _ACEOF
7832 case $host_os in
7833 aix3*)
7834 # AIX sometimes has problems with the GCC collect2 program. For some
7835 # reason, if we set the COLLECT_NAMES environment variable, the problems
7836 # vanish in a puff of smoke.
7837 if test "X${COLLECT_NAMES+set}" != Xset; then
7838 COLLECT_NAMES=
7839 export COLLECT_NAMES
7842 esac
7844 # Global variables:
7845 ofile=libtool
7846 can_build_shared=yes
7848 # All known linkers require a `.a' archive for static linking (except MSVC,
7849 # which needs '.lib').
7850 libext=a
7852 with_gnu_ld="$lt_cv_prog_gnu_ld"
7854 old_CC="$CC"
7855 old_CFLAGS="$CFLAGS"
7857 # Set sane defaults for various variables
7858 test -z "$CC" && CC=cc
7859 test -z "$LTCC" && LTCC=$CC
7860 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7861 test -z "$LD" && LD=ld
7862 test -z "$ac_objext" && ac_objext=o
7864 for cc_temp in $compiler""; do
7865 case $cc_temp in
7866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7868 \-*) ;;
7869 *) break;;
7870 esac
7871 done
7872 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7875 # Only perform the check for file, if the check method requires it
7876 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7877 case $deplibs_check_method in
7878 file_magic*)
7879 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7881 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7882 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 case $MAGIC_CMD in
7886 [\\/*] | ?:[\\/]*)
7887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7890 lt_save_MAGIC_CMD="$MAGIC_CMD"
7891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7892 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7893 for ac_dir in $ac_dummy; do
7894 IFS="$lt_save_ifs"
7895 test -z "$ac_dir" && ac_dir=.
7896 if test -f $ac_dir/${ac_tool_prefix}file; then
7897 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7898 if test -n "$file_magic_test_file"; then
7899 case $deplibs_check_method in
7900 "file_magic "*)
7901 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7902 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7903 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7904 $EGREP "$file_magic_regex" > /dev/null; then
7906 else
7907 cat <<_LT_EOF 1>&2
7909 *** Warning: the command libtool uses to detect shared libraries,
7910 *** $file_magic_cmd, produces output that libtool cannot recognize.
7911 *** The result is that libtool may fail to recognize shared libraries
7912 *** as such. This will affect the creation of libtool libraries that
7913 *** depend on shared libraries, but programs linked with such libtool
7914 *** libraries will work regardless of this problem. Nevertheless, you
7915 *** may want to report the problem to your system manager and/or to
7916 *** bug-libtool@gnu.org
7918 _LT_EOF
7919 fi ;;
7920 esac
7922 break
7924 done
7925 IFS="$lt_save_ifs"
7926 MAGIC_CMD="$lt_save_MAGIC_CMD"
7928 esac
7931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7932 if test -n "$MAGIC_CMD"; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7934 $as_echo "$MAGIC_CMD" >&6; }
7935 else
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7944 if test -z "$lt_cv_path_MAGIC_CMD"; then
7945 if test -n "$ac_tool_prefix"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7947 $as_echo_n "checking for file... " >&6; }
7948 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
7950 else
7951 case $MAGIC_CMD in
7952 [\\/*] | ?:[\\/]*)
7953 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7956 lt_save_MAGIC_CMD="$MAGIC_CMD"
7957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7958 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7959 for ac_dir in $ac_dummy; do
7960 IFS="$lt_save_ifs"
7961 test -z "$ac_dir" && ac_dir=.
7962 if test -f $ac_dir/file; then
7963 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7964 if test -n "$file_magic_test_file"; then
7965 case $deplibs_check_method in
7966 "file_magic "*)
7967 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7969 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7970 $EGREP "$file_magic_regex" > /dev/null; then
7972 else
7973 cat <<_LT_EOF 1>&2
7975 *** Warning: the command libtool uses to detect shared libraries,
7976 *** $file_magic_cmd, produces output that libtool cannot recognize.
7977 *** The result is that libtool may fail to recognize shared libraries
7978 *** as such. This will affect the creation of libtool libraries that
7979 *** depend on shared libraries, but programs linked with such libtool
7980 *** libraries will work regardless of this problem. Nevertheless, you
7981 *** may want to report the problem to your system manager and/or to
7982 *** bug-libtool@gnu.org
7984 _LT_EOF
7985 fi ;;
7986 esac
7988 break
7990 done
7991 IFS="$lt_save_ifs"
7992 MAGIC_CMD="$lt_save_MAGIC_CMD"
7994 esac
7997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7998 if test -n "$MAGIC_CMD"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8000 $as_echo "$MAGIC_CMD" >&6; }
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8007 else
8008 MAGIC_CMD=:
8014 esac
8016 # Use C for the default configuration in the libtool script
8018 lt_save_CC="$CC"
8019 ac_ext=c
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026 # Source file extension for C test sources.
8027 ac_ext=c
8029 # Object file extension for compiled C test sources.
8030 objext=o
8031 objext=$objext
8033 # Code to be used in simple compile tests
8034 lt_simple_compile_test_code="int some_variable = 0;"
8036 # Code to be used in simple link tests
8037 lt_simple_link_test_code='int main(){return(0);}'
8045 # If no C compiler was specified, use CC.
8046 LTCC=${LTCC-"$CC"}
8048 # If no C compiler flags were specified, use CFLAGS.
8049 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8051 # Allow CC to be a program name with arguments.
8052 compiler=$CC
8054 # Save the default compiler, since it gets overwritten when the other
8055 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8056 compiler_DEFAULT=$CC
8058 # save warnings/boilerplate of simple test code
8059 ac_outfile=conftest.$ac_objext
8060 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8061 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8062 _lt_compiler_boilerplate=`cat conftest.err`
8063 $RM conftest*
8065 ac_outfile=conftest.$ac_objext
8066 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8067 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8068 _lt_linker_boilerplate=`cat conftest.err`
8069 $RM -r conftest*
8072 ## CAVEAT EMPTOR:
8073 ## There is no encapsulation within the following macros, do not change
8074 ## the running order or otherwise move them around unless you know exactly
8075 ## what you are doing...
8076 if test -n "$compiler"; then
8078 lt_prog_compiler_no_builtin_flag=
8080 if test "$GCC" = yes; then
8081 case $cc_basename in
8082 nvcc*)
8083 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8085 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8086 esac
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8089 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8090 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 lt_cv_prog_compiler_rtti_exceptions=no
8094 ac_outfile=conftest.$ac_objext
8095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8096 lt_compiler_flag="-fno-rtti -fno-exceptions"
8097 # Insert the option either (1) after the last *FLAGS variable, or
8098 # (2) before a word containing "conftest.", or (3) at the end.
8099 # Note that $ac_compile itself does not contain backslashes and begins
8100 # with a dollar sign (not a hyphen), so the echo should work correctly.
8101 # The option is referenced via a variable to avoid confusing sed.
8102 lt_compile=`echo "$ac_compile" | $SED \
8103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8105 -e 's:$: $lt_compiler_flag:'`
8106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8107 (eval "$lt_compile" 2>conftest.err)
8108 ac_status=$?
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 if (exit $ac_status) && test -s "$ac_outfile"; then
8112 # The compiler can only warn and ignore the option if not recognized
8113 # So say no if there are warnings other than the usual output.
8114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8117 lt_cv_prog_compiler_rtti_exceptions=yes
8120 $RM conftest*
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8124 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8126 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8127 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8128 else
8139 lt_prog_compiler_wl=
8140 lt_prog_compiler_pic=
8141 lt_prog_compiler_static=
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8144 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8146 if test "$GCC" = yes; then
8147 lt_prog_compiler_wl='-Wl,'
8148 lt_prog_compiler_static='-static'
8150 case $host_os in
8151 aix*)
8152 # All AIX code is PIC.
8153 if test "$host_cpu" = ia64; then
8154 # AIX 5 now supports IA64 processor
8155 lt_prog_compiler_static='-Bstatic'
8157 lt_prog_compiler_pic='-fPIC'
8160 amigaos*)
8161 case $host_cpu in
8162 powerpc)
8163 # see comment about AmigaOS4 .so support
8164 lt_prog_compiler_pic='-fPIC'
8166 m68k)
8167 # FIXME: we need at least 68020 code to build shared libraries, but
8168 # adding the `-m68020' flag to GCC prevents building anything better,
8169 # like `-m68040'.
8170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8172 esac
8175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8176 # PIC is the default for these OSes.
8179 mingw* | cygwin* | pw32* | os2* | cegcc*)
8180 # This hack is so that the source file can tell whether it is being
8181 # built for inclusion in a dll (and should export symbols for example).
8182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8183 # (--disable-auto-import) libraries
8184 lt_prog_compiler_pic='-DDLL_EXPORT'
8187 darwin* | rhapsody*)
8188 # PIC is the default on this platform
8189 # Common symbols not allowed in MH_DYLIB files
8190 lt_prog_compiler_pic='-fno-common'
8193 haiku*)
8194 # PIC is the default for Haiku.
8195 # The "-static" flag exists, but is broken.
8196 lt_prog_compiler_static=
8199 hpux*)
8200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8202 # sets the default TLS model and affects inlining.
8203 case $host_cpu in
8204 hppa*64*)
8205 # +Z the default
8208 lt_prog_compiler_pic='-fPIC'
8210 esac
8213 interix[3-9]*)
8214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8215 # Instead, we relocate shared libraries at runtime.
8218 msdosdjgpp*)
8219 # Just because we use GCC doesn't mean we suddenly get shared libraries
8220 # on systems that don't support them.
8221 lt_prog_compiler_can_build_shared=no
8222 enable_shared=no
8225 *nto* | *qnx*)
8226 # QNX uses GNU C++, but need to define -shared option too, otherwise
8227 # it will coredump.
8228 lt_prog_compiler_pic='-fPIC -shared'
8231 sysv4*MP*)
8232 if test -d /usr/nec; then
8233 lt_prog_compiler_pic=-Kconform_pic
8238 lt_prog_compiler_pic='-fPIC'
8240 esac
8242 case $cc_basename in
8243 nvcc*) # Cuda Compiler Driver 2.2
8244 lt_prog_compiler_wl='-Xlinker '
8245 lt_prog_compiler_pic='-Xcompiler -fPIC'
8247 esac
8248 else
8249 # PORTME Check for flag to pass linker flags through the system compiler.
8250 case $host_os in
8251 aix*)
8252 lt_prog_compiler_wl='-Wl,'
8253 if test "$host_cpu" = ia64; then
8254 # AIX 5 now supports IA64 processor
8255 lt_prog_compiler_static='-Bstatic'
8256 else
8257 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8261 mingw* | cygwin* | pw32* | os2* | cegcc*)
8262 # This hack is so that the source file can tell whether it is being
8263 # built for inclusion in a dll (and should export symbols for example).
8264 lt_prog_compiler_pic='-DDLL_EXPORT'
8267 hpux9* | hpux10* | hpux11*)
8268 lt_prog_compiler_wl='-Wl,'
8269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8270 # not for PA HP-UX.
8271 case $host_cpu in
8272 hppa*64*|ia64*)
8273 # +Z the default
8276 lt_prog_compiler_pic='+Z'
8278 esac
8279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8280 lt_prog_compiler_static='${wl}-a ${wl}archive'
8283 irix5* | irix6* | nonstopux*)
8284 lt_prog_compiler_wl='-Wl,'
8285 # PIC (with -KPIC) is the default.
8286 lt_prog_compiler_static='-non_shared'
8289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8290 case $cc_basename in
8291 # old Intel for x86_64 which still supported -KPIC.
8292 ecc*)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-KPIC'
8295 lt_prog_compiler_static='-static'
8297 # icc used to be incompatible with GCC.
8298 # ICC 10 doesn't accept -KPIC any more.
8299 icc* | ifort*)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-fPIC'
8302 lt_prog_compiler_static='-static'
8304 # Lahey Fortran 8.1.
8305 lf95*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='--shared'
8308 lt_prog_compiler_static='--static'
8310 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8311 # Portland Group compilers (*not* the Pentium gcc compiler,
8312 # which looks to be a dead project)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-fpic'
8315 lt_prog_compiler_static='-Bstatic'
8317 ccc*)
8318 lt_prog_compiler_wl='-Wl,'
8319 # All Alpha code is PIC.
8320 lt_prog_compiler_static='-non_shared'
8322 xl* | bgxl* | bgf* | mpixl*)
8323 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8324 lt_prog_compiler_wl='-Wl,'
8325 lt_prog_compiler_pic='-qpic'
8326 lt_prog_compiler_static='-qstaticlink'
8329 case `$CC -V 2>&1 | sed 5q` in
8330 *Sun\ F* | *Sun*Fortran*)
8331 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8332 lt_prog_compiler_pic='-KPIC'
8333 lt_prog_compiler_static='-Bstatic'
8334 lt_prog_compiler_wl=''
8336 *Sun\ C*)
8337 # Sun C 5.9
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-Bstatic'
8340 lt_prog_compiler_wl='-Wl,'
8342 esac
8344 esac
8347 newsos6)
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8352 *nto* | *qnx*)
8353 # QNX uses GNU C++, but need to define -shared option too, otherwise
8354 # it will coredump.
8355 lt_prog_compiler_pic='-fPIC -shared'
8358 osf3* | osf4* | osf5*)
8359 lt_prog_compiler_wl='-Wl,'
8360 # All OSF/1 code is PIC.
8361 lt_prog_compiler_static='-non_shared'
8364 rdos*)
8365 lt_prog_compiler_static='-non_shared'
8368 solaris*)
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-Bstatic'
8371 case $cc_basename in
8372 f77* | f90* | f95*)
8373 lt_prog_compiler_wl='-Qoption ld ';;
8375 lt_prog_compiler_wl='-Wl,';;
8376 esac
8379 sunos4*)
8380 lt_prog_compiler_wl='-Qoption ld '
8381 lt_prog_compiler_pic='-PIC'
8382 lt_prog_compiler_static='-Bstatic'
8385 sysv4 | sysv4.2uw2* | sysv4.3*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='-KPIC'
8388 lt_prog_compiler_static='-Bstatic'
8391 sysv4*MP*)
8392 if test -d /usr/nec ;then
8393 lt_prog_compiler_pic='-Kconform_pic'
8394 lt_prog_compiler_static='-Bstatic'
8398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8404 unicos*)
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_can_build_shared=no
8409 uts4*)
8410 lt_prog_compiler_pic='-pic'
8411 lt_prog_compiler_static='-Bstatic'
8415 lt_prog_compiler_can_build_shared=no
8417 esac
8420 case $host_os in
8421 # For platforms which do not support PIC, -DPIC is meaningless:
8422 *djgpp*)
8423 lt_prog_compiler_pic=
8426 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8428 esac
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8430 $as_echo "$lt_prog_compiler_pic" >&6; }
8438 # Check to make sure the PIC flag actually works.
8440 if test -n "$lt_prog_compiler_pic"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8442 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8443 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 lt_cv_prog_compiler_pic_works=no
8447 ac_outfile=conftest.$ac_objext
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8450 # Insert the option either (1) after the last *FLAGS variable, or
8451 # (2) before a word containing "conftest.", or (3) at the end.
8452 # Note that $ac_compile itself does not contain backslashes and begins
8453 # with a dollar sign (not a hyphen), so the echo should work correctly.
8454 # The option is referenced via a variable to avoid confusing sed.
8455 lt_compile=`echo "$ac_compile" | $SED \
8456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458 -e 's:$: $lt_compiler_flag:'`
8459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460 (eval "$lt_compile" 2>conftest.err)
8461 ac_status=$?
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 if (exit $ac_status) && test -s "$ac_outfile"; then
8465 # The compiler can only warn and ignore the option if not recognized
8466 # So say no if there are warnings other than the usual output.
8467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8470 lt_cv_prog_compiler_pic_works=yes
8473 $RM conftest*
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8477 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8479 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8480 case $lt_prog_compiler_pic in
8481 "" | " "*) ;;
8482 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8483 esac
8484 else
8485 lt_prog_compiler_pic=
8486 lt_prog_compiler_can_build_shared=no
8497 # Check to make sure the static flag actually works.
8499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8502 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 lt_cv_prog_compiler_static_works=no
8506 save_LDFLAGS="$LDFLAGS"
8507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8510 # The linker can only warn and ignore the option if not recognized
8511 # So say no if there are warnings
8512 if test -s conftest.err; then
8513 # Append any errors to the config.log.
8514 cat conftest.err 1>&5
8515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8517 if diff conftest.exp conftest.er2 >/dev/null; then
8518 lt_cv_prog_compiler_static_works=yes
8520 else
8521 lt_cv_prog_compiler_static_works=yes
8524 $RM -r conftest*
8525 LDFLAGS="$save_LDFLAGS"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8529 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8531 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8533 else
8534 lt_prog_compiler_static=
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_prog_compiler_c_o=no
8549 $RM -r conftest 2>/dev/null
8550 mkdir conftest
8551 cd conftest
8552 mkdir out
8553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8555 lt_compiler_flag="-o out/conftest2.$ac_objext"
8556 # Insert the option either (1) after the last *FLAGS variable, or
8557 # (2) before a word containing "conftest.", or (3) at the end.
8558 # Note that $ac_compile itself does not contain backslashes and begins
8559 # with a dollar sign (not a hyphen), so the echo should work correctly.
8560 lt_compile=`echo "$ac_compile" | $SED \
8561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563 -e 's:$: $lt_compiler_flag:'`
8564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565 (eval "$lt_compile" 2>out/conftest.err)
8566 ac_status=$?
8567 cat out/conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8570 then
8571 # The compiler can only warn and ignore the option if not recognized
8572 # So say no if there are warnings
8573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8576 lt_cv_prog_compiler_c_o=yes
8579 chmod u+w . 2>&5
8580 $RM conftest*
8581 # SGI C++ compiler will create directory out/ii_files/ for
8582 # template instantiation
8583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8584 $RM out/* && rmdir out
8585 cd ..
8586 $RM -r conftest
8587 $RM conftest*
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8600 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 lt_cv_prog_compiler_c_o=no
8604 $RM -r conftest 2>/dev/null
8605 mkdir conftest
8606 cd conftest
8607 mkdir out
8608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8610 lt_compiler_flag="-o out/conftest2.$ac_objext"
8611 # Insert the option either (1) after the last *FLAGS variable, or
8612 # (2) before a word containing "conftest.", or (3) at the end.
8613 # Note that $ac_compile itself does not contain backslashes and begins
8614 # with a dollar sign (not a hyphen), so the echo should work correctly.
8615 lt_compile=`echo "$ac_compile" | $SED \
8616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618 -e 's:$: $lt_compiler_flag:'`
8619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8620 (eval "$lt_compile" 2>out/conftest.err)
8621 ac_status=$?
8622 cat out/conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8625 then
8626 # The compiler can only warn and ignore the option if not recognized
8627 # So say no if there are warnings
8628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8631 lt_cv_prog_compiler_c_o=yes
8634 chmod u+w . 2>&5
8635 $RM conftest*
8636 # SGI C++ compiler will create directory out/ii_files/ for
8637 # template instantiation
8638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8639 $RM out/* && rmdir out
8640 cd ..
8641 $RM -r conftest
8642 $RM conftest*
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8651 hard_links="nottested"
8652 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8653 # do not overwrite the value of need_locks provided by the user
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8655 $as_echo_n "checking if we can lock with hard links... " >&6; }
8656 hard_links=yes
8657 $RM conftest*
8658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8659 touch conftest.a
8660 ln conftest.a conftest.b 2>&5 || hard_links=no
8661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8663 $as_echo "$hard_links" >&6; }
8664 if test "$hard_links" = no; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8666 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8667 need_locks=warn
8669 else
8670 need_locks=no
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8679 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8681 runpath_var=
8682 allow_undefined_flag=
8683 always_export_symbols=no
8684 archive_cmds=
8685 archive_expsym_cmds=
8686 compiler_needs_object=no
8687 enable_shared_with_static_runtimes=no
8688 export_dynamic_flag_spec=
8689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8690 hardcode_automatic=no
8691 hardcode_direct=no
8692 hardcode_direct_absolute=no
8693 hardcode_libdir_flag_spec=
8694 hardcode_libdir_flag_spec_ld=
8695 hardcode_libdir_separator=
8696 hardcode_minus_L=no
8697 hardcode_shlibpath_var=unsupported
8698 inherit_rpath=no
8699 link_all_deplibs=unknown
8700 module_cmds=
8701 module_expsym_cmds=
8702 old_archive_from_new_cmds=
8703 old_archive_from_expsyms_cmds=
8704 thread_safe_flag_spec=
8705 whole_archive_flag_spec=
8706 # include_expsyms should be a list of space-separated symbols to be *always*
8707 # included in the symbol list
8708 include_expsyms=
8709 # exclude_expsyms can be an extended regexp of symbols to exclude
8710 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8711 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8712 # as well as any symbol that contains `d'.
8713 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8714 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8715 # platforms (ab)use it in PIC code, but their linkers get confused if
8716 # the symbol is explicitly referenced. Since portable code cannot
8717 # rely on this symbol name, it's probably fine to never include it in
8718 # preloaded symbol tables.
8719 # Exclude shared library initialization/finalization symbols.
8720 extract_expsyms_cmds=
8722 case $host_os in
8723 cygwin* | mingw* | pw32* | cegcc*)
8724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8725 # When not using gcc, we currently assume that we are using
8726 # Microsoft Visual C++.
8727 if test "$GCC" != yes; then
8728 with_gnu_ld=no
8731 interix*)
8732 # we just hope/assume this is gcc and not c89 (= MSVC++)
8733 with_gnu_ld=yes
8735 openbsd*)
8736 with_gnu_ld=no
8738 esac
8740 ld_shlibs=yes
8742 # On some targets, GNU ld is compatible enough with the native linker
8743 # that we're better off using the native interface for both.
8744 lt_use_gnu_ld_interface=no
8745 if test "$with_gnu_ld" = yes; then
8746 case $host_os in
8747 aix*)
8748 # The AIX port of GNU ld has always aspired to compatibility
8749 # with the native linker. However, as the warning in the GNU ld
8750 # block says, versions before 2.19.5* couldn't really create working
8751 # shared libraries, regardless of the interface used.
8752 case `$LD -v 2>&1` in
8753 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8754 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8755 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8757 lt_use_gnu_ld_interface=yes
8759 esac
8762 lt_use_gnu_ld_interface=yes
8764 esac
8767 if test "$lt_use_gnu_ld_interface" = yes; then
8768 # If archive_cmds runs LD, not CC, wlarc should be empty
8769 wlarc='${wl}'
8771 # Set some defaults for GNU ld with shared library support. These
8772 # are reset later if shared libraries are not supported. Putting them
8773 # here allows them to be overridden if necessary.
8774 runpath_var=LD_RUN_PATH
8775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776 export_dynamic_flag_spec='${wl}--export-dynamic'
8777 # ancient GNU ld didn't support --whole-archive et. al.
8778 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8779 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8780 else
8781 whole_archive_flag_spec=
8783 supports_anon_versioning=no
8784 case `$LD -v 2>&1` in
8785 *GNU\ gold*) supports_anon_versioning=yes ;;
8786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8789 *\ 2.11.*) ;; # other 2.11 versions
8790 *) supports_anon_versioning=yes ;;
8791 esac
8793 # See if GNU ld supports shared libraries.
8794 case $host_os in
8795 aix[3-9]*)
8796 # On AIX/PPC, the GNU linker is very broken
8797 if test "$host_cpu" != ia64; then
8798 ld_shlibs=no
8799 cat <<_LT_EOF 1>&2
8801 *** Warning: the GNU linker, at least up to release 2.19, is reported
8802 *** to be unable to reliably create shared libraries on AIX.
8803 *** Therefore, libtool is disabling shared libraries support. If you
8804 *** really care for shared libraries, you may want to install binutils
8805 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8806 *** You will then need to restart the configuration process.
8808 _LT_EOF
8812 amigaos*)
8813 case $host_cpu in
8814 powerpc)
8815 # see comment about AmigaOS4 .so support
8816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817 archive_expsym_cmds=''
8819 m68k)
8820 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)'
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 hardcode_minus_L=yes
8824 esac
8827 beos*)
8828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829 allow_undefined_flag=unsupported
8830 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8831 # support --undefined. This deserves some investigation. FIXME
8832 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833 else
8834 ld_shlibs=no
8838 cygwin* | mingw* | pw32* | cegcc*)
8839 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8840 # as there is no search path for DLLs.
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 export_dynamic_flag_spec='${wl}--export-all-symbols'
8843 allow_undefined_flag=unsupported
8844 always_export_symbols=no
8845 enable_shared_with_static_runtimes=yes
8846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8848 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8850 # If the export-symbols file already is a .def file (1st line
8851 # is EXPORTS), use it as is; otherwise, prepend...
8852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8853 cp $export_symbols $output_objdir/$soname.def;
8854 else
8855 echo EXPORTS > $output_objdir/$soname.def;
8856 cat $export_symbols >> $output_objdir/$soname.def;
8858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8859 else
8860 ld_shlibs=no
8864 haiku*)
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 link_all_deplibs=yes
8869 interix[3-9]*)
8870 hardcode_direct=no
8871 hardcode_shlibpath_var=no
8872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8873 export_dynamic_flag_spec='${wl}-E'
8874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8875 # Instead, shared libraries are loaded at an image base (0x10000000 by
8876 # default) and relocated if they conflict, which is a slow very memory
8877 # consuming and fragmenting process. To avoid this, we pick a random,
8878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8881 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'
8884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8885 tmp_diet=no
8886 if test "$host_os" = linux-dietlibc; then
8887 case $cc_basename in
8888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8889 esac
8891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8892 && test "$tmp_diet" = no
8893 then
8894 tmp_addflag=
8895 tmp_sharedflag='-shared'
8896 case $cc_basename,$host_cpu in
8897 pgcc*) # Portland Group C compiler
8898 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'
8899 tmp_addflag=' $pic_flag'
8901 pgf77* | pgf90* | pgf95* | pgfortran*)
8902 # Portland Group f77 and f90 compilers
8903 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'
8904 tmp_addflag=' $pic_flag -Mnomain' ;;
8905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8906 tmp_addflag=' -i_dynamic' ;;
8907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8908 tmp_addflag=' -i_dynamic -nofor_main' ;;
8909 ifc* | ifort*) # Intel Fortran compiler
8910 tmp_addflag=' -nofor_main' ;;
8911 lf95*) # Lahey Fortran 8.1
8912 whole_archive_flag_spec=
8913 tmp_sharedflag='--shared' ;;
8914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8915 tmp_sharedflag='-qmkshrobj'
8916 tmp_addflag= ;;
8917 nvcc*) # Cuda Compiler Driver 2.2
8918 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'
8919 compiler_needs_object=yes
8921 esac
8922 case `$CC -V 2>&1 | sed 5q` in
8923 *Sun\ C*) # Sun C 5.9
8924 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'
8925 compiler_needs_object=yes
8926 tmp_sharedflag='-G' ;;
8927 *Sun\ F*) # Sun Fortran 8.3
8928 tmp_sharedflag='-G' ;;
8929 esac
8930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932 if test "x$supports_anon_versioning" = xyes; then
8933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8935 echo "local: *; };" >> $output_objdir/$libname.ver~
8936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8939 case $cc_basename in
8940 xlf* | bgf* | bgxlf* | mpixlf*)
8941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8942 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8943 hardcode_libdir_flag_spec=
8944 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8945 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8946 if test "x$supports_anon_versioning" = xyes; then
8947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8949 echo "local: *; };" >> $output_objdir/$libname.ver~
8950 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8953 esac
8954 else
8955 ld_shlibs=no
8959 netbsd*)
8960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8961 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8962 wlarc=
8963 else
8964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969 solaris*)
8970 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8971 ld_shlibs=no
8972 cat <<_LT_EOF 1>&2
8974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8975 *** create shared libraries on Solaris systems. Therefore, libtool
8976 *** is disabling shared libraries support. We urge you to upgrade GNU
8977 *** binutils to release 2.9.1 or newer. Another option is to modify
8978 *** your PATH or compiler configuration so that the native linker is
8979 *** used, and then restart.
8981 _LT_EOF
8982 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8985 else
8986 ld_shlibs=no
8990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8991 case `$LD -v 2>&1` in
8992 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8993 ld_shlibs=no
8994 cat <<_LT_EOF 1>&2
8996 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8997 *** reliably create shared libraries on SCO systems. Therefore, libtool
8998 *** is disabling shared libraries support. We urge you to upgrade GNU
8999 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9000 *** your PATH or compiler configuration so that the native linker is
9001 *** used, and then restart.
9003 _LT_EOF
9006 # For security reasons, it is highly recommended that you always
9007 # use absolute paths for naming shared libraries, and exclude the
9008 # DT_RUNPATH tag from executables and libraries. But doing so
9009 # requires that you compile everything twice, which is a pain.
9010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014 else
9015 ld_shlibs=no
9018 esac
9021 sunos4*)
9022 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9023 wlarc=
9024 hardcode_direct=yes
9025 hardcode_shlibpath_var=no
9029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 else
9033 ld_shlibs=no
9036 esac
9038 if test "$ld_shlibs" = no; then
9039 runpath_var=
9040 hardcode_libdir_flag_spec=
9041 export_dynamic_flag_spec=
9042 whole_archive_flag_spec=
9044 else
9045 # PORTME fill in a description of your system's linker (not GNU ld)
9046 case $host_os in
9047 aix3*)
9048 allow_undefined_flag=unsupported
9049 always_export_symbols=yes
9050 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'
9051 # Note: this linker hardcodes the directories in LIBPATH if there
9052 # are no directories specified by -L.
9053 hardcode_minus_L=yes
9054 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9055 # Neither direct hardcoding nor static linking is supported with a
9056 # broken collect2.
9057 hardcode_direct=unsupported
9061 aix[4-9]*)
9062 if test "$host_cpu" = ia64; then
9063 # On IA64, the linker does run time linking by default, so we don't
9064 # have to do anything special.
9065 aix_use_runtimelinking=no
9066 exp_sym_flag='-Bexport'
9067 no_entry_flag=""
9068 else
9069 # If we're using GNU nm, then we don't want the "-C" option.
9070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9071 # Also, AIX nm treats weak defined symbols like other global
9072 # defined symbols, whereas GNU nm marks them as "W".
9073 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9074 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'
9075 else
9076 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'
9078 aix_use_runtimelinking=no
9080 # Test if we are trying to use run time linking or normal
9081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9082 # need to do runtime linking.
9083 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9084 for ld_flag in $LDFLAGS; do
9085 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9086 aix_use_runtimelinking=yes
9087 break
9089 done
9091 esac
9093 exp_sym_flag='-bexport'
9094 no_entry_flag='-bnoentry'
9097 # When large executables or shared objects are built, AIX ld can
9098 # have problems creating the table of contents. If linking a library
9099 # or program results in "error TOC overflow" add -mminimal-toc to
9100 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9101 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103 archive_cmds=''
9104 hardcode_direct=yes
9105 hardcode_direct_absolute=yes
9106 hardcode_libdir_separator=':'
9107 link_all_deplibs=yes
9108 file_list_spec='${wl}-f,'
9110 if test "$GCC" = yes; then
9111 case $host_os in aix4.[012]|aix4.[012].*)
9112 # We only want to do this on AIX 4.2 and lower, the check
9113 # below for broken collect2 doesn't work under 4.3+
9114 collect2name=`${CC} -print-prog-name=collect2`
9115 if test -f "$collect2name" &&
9116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9117 then
9118 # We have reworked collect2
9120 else
9121 # We have old collect2
9122 hardcode_direct=unsupported
9123 # It fails to find uninstalled libraries when the uninstalled
9124 # path is not listed in the libpath. Setting hardcode_minus_L
9125 # to unsupported forces relinking
9126 hardcode_minus_L=yes
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_libdir_separator=
9131 esac
9132 shared_flag='-shared'
9133 if test "$aix_use_runtimelinking" = yes; then
9134 shared_flag="$shared_flag "'${wl}-G'
9136 else
9137 # not using gcc
9138 if test "$host_cpu" = ia64; then
9139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9140 # chokes on -Wl,-G. The following line is correct:
9141 shared_flag='-G'
9142 else
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag='${wl}-G'
9145 else
9146 shared_flag='${wl}-bM:SRE'
9151 export_dynamic_flag_spec='${wl}-bexpall'
9152 # It seems that -bexpall does not export symbols beginning with
9153 # underscore (_), so it is better to generate a list of symbols to export.
9154 always_export_symbols=yes
9155 if test "$aix_use_runtimelinking" = yes; then
9156 # Warning - without using the other runtime loading flags (-brtl),
9157 # -berok will link without error, but may produce a broken library.
9158 allow_undefined_flag='-berok'
9159 # Determine the default libpath from the value encoded in an
9160 # empty executable.
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9165 main ()
9169 return 0;
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"; then :
9174 lt_aix_libpath_sed='
9175 /Import File Strings/,/^$/ {
9176 /^0/ {
9177 s/^0 *\(.*\)$/\1/
9181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9182 # Check for a 64-bit object if we didn't find anything.
9183 if test -z "$aix_libpath"; then
9184 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187 rm -f core conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9191 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9192 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"
9193 else
9194 if test "$host_cpu" = ia64; then
9195 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9196 allow_undefined_flag="-z nodefs"
9197 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"
9198 else
9199 # Determine the default libpath from the value encoded in an
9200 # empty executable.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9205 main ()
9209 return 0;
9211 _ACEOF
9212 if ac_fn_c_try_link "$LINENO"; then :
9214 lt_aix_libpath_sed='
9215 /Import File Strings/,/^$/ {
9216 /^0/ {
9217 s/^0 *\(.*\)$/\1/
9221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 # Check for a 64-bit object if we didn't find anything.
9223 if test -z "$aix_libpath"; then
9224 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9231 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9232 # Warning - without using the other run time loading flags,
9233 # -berok will link without error, but may produce a broken library.
9234 no_undefined_flag=' ${wl}-bernotok'
9235 allow_undefined_flag=' ${wl}-berok'
9236 if test "$with_gnu_ld" = yes; then
9237 # We only use this code for GNU lds that support --whole-archive.
9238 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9239 else
9240 # Exported symbols can be pulled into shared objects from archives
9241 whole_archive_flag_spec='$convenience'
9243 archive_cmds_need_lc=yes
9244 # This is similar to how AIX traditionally builds its shared libraries.
9245 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'
9250 amigaos*)
9251 case $host_cpu in
9252 powerpc)
9253 # see comment about AmigaOS4 .so support
9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255 archive_expsym_cmds=''
9257 m68k)
9258 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)'
9259 hardcode_libdir_flag_spec='-L$libdir'
9260 hardcode_minus_L=yes
9262 esac
9265 bsdi[45]*)
9266 export_dynamic_flag_spec=-rdynamic
9269 cygwin* | mingw* | pw32* | cegcc*)
9270 # When not using gcc, we currently assume that we are using
9271 # Microsoft Visual C++.
9272 # hardcode_libdir_flag_spec is actually meaningless, as there is
9273 # no search path for DLLs.
9274 hardcode_libdir_flag_spec=' '
9275 allow_undefined_flag=unsupported
9276 # Tell ltmain to make .lib files, not .a files.
9277 libext=lib
9278 # Tell ltmain to make .dll files, not .so files.
9279 shrext_cmds=".dll"
9280 # FIXME: Setting linknames here is a bad hack.
9281 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9282 # The linker will automatically build a .lib file if we build a DLL.
9283 old_archive_from_new_cmds='true'
9284 # FIXME: Should let the user specify the lib program.
9285 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9286 fix_srcfile_path='`cygpath -w "$srcfile"`'
9287 enable_shared_with_static_runtimes=yes
9290 darwin* | rhapsody*)
9293 archive_cmds_need_lc=no
9294 hardcode_direct=no
9295 hardcode_automatic=yes
9296 hardcode_shlibpath_var=unsupported
9297 if test "$lt_cv_ld_force_load" = "yes"; then
9298 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\"`'
9299 else
9300 whole_archive_flag_spec=''
9302 link_all_deplibs=yes
9303 allow_undefined_flag="$_lt_dar_allow_undefined"
9304 case $cc_basename in
9305 ifort*) _lt_dar_can_shared=yes ;;
9306 *) _lt_dar_can_shared=$GCC ;;
9307 esac
9308 if test "$_lt_dar_can_shared" = "yes"; then
9309 output_verbose_link_cmd=func_echo_all
9310 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9311 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9312 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}"
9313 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}"
9315 else
9316 ld_shlibs=no
9321 dgux*)
9322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323 hardcode_libdir_flag_spec='-L$libdir'
9324 hardcode_shlibpath_var=no
9327 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9328 # support. Future versions do this automatically, but an explicit c++rt0.o
9329 # does not break anything, and helps significantly (at the cost of a little
9330 # extra space).
9331 freebsd2.2*)
9332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9333 hardcode_libdir_flag_spec='-R$libdir'
9334 hardcode_direct=yes
9335 hardcode_shlibpath_var=no
9338 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9339 freebsd2.*)
9340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_direct=yes
9342 hardcode_minus_L=yes
9343 hardcode_shlibpath_var=no
9346 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9347 freebsd* | dragonfly*)
9348 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9349 hardcode_libdir_flag_spec='-R$libdir'
9350 hardcode_direct=yes
9351 hardcode_shlibpath_var=no
9354 hpux9*)
9355 if test "$GCC" = yes; then
9356 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'
9357 else
9358 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'
9360 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9361 hardcode_libdir_separator=:
9362 hardcode_direct=yes
9364 # hardcode_minus_L: Not really in the search PATH,
9365 # but as the default location of the library.
9366 hardcode_minus_L=yes
9367 export_dynamic_flag_spec='${wl}-E'
9370 hpux10*)
9371 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9372 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9373 else
9374 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9376 if test "$with_gnu_ld" = no; then
9377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9378 hardcode_libdir_flag_spec_ld='+b $libdir'
9379 hardcode_libdir_separator=:
9380 hardcode_direct=yes
9381 hardcode_direct_absolute=yes
9382 export_dynamic_flag_spec='${wl}-E'
9383 # hardcode_minus_L: Not really in the search PATH,
9384 # but as the default location of the library.
9385 hardcode_minus_L=yes
9389 hpux11*)
9390 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9391 case $host_cpu in
9392 hppa*64*)
9393 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 ia64*)
9396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9401 esac
9402 else
9403 case $host_cpu in
9404 hppa*64*)
9405 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 ia64*)
9408 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9412 # Older versions of the 11.00 compiler do not understand -b yet
9413 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9415 $as_echo_n "checking if $CC understands -b... " >&6; }
9416 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 lt_cv_prog_compiler__b=no
9420 save_LDFLAGS="$LDFLAGS"
9421 LDFLAGS="$LDFLAGS -b"
9422 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9424 # The linker can only warn and ignore the option if not recognized
9425 # So say no if there are warnings
9426 if test -s conftest.err; then
9427 # Append any errors to the config.log.
9428 cat conftest.err 1>&5
9429 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9431 if diff conftest.exp conftest.er2 >/dev/null; then
9432 lt_cv_prog_compiler__b=yes
9434 else
9435 lt_cv_prog_compiler__b=yes
9438 $RM -r conftest*
9439 LDFLAGS="$save_LDFLAGS"
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9443 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9445 if test x"$lt_cv_prog_compiler__b" = xyes; then
9446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9447 else
9448 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9452 esac
9454 if test "$with_gnu_ld" = no; then
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9458 case $host_cpu in
9459 hppa*64*|ia64*)
9460 hardcode_direct=no
9461 hardcode_shlibpath_var=no
9464 hardcode_direct=yes
9465 hardcode_direct_absolute=yes
9466 export_dynamic_flag_spec='${wl}-E'
9468 # hardcode_minus_L: Not really in the search PATH,
9469 # but as the default location of the library.
9470 hardcode_minus_L=yes
9472 esac
9476 irix5* | irix6* | nonstopux*)
9477 if test "$GCC" = yes; then
9478 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'
9479 # Try to use the -exported_symbol ld option, if it does not
9480 # work, assume that -exports_file does not work either and
9481 # implicitly export all symbols.
9482 save_LDFLAGS="$LDFLAGS"
9483 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 int foo(void) {}
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489 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'
9492 rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494 LDFLAGS="$save_LDFLAGS"
9495 else
9496 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'
9497 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'
9499 archive_cmds_need_lc='no'
9500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9501 hardcode_libdir_separator=:
9502 inherit_rpath=yes
9503 link_all_deplibs=yes
9506 netbsd*)
9507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9509 else
9510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9512 hardcode_libdir_flag_spec='-R$libdir'
9513 hardcode_direct=yes
9514 hardcode_shlibpath_var=no
9517 newsos6)
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_direct=yes
9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521 hardcode_libdir_separator=:
9522 hardcode_shlibpath_var=no
9525 *nto* | *qnx*)
9528 openbsd*)
9529 if test -f /usr/libexec/ld.so; then
9530 hardcode_direct=yes
9531 hardcode_shlibpath_var=no
9532 hardcode_direct_absolute=yes
9533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9537 export_dynamic_flag_spec='${wl}-E'
9538 else
9539 case $host_os in
9540 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_libdir_flag_spec='-R$libdir'
9545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9548 esac
9550 else
9551 ld_shlibs=no
9555 os2*)
9556 hardcode_libdir_flag_spec='-L$libdir'
9557 hardcode_minus_L=yes
9558 allow_undefined_flag=unsupported
9559 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'
9560 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9563 osf3*)
9564 if test "$GCC" = yes; then
9565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9566 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'
9567 else
9568 allow_undefined_flag=' -expect_unresolved \*'
9569 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'
9571 archive_cmds_need_lc='no'
9572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9573 hardcode_libdir_separator=:
9576 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-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'
9580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581 else
9582 allow_undefined_flag=' -expect_unresolved \*'
9583 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'
9584 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~
9585 $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'
9587 # Both c and cxx compiler support -rpath directly
9588 hardcode_libdir_flag_spec='-rpath $libdir'
9590 archive_cmds_need_lc='no'
9591 hardcode_libdir_separator=:
9594 solaris*)
9595 no_undefined_flag=' -z defs'
9596 if test "$GCC" = yes; then
9597 wlarc='${wl}'
9598 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9601 else
9602 case `$CC -V 2>&1` in
9603 *"Compilers 5.0"*)
9604 wlarc=''
9605 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9610 wlarc='${wl}'
9611 archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9615 esac
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_shlibpath_var=no
9619 case $host_os in
9620 solaris2.[0-5] | solaris2.[0-5].*) ;;
9622 # The compiler driver will combine and reorder linker options,
9623 # but understands `-z linker_flag'. GCC discards it without `$wl',
9624 # but is careful enough not to reorder.
9625 # Supported since Solaris 2.6 (maybe 2.5.1?)
9626 if test "$GCC" = yes; then
9627 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9628 else
9629 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9632 esac
9633 link_all_deplibs=yes
9636 sunos4*)
9637 if test "x$host_vendor" = xsequent; then
9638 # Use $CC to link under sequent, because it throws in some extra .o
9639 # files that make .init and .fini sections work.
9640 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9641 else
9642 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_direct=yes
9646 hardcode_minus_L=yes
9647 hardcode_shlibpath_var=no
9650 sysv4)
9651 case $host_vendor in
9652 sni)
9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_direct=yes # is this really true???
9656 siemens)
9657 ## LD is ld it makes a PLAMLIB
9658 ## CC just makes a GrossModule.
9659 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9660 reload_cmds='$CC -r -o $output$reload_objs'
9661 hardcode_direct=no
9663 motorola)
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9667 esac
9668 runpath_var='LD_RUN_PATH'
9669 hardcode_shlibpath_var=no
9672 sysv4.3*)
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_shlibpath_var=no
9675 export_dynamic_flag_spec='-Bexport'
9678 sysv4*MP*)
9679 if test -d /usr/nec; then
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_shlibpath_var=no
9682 runpath_var=LD_RUN_PATH
9683 hardcode_runpath_var=yes
9684 ld_shlibs=yes
9688 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9689 no_undefined_flag='${wl}-z,text'
9690 archive_cmds_need_lc=no
9691 hardcode_shlibpath_var=no
9692 runpath_var='LD_RUN_PATH'
9694 if test "$GCC" = yes; then
9695 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 else
9698 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 sysv5* | sco3.2v5* | sco5v6*)
9704 # Note: We can NOT use -z defs as we might desire, because we do not
9705 # link with -lc, and that would cause any symbols used from libc to
9706 # always be unresolved, which means just about no library would
9707 # ever link correctly. If we're not using GNU ld we use -z text
9708 # though, which does catch some bad symbols but isn't as heavy-handed
9709 # as -z defs.
9710 no_undefined_flag='${wl}-z,text'
9711 allow_undefined_flag='${wl}-z,nodefs'
9712 archive_cmds_need_lc=no
9713 hardcode_shlibpath_var=no
9714 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9715 hardcode_libdir_separator=':'
9716 link_all_deplibs=yes
9717 export_dynamic_flag_spec='${wl}-Bexport'
9718 runpath_var='LD_RUN_PATH'
9720 if test "$GCC" = yes; then
9721 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 else
9724 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 uts4*)
9730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_libdir_flag_spec='-L$libdir'
9732 hardcode_shlibpath_var=no
9736 ld_shlibs=no
9738 esac
9740 if test x$host_vendor = xsni; then
9741 case $host in
9742 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9743 export_dynamic_flag_spec='${wl}-Blargedynsym'
9745 esac
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9750 $as_echo "$ld_shlibs" >&6; }
9751 test "$ld_shlibs" = no && can_build_shared=no
9753 with_gnu_ld=$with_gnu_ld
9770 # Do we need to explicitly link libc?
9772 case "x$archive_cmds_need_lc" in
9773 x|xyes)
9774 # Assume -lc should be added
9775 archive_cmds_need_lc=yes
9777 if test "$enable_shared" = yes && test "$GCC" = yes; then
9778 case $archive_cmds in
9779 *'~'*)
9780 # FIXME: we may have to deal with multi-command sequences.
9782 '$CC '*)
9783 # Test whether the compiler implicitly links with -lc since on some
9784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9785 # to ld, don't add -lc before -lgcc.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9788 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 $RM conftest*
9792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795 (eval $ac_compile) 2>&5
9796 ac_status=$?
9797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798 test $ac_status = 0; } 2>conftest.err; then
9799 soname=conftest
9800 lib=conftest
9801 libobjs=conftest.$ac_objext
9802 deplibs=
9803 wl=$lt_prog_compiler_wl
9804 pic_flag=$lt_prog_compiler_pic
9805 compiler_flags=-v
9806 linker_flags=-v
9807 verstring=
9808 output_objdir=.
9809 libname=conftest
9810 lt_save_allow_undefined_flag=$allow_undefined_flag
9811 allow_undefined_flag=
9812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9813 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9814 ac_status=$?
9815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9816 test $ac_status = 0; }
9817 then
9818 lt_cv_archive_cmds_need_lc=no
9819 else
9820 lt_cv_archive_cmds_need_lc=yes
9822 allow_undefined_flag=$lt_save_allow_undefined_flag
9823 else
9824 cat conftest.err 1>&5
9826 $RM conftest*
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9830 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9831 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9833 esac
9836 esac
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9995 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9997 if test "$GCC" = yes; then
9998 case $host_os in
9999 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10000 *) lt_awk_arg="/^libraries:/" ;;
10001 esac
10002 case $host_os in
10003 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10004 *) lt_sed_strip_eq="s,=/,/,g" ;;
10005 esac
10006 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10007 case $lt_search_path_spec in
10008 *\;*)
10009 # if the path contains ";" then we assume it to be the separator
10010 # otherwise default to the standard path separator (i.e. ":") - it is
10011 # assumed that no part of a normal pathname contains ";" but that should
10012 # okay in the real world where ";" in dirpaths is itself problematic.
10013 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10018 esac
10019 # Ok, now we have the path, separated by spaces, we can step through it
10020 # and add multilib dir if necessary.
10021 lt_tmp_lt_search_path_spec=
10022 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10023 for lt_sys_path in $lt_search_path_spec; do
10024 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10025 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10026 else
10027 test -d "$lt_sys_path" && \
10028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10030 done
10031 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10032 BEGIN {RS=" "; FS="/|\n";} {
10033 lt_foo="";
10034 lt_count=0;
10035 for (lt_i = NF; lt_i > 0; lt_i--) {
10036 if ($lt_i != "" && $lt_i != ".") {
10037 if ($lt_i == "..") {
10038 lt_count++;
10039 } else {
10040 if (lt_count == 0) {
10041 lt_foo="/" $lt_i lt_foo;
10042 } else {
10043 lt_count--;
10048 if (lt_foo != "") { lt_freq[lt_foo]++; }
10049 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10051 # AWK program above erroneously prepends '/' to C:/dos/paths
10052 # for these hosts.
10053 case $host_os in
10054 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10055 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10056 esac
10057 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10058 else
10059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10061 library_names_spec=
10062 libname_spec='lib$name'
10063 soname_spec=
10064 shrext_cmds=".so"
10065 postinstall_cmds=
10066 postuninstall_cmds=
10067 finish_cmds=
10068 finish_eval=
10069 shlibpath_var=
10070 shlibpath_overrides_runpath=unknown
10071 version_type=none
10072 dynamic_linker="$host_os ld.so"
10073 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10074 need_lib_prefix=unknown
10075 hardcode_into_libs=no
10077 # when you set need_version to no, make sure it does not cause -set_version
10078 # flags to be left without arguments
10079 need_version=unknown
10081 case $host_os in
10082 aix3*)
10083 version_type=linux
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10085 shlibpath_var=LIBPATH
10087 # AIX 3 has no versioning support, so we append a major version to the name.
10088 soname_spec='${libname}${release}${shared_ext}$major'
10091 aix[4-9]*)
10092 version_type=linux
10093 need_lib_prefix=no
10094 need_version=no
10095 hardcode_into_libs=yes
10096 if test "$host_cpu" = ia64; then
10097 # AIX 5 supports IA64
10098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 else
10101 # With GCC up to 2.95.x, collect2 would create an import file
10102 # for dependence libraries. The import file would start with
10103 # the line `#! .'. This would cause the generated library to
10104 # depend on `.', always an invalid library. This was fixed in
10105 # development snapshots of GCC prior to 3.0.
10106 case $host_os in
10107 aix4 | aix4.[01] | aix4.[01].*)
10108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10109 echo ' yes '
10110 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10112 else
10113 can_build_shared=no
10116 esac
10117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10118 # soname into executable. Probably we can add versioning support to
10119 # collect2, so additional links can be useful in future.
10120 if test "$aix_use_runtimelinking" = yes; then
10121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10122 # instead of lib<name>.a to let people know that these are not
10123 # typical AIX shared libraries.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 else
10126 # We preserve .a as extension for shared libraries through AIX4.2
10127 # and later when we are not doing run time linking.
10128 library_names_spec='${libname}${release}.a $libname.a'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10131 shlibpath_var=LIBPATH
10135 amigaos*)
10136 case $host_cpu in
10137 powerpc)
10138 # Since July 2007 AmigaOS4 officially supports .so libraries.
10139 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 m68k)
10143 library_names_spec='$libname.ixlibrary $libname.a'
10144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10145 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'
10147 esac
10150 beos*)
10151 library_names_spec='${libname}${shared_ext}'
10152 dynamic_linker="$host_os ld.so"
10153 shlibpath_var=LIBRARY_PATH
10156 bsdi[45]*)
10157 version_type=linux
10158 need_version=no
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10165 # the default ld.so.conf also contains /usr/contrib/lib and
10166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10167 # libtool to hard-code these into programs
10170 cygwin* | mingw* | pw32* | cegcc*)
10171 version_type=windows
10172 shrext_cmds=".dll"
10173 need_version=no
10174 need_lib_prefix=no
10176 case $GCC,$host_os in
10177 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10178 library_names_spec='$libname.dll.a'
10179 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10180 postinstall_cmds='base_file=`basename \${file}`~
10181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10182 dldir=$destdir/`dirname \$dlpath`~
10183 test -d \$dldir || mkdir -p \$dldir~
10184 $install_prog $dir/$dlname \$dldir/$dlname~
10185 chmod a+x \$dldir/$dlname~
10186 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10187 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10190 dlpath=$dir/\$dldll~
10191 $RM \$dlpath'
10192 shlibpath_overrides_runpath=yes
10194 case $host_os in
10195 cygwin*)
10196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10197 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10201 mingw* | cegcc*)
10202 # MinGW DLLs use traditional 'lib' prefix
10203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205 pw32*)
10206 # pw32 DLLs use 'pw' prefix rather than 'lib'
10207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209 esac
10213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10215 esac
10216 dynamic_linker='Win32 ld.exe'
10217 # FIXME: first we should search . and the directory the executable is in
10218 shlibpath_var=PATH
10221 darwin* | rhapsody*)
10222 dynamic_linker="$host_os dyld"
10223 version_type=darwin
10224 need_lib_prefix=no
10225 need_version=no
10226 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10227 soname_spec='${libname}${release}${major}$shared_ext'
10228 shlibpath_overrides_runpath=yes
10229 shlibpath_var=DYLD_LIBRARY_PATH
10230 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10232 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10236 dgux*)
10237 version_type=linux
10238 need_lib_prefix=no
10239 need_version=no
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10245 freebsd* | dragonfly*)
10246 # DragonFly does not have aout. When/if they implement a new
10247 # versioning mechanism, adjust this.
10248 if test -x /usr/bin/objformat; then
10249 objformat=`/usr/bin/objformat`
10250 else
10251 case $host_os in
10252 freebsd[23].*) objformat=aout ;;
10253 *) objformat=elf ;;
10254 esac
10256 version_type=freebsd-$objformat
10257 case $version_type in
10258 freebsd-elf*)
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10260 need_version=no
10261 need_lib_prefix=no
10263 freebsd-*)
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10265 need_version=yes
10267 esac
10268 shlibpath_var=LD_LIBRARY_PATH
10269 case $host_os in
10270 freebsd2.*)
10271 shlibpath_overrides_runpath=yes
10273 freebsd3.[01]* | freebsdelf3.[01]*)
10274 shlibpath_overrides_runpath=yes
10275 hardcode_into_libs=yes
10277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10279 shlibpath_overrides_runpath=no
10280 hardcode_into_libs=yes
10282 *) # from 4.6 on, and DragonFly
10283 shlibpath_overrides_runpath=yes
10284 hardcode_into_libs=yes
10286 esac
10289 gnu*)
10290 version_type=linux
10291 need_lib_prefix=no
10292 need_version=no
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 hardcode_into_libs=yes
10299 haiku*)
10300 version_type=linux
10301 need_lib_prefix=no
10302 need_version=no
10303 dynamic_linker="$host_os runtime_loader"
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10308 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10309 hardcode_into_libs=yes
10312 hpux9* | hpux10* | hpux11*)
10313 # Give a soname corresponding to the major version so that dld.sl refuses to
10314 # link against other versions.
10315 version_type=sunos
10316 need_lib_prefix=no
10317 need_version=no
10318 case $host_cpu in
10319 ia64*)
10320 shrext_cmds='.so'
10321 hardcode_into_libs=yes
10322 dynamic_linker="$host_os dld.so"
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 if test "X$HPUX_IA64_MODE" = X32; then
10328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10329 else
10330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10334 hppa*64*)
10335 shrext_cmds='.sl'
10336 hardcode_into_libs=yes
10337 dynamic_linker="$host_os dld.sl"
10338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10346 shrext_cmds='.sl'
10347 dynamic_linker="$host_os dld.sl"
10348 shlibpath_var=SHLIB_PATH
10349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10353 esac
10354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10355 postinstall_cmds='chmod 555 $lib'
10356 # or fails outright, so override atomically:
10357 install_override_mode=555
10360 interix[3-9]*)
10361 version_type=linux
10362 need_lib_prefix=no
10363 need_version=no
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=no
10369 hardcode_into_libs=yes
10372 irix5* | irix6* | nonstopux*)
10373 case $host_os in
10374 nonstopux*) version_type=nonstopux ;;
10376 if test "$lt_cv_prog_gnu_ld" = yes; then
10377 version_type=linux
10378 else
10379 version_type=irix
10380 fi ;;
10381 esac
10382 need_lib_prefix=no
10383 need_version=no
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10386 case $host_os in
10387 irix5* | nonstopux*)
10388 libsuff= shlibsuff=
10391 case $LD in # libtool.m4 will add one of these switches to LD
10392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10393 libsuff= shlibsuff= libmagic=32-bit;;
10394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10395 libsuff=32 shlibsuff=N32 libmagic=N32;;
10396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10398 *) libsuff= shlibsuff= libmagic=never-match;;
10399 esac
10401 esac
10402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10403 shlibpath_overrides_runpath=no
10404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10406 hardcode_into_libs=yes
10409 # No shared lib support for Linux oldld, aout, or coff.
10410 linux*oldld* | linux*aout* | linux*coff*)
10411 dynamic_linker=no
10414 # This must be Linux ELF.
10415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10416 version_type=linux
10417 need_lib_prefix=no
10418 need_version=no
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=no
10425 # Some binutils ld are patched to set DT_RUNPATH
10426 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 lt_cv_shlibpath_overrides_runpath=no
10430 save_LDFLAGS=$LDFLAGS
10431 save_libdir=$libdir
10432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10438 main ()
10442 return 0;
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10447 lt_cv_shlibpath_overrides_runpath=yes
10450 rm -f core conftest.err conftest.$ac_objext \
10451 conftest$ac_exeext conftest.$ac_ext
10452 LDFLAGS=$save_LDFLAGS
10453 libdir=$save_libdir
10457 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10459 # This implies no fast_install, which is unacceptable.
10460 # Some rework will be needed to allow for fast_install
10461 # before this can be enabled.
10462 hardcode_into_libs=yes
10464 # Append ld.so.conf contents to the search path
10465 if test -f /etc/ld.so.conf; then
10466 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' ' '`
10467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10470 # We used to test for /lib/ld.so.1 and disable shared libraries on
10471 # powerpc, because MkLinux only supported shared libraries with the
10472 # GNU dynamic linker. Since this was broken with cross compilers,
10473 # most powerpc-linux boxes support dynamic linking these days and
10474 # people can always --disable-shared, the test was removed, and we
10475 # assume the GNU/Linux dynamic linker is in use.
10476 dynamic_linker='GNU/Linux ld.so'
10479 netbsd*)
10480 version_type=sunos
10481 need_lib_prefix=no
10482 need_version=no
10483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10486 dynamic_linker='NetBSD (a.out) ld.so'
10487 else
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 dynamic_linker='NetBSD ld.elf_so'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=yes
10494 hardcode_into_libs=yes
10497 newsos6)
10498 version_type=linux
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=yes
10504 *nto* | *qnx*)
10505 version_type=qnx
10506 need_lib_prefix=no
10507 need_version=no
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=no
10512 hardcode_into_libs=yes
10513 dynamic_linker='ldqnx.so'
10516 openbsd*)
10517 version_type=sunos
10518 sys_lib_dlsearch_path_spec="/usr/lib"
10519 need_lib_prefix=no
10520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10521 case $host_os in
10522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10523 *) need_version=no ;;
10524 esac
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10529 case $host_os in
10530 openbsd2.[89] | openbsd2.[89].*)
10531 shlibpath_overrides_runpath=no
10534 shlibpath_overrides_runpath=yes
10536 esac
10537 else
10538 shlibpath_overrides_runpath=yes
10542 os2*)
10543 libname_spec='$name'
10544 shrext_cmds=".dll"
10545 need_lib_prefix=no
10546 library_names_spec='$libname${shared_ext} $libname.a'
10547 dynamic_linker='OS/2 ld.exe'
10548 shlibpath_var=LIBPATH
10551 osf3* | osf4* | osf5*)
10552 version_type=osf
10553 need_lib_prefix=no
10554 need_version=no
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10562 rdos*)
10563 dynamic_linker=no
10566 solaris*)
10567 version_type=linux
10568 need_lib_prefix=no
10569 need_version=no
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=yes
10574 hardcode_into_libs=yes
10575 # ldd complains unless libraries are executable
10576 postinstall_cmds='chmod +x $lib'
10579 sunos4*)
10580 version_type=sunos
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 shlibpath_overrides_runpath=yes
10585 if test "$with_gnu_ld" = yes; then
10586 need_lib_prefix=no
10588 need_version=yes
10591 sysv4 | sysv4.3*)
10592 version_type=linux
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 case $host_vendor in
10597 sni)
10598 shlibpath_overrides_runpath=no
10599 need_lib_prefix=no
10600 runpath_var=LD_RUN_PATH
10602 siemens)
10603 need_lib_prefix=no
10605 motorola)
10606 need_lib_prefix=no
10607 need_version=no
10608 shlibpath_overrides_runpath=no
10609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10611 esac
10614 sysv4*MP*)
10615 if test -d /usr/nec ;then
10616 version_type=linux
10617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10618 soname_spec='$libname${shared_ext}.$major'
10619 shlibpath_var=LD_LIBRARY_PATH
10623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10624 version_type=freebsd-elf
10625 need_lib_prefix=no
10626 need_version=no
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10632 if test "$with_gnu_ld" = yes; then
10633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10634 else
10635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10636 case $host_os in
10637 sco3.2v5*)
10638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10640 esac
10642 sys_lib_dlsearch_path_spec='/usr/lib'
10645 tpf*)
10646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10647 version_type=linux
10648 need_lib_prefix=no
10649 need_version=no
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=no
10653 hardcode_into_libs=yes
10656 uts4*)
10657 version_type=linux
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10664 dynamic_linker=no
10666 esac
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10668 $as_echo "$dynamic_linker" >&6; }
10669 test "$dynamic_linker" = no && can_build_shared=no
10671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10672 if test "$GCC" = yes; then
10673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10676 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10677 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10776 hardcode_action=
10777 if test -n "$hardcode_libdir_flag_spec" ||
10778 test -n "$runpath_var" ||
10779 test "X$hardcode_automatic" = "Xyes" ; then
10781 # We can hardcode non-existent directories.
10782 if test "$hardcode_direct" != no &&
10783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10784 # have to relink, otherwise we might link with an installed library
10785 # when we should be linking with a yet-to-be-installed one
10786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10787 test "$hardcode_minus_L" != no; then
10788 # Linking always hardcodes the temporary library directory.
10789 hardcode_action=relink
10790 else
10791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10792 hardcode_action=immediate
10794 else
10795 # We cannot hardcode anything, or else we can only hardcode existing
10796 # directories.
10797 hardcode_action=unsupported
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10800 $as_echo "$hardcode_action" >&6; }
10802 if test "$hardcode_action" = relink ||
10803 test "$inherit_rpath" = yes; then
10804 # Fast installation is not supported
10805 enable_fast_install=no
10806 elif test "$shlibpath_overrides_runpath" = yes ||
10807 test "$enable_shared" = no; then
10808 # Fast installation is not necessary
10809 enable_fast_install=needless
10817 if test "x$enable_dlopen" != xyes; then
10818 enable_dlopen=unknown
10819 enable_dlopen_self=unknown
10820 enable_dlopen_self_static=unknown
10821 else
10822 lt_cv_dlopen=no
10823 lt_cv_dlopen_libs=
10825 case $host_os in
10826 beos*)
10827 lt_cv_dlopen="load_add_on"
10828 lt_cv_dlopen_libs=
10829 lt_cv_dlopen_self=yes
10832 mingw* | pw32* | cegcc*)
10833 lt_cv_dlopen="LoadLibrary"
10834 lt_cv_dlopen_libs=
10837 cygwin*)
10838 lt_cv_dlopen="dlopen"
10839 lt_cv_dlopen_libs=
10842 darwin*)
10843 # if libdl is installed we need to link against it
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10845 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ldl $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char dlopen ();
10862 main ()
10864 return dlopen ();
10866 return 0;
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_dl_dlopen=yes
10871 else
10872 ac_cv_lib_dl_dlopen=no
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10880 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10882 else
10884 lt_cv_dlopen="dyld"
10885 lt_cv_dlopen_libs=
10886 lt_cv_dlopen_self=yes
10893 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10894 if test "x$ac_cv_func_shl_load" = x""yes; then :
10895 lt_cv_dlopen="shl_load"
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10898 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10899 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-ldld $LIBS"
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char shl_load ();
10915 main ()
10917 return shl_load ();
10919 return 0;
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923 ac_cv_lib_dld_shl_load=yes
10924 else
10925 ac_cv_lib_dld_shl_load=no
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10932 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10933 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10934 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10935 else
10936 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10937 if test "x$ac_cv_func_dlopen" = x""yes; then :
10938 lt_cv_dlopen="dlopen"
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-ldl $LIBS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char dlopen ();
10958 main ()
10960 return dlopen ();
10962 return 0;
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_lib_dl_dlopen=yes
10967 else
10968 ac_cv_lib_dl_dlopen=no
10970 rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10975 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10976 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10980 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10981 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lsvld $LIBS"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10989 /* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 char dlopen ();
10997 main ()
10999 return dlopen ();
11001 return 0;
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 ac_cv_lib_svld_dlopen=yes
11006 else
11007 ac_cv_lib_svld_dlopen=no
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11014 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11015 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11019 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11020 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldld $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char dld_link ();
11036 main ()
11038 return dld_link ();
11040 return 0;
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_dld_dld_link=yes
11045 else
11046 ac_cv_lib_dld_dld_link=no
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11053 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11054 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11055 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11074 esac
11076 if test "x$lt_cv_dlopen" != xno; then
11077 enable_dlopen=yes
11078 else
11079 enable_dlopen=no
11082 case $lt_cv_dlopen in
11083 dlopen)
11084 save_CPPFLAGS="$CPPFLAGS"
11085 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11087 save_LDFLAGS="$LDFLAGS"
11088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11090 save_LIBS="$LIBS"
11091 LIBS="$lt_cv_dlopen_libs $LIBS"
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11094 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11095 if test "${lt_cv_dlopen_self+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 if test "$cross_compiling" = yes; then :
11099 lt_cv_dlopen_self=cross
11100 else
11101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11102 lt_status=$lt_dlunknown
11103 cat > conftest.$ac_ext <<_LT_EOF
11104 #line 11104 "configure"
11105 #include "confdefs.h"
11107 #if HAVE_DLFCN_H
11108 #include <dlfcn.h>
11109 #endif
11111 #include <stdio.h>
11113 #ifdef RTLD_GLOBAL
11114 # define LT_DLGLOBAL RTLD_GLOBAL
11115 #else
11116 # ifdef DL_GLOBAL
11117 # define LT_DLGLOBAL DL_GLOBAL
11118 # else
11119 # define LT_DLGLOBAL 0
11120 # endif
11121 #endif
11123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11124 find out it does not work in some platform. */
11125 #ifndef LT_DLLAZY_OR_NOW
11126 # ifdef RTLD_LAZY
11127 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11128 # else
11129 # ifdef DL_LAZY
11130 # define LT_DLLAZY_OR_NOW DL_LAZY
11131 # else
11132 # ifdef RTLD_NOW
11133 # define LT_DLLAZY_OR_NOW RTLD_NOW
11134 # else
11135 # ifdef DL_NOW
11136 # define LT_DLLAZY_OR_NOW DL_NOW
11137 # else
11138 # define LT_DLLAZY_OR_NOW 0
11139 # endif
11140 # endif
11141 # endif
11142 # endif
11143 #endif
11145 /* When -fvisbility=hidden is used, assume the code has been annotated
11146 correspondingly for the symbols needed. */
11147 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11148 void fnord () __attribute__((visibility("default")));
11149 #endif
11151 void fnord () { int i=42; }
11152 int main ()
11154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11155 int status = $lt_dlunknown;
11157 if (self)
11159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11160 else
11162 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11163 else puts (dlerror ());
11165 /* dlclose (self); */
11167 else
11168 puts (dlerror ());
11170 return status;
11172 _LT_EOF
11173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11174 (eval $ac_link) 2>&5
11175 ac_status=$?
11176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11177 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11178 (./conftest; exit; ) >&5 2>/dev/null
11179 lt_status=$?
11180 case x$lt_status in
11181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11183 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11184 esac
11185 else :
11186 # compilation failed
11187 lt_cv_dlopen_self=no
11190 rm -fr conftest*
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11195 $as_echo "$lt_cv_dlopen_self" >&6; }
11197 if test "x$lt_cv_dlopen_self" = xyes; then
11198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11200 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11201 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 if test "$cross_compiling" = yes; then :
11205 lt_cv_dlopen_self_static=cross
11206 else
11207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11208 lt_status=$lt_dlunknown
11209 cat > conftest.$ac_ext <<_LT_EOF
11210 #line 11210 "configure"
11211 #include "confdefs.h"
11213 #if HAVE_DLFCN_H
11214 #include <dlfcn.h>
11215 #endif
11217 #include <stdio.h>
11219 #ifdef RTLD_GLOBAL
11220 # define LT_DLGLOBAL RTLD_GLOBAL
11221 #else
11222 # ifdef DL_GLOBAL
11223 # define LT_DLGLOBAL DL_GLOBAL
11224 # else
11225 # define LT_DLGLOBAL 0
11226 # endif
11227 #endif
11229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11230 find out it does not work in some platform. */
11231 #ifndef LT_DLLAZY_OR_NOW
11232 # ifdef RTLD_LAZY
11233 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11234 # else
11235 # ifdef DL_LAZY
11236 # define LT_DLLAZY_OR_NOW DL_LAZY
11237 # else
11238 # ifdef RTLD_NOW
11239 # define LT_DLLAZY_OR_NOW RTLD_NOW
11240 # else
11241 # ifdef DL_NOW
11242 # define LT_DLLAZY_OR_NOW DL_NOW
11243 # else
11244 # define LT_DLLAZY_OR_NOW 0
11245 # endif
11246 # endif
11247 # endif
11248 # endif
11249 #endif
11251 /* When -fvisbility=hidden is used, assume the code has been annotated
11252 correspondingly for the symbols needed. */
11253 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11254 void fnord () __attribute__((visibility("default")));
11255 #endif
11257 void fnord () { int i=42; }
11258 int main ()
11260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11261 int status = $lt_dlunknown;
11263 if (self)
11265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11266 else
11268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11269 else puts (dlerror ());
11271 /* dlclose (self); */
11273 else
11274 puts (dlerror ());
11276 return status;
11278 _LT_EOF
11279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11280 (eval $ac_link) 2>&5
11281 ac_status=$?
11282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11284 (./conftest; exit; ) >&5 2>/dev/null
11285 lt_status=$?
11286 case x$lt_status in
11287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11290 esac
11291 else :
11292 # compilation failed
11293 lt_cv_dlopen_self_static=no
11296 rm -fr conftest*
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11301 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11304 CPPFLAGS="$save_CPPFLAGS"
11305 LDFLAGS="$save_LDFLAGS"
11306 LIBS="$save_LIBS"
11308 esac
11310 case $lt_cv_dlopen_self in
11311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11312 *) enable_dlopen_self=unknown ;;
11313 esac
11315 case $lt_cv_dlopen_self_static in
11316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11317 *) enable_dlopen_self_static=unknown ;;
11318 esac
11337 striplib=
11338 old_striplib=
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11340 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11341 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11345 $as_echo "yes" >&6; }
11346 else
11347 # FIXME - insert some real tests, host_os isn't really good enough
11348 case $host_os in
11349 darwin*)
11350 if test -n "$STRIP" ; then
11351 striplib="$STRIP -x"
11352 old_striplib="$STRIP -S"
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11354 $as_echo "yes" >&6; }
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11364 esac
11378 # Report which library types will actually be built
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11380 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11382 $as_echo "$can_build_shared" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11385 $as_echo_n "checking whether to build shared libraries... " >&6; }
11386 test "$can_build_shared" = "no" && enable_shared=no
11388 # On AIX, shared libraries and static libraries use the same namespace, and
11389 # are all built from PIC.
11390 case $host_os in
11391 aix3*)
11392 test "$enable_shared" = yes && enable_static=no
11393 if test -n "$RANLIB"; then
11394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11395 postinstall_cmds='$RANLIB $lib'
11399 aix[4-9]*)
11400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11401 test "$enable_shared" = yes && enable_static=no
11404 esac
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11406 $as_echo "$enable_shared" >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11409 $as_echo_n "checking whether to build static libraries... " >&6; }
11410 # Make sure either enable_shared or enable_static is yes.
11411 test "$enable_shared" = yes || enable_static=yes
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11413 $as_echo "$enable_static" >&6; }
11419 ac_ext=c
11420 ac_cpp='$CPP $CPPFLAGS'
11421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11425 CC="$lt_save_CC"
11439 # Source file extension for Go test sources.
11440 ac_ext=go
11442 # Object file extension for compiled Go test sources.
11443 objext=o
11444 objext_GO=$objext
11446 # Code to be used in simple compile tests
11447 lt_simple_compile_test_code="package main; func main() { }"
11449 # Code to be used in simple link tests
11450 lt_simple_link_test_code='package main; func main() { }'
11452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11459 # If no C compiler was specified, use CC.
11460 LTCC=${LTCC-"$CC"}
11462 # If no C compiler flags were specified, use CFLAGS.
11463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11465 # Allow CC to be a program name with arguments.
11466 compiler=$CC
11469 # save warnings/boilerplate of simple test code
11470 ac_outfile=conftest.$ac_objext
11471 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11473 _lt_compiler_boilerplate=`cat conftest.err`
11474 $RM conftest*
11476 ac_outfile=conftest.$ac_objext
11477 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11479 _lt_linker_boilerplate=`cat conftest.err`
11480 $RM -r conftest*
11483 # Allow CC to be a program name with arguments.
11484 lt_save_CC="$CC"
11485 lt_save_GCC="$GCC"
11486 GCC=yes
11487 CC=${GOC-"gccgo"}
11488 compiler=$CC
11489 compiler_GO=$CC
11490 LD_GO="$LD"
11491 for cc_temp in $compiler""; do
11492 case $cc_temp in
11493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11495 \-*) ;;
11496 *) break;;
11497 esac
11498 done
11499 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11502 # Go did not exist at the time GCC didn't implicitly link libc in.
11503 archive_cmds_need_lc_GO=no
11505 old_archive_cmds_GO=$old_archive_cmds
11507 ## CAVEAT EMPTOR:
11508 ## There is no encapsulation within the following macros, do not change
11509 ## the running order or otherwise move them around unless you know exactly
11510 ## what you are doing...
11511 if test -n "$compiler"; then
11513 lt_prog_compiler_no_builtin_flag_GO=
11515 if test "$GCC" = yes; then
11516 case $cc_basename in
11517 nvcc*)
11518 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11520 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11521 esac
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11524 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 lt_cv_prog_compiler_rtti_exceptions=no
11529 ac_outfile=conftest.$ac_objext
11530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11531 lt_compiler_flag="-fno-rtti -fno-exceptions"
11532 # Insert the option either (1) after the last *FLAGS variable, or
11533 # (2) before a word containing "conftest.", or (3) at the end.
11534 # Note that $ac_compile itself does not contain backslashes and begins
11535 # with a dollar sign (not a hyphen), so the echo should work correctly.
11536 # The option is referenced via a variable to avoid confusing sed.
11537 lt_compile=`echo "$ac_compile" | $SED \
11538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11540 -e 's:$: $lt_compiler_flag:'`
11541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11542 (eval "$lt_compile" 2>conftest.err)
11543 ac_status=$?
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 if (exit $ac_status) && test -s "$ac_outfile"; then
11547 # The compiler can only warn and ignore the option if not recognized
11548 # So say no if there are warnings other than the usual output.
11549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11552 lt_cv_prog_compiler_rtti_exceptions=yes
11555 $RM conftest*
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11559 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11561 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11562 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11563 else
11571 lt_prog_compiler_wl_GO=
11572 lt_prog_compiler_pic_GO=
11573 lt_prog_compiler_static_GO=
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11576 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11578 if test "$GCC" = yes; then
11579 lt_prog_compiler_wl_GO='-Wl,'
11580 lt_prog_compiler_static_GO='-static'
11582 case $host_os in
11583 aix*)
11584 # All AIX code is PIC.
11585 if test "$host_cpu" = ia64; then
11586 # AIX 5 now supports IA64 processor
11587 lt_prog_compiler_static_GO='-Bstatic'
11589 lt_prog_compiler_pic_GO='-fPIC'
11592 amigaos*)
11593 case $host_cpu in
11594 powerpc)
11595 # see comment about AmigaOS4 .so support
11596 lt_prog_compiler_pic_GO='-fPIC'
11598 m68k)
11599 # FIXME: we need at least 68020 code to build shared libraries, but
11600 # adding the `-m68020' flag to GCC prevents building anything better,
11601 # like `-m68040'.
11602 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11604 esac
11607 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11608 # PIC is the default for these OSes.
11611 mingw* | cygwin* | pw32* | os2* | cegcc*)
11612 # This hack is so that the source file can tell whether it is being
11613 # built for inclusion in a dll (and should export symbols for example).
11614 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11615 # (--disable-auto-import) libraries
11616 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11619 darwin* | rhapsody*)
11620 # PIC is the default on this platform
11621 # Common symbols not allowed in MH_DYLIB files
11622 lt_prog_compiler_pic_GO='-fno-common'
11625 haiku*)
11626 # PIC is the default for Haiku.
11627 # The "-static" flag exists, but is broken.
11628 lt_prog_compiler_static_GO=
11631 hpux*)
11632 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11633 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11634 # sets the default TLS model and affects inlining.
11635 case $host_cpu in
11636 hppa*64*)
11637 # +Z the default
11640 lt_prog_compiler_pic_GO='-fPIC'
11642 esac
11645 interix[3-9]*)
11646 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11647 # Instead, we relocate shared libraries at runtime.
11650 msdosdjgpp*)
11651 # Just because we use GCC doesn't mean we suddenly get shared libraries
11652 # on systems that don't support them.
11653 lt_prog_compiler_can_build_shared_GO=no
11654 enable_shared=no
11657 *nto* | *qnx*)
11658 # QNX uses GNU C++, but need to define -shared option too, otherwise
11659 # it will coredump.
11660 lt_prog_compiler_pic_GO='-fPIC -shared'
11663 sysv4*MP*)
11664 if test -d /usr/nec; then
11665 lt_prog_compiler_pic_GO=-Kconform_pic
11670 lt_prog_compiler_pic_GO='-fPIC'
11672 esac
11674 case $cc_basename in
11675 nvcc*) # Cuda Compiler Driver 2.2
11676 lt_prog_compiler_wl_GO='-Xlinker '
11677 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11679 esac
11680 else
11681 # PORTME Check for flag to pass linker flags through the system compiler.
11682 case $host_os in
11683 aix*)
11684 lt_prog_compiler_wl_GO='-Wl,'
11685 if test "$host_cpu" = ia64; then
11686 # AIX 5 now supports IA64 processor
11687 lt_prog_compiler_static_GO='-Bstatic'
11688 else
11689 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11693 mingw* | cygwin* | pw32* | os2* | cegcc*)
11694 # This hack is so that the source file can tell whether it is being
11695 # built for inclusion in a dll (and should export symbols for example).
11696 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11699 hpux9* | hpux10* | hpux11*)
11700 lt_prog_compiler_wl_GO='-Wl,'
11701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11702 # not for PA HP-UX.
11703 case $host_cpu in
11704 hppa*64*|ia64*)
11705 # +Z the default
11708 lt_prog_compiler_pic_GO='+Z'
11710 esac
11711 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11712 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11715 irix5* | irix6* | nonstopux*)
11716 lt_prog_compiler_wl_GO='-Wl,'
11717 # PIC (with -KPIC) is the default.
11718 lt_prog_compiler_static_GO='-non_shared'
11721 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11722 case $cc_basename in
11723 # old Intel for x86_64 which still supported -KPIC.
11724 ecc*)
11725 lt_prog_compiler_wl_GO='-Wl,'
11726 lt_prog_compiler_pic_GO='-KPIC'
11727 lt_prog_compiler_static_GO='-static'
11729 # icc used to be incompatible with GCC.
11730 # ICC 10 doesn't accept -KPIC any more.
11731 icc* | ifort*)
11732 lt_prog_compiler_wl_GO='-Wl,'
11733 lt_prog_compiler_pic_GO='-fPIC'
11734 lt_prog_compiler_static_GO='-static'
11736 # Lahey Fortran 8.1.
11737 lf95*)
11738 lt_prog_compiler_wl_GO='-Wl,'
11739 lt_prog_compiler_pic_GO='--shared'
11740 lt_prog_compiler_static_GO='--static'
11742 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11743 # Portland Group compilers (*not* the Pentium gcc compiler,
11744 # which looks to be a dead project)
11745 lt_prog_compiler_wl_GO='-Wl,'
11746 lt_prog_compiler_pic_GO='-fpic'
11747 lt_prog_compiler_static_GO='-Bstatic'
11749 ccc*)
11750 lt_prog_compiler_wl_GO='-Wl,'
11751 # All Alpha code is PIC.
11752 lt_prog_compiler_static_GO='-non_shared'
11754 xl* | bgxl* | bgf* | mpixl*)
11755 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11756 lt_prog_compiler_wl_GO='-Wl,'
11757 lt_prog_compiler_pic_GO='-qpic'
11758 lt_prog_compiler_static_GO='-qstaticlink'
11761 case `$CC -V 2>&1 | sed 5q` in
11762 *Sun\ F* | *Sun*Fortran*)
11763 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11764 lt_prog_compiler_pic_GO='-KPIC'
11765 lt_prog_compiler_static_GO='-Bstatic'
11766 lt_prog_compiler_wl_GO=''
11768 *Sun\ C*)
11769 # Sun C 5.9
11770 lt_prog_compiler_pic_GO='-KPIC'
11771 lt_prog_compiler_static_GO='-Bstatic'
11772 lt_prog_compiler_wl_GO='-Wl,'
11774 esac
11776 esac
11779 newsos6)
11780 lt_prog_compiler_pic_GO='-KPIC'
11781 lt_prog_compiler_static_GO='-Bstatic'
11784 *nto* | *qnx*)
11785 # QNX uses GNU C++, but need to define -shared option too, otherwise
11786 # it will coredump.
11787 lt_prog_compiler_pic_GO='-fPIC -shared'
11790 osf3* | osf4* | osf5*)
11791 lt_prog_compiler_wl_GO='-Wl,'
11792 # All OSF/1 code is PIC.
11793 lt_prog_compiler_static_GO='-non_shared'
11796 rdos*)
11797 lt_prog_compiler_static_GO='-non_shared'
11800 solaris*)
11801 lt_prog_compiler_pic_GO='-KPIC'
11802 lt_prog_compiler_static_GO='-Bstatic'
11803 case $cc_basename in
11804 f77* | f90* | f95*)
11805 lt_prog_compiler_wl_GO='-Qoption ld ';;
11807 lt_prog_compiler_wl_GO='-Wl,';;
11808 esac
11811 sunos4*)
11812 lt_prog_compiler_wl_GO='-Qoption ld '
11813 lt_prog_compiler_pic_GO='-PIC'
11814 lt_prog_compiler_static_GO='-Bstatic'
11817 sysv4 | sysv4.2uw2* | sysv4.3*)
11818 lt_prog_compiler_wl_GO='-Wl,'
11819 lt_prog_compiler_pic_GO='-KPIC'
11820 lt_prog_compiler_static_GO='-Bstatic'
11823 sysv4*MP*)
11824 if test -d /usr/nec ;then
11825 lt_prog_compiler_pic_GO='-Kconform_pic'
11826 lt_prog_compiler_static_GO='-Bstatic'
11830 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11831 lt_prog_compiler_wl_GO='-Wl,'
11832 lt_prog_compiler_pic_GO='-KPIC'
11833 lt_prog_compiler_static_GO='-Bstatic'
11836 unicos*)
11837 lt_prog_compiler_wl_GO='-Wl,'
11838 lt_prog_compiler_can_build_shared_GO=no
11841 uts4*)
11842 lt_prog_compiler_pic_GO='-pic'
11843 lt_prog_compiler_static_GO='-Bstatic'
11847 lt_prog_compiler_can_build_shared_GO=no
11849 esac
11852 case $host_os in
11853 # For platforms which do not support PIC, -DPIC is meaningless:
11854 *djgpp*)
11855 lt_prog_compiler_pic_GO=
11858 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11860 esac
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11862 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11867 # Check to make sure the PIC flag actually works.
11869 if test -n "$lt_prog_compiler_pic_GO"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11871 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11872 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 lt_cv_prog_compiler_pic_works_GO=no
11876 ac_outfile=conftest.$ac_objext
11877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11878 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11879 # Insert the option either (1) after the last *FLAGS variable, or
11880 # (2) before a word containing "conftest.", or (3) at the end.
11881 # Note that $ac_compile itself does not contain backslashes and begins
11882 # with a dollar sign (not a hyphen), so the echo should work correctly.
11883 # The option is referenced via a variable to avoid confusing sed.
11884 lt_compile=`echo "$ac_compile" | $SED \
11885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11887 -e 's:$: $lt_compiler_flag:'`
11888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11889 (eval "$lt_compile" 2>conftest.err)
11890 ac_status=$?
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 if (exit $ac_status) && test -s "$ac_outfile"; then
11894 # The compiler can only warn and ignore the option if not recognized
11895 # So say no if there are warnings other than the usual output.
11896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11899 lt_cv_prog_compiler_pic_works_GO=yes
11902 $RM conftest*
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11906 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11908 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11909 case $lt_prog_compiler_pic_GO in
11910 "" | " "*) ;;
11911 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11912 esac
11913 else
11914 lt_prog_compiler_pic_GO=
11915 lt_prog_compiler_can_build_shared_GO=no
11923 # Check to make sure the static flag actually works.
11925 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11927 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11928 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 lt_cv_prog_compiler_static_works_GO=no
11932 save_LDFLAGS="$LDFLAGS"
11933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11934 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11936 # The linker can only warn and ignore the option if not recognized
11937 # So say no if there are warnings
11938 if test -s conftest.err; then
11939 # Append any errors to the config.log.
11940 cat conftest.err 1>&5
11941 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11943 if diff conftest.exp conftest.er2 >/dev/null; then
11944 lt_cv_prog_compiler_static_works_GO=yes
11946 else
11947 lt_cv_prog_compiler_static_works_GO=yes
11950 $RM -r conftest*
11951 LDFLAGS="$save_LDFLAGS"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11955 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11957 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11959 else
11960 lt_prog_compiler_static_GO=
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11968 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 lt_cv_prog_compiler_c_o_GO=no
11972 $RM -r conftest 2>/dev/null
11973 mkdir conftest
11974 cd conftest
11975 mkdir out
11976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11978 lt_compiler_flag="-o out/conftest2.$ac_objext"
11979 # Insert the option either (1) after the last *FLAGS variable, or
11980 # (2) before a word containing "conftest.", or (3) at the end.
11981 # Note that $ac_compile itself does not contain backslashes and begins
11982 # with a dollar sign (not a hyphen), so the echo should work correctly.
11983 lt_compile=`echo "$ac_compile" | $SED \
11984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11986 -e 's:$: $lt_compiler_flag:'`
11987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11988 (eval "$lt_compile" 2>out/conftest.err)
11989 ac_status=$?
11990 cat out/conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11993 then
11994 # The compiler can only warn and ignore the option if not recognized
11995 # So say no if there are warnings
11996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11999 lt_cv_prog_compiler_c_o_GO=yes
12002 chmod u+w . 2>&5
12003 $RM conftest*
12004 # SGI C++ compiler will create directory out/ii_files/ for
12005 # template instantiation
12006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12007 $RM out/* && rmdir out
12008 cd ..
12009 $RM -r conftest
12010 $RM conftest*
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12014 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12019 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12020 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 lt_cv_prog_compiler_c_o_GO=no
12024 $RM -r conftest 2>/dev/null
12025 mkdir conftest
12026 cd conftest
12027 mkdir out
12028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12030 lt_compiler_flag="-o out/conftest2.$ac_objext"
12031 # Insert the option either (1) after the last *FLAGS variable, or
12032 # (2) before a word containing "conftest.", or (3) at the end.
12033 # Note that $ac_compile itself does not contain backslashes and begins
12034 # with a dollar sign (not a hyphen), so the echo should work correctly.
12035 lt_compile=`echo "$ac_compile" | $SED \
12036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12038 -e 's:$: $lt_compiler_flag:'`
12039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12040 (eval "$lt_compile" 2>out/conftest.err)
12041 ac_status=$?
12042 cat out/conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12045 then
12046 # The compiler can only warn and ignore the option if not recognized
12047 # So say no if there are warnings
12048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12051 lt_cv_prog_compiler_c_o_GO=yes
12054 chmod u+w . 2>&5
12055 $RM conftest*
12056 # SGI C++ compiler will create directory out/ii_files/ for
12057 # template instantiation
12058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12059 $RM out/* && rmdir out
12060 cd ..
12061 $RM -r conftest
12062 $RM conftest*
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12066 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12071 hard_links="nottested"
12072 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12073 # do not overwrite the value of need_locks provided by the user
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12075 $as_echo_n "checking if we can lock with hard links... " >&6; }
12076 hard_links=yes
12077 $RM conftest*
12078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12079 touch conftest.a
12080 ln conftest.a conftest.b 2>&5 || hard_links=no
12081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12083 $as_echo "$hard_links" >&6; }
12084 if test "$hard_links" = no; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12086 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12087 need_locks=warn
12089 else
12090 need_locks=no
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12098 runpath_var=
12099 allow_undefined_flag_GO=
12100 always_export_symbols_GO=no
12101 archive_cmds_GO=
12102 archive_expsym_cmds_GO=
12103 compiler_needs_object_GO=no
12104 enable_shared_with_static_runtimes_GO=no
12105 export_dynamic_flag_spec_GO=
12106 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12107 hardcode_automatic_GO=no
12108 hardcode_direct_GO=no
12109 hardcode_direct_absolute_GO=no
12110 hardcode_libdir_flag_spec_GO=
12111 hardcode_libdir_flag_spec_ld_GO=
12112 hardcode_libdir_separator_GO=
12113 hardcode_minus_L_GO=no
12114 hardcode_shlibpath_var_GO=unsupported
12115 inherit_rpath_GO=no
12116 link_all_deplibs_GO=unknown
12117 module_cmds_GO=
12118 module_expsym_cmds_GO=
12119 old_archive_from_new_cmds_GO=
12120 old_archive_from_expsyms_cmds_GO=
12121 thread_safe_flag_spec_GO=
12122 whole_archive_flag_spec_GO=
12123 # include_expsyms should be a list of space-separated symbols to be *always*
12124 # included in the symbol list
12125 include_expsyms_GO=
12126 # exclude_expsyms can be an extended regexp of symbols to exclude
12127 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12129 # as well as any symbol that contains `d'.
12130 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12132 # platforms (ab)use it in PIC code, but their linkers get confused if
12133 # the symbol is explicitly referenced. Since portable code cannot
12134 # rely on this symbol name, it's probably fine to never include it in
12135 # preloaded symbol tables.
12136 # Exclude shared library initialization/finalization symbols.
12137 extract_expsyms_cmds=
12139 case $host_os in
12140 cygwin* | mingw* | pw32* | cegcc*)
12141 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12142 # When not using gcc, we currently assume that we are using
12143 # Microsoft Visual C++.
12144 if test "$GCC" != yes; then
12145 with_gnu_ld=no
12148 interix*)
12149 # we just hope/assume this is gcc and not c89 (= MSVC++)
12150 with_gnu_ld=yes
12152 openbsd*)
12153 with_gnu_ld=no
12155 esac
12157 ld_shlibs_GO=yes
12159 # On some targets, GNU ld is compatible enough with the native linker
12160 # that we're better off using the native interface for both.
12161 lt_use_gnu_ld_interface=no
12162 if test "$with_gnu_ld" = yes; then
12163 case $host_os in
12164 aix*)
12165 # The AIX port of GNU ld has always aspired to compatibility
12166 # with the native linker. However, as the warning in the GNU ld
12167 # block says, versions before 2.19.5* couldn't really create working
12168 # shared libraries, regardless of the interface used.
12169 case `$LD -v 2>&1` in
12170 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12171 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12172 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12174 lt_use_gnu_ld_interface=yes
12176 esac
12179 lt_use_gnu_ld_interface=yes
12181 esac
12184 if test "$lt_use_gnu_ld_interface" = yes; then
12185 # If archive_cmds runs LD, not CC, wlarc should be empty
12186 wlarc='${wl}'
12188 # Set some defaults for GNU ld with shared library support. These
12189 # are reset later if shared libraries are not supported. Putting them
12190 # here allows them to be overridden if necessary.
12191 runpath_var=LD_RUN_PATH
12192 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12193 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12194 # ancient GNU ld didn't support --whole-archive et. al.
12195 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12196 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12197 else
12198 whole_archive_flag_spec_GO=
12200 supports_anon_versioning=no
12201 case `$LD -v 2>&1` in
12202 *GNU\ gold*) supports_anon_versioning=yes ;;
12203 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12204 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12205 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12206 *\ 2.11.*) ;; # other 2.11 versions
12207 *) supports_anon_versioning=yes ;;
12208 esac
12210 # See if GNU ld supports shared libraries.
12211 case $host_os in
12212 aix[3-9]*)
12213 # On AIX/PPC, the GNU linker is very broken
12214 if test "$host_cpu" != ia64; then
12215 ld_shlibs_GO=no
12216 cat <<_LT_EOF 1>&2
12218 *** Warning: the GNU linker, at least up to release 2.19, is reported
12219 *** to be unable to reliably create shared libraries on AIX.
12220 *** Therefore, libtool is disabling shared libraries support. If you
12221 *** really care for shared libraries, you may want to install binutils
12222 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12223 *** You will then need to restart the configuration process.
12225 _LT_EOF
12229 amigaos*)
12230 case $host_cpu in
12231 powerpc)
12232 # see comment about AmigaOS4 .so support
12233 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12234 archive_expsym_cmds_GO=''
12236 m68k)
12237 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12238 hardcode_libdir_flag_spec_GO='-L$libdir'
12239 hardcode_minus_L_GO=yes
12241 esac
12244 beos*)
12245 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12246 allow_undefined_flag_GO=unsupported
12247 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12248 # support --undefined. This deserves some investigation. FIXME
12249 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12250 else
12251 ld_shlibs_GO=no
12255 cygwin* | mingw* | pw32* | cegcc*)
12256 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12257 # as there is no search path for DLLs.
12258 hardcode_libdir_flag_spec_GO='-L$libdir'
12259 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12260 allow_undefined_flag_GO=unsupported
12261 always_export_symbols_GO=no
12262 enable_shared_with_static_runtimes_GO=yes
12263 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12265 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12266 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12267 # If the export-symbols file already is a .def file (1st line
12268 # is EXPORTS), use it as is; otherwise, prepend...
12269 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12270 cp $export_symbols $output_objdir/$soname.def;
12271 else
12272 echo EXPORTS > $output_objdir/$soname.def;
12273 cat $export_symbols >> $output_objdir/$soname.def;
12275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12276 else
12277 ld_shlibs_GO=no
12281 haiku*)
12282 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283 link_all_deplibs_GO=yes
12286 interix[3-9]*)
12287 hardcode_direct_GO=no
12288 hardcode_shlibpath_var_GO=no
12289 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12290 export_dynamic_flag_spec_GO='${wl}-E'
12291 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12292 # Instead, shared libraries are loaded at an image base (0x10000000 by
12293 # default) and relocated if they conflict, which is a slow very memory
12294 # consuming and fragmenting process. To avoid this, we pick a random,
12295 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12296 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12297 archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12298 archive_expsym_cmds_GO='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12301 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12302 tmp_diet=no
12303 if test "$host_os" = linux-dietlibc; then
12304 case $cc_basename in
12305 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12306 esac
12308 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12309 && test "$tmp_diet" = no
12310 then
12311 tmp_addflag=
12312 tmp_sharedflag='-shared'
12313 case $cc_basename,$host_cpu in
12314 pgcc*) # Portland Group C compiler
12315 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12316 tmp_addflag=' $pic_flag'
12318 pgf77* | pgf90* | pgf95* | pgfortran*)
12319 # Portland Group f77 and f90 compilers
12320 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12321 tmp_addflag=' $pic_flag -Mnomain' ;;
12322 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12323 tmp_addflag=' -i_dynamic' ;;
12324 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12325 tmp_addflag=' -i_dynamic -nofor_main' ;;
12326 ifc* | ifort*) # Intel Fortran compiler
12327 tmp_addflag=' -nofor_main' ;;
12328 lf95*) # Lahey Fortran 8.1
12329 whole_archive_flag_spec_GO=
12330 tmp_sharedflag='--shared' ;;
12331 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12332 tmp_sharedflag='-qmkshrobj'
12333 tmp_addflag= ;;
12334 nvcc*) # Cuda Compiler Driver 2.2
12335 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12336 compiler_needs_object_GO=yes
12338 esac
12339 case `$CC -V 2>&1 | sed 5q` in
12340 *Sun\ C*) # Sun C 5.9
12341 whole_archive_flag_spec_GO='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12342 compiler_needs_object_GO=yes
12343 tmp_sharedflag='-G' ;;
12344 *Sun\ F*) # Sun Fortran 8.3
12345 tmp_sharedflag='-G' ;;
12346 esac
12347 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12349 if test "x$supports_anon_versioning" = xyes; then
12350 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12352 echo "local: *; };" >> $output_objdir/$libname.ver~
12353 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12356 case $cc_basename in
12357 xlf* | bgf* | bgxlf* | mpixlf*)
12358 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12359 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12360 hardcode_libdir_flag_spec_GO=
12361 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12362 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12363 if test "x$supports_anon_versioning" = xyes; then
12364 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12366 echo "local: *; };" >> $output_objdir/$libname.ver~
12367 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12370 esac
12371 else
12372 ld_shlibs_GO=no
12376 netbsd*)
12377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12378 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12379 wlarc=
12380 else
12381 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12382 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12386 solaris*)
12387 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12388 ld_shlibs_GO=no
12389 cat <<_LT_EOF 1>&2
12391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12392 *** create shared libraries on Solaris systems. Therefore, libtool
12393 *** is disabling shared libraries support. We urge you to upgrade GNU
12394 *** binutils to release 2.9.1 or newer. Another option is to modify
12395 *** your PATH or compiler configuration so that the native linker is
12396 *** used, and then restart.
12398 _LT_EOF
12399 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12400 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12401 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12402 else
12403 ld_shlibs_GO=no
12407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12408 case `$LD -v 2>&1` in
12409 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12410 ld_shlibs_GO=no
12411 cat <<_LT_EOF 1>&2
12413 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12414 *** reliably create shared libraries on SCO systems. Therefore, libtool
12415 *** is disabling shared libraries support. We urge you to upgrade GNU
12416 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12417 *** your PATH or compiler configuration so that the native linker is
12418 *** used, and then restart.
12420 _LT_EOF
12423 # For security reasons, it is highly recommended that you always
12424 # use absolute paths for naming shared libraries, and exclude the
12425 # DT_RUNPATH tag from executables and libraries. But doing so
12426 # requires that you compile everything twice, which is a pain.
12427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12428 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12429 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12431 else
12432 ld_shlibs_GO=no
12435 esac
12438 sunos4*)
12439 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12440 wlarc=
12441 hardcode_direct_GO=yes
12442 hardcode_shlibpath_var_GO=no
12446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12447 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12448 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12449 else
12450 ld_shlibs_GO=no
12453 esac
12455 if test "$ld_shlibs_GO" = no; then
12456 runpath_var=
12457 hardcode_libdir_flag_spec_GO=
12458 export_dynamic_flag_spec_GO=
12459 whole_archive_flag_spec_GO=
12461 else
12462 # PORTME fill in a description of your system's linker (not GNU ld)
12463 case $host_os in
12464 aix3*)
12465 allow_undefined_flag_GO=unsupported
12466 always_export_symbols_GO=yes
12467 archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12468 # Note: this linker hardcodes the directories in LIBPATH if there
12469 # are no directories specified by -L.
12470 hardcode_minus_L_GO=yes
12471 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12472 # Neither direct hardcoding nor static linking is supported with a
12473 # broken collect2.
12474 hardcode_direct_GO=unsupported
12478 aix[4-9]*)
12479 if test "$host_cpu" = ia64; then
12480 # On IA64, the linker does run time linking by default, so we don't
12481 # have to do anything special.
12482 aix_use_runtimelinking=no
12483 exp_sym_flag='-Bexport'
12484 no_entry_flag=""
12485 else
12486 # If we're using GNU nm, then we don't want the "-C" option.
12487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12488 # Also, AIX nm treats weak defined symbols like other global
12489 # defined symbols, whereas GNU nm marks them as "W".
12490 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12491 export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12492 else
12493 export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12495 aix_use_runtimelinking=no
12497 # Test if we are trying to use run time linking or normal
12498 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12499 # need to do runtime linking.
12500 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12501 for ld_flag in $LDFLAGS; do
12502 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12503 aix_use_runtimelinking=yes
12504 break
12506 done
12508 esac
12510 exp_sym_flag='-bexport'
12511 no_entry_flag='-bnoentry'
12514 # When large executables or shared objects are built, AIX ld can
12515 # have problems creating the table of contents. If linking a library
12516 # or program results in "error TOC overflow" add -mminimal-toc to
12517 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12518 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12520 archive_cmds_GO=''
12521 hardcode_direct_GO=yes
12522 hardcode_direct_absolute_GO=yes
12523 hardcode_libdir_separator_GO=':'
12524 link_all_deplibs_GO=yes
12525 file_list_spec_GO='${wl}-f,'
12527 if test "$GCC" = yes; then
12528 case $host_os in aix4.[012]|aix4.[012].*)
12529 # We only want to do this on AIX 4.2 and lower, the check
12530 # below for broken collect2 doesn't work under 4.3+
12531 collect2name=`${CC} -print-prog-name=collect2`
12532 if test -f "$collect2name" &&
12533 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12534 then
12535 # We have reworked collect2
12537 else
12538 # We have old collect2
12539 hardcode_direct_GO=unsupported
12540 # It fails to find uninstalled libraries when the uninstalled
12541 # path is not listed in the libpath. Setting hardcode_minus_L
12542 # to unsupported forces relinking
12543 hardcode_minus_L_GO=yes
12544 hardcode_libdir_flag_spec_GO='-L$libdir'
12545 hardcode_libdir_separator_GO=
12548 esac
12549 shared_flag='-shared'
12550 if test "$aix_use_runtimelinking" = yes; then
12551 shared_flag="$shared_flag "'${wl}-G'
12553 else
12554 # not using gcc
12555 if test "$host_cpu" = ia64; then
12556 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12557 # chokes on -Wl,-G. The following line is correct:
12558 shared_flag='-G'
12559 else
12560 if test "$aix_use_runtimelinking" = yes; then
12561 shared_flag='${wl}-G'
12562 else
12563 shared_flag='${wl}-bM:SRE'
12568 export_dynamic_flag_spec_GO='${wl}-bexpall'
12569 # It seems that -bexpall does not export symbols beginning with
12570 # underscore (_), so it is better to generate a list of symbols to export.
12571 always_export_symbols_GO=yes
12572 if test "$aix_use_runtimelinking" = yes; then
12573 # Warning - without using the other runtime loading flags (-brtl),
12574 # -berok will link without error, but may produce a broken library.
12575 allow_undefined_flag_GO='-berok'
12576 # Determine the default libpath from the value encoded in an
12577 # empty executable.
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12582 main ()
12586 return 0;
12588 _ACEOF
12589 if ac_fn_c_try_link "$LINENO"; then :
12591 lt_aix_libpath_sed='
12592 /Import File Strings/,/^$/ {
12593 /^0/ {
12594 s/^0 *\(.*\)$/\1/
12598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599 # Check for a 64-bit object if we didn't find anything.
12600 if test -z "$aix_libpath"; then
12601 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12608 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12609 archive_expsym_cmds_GO='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12610 else
12611 if test "$host_cpu" = ia64; then
12612 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12613 allow_undefined_flag_GO="-z nodefs"
12614 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12615 else
12616 # Determine the default libpath from the value encoded in an
12617 # empty executable.
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12622 main ()
12626 return 0;
12628 _ACEOF
12629 if ac_fn_c_try_link "$LINENO"; then :
12631 lt_aix_libpath_sed='
12632 /Import File Strings/,/^$/ {
12633 /^0/ {
12634 s/^0 *\(.*\)$/\1/
12638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639 # Check for a 64-bit object if we didn't find anything.
12640 if test -z "$aix_libpath"; then
12641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12644 rm -f core conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12648 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12649 # Warning - without using the other run time loading flags,
12650 # -berok will link without error, but may produce a broken library.
12651 no_undefined_flag_GO=' ${wl}-bernotok'
12652 allow_undefined_flag_GO=' ${wl}-berok'
12653 if test "$with_gnu_ld" = yes; then
12654 # We only use this code for GNU lds that support --whole-archive.
12655 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12656 else
12657 # Exported symbols can be pulled into shared objects from archives
12658 whole_archive_flag_spec_GO='$convenience'
12660 archive_cmds_need_lc_GO=yes
12661 # This is similar to how AIX traditionally builds its shared libraries.
12662 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12667 amigaos*)
12668 case $host_cpu in
12669 powerpc)
12670 # see comment about AmigaOS4 .so support
12671 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12672 archive_expsym_cmds_GO=''
12674 m68k)
12675 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12676 hardcode_libdir_flag_spec_GO='-L$libdir'
12677 hardcode_minus_L_GO=yes
12679 esac
12682 bsdi[45]*)
12683 export_dynamic_flag_spec_GO=-rdynamic
12686 cygwin* | mingw* | pw32* | cegcc*)
12687 # When not using gcc, we currently assume that we are using
12688 # Microsoft Visual C++.
12689 # hardcode_libdir_flag_spec is actually meaningless, as there is
12690 # no search path for DLLs.
12691 hardcode_libdir_flag_spec_GO=' '
12692 allow_undefined_flag_GO=unsupported
12693 # Tell ltmain to make .lib files, not .a files.
12694 libext=lib
12695 # Tell ltmain to make .dll files, not .so files.
12696 shrext_cmds=".dll"
12697 # FIXME: Setting linknames here is a bad hack.
12698 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12699 # The linker will automatically build a .lib file if we build a DLL.
12700 old_archive_from_new_cmds_GO='true'
12701 # FIXME: Should let the user specify the lib program.
12702 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12703 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12704 enable_shared_with_static_runtimes_GO=yes
12707 darwin* | rhapsody*)
12710 archive_cmds_need_lc_GO=no
12711 hardcode_direct_GO=no
12712 hardcode_automatic_GO=yes
12713 hardcode_shlibpath_var_GO=unsupported
12714 if test "$lt_cv_ld_force_load" = "yes"; then
12715 whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12716 else
12717 whole_archive_flag_spec_GO=''
12719 link_all_deplibs_GO=yes
12720 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12721 case $cc_basename in
12722 ifort*) _lt_dar_can_shared=yes ;;
12723 *) _lt_dar_can_shared=$GCC ;;
12724 esac
12725 if test "$_lt_dar_can_shared" = "yes"; then
12726 output_verbose_link_cmd=func_echo_all
12727 archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12728 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12729 archive_expsym_cmds_GO="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12730 module_expsym_cmds_GO="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12732 else
12733 ld_shlibs_GO=no
12738 dgux*)
12739 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12740 hardcode_libdir_flag_spec_GO='-L$libdir'
12741 hardcode_shlibpath_var_GO=no
12744 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12745 # support. Future versions do this automatically, but an explicit c++rt0.o
12746 # does not break anything, and helps significantly (at the cost of a little
12747 # extra space).
12748 freebsd2.2*)
12749 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12750 hardcode_libdir_flag_spec_GO='-R$libdir'
12751 hardcode_direct_GO=yes
12752 hardcode_shlibpath_var_GO=no
12755 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12756 freebsd2.*)
12757 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12758 hardcode_direct_GO=yes
12759 hardcode_minus_L_GO=yes
12760 hardcode_shlibpath_var_GO=no
12763 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12764 freebsd* | dragonfly*)
12765 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12766 hardcode_libdir_flag_spec_GO='-R$libdir'
12767 hardcode_direct_GO=yes
12768 hardcode_shlibpath_var_GO=no
12771 hpux9*)
12772 if test "$GCC" = yes; then
12773 archive_cmds_GO='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12774 else
12775 archive_cmds_GO='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12777 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12778 hardcode_libdir_separator_GO=:
12779 hardcode_direct_GO=yes
12781 # hardcode_minus_L: Not really in the search PATH,
12782 # but as the default location of the library.
12783 hardcode_minus_L_GO=yes
12784 export_dynamic_flag_spec_GO='${wl}-E'
12787 hpux10*)
12788 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12789 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12790 else
12791 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12793 if test "$with_gnu_ld" = no; then
12794 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12795 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12796 hardcode_libdir_separator_GO=:
12797 hardcode_direct_GO=yes
12798 hardcode_direct_absolute_GO=yes
12799 export_dynamic_flag_spec_GO='${wl}-E'
12800 # hardcode_minus_L: Not really in the search PATH,
12801 # but as the default location of the library.
12802 hardcode_minus_L_GO=yes
12806 hpux11*)
12807 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12808 case $host_cpu in
12809 hppa*64*)
12810 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12812 ia64*)
12813 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12816 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12818 esac
12819 else
12820 case $host_cpu in
12821 hppa*64*)
12822 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12824 ia64*)
12825 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12828 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12830 esac
12832 if test "$with_gnu_ld" = no; then
12833 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12834 hardcode_libdir_separator_GO=:
12836 case $host_cpu in
12837 hppa*64*|ia64*)
12838 hardcode_direct_GO=no
12839 hardcode_shlibpath_var_GO=no
12842 hardcode_direct_GO=yes
12843 hardcode_direct_absolute_GO=yes
12844 export_dynamic_flag_spec_GO='${wl}-E'
12846 # hardcode_minus_L: Not really in the search PATH,
12847 # but as the default location of the library.
12848 hardcode_minus_L_GO=yes
12850 esac
12854 irix5* | irix6* | nonstopux*)
12855 if test "$GCC" = yes; then
12856 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12857 # Try to use the -exported_symbol ld option, if it does not
12858 # work, assume that -exports_file does not work either and
12859 # implicitly export all symbols.
12860 save_LDFLAGS="$LDFLAGS"
12861 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864 int foo(void) {}
12865 _ACEOF
12866 if ac_fn_c_try_link "$LINENO"; then :
12867 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12870 rm -f core conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872 LDFLAGS="$save_LDFLAGS"
12873 else
12874 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12875 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12877 archive_cmds_need_lc_GO='no'
12878 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12879 hardcode_libdir_separator_GO=:
12880 inherit_rpath_GO=yes
12881 link_all_deplibs_GO=yes
12884 netbsd*)
12885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12886 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12887 else
12888 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12890 hardcode_libdir_flag_spec_GO='-R$libdir'
12891 hardcode_direct_GO=yes
12892 hardcode_shlibpath_var_GO=no
12895 newsos6)
12896 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_direct_GO=yes
12898 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12899 hardcode_libdir_separator_GO=:
12900 hardcode_shlibpath_var_GO=no
12903 *nto* | *qnx*)
12906 openbsd*)
12907 if test -f /usr/libexec/ld.so; then
12908 hardcode_direct_GO=yes
12909 hardcode_shlibpath_var_GO=no
12910 hardcode_direct_absolute_GO=yes
12911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12912 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12913 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12914 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12915 export_dynamic_flag_spec_GO='${wl}-E'
12916 else
12917 case $host_os in
12918 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12919 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12920 hardcode_libdir_flag_spec_GO='-R$libdir'
12923 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12924 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12926 esac
12928 else
12929 ld_shlibs_GO=no
12933 os2*)
12934 hardcode_libdir_flag_spec_GO='-L$libdir'
12935 hardcode_minus_L_GO=yes
12936 allow_undefined_flag_GO=unsupported
12937 archive_cmds_GO='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12938 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12941 osf3*)
12942 if test "$GCC" = yes; then
12943 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12944 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12945 else
12946 allow_undefined_flag_GO=' -expect_unresolved \*'
12947 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12949 archive_cmds_need_lc_GO='no'
12950 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12951 hardcode_libdir_separator_GO=:
12954 osf4* | osf5*) # as osf3* with the addition of -msym flag
12955 if test "$GCC" = yes; then
12956 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12957 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12958 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12959 else
12960 allow_undefined_flag_GO=' -expect_unresolved \*'
12961 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12962 archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12963 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12965 # Both c and cxx compiler support -rpath directly
12966 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12968 archive_cmds_need_lc_GO='no'
12969 hardcode_libdir_separator_GO=:
12972 solaris*)
12973 no_undefined_flag_GO=' -z defs'
12974 if test "$GCC" = yes; then
12975 wlarc='${wl}'
12976 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12977 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12978 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12979 else
12980 case `$CC -V 2>&1` in
12981 *"Compilers 5.0"*)
12982 wlarc=''
12983 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12984 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12985 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12988 wlarc='${wl}'
12989 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12990 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12991 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12993 esac
12995 hardcode_libdir_flag_spec_GO='-R$libdir'
12996 hardcode_shlibpath_var_GO=no
12997 case $host_os in
12998 solaris2.[0-5] | solaris2.[0-5].*) ;;
13000 # The compiler driver will combine and reorder linker options,
13001 # but understands `-z linker_flag'. GCC discards it without `$wl',
13002 # but is careful enough not to reorder.
13003 # Supported since Solaris 2.6 (maybe 2.5.1?)
13004 if test "$GCC" = yes; then
13005 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13006 else
13007 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13010 esac
13011 link_all_deplibs_GO=yes
13014 sunos4*)
13015 if test "x$host_vendor" = xsequent; then
13016 # Use $CC to link under sequent, because it throws in some extra .o
13017 # files that make .init and .fini sections work.
13018 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13019 else
13020 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13022 hardcode_libdir_flag_spec_GO='-L$libdir'
13023 hardcode_direct_GO=yes
13024 hardcode_minus_L_GO=yes
13025 hardcode_shlibpath_var_GO=no
13028 sysv4)
13029 case $host_vendor in
13030 sni)
13031 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13032 hardcode_direct_GO=yes # is this really true???
13034 siemens)
13035 ## LD is ld it makes a PLAMLIB
13036 ## CC just makes a GrossModule.
13037 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13038 reload_cmds_GO='$CC -r -o $output$reload_objs'
13039 hardcode_direct_GO=no
13041 motorola)
13042 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13045 esac
13046 runpath_var='LD_RUN_PATH'
13047 hardcode_shlibpath_var_GO=no
13050 sysv4.3*)
13051 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13052 hardcode_shlibpath_var_GO=no
13053 export_dynamic_flag_spec_GO='-Bexport'
13056 sysv4*MP*)
13057 if test -d /usr/nec; then
13058 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13059 hardcode_shlibpath_var_GO=no
13060 runpath_var=LD_RUN_PATH
13061 hardcode_runpath_var=yes
13062 ld_shlibs_GO=yes
13066 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13067 no_undefined_flag_GO='${wl}-z,text'
13068 archive_cmds_need_lc_GO=no
13069 hardcode_shlibpath_var_GO=no
13070 runpath_var='LD_RUN_PATH'
13072 if test "$GCC" = yes; then
13073 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075 else
13076 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13081 sysv5* | sco3.2v5* | sco5v6*)
13082 # Note: We can NOT use -z defs as we might desire, because we do not
13083 # link with -lc, and that would cause any symbols used from libc to
13084 # always be unresolved, which means just about no library would
13085 # ever link correctly. If we're not using GNU ld we use -z text
13086 # though, which does catch some bad symbols but isn't as heavy-handed
13087 # as -z defs.
13088 no_undefined_flag_GO='${wl}-z,text'
13089 allow_undefined_flag_GO='${wl}-z,nodefs'
13090 archive_cmds_need_lc_GO=no
13091 hardcode_shlibpath_var_GO=no
13092 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13093 hardcode_libdir_separator_GO=':'
13094 link_all_deplibs_GO=yes
13095 export_dynamic_flag_spec_GO='${wl}-Bexport'
13096 runpath_var='LD_RUN_PATH'
13098 if test "$GCC" = yes; then
13099 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101 else
13102 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13107 uts4*)
13108 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13109 hardcode_libdir_flag_spec_GO='-L$libdir'
13110 hardcode_shlibpath_var_GO=no
13114 ld_shlibs_GO=no
13116 esac
13118 if test x$host_vendor = xsni; then
13119 case $host in
13120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13121 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13123 esac
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13128 $as_echo "$ld_shlibs_GO" >&6; }
13129 test "$ld_shlibs_GO" = no && can_build_shared=no
13131 with_gnu_ld_GO=$with_gnu_ld
13139 # Do we need to explicitly link libc?
13141 case "x$archive_cmds_need_lc_GO" in
13142 x|xyes)
13143 # Assume -lc should be added
13144 archive_cmds_need_lc_GO=yes
13146 if test "$enable_shared" = yes && test "$GCC" = yes; then
13147 case $archive_cmds_GO in
13148 *'~'*)
13149 # FIXME: we may have to deal with multi-command sequences.
13151 '$CC '*)
13152 # Test whether the compiler implicitly links with -lc since on some
13153 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13154 # to ld, don't add -lc before -lgcc.
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13156 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13157 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 $RM conftest*
13161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13164 (eval $ac_compile) 2>&5
13165 ac_status=$?
13166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167 test $ac_status = 0; } 2>conftest.err; then
13168 soname=conftest
13169 lib=conftest
13170 libobjs=conftest.$ac_objext
13171 deplibs=
13172 wl=$lt_prog_compiler_wl_GO
13173 pic_flag=$lt_prog_compiler_pic_GO
13174 compiler_flags=-v
13175 linker_flags=-v
13176 verstring=
13177 output_objdir=.
13178 libname=conftest
13179 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13180 allow_undefined_flag_GO=
13181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13182 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13183 ac_status=$?
13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185 test $ac_status = 0; }
13186 then
13187 lt_cv_archive_cmds_need_lc_GO=no
13188 else
13189 lt_cv_archive_cmds_need_lc_GO=yes
13191 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13192 else
13193 cat conftest.err 1>&5
13195 $RM conftest*
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13199 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13200 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13202 esac
13205 esac
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13271 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13272 hardcode_action_GO=
13273 if test -n "$hardcode_libdir_flag_spec_GO" ||
13274 test -n "$runpath_var_GO" ||
13275 test "X$hardcode_automatic_GO" = "Xyes" ; then
13277 # We can hardcode non-existent directories.
13278 if test "$hardcode_direct_GO" != no &&
13279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13280 # have to relink, otherwise we might link with an installed library
13281 # when we should be linking with a yet-to-be-installed one
13282 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13283 test "$hardcode_minus_L_GO" != no; then
13284 # Linking always hardcodes the temporary library directory.
13285 hardcode_action_GO=relink
13286 else
13287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13288 hardcode_action_GO=immediate
13290 else
13291 # We cannot hardcode anything, or else we can only hardcode existing
13292 # directories.
13293 hardcode_action_GO=unsupported
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13296 $as_echo "$hardcode_action_GO" >&6; }
13298 if test "$hardcode_action_GO" = relink ||
13299 test "$inherit_rpath_GO" = yes; then
13300 # Fast installation is not supported
13301 enable_fast_install=no
13302 elif test "$shlibpath_overrides_runpath" = yes ||
13303 test "$enable_shared" = no; then
13304 # Fast installation is not necessary
13305 enable_fast_install=needless
13316 ac_ext=c
13317 ac_cpp='$CPP $CPPFLAGS'
13318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13323 GCC=$lt_save_GCC
13324 CC="$lt_save_CC"
13329 ac_config_commands="$ac_config_commands libtool"
13334 # Only expand once:
13340 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13343 for ac_prog in gawk mawk nawk awk
13345 # Extract the first word of "$ac_prog", so it can be a program name with args.
13346 set dummy $ac_prog; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if test "${ac_cv_prog_AWK+set}" = set; then :
13350 $as_echo_n "(cached) " >&6
13351 else
13352 if test -n "$AWK"; then
13353 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13354 else
13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356 for as_dir in $PATH
13358 IFS=$as_save_IFS
13359 test -z "$as_dir" && as_dir=.
13360 for ac_exec_ext in '' $ac_executable_extensions; do
13361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13362 ac_cv_prog_AWK="$ac_prog"
13363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 break 2
13366 done
13367 done
13368 IFS=$as_save_IFS
13372 AWK=$ac_cv_prog_AWK
13373 if test -n "$AWK"; then
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13375 $as_echo "$AWK" >&6; }
13376 else
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 $as_echo "no" >&6; }
13382 test -n "$AWK" && break
13383 done
13386 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13389 # Check whether --enable-werror was given.
13390 if test "${enable_werror+set}" = set; then :
13391 enableval=$enable_werror;
13394 if test "x$enable_werror" != "xno"; then
13395 WERROR="-Werror"
13399 glibgo_toolexecdir=no
13400 glibgo_toolexeclibdir=no
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13403 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13404 # Check whether --enable-version-specific-runtime-libs was given.
13405 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13406 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13407 yes) version_specific_libs=yes ;;
13408 no) version_specific_libs=no ;;
13409 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13410 esac
13411 else
13412 version_specific_libs=no
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13416 $as_echo "$version_specific_libs" >&6; }
13418 # Version-specific runtime libs processing.
13419 if test $version_specific_libs = yes; then
13420 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13421 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13424 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13425 # Install a library built with a cross compiler in tooldir, not libdir.
13426 if test -n "$with_cross_host" &&
13427 test x"$with_cross_host" != x"no"; then
13428 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13429 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13430 else
13431 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13432 nover_glibgo_toolexeclibdir='${libdir}'
13434 multi_os_directory=`$GOC -print-multi-os-directory`
13435 case $multi_os_directory in
13436 .) ;; # Avoid trailing /.
13437 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13438 esac
13440 if test x"$glibgo_toolexecdir" = x"no"; then
13441 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13442 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13449 # See if the user wants to configure without libffi. Some
13450 # architectures don't support it. FIXME: We should set a default
13451 # based on the host.
13453 # Check whether --with-libffi was given.
13454 if test "${with_libffi+set}" = set; then :
13455 withval=$with_libffi; :
13456 else
13457 with_libffi=${with_libffi_default-yes}
13461 LIBFFI=
13462 LIBFFIINCS=
13463 if test "$with_libffi" != no; then
13465 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13467 LIBFFI=../libffi/libffi_convenience.la
13468 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13473 # See if the user wants to configure without libatomic. This is useful if we are
13474 # on an architecture for which libgo does not need an atomic support library and
13475 # libatomic does not support our C compiler.
13477 # Check whether --with-libatomic was given.
13478 if test "${with_libatomic+set}" = set; then :
13479 withval=$with_libatomic; :
13480 else
13481 with_libatomic=${with_libatomic_default-yes}
13485 LIBATOMIC=
13486 if test "$with_libatomic" != no; then
13487 LIBATOMIC=../libatomic/libatomic_convenience.la
13491 # Used to tell GNU make to include a file without telling automake to
13492 # include it.
13493 go_include="-include"
13496 # All known GOOS values. This is the union of all operating systems
13497 # supported by the gofrontend and all operating systems supported by
13498 # the gc toolchain.
13499 ALLGOOS="android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
13501 is_darwin=no
13502 is_freebsd=no
13503 is_irix=no
13504 is_linux=no
13505 is_netbsd=no
13506 is_openbsd=no
13507 is_dragonfly=no
13508 is_rtems=no
13509 is_solaris=no
13510 GOOS=unknown
13511 case ${host} in
13512 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13513 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13514 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13515 *-*-linux*) is_linux=yes; GOOS=linux ;;
13516 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13517 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13518 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13519 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13520 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13521 esac
13522 if test $is_darwin = yes; then
13523 LIBGO_IS_DARWIN_TRUE=
13524 LIBGO_IS_DARWIN_FALSE='#'
13525 else
13526 LIBGO_IS_DARWIN_TRUE='#'
13527 LIBGO_IS_DARWIN_FALSE=
13530 if test $is_freebsd = yes; then
13531 LIBGO_IS_FREEBSD_TRUE=
13532 LIBGO_IS_FREEBSD_FALSE='#'
13533 else
13534 LIBGO_IS_FREEBSD_TRUE='#'
13535 LIBGO_IS_FREEBSD_FALSE=
13538 if test $is_irix = yes; then
13539 LIBGO_IS_IRIX_TRUE=
13540 LIBGO_IS_IRIX_FALSE='#'
13541 else
13542 LIBGO_IS_IRIX_TRUE='#'
13543 LIBGO_IS_IRIX_FALSE=
13546 if test $is_linux = yes; then
13547 LIBGO_IS_LINUX_TRUE=
13548 LIBGO_IS_LINUX_FALSE='#'
13549 else
13550 LIBGO_IS_LINUX_TRUE='#'
13551 LIBGO_IS_LINUX_FALSE=
13554 if test $is_netbsd = yes; then
13555 LIBGO_IS_NETBSD_TRUE=
13556 LIBGO_IS_NETBSD_FALSE='#'
13557 else
13558 LIBGO_IS_NETBSD_TRUE='#'
13559 LIBGO_IS_NETBSD_FALSE=
13562 if test $is_openbsd = yes; then
13563 LIBGO_IS_OPENBSD_TRUE=
13564 LIBGO_IS_OPENBSD_FALSE='#'
13565 else
13566 LIBGO_IS_OPENBSD_TRUE='#'
13567 LIBGO_IS_OPENBSD_FALSE=
13570 if test $is_dragonfly = yes; then
13571 LIBGO_IS_DRAGONFLY_TRUE=
13572 LIBGO_IS_DRAGONFLY_FALSE='#'
13573 else
13574 LIBGO_IS_DRAGONFLY_TRUE='#'
13575 LIBGO_IS_DRAGONFLY_FALSE=
13578 if test $is_rtems = yes; then
13579 LIBGO_IS_RTEMS_TRUE=
13580 LIBGO_IS_RTEMS_FALSE='#'
13581 else
13582 LIBGO_IS_RTEMS_TRUE='#'
13583 LIBGO_IS_RTEMS_FALSE=
13586 if test $is_solaris = yes; then
13587 LIBGO_IS_SOLARIS_TRUE=
13588 LIBGO_IS_SOLARIS_FALSE='#'
13589 else
13590 LIBGO_IS_SOLARIS_TRUE='#'
13591 LIBGO_IS_SOLARIS_FALSE=
13594 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13595 LIBGO_IS_BSD_TRUE=
13596 LIBGO_IS_BSD_FALSE='#'
13597 else
13598 LIBGO_IS_BSD_TRUE='#'
13599 LIBGO_IS_BSD_FALSE=
13605 USE_DEJAGNU=no
13606 case ${host} in
13607 *-*-rtems*) USE_DEJAGNU=yes ;;
13608 ${build}) ;;
13609 *) USE_DEJAGNU=yes ;;
13610 esac
13613 # All known GOARCH values. This is the union of all architectures
13614 # supported by the gofrontend and all architectures supported by the
13615 # gc toolchain.
13616 # N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
13617 ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mipso32 mipsn32 mipso64 mipsn64 mips mipsle mips64 mips64le mips64p32 mips64pe32le ppc ppc64 ppc64le s390 s390x sparc sparc64"
13619 # All known GOARCH_FAMILY values.
13620 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64"
13622 GOARCH=unknown
13623 GOARCH_FAMILY=unknown
13624 GOARCH_BIGENDIAN=0
13625 GOARCH_CACHELINESIZE=64
13626 GOARCH_PHYSPAGESIZE=4096
13627 GOARCH_PCQUANTUM=1
13628 GOARCH_INT64ALIGN=8
13629 GOARCH_HUGEPAGESIZE=0
13630 GOARCH_MINFRAMESIZE=0
13631 case ${host} in
13632 alpha*-*-*)
13633 GOARCH=alpha
13634 GOARCH_FAMILY=ALPHA
13635 GOARCH_PHYSPAGESIZE=8192
13636 GOARCH_PCQUANTUM=4
13638 aarch64-*-*)
13639 GOARCH=arm64
13640 GOARCH_FAMILY=ARM64
13641 GOARCH_CACHELINESIZE=32
13642 GOARCH_PHYSPAGESIZE=65536
13643 GOARCH_PCQUANTUM=4
13644 GOARCH_MINFRAMESIZE=8
13646 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13647 GOARCH=arm
13648 GOARCH_FAMILY=ARM
13649 GOARCH_CACHELINESIZE=32
13650 GOARCH_PCQUANTUM=4
13651 GOARCH_INT64ALIGN=4
13652 GOARCH_MINFRAMESIZE=4
13654 i[34567]86-*-* | x86_64-*-*)
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13658 #ifdef __x86_64__
13659 #error 64-bit
13660 #endif
13661 _ACEOF
13662 if ac_fn_c_try_compile "$LINENO"; then :
13663 GOARCH=386
13664 GOARCH_FAMILY=I386
13665 GOARCH_INT64ALIGN=4
13666 GOARCH_HUGEPAGESIZE="1 << 21"
13668 else
13669 GOARCH=amd64
13670 GOARCH_FAMILY=AMD64
13671 GOARCH_HUGEPAGESIZE="1 << 21"
13674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 ia64-*-*)
13677 GOARCH=ia64
13678 GOARCH_FAMILY=IA64
13679 GOARCH_CACHELINESIZE=16384
13680 GOARCH_PHYSPAGESIZE=65536
13682 m68k*-*-*)
13683 GOARCH=m68k
13684 GOARCH_FAMILY=M68K
13685 GOARCH_BIGENDIAN=1
13686 GOARCH_CACHELINESIZE=16
13687 GOARCH_PCQUANTUM=4
13688 GOARCH_INT64ALIGN=4
13690 mips*-*-*)
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 #if _MIPS_SIM != _ABIO32
13695 #error not o32
13696 #endif
13697 _ACEOF
13698 if ac_fn_c_try_compile "$LINENO"; then :
13699 mips_abi="o32"
13700 else
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 #if _MIPS_SIM != _ABIN32
13705 #error not n32
13706 #endif
13707 _ACEOF
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 mips_abi="n32"
13710 else
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13714 #if _MIPS_SIM != _ABI64
13715 #error not n64
13716 #endif
13717 _ACEOF
13718 if ac_fn_c_try_compile "$LINENO"; then :
13719 mips_abi="n64"
13720 else
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13724 #if _MIPS_SIM != _ABIO64
13725 #error not o64
13726 #endif
13727 _ACEOF
13728 if ac_fn_c_try_compile "$LINENO"; then :
13729 mips_abi="o64"
13730 else
13731 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13732 mips_abi="n32"
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 case "$mips_abi" in
13742 "o32") GOARCH=mipso32 ;;
13743 "n32") GOARCH=mipsn32 ;;
13744 "n64") GOARCH=mipsn64 ;;
13745 "o64") GOARCH=mipso64 ;;
13746 esac
13747 case "$mips_abi" in
13748 "o32" | "n32")
13749 GOARCH_FAMILY=MIPS
13750 GOARCH_INT64ALIGN=4
13751 GOARCH_MINFRAMESIZE=4
13753 "n64" | "o64")
13754 GOARCH_FAMILY=MIPS64
13755 GOARCH_MINFRAMESIZE=8
13757 esac
13758 case "${host}" in
13759 mips*el)
13762 GOARCH_BIGENDIAN=1
13764 esac
13765 GOARCH_CACHELINESIZE=32
13766 GOARCH_PHYSPAGESIZE=16384
13767 GOARCH_PCQUANTUM=4
13769 rs6000*-*-* | powerpc*-*-*)
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13773 #ifdef _ARCH_PPC64
13774 #error 64-bit
13775 #endif
13776 _ACEOF
13777 if ac_fn_c_try_compile "$LINENO"; then :
13778 GOARCH=ppc
13779 GOARCH_FAMILY=PPC
13780 GOARCH_BIGENDIAN=1
13781 GOARCH_INT64ALIGN=4
13783 else
13785 GOARCH_FAMILY=PPC64
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13789 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13790 #error 64be
13791 #endif
13792 _ACEOF
13793 if ac_fn_c_try_compile "$LINENO"; then :
13794 GOARCH=ppc64le
13796 else
13797 GOARCH=ppc64
13798 GOARCH_BIGENDIAN=1
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804 GOARCH_PHYSPAGESIZE=65536
13805 GOARCH_PCQUANTUM=4
13806 GOARCH_MINFRAMESIZE=32
13808 s390*-*-*)
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13812 #if defined(__s390x__)
13813 #error 64-bit
13814 #endif
13815 _ACEOF
13816 if ac_fn_c_try_compile "$LINENO"; then :
13817 GOARCH=s390
13818 GOARCH_FAMILY=S390
13819 GOARCH_INT64ALIGN=4
13820 GOARCH_MINFRAMESIZE=4
13822 else
13823 GOARCH=s390x
13824 GOARCH_FAMILY=S390X
13825 GOARCH_MINFRAMESIZE=8
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829 GOARCH_BIGENDIAN=1
13830 GOARCH_CACHELINESIZE=256
13831 GOARCH_PCQUANTUM=2
13833 sparc*-*-*)
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13837 #if defined(__sparcv9) || defined(__arch64__)
13838 #error 64-bit
13839 #endif
13840 _ACEOF
13841 if ac_fn_c_try_compile "$LINENO"; then :
13842 GOARCH=sparc
13843 GOARCH_FAMILY=SPARC
13845 else
13846 GOARCH=sparc64
13847 GOARCH_FAMILY=SPARC64
13850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13851 GOARCH_BIGENDIAN=1
13852 GOARCH_PHYSPAGESIZE=8192
13853 GOARCH_PCQUANTUM=4
13855 esac
13868 GO_LIBCALL_OS_FILE=
13869 GO_LIBCALL_OS_ARCH_FILE=
13870 GO_SYSCALL_OS_FILE=
13871 GO_SYSCALL_OS_ARCH_FILE=
13872 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13873 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13875 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13876 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13878 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13879 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13881 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13882 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13889 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13890 case "$target" in
13891 mips-sgi-irix6.5*)
13892 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13893 # msghdr in <sys/socket.h>.
13894 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13896 *-*-solaris2.1[01])
13897 # Solaris 10+ needs this so struct msghdr gets the msg_control
13898 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13899 # above doesn't work with C99.
13900 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13902 esac
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13906 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13907 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 CFLAGS_hold=$CFLAGS
13911 CFLAGS="$CFLAGS -fsplit-stack"
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 int i;
13915 _ACEOF
13916 if ac_fn_c_try_compile "$LINENO"; then :
13917 libgo_cv_c_split_stack_supported=yes
13918 else
13919 libgo_cv_c_split_stack_supported=no
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 CFLAGS=$CFLAGS_hold
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13925 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
13928 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
13929 if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 cat > conftest1.c << EOF
13933 extern void f();
13934 int main() { f(); return 0; }
13936 cat > conftest2.c << EOF
13937 void f() {}
13939 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
13940 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
13941 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
13942 libgo_cv_c_linker_split_non_split=yes
13943 else
13944 libgo_cv_c_linker_split_non_split=no
13946 rm -f conftest1.* conftest2.* conftest
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
13949 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
13951 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
13952 SPLIT_STACK=-fsplit-stack
13954 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13956 else
13957 SPLIT_STACK=
13960 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
13961 USING_SPLIT_STACK_TRUE=
13962 USING_SPLIT_STACK_FALSE='#'
13963 else
13964 USING_SPLIT_STACK_TRUE='#'
13965 USING_SPLIT_STACK_FALSE=
13969 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
13970 GO_SPLIT_STACK=-fno-split-stack
13971 else
13972 GO_SPLIT_STACK=
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13977 $as_echo_n "checking whether linker supports split stack... " >&6; }
13978 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 libgo_cv_c_linker_supports_split_stack=no
13982 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13983 libgo_cv_c_linker_supports_split_stack=yes
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13987 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13988 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13990 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
13995 $as_echo_n "checking whether compiler is llgo... " >&6; }
13996 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 libgo_cv_c_goc_is_llgo=no
14000 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14001 libgo_cv_c_goc_is_llgo=yes
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14005 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14006 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14007 GOC_IS_LLGO_TRUE=
14008 GOC_IS_LLGO_FALSE='#'
14009 else
14010 GOC_IS_LLGO_TRUE='#'
14011 GOC_IS_LLGO_FALSE=
14015 MATH_LIBS=
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14017 $as_echo_n "checking for sqrt in -lm... " >&6; }
14018 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-lm $LIBS"
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14026 /* Override any GCC internal prototype to avoid an error.
14027 Use char because int might match the return type of a GCC
14028 builtin and then its argument prototype would still apply. */
14029 #ifdef __cplusplus
14030 extern "C"
14031 #endif
14032 char sqrt ();
14034 main ()
14036 return sqrt ();
14038 return 0;
14040 _ACEOF
14041 if ac_fn_c_try_link "$LINENO"; then :
14042 ac_cv_lib_m_sqrt=yes
14043 else
14044 ac_cv_lib_m_sqrt=no
14046 rm -f core conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14048 LIBS=$ac_check_lib_save_LIBS
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14051 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14052 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14053 MATH_LIBS=-lm
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14059 $as_echo_n "checking for socket libraries... " >&6; }
14060 if test "${libgo_cv_lib_sockets+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 libgo_cv_lib_sockets=
14064 libgo_check_both=no
14065 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14066 if test "x$ac_cv_func_connect" = x""yes; then :
14067 libgo_check_socket=no
14068 else
14069 libgo_check_socket=yes
14072 if test "$libgo_check_socket" = "yes"; then
14073 unset ac_cv_func_connect
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14075 $as_echo_n "checking for main in -lsocket... " >&6; }
14076 if test "${ac_cv_lib_socket_main+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 ac_check_lib_save_LIBS=$LIBS
14080 LIBS="-lsocket $LIBS"
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14086 main ()
14088 return main ();
14090 return 0;
14092 _ACEOF
14093 if ac_fn_c_try_link "$LINENO"; then :
14094 ac_cv_lib_socket_main=yes
14095 else
14096 ac_cv_lib_socket_main=no
14098 rm -f core conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14103 $as_echo "$ac_cv_lib_socket_main" >&6; }
14104 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14105 libgo_cv_lib_sockets="-lsocket"
14106 else
14107 libgo_check_both=yes
14111 if test "$libgo_check_both" = "yes"; then
14112 libgo_old_libs=$LIBS
14113 LIBS="$LIBS -lsocket -lnsl"
14114 unset ac_cv_func_accept
14115 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14116 if test "x$ac_cv_func_accept" = x""yes; then :
14117 libgo_check_nsl=no
14118 libgo_cv_lib_sockets="-lsocket -lnsl"
14121 unset ac_cv_func_accept
14122 LIBS=$libgo_old_libs
14124 unset ac_cv_func_gethostbyname
14125 libgo_old_libs="$LIBS"
14126 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14127 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14129 else
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14131 $as_echo_n "checking for main in -lnsl... " >&6; }
14132 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 ac_check_lib_save_LIBS=$LIBS
14136 LIBS="-lnsl $LIBS"
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14142 main ()
14144 return main ();
14146 return 0;
14148 _ACEOF
14149 if ac_fn_c_try_link "$LINENO"; then :
14150 ac_cv_lib_nsl_main=yes
14151 else
14152 ac_cv_lib_nsl_main=no
14154 rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14159 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14160 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14161 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14166 unset ac_cv_func_gethostbyname
14167 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14168 if test "x$ac_cv_func_sendfile" = x""yes; then :
14170 else
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14172 $as_echo_n "checking for main in -lsendfile... " >&6; }
14173 if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 ac_check_lib_save_LIBS=$LIBS
14177 LIBS="-lsendfile $LIBS"
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14183 main ()
14185 return main ();
14187 return 0;
14189 _ACEOF
14190 if ac_fn_c_try_link "$LINENO"; then :
14191 ac_cv_lib_sendfile_main=yes
14192 else
14193 ac_cv_lib_sendfile_main=no
14195 rm -f core conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
14197 LIBS=$ac_check_lib_save_LIBS
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14200 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14201 if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14202 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14207 LIBS=$libgo_old_libs
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14211 $as_echo "$libgo_cv_lib_sockets" >&6; }
14212 NET_LIBS="$libgo_cv_lib_sockets"
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14216 $as_echo_n "checking whether -pthread is supported... " >&6; }
14217 if test "${libgo_cv_lib_pthread+set}" = set; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 CFLAGS_hold=$CFLAGS
14221 CFLAGS="$CFLAGS -pthread"
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14224 int i;
14225 _ACEOF
14226 if ac_fn_c_try_compile "$LINENO"; then :
14227 libgo_cv_lib_pthread=yes
14228 else
14229 libgo_cv_lib_pthread=no
14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 CFLAGS=$CFLAGS_hold
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14235 $as_echo "$libgo_cv_lib_pthread" >&6; }
14236 PTHREAD_CFLAGS=
14237 if test "$libgo_cv_lib_pthread" = yes; then
14238 PTHREAD_CFLAGS=-pthread
14242 PTHREAD_LIBS=
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14244 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14245 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14246 $as_echo_n "(cached) " >&6
14247 else
14248 ac_check_lib_save_LIBS=$LIBS
14249 LIBS="-lpthread $LIBS"
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14253 /* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14256 #ifdef __cplusplus
14257 extern "C"
14258 #endif
14259 char pthread_create ();
14261 main ()
14263 return pthread_create ();
14265 return 0;
14267 _ACEOF
14268 if ac_fn_c_try_link "$LINENO"; then :
14269 ac_cv_lib_pthread_pthread_create=yes
14270 else
14271 ac_cv_lib_pthread_pthread_create=no
14273 rm -f core conftest.err conftest.$ac_objext \
14274 conftest$ac_exeext conftest.$ac_ext
14275 LIBS=$ac_check_lib_save_LIBS
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14278 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14279 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14280 PTHREAD_LIBS=-lpthread
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14286 $as_echo_n "checking for library containing sched_yield... " >&6; }
14287 if test "${ac_cv_search_sched_yield+set}" = set; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 ac_func_search_save_LIBS=$LIBS
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14294 /* Override any GCC internal prototype to avoid an error.
14295 Use char because int might match the return type of a GCC
14296 builtin and then its argument prototype would still apply. */
14297 #ifdef __cplusplus
14298 extern "C"
14299 #endif
14300 char sched_yield ();
14302 main ()
14304 return sched_yield ();
14306 return 0;
14308 _ACEOF
14309 for ac_lib in '' rt; do
14310 if test -z "$ac_lib"; then
14311 ac_res="none required"
14312 else
14313 ac_res=-l$ac_lib
14314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14316 if ac_fn_c_try_link "$LINENO"; then :
14317 ac_cv_search_sched_yield=$ac_res
14319 rm -f core conftest.err conftest.$ac_objext \
14320 conftest$ac_exeext
14321 if test "${ac_cv_search_sched_yield+set}" = set; then :
14322 break
14324 done
14325 if test "${ac_cv_search_sched_yield+set}" = set; then :
14327 else
14328 ac_cv_search_sched_yield=no
14330 rm conftest.$ac_ext
14331 LIBS=$ac_func_search_save_LIBS
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14334 $as_echo "$ac_cv_search_sched_yield" >&6; }
14335 ac_res=$ac_cv_search_sched_yield
14336 if test "$ac_res" != no; then :
14337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14342 $as_echo_n "checking for library containing nanosleep... " >&6; }
14343 if test "${ac_cv_search_nanosleep+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 ac_func_search_save_LIBS=$LIBS
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14353 #ifdef __cplusplus
14354 extern "C"
14355 #endif
14356 char nanosleep ();
14358 main ()
14360 return nanosleep ();
14362 return 0;
14364 _ACEOF
14365 for ac_lib in '' rt; do
14366 if test -z "$ac_lib"; then
14367 ac_res="none required"
14368 else
14369 ac_res=-l$ac_lib
14370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14372 if ac_fn_c_try_link "$LINENO"; then :
14373 ac_cv_search_nanosleep=$ac_res
14375 rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext
14377 if test "${ac_cv_search_nanosleep+set}" = set; then :
14378 break
14380 done
14381 if test "${ac_cv_search_nanosleep+set}" = set; then :
14383 else
14384 ac_cv_search_nanosleep=no
14386 rm conftest.$ac_ext
14387 LIBS=$ac_func_search_save_LIBS
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14390 $as_echo "$ac_cv_search_nanosleep" >&6; }
14391 ac_res=$ac_cv_search_nanosleep
14392 if test "$ac_res" != no; then :
14393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14398 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14399 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 ac_func_search_save_LIBS=$LIBS
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14406 /* Override any GCC internal prototype to avoid an error.
14407 Use char because int might match the return type of a GCC
14408 builtin and then its argument prototype would still apply. */
14409 #ifdef __cplusplus
14410 extern "C"
14411 #endif
14412 char clock_gettime ();
14414 main ()
14416 return clock_gettime ();
14418 return 0;
14420 _ACEOF
14421 for ac_lib in '' rt; do
14422 if test -z "$ac_lib"; then
14423 ac_res="none required"
14424 else
14425 ac_res=-l$ac_lib
14426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14428 if ac_fn_c_try_link "$LINENO"; then :
14429 ac_cv_search_clock_gettime=$ac_res
14431 rm -f core conftest.err conftest.$ac_objext \
14432 conftest$ac_exeext
14433 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14434 break
14436 done
14437 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14439 else
14440 ac_cv_search_clock_gettime=no
14442 rm conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14446 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14447 ac_res=$ac_cv_search_clock_gettime
14448 if test "$ac_res" != no; then :
14449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14455 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14456 if test "${ac_cv_c_bigendian+set}" = set; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 ac_cv_c_bigendian=unknown
14460 # See if we're dealing with a universal compiler.
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14463 #ifndef __APPLE_CC__
14464 not a universal capable compiler
14465 #endif
14466 typedef int dummy;
14468 _ACEOF
14469 if ac_fn_c_try_compile "$LINENO"; then :
14471 # Check for potential -arch flags. It is not universal unless
14472 # there are at least two -arch flags with different values.
14473 ac_arch=
14474 ac_prev=
14475 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14476 if test -n "$ac_prev"; then
14477 case $ac_word in
14478 i?86 | x86_64 | ppc | ppc64)
14479 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14480 ac_arch=$ac_word
14481 else
14482 ac_cv_c_bigendian=universal
14483 break
14486 esac
14487 ac_prev=
14488 elif test "x$ac_word" = "x-arch"; then
14489 ac_prev=arch
14491 done
14493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494 if test $ac_cv_c_bigendian = unknown; then
14495 # See if sys/param.h defines the BYTE_ORDER macro.
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 #include <sys/types.h>
14499 #include <sys/param.h>
14502 main ()
14504 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14505 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14506 && LITTLE_ENDIAN)
14507 bogus endian macros
14508 #endif
14511 return 0;
14513 _ACEOF
14514 if ac_fn_c_try_compile "$LINENO"; then :
14515 # It does; now see whether it defined to BIG_ENDIAN or not.
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518 #include <sys/types.h>
14519 #include <sys/param.h>
14522 main ()
14524 #if BYTE_ORDER != BIG_ENDIAN
14525 not big endian
14526 #endif
14529 return 0;
14531 _ACEOF
14532 if ac_fn_c_try_compile "$LINENO"; then :
14533 ac_cv_c_bigendian=yes
14534 else
14535 ac_cv_c_bigendian=no
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 if test $ac_cv_c_bigendian = unknown; then
14542 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14545 #include <limits.h>
14548 main ()
14550 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14551 bogus endian macros
14552 #endif
14555 return 0;
14557 _ACEOF
14558 if ac_fn_c_try_compile "$LINENO"; then :
14559 # It does; now see whether it defined to _BIG_ENDIAN or not.
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 #include <limits.h>
14565 main ()
14567 #ifndef _BIG_ENDIAN
14568 not big endian
14569 #endif
14572 return 0;
14574 _ACEOF
14575 if ac_fn_c_try_compile "$LINENO"; then :
14576 ac_cv_c_bigendian=yes
14577 else
14578 ac_cv_c_bigendian=no
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14584 if test $ac_cv_c_bigendian = unknown; then
14585 # Compile a test program.
14586 if test "$cross_compiling" = yes; then :
14587 # Try to guess by grepping values from an object file.
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590 short int ascii_mm[] =
14591 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14592 short int ascii_ii[] =
14593 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14594 int use_ascii (int i) {
14595 return ascii_mm[i] + ascii_ii[i];
14597 short int ebcdic_ii[] =
14598 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14599 short int ebcdic_mm[] =
14600 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14601 int use_ebcdic (int i) {
14602 return ebcdic_mm[i] + ebcdic_ii[i];
14604 extern int foo;
14607 main ()
14609 return use_ascii (foo) == use_ebcdic (foo);
14611 return 0;
14613 _ACEOF
14614 if ac_fn_c_try_compile "$LINENO"; then :
14615 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14616 ac_cv_c_bigendian=yes
14618 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14619 if test "$ac_cv_c_bigendian" = unknown; then
14620 ac_cv_c_bigendian=no
14621 else
14622 # finding both strings is unlikely to happen, but who knows?
14623 ac_cv_c_bigendian=unknown
14627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14628 else
14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14631 $ac_includes_default
14633 main ()
14636 /* Are we little or big endian? From Harbison&Steele. */
14637 union
14639 long int l;
14640 char c[sizeof (long int)];
14641 } u;
14642 u.l = 1;
14643 return u.c[sizeof (long int) - 1] == 1;
14646 return 0;
14648 _ACEOF
14649 if ac_fn_c_try_run "$LINENO"; then :
14650 ac_cv_c_bigendian=no
14651 else
14652 ac_cv_c_bigendian=yes
14654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14655 conftest.$ac_objext conftest.beam conftest.$ac_ext
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14661 $as_echo "$ac_cv_c_bigendian" >&6; }
14662 case $ac_cv_c_bigendian in #(
14663 yes)
14664 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14665 ;; #(
14667 ;; #(
14668 universal)
14670 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14672 ;; #(
14674 as_fn_error "unknown endianness
14675 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14676 esac
14681 # Check whether --with-system-libunwind was given.
14682 if test "${with_system_libunwind+set}" = set; then :
14683 withval=$with_system_libunwind;
14686 # If system-libunwind was not specifically set, pick a default setting.
14687 if test x$with_system_libunwind = x; then
14688 case ${target} in
14689 ia64-*-hpux*) with_system_libunwind=yes ;;
14690 *) with_system_libunwind=no ;;
14691 esac
14693 # Based on system-libunwind and target, do we have ipinfo?
14694 if test x$with_system_libunwind = xyes; then
14695 case ${target} in
14696 ia64-*-*) have_unwind_getipinfo=no ;;
14697 *) have_unwind_getipinfo=yes ;;
14698 esac
14699 else
14700 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14702 case ${target} in
14703 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14704 *) have_unwind_getipinfo=yes ;;
14705 esac
14709 if test x$have_unwind_getipinfo = xyes; then
14711 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14716 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/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14717 do :
14718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14719 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14720 eval as_val=\$$as_ac_Header
14721 if test "x$as_val" = x""yes; then :
14722 cat >>confdefs.h <<_ACEOF
14723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14724 _ACEOF
14728 done
14731 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
14732 do :
14733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14734 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14735 #include <sys/socket.h>
14736 #endif
14739 eval as_val=\$$as_ac_Header
14740 if test "x$as_val" = x""yes; then :
14741 cat >>confdefs.h <<_ACEOF
14742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14743 _ACEOF
14747 done
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14751 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14752 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 CFLAGS_hold=$CFLAGS
14756 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14760 #include <sys/types.h>
14761 #ifdef HAVE_LINUX_FILTER_H
14762 #include <linux/filter.h>
14763 #endif
14764 #include <ustat.h>
14766 _ACEOF
14767 if ac_fn_c_try_compile "$LINENO"; then :
14768 libgo_cv_c_ustat_h=yes
14769 else
14770 libgo_cv_c_ustat_h=no
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 CFLAGS=$CFLAGS_hold
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14776 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14777 if test $libgo_cv_c_ustat_h = yes; then
14779 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14783 if test "$ac_cv_header_sys_mman_h" = yes; then
14784 HAVE_SYS_MMAN_H_TRUE=
14785 HAVE_SYS_MMAN_H_FALSE='#'
14786 else
14787 HAVE_SYS_MMAN_H_TRUE='#'
14788 HAVE_SYS_MMAN_H_FALSE=
14792 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14793 do :
14794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14795 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14796 eval as_val=\$$as_ac_var
14797 if test "x$as_val" = x""yes; then :
14798 cat >>confdefs.h <<_ACEOF
14799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14800 _ACEOF
14803 done
14805 if test "$ac_cv_func_strerror_r" = yes; then
14806 HAVE_STRERROR_R_TRUE=
14807 HAVE_STRERROR_R_FALSE='#'
14808 else
14809 HAVE_STRERROR_R_TRUE='#'
14810 HAVE_STRERROR_R_FALSE=
14813 if test "$ac_cv_func_wait4" = yes; then
14814 HAVE_WAIT4_TRUE=
14815 HAVE_WAIT4_FALSE='#'
14816 else
14817 HAVE_WAIT4_TRUE='#'
14818 HAVE_WAIT4_FALSE=
14822 for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
14823 do :
14824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14825 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14826 eval as_val=\$$as_ac_var
14827 if test "x$as_val" = x""yes; then :
14828 cat >>confdefs.h <<_ACEOF
14829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14830 _ACEOF
14833 done
14835 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14836 if test "x$ac_cv_type_off_t" = x""yes; then :
14838 else
14840 cat >>confdefs.h <<_ACEOF
14841 #define off_t long int
14842 _ACEOF
14846 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14847 if test "x$ac_cv_type_loff_t" = x""yes; then :
14849 cat >>confdefs.h <<_ACEOF
14850 #define HAVE_LOFF_T 1
14851 _ACEOF
14857 LIBS_hold="$LIBS"
14858 LIBS="$LIBS -lm"
14859 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14860 do :
14861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14863 eval as_val=\$$as_ac_var
14864 if test "x$as_val" = x""yes; then :
14865 cat >>confdefs.h <<_ACEOF
14866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14867 _ACEOF
14870 done
14872 LIBS="$LIBS_hold"
14874 CFLAGS_hold="$CFLAGS"
14875 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14876 LIBS_hold="$LIBS"
14877 LIBS="$LIBS $PTHREAD_LIBS"
14878 for ac_func in sem_timedwait
14879 do :
14880 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14881 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_SEM_TIMEDWAIT 1
14884 _ACEOF
14887 done
14889 CFLAGS="$CFLAGS_hold"
14890 LIBS="$LIBS_hold"
14892 LIBS_hold="$LIBS"
14893 LIBS="$LIBS $MATH_LIBS"
14894 for ac_func in matherr
14895 do :
14896 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14897 if test "x$ac_cv_func_matherr" = x""yes; then :
14898 cat >>confdefs.h <<_ACEOF
14899 #define HAVE_MATHERR 1
14900 _ACEOF
14903 done
14905 LIBS="$LIBS_hold"
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14908 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14909 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14915 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14916 uint32 i;
14917 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14919 _ACEOF
14920 if ac_fn_c_try_link "$LINENO"; then :
14921 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14922 else
14923 libgo_cv_func___sync_bool_compare_and_swap_4=no
14925 rm -f core conftest.err conftest.$ac_objext \
14926 conftest$ac_exeext conftest.$ac_ext
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14929 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14930 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14932 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14937 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14938 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14944 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14945 uint64 i;
14946 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"; then :
14950 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14951 else
14952 libgo_cv_func___sync_bool_compare_and_swap_8=no
14954 rm -f core conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14958 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14959 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14961 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14966 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14967 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14968 $as_echo_n "(cached) " >&6
14969 else
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14973 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14974 uint32 i;
14975 int main() { return __sync_fetch_and_add (&i, 1); }
14977 _ACEOF
14978 if ac_fn_c_try_link "$LINENO"; then :
14979 libgo_cv_func___sync_fetch_and_add_4=yes
14980 else
14981 libgo_cv_func___sync_fetch_and_add_4=no
14983 rm -f core conftest.err conftest.$ac_objext \
14984 conftest$ac_exeext conftest.$ac_ext
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14987 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14988 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14990 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14995 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14996 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14997 $as_echo_n "(cached) " >&6
14998 else
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15002 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15003 uint64 i;
15004 int main() { return __sync_add_and_fetch (&i, 1); }
15006 _ACEOF
15007 if ac_fn_c_try_link "$LINENO"; then :
15008 libgo_cv_func___sync_add_and_fetch_8=yes
15009 else
15010 libgo_cv_func___sync_add_and_fetch_8=no
15012 rm -f core conftest.err conftest.$ac_objext \
15013 conftest$ac_exeext conftest.$ac_ext
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15016 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15017 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15019 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15024 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15025 if test "${libgo_cv_c_stringops+set}" = set; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028 CFLAGS_hold=$CFLAGS
15029 CFLAGS="$CFLAGS -minline-all-stringops"
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 int i;
15033 _ACEOF
15034 if ac_fn_c_try_compile "$LINENO"; then :
15035 libgo_cv_c_stringops=yes
15036 else
15037 libgo_cv_c_stringops=no
15039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15040 CFLAGS=$CFLAGS_hold
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15043 $as_echo "$libgo_cv_c_stringops" >&6; }
15044 STRINGOPS_FLAG=
15045 if test "$libgo_cv_c_stringops" = yes; then
15046 STRINGOPS_FLAG=-minline-all-stringops
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15051 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15052 if test "${libgo_cv_c_fancymath+set}" = set; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 CFLAGS_hold=$CFLAGS
15056 CFLAGS="$CFLAGS -mfancy-math-387"
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059 int i;
15060 _ACEOF
15061 if ac_fn_c_try_compile "$LINENO"; then :
15062 libgo_cv_c_fancymath=yes
15063 else
15064 libgo_cv_c_fancymath=no
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 CFLAGS=$CFLAGS_hold
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15070 $as_echo "$libgo_cv_c_fancymath" >&6; }
15071 MATH_FLAG=
15072 if test "$libgo_cv_c_fancymath" = yes; then
15073 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15074 else
15075 MATH_FLAG="-ffp-contract=off"
15079 CFLAGS_hold=$CFLAGS
15080 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15081 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15082 if test "x$ac_cv_type_off64_t" = x""yes; then :
15084 cat >>confdefs.h <<_ACEOF
15085 #define HAVE_OFF64_T 1
15086 _ACEOF
15091 CFLAGS=$CFLAGS_hold
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15094 $as_echo_n "checking epoll_event size... " >&6; }
15095 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15096 $as_echo_n "(cached) " >&6
15097 else
15098 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15100 else
15101 libgo_cv_c_epoll_event_size=0
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15106 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15107 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15111 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15112 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15116 #include <sys/epoll.h>"; then :
15118 else
15119 libgo_cv_c_epoll_event_fd_offset=0
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15124 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15125 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 #include <sys/stat.h>
15132 _ACEOF
15133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15134 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15135 have_stat_timespec=yes
15136 else
15137 have_stat_timespec=no
15139 rm -f conftest*
15141 if test $have_stat_timespec = yes; then
15142 HAVE_STAT_TIMESPEC_TRUE=
15143 HAVE_STAT_TIMESPEC_FALSE='#'
15144 else
15145 HAVE_STAT_TIMESPEC_TRUE='#'
15146 HAVE_STAT_TIMESPEC_FALSE=
15150 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15152 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15153 libgo_has_struct_exception=yes
15154 else
15155 libgo_has_struct_exception=no
15158 if test "$libgo_has_struct_exception" = "yes"; then
15160 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15165 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15166 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15167 $as_echo_n "(cached) " >&6
15168 else
15169 CFLAGS_hold="$CFLAGS"
15170 CFLAGS="$PTHREAD_CFLAGS"
15171 LIBS_hold="$LIBS"
15172 LIBS="$LIBS $PTHREAD_LIBS"
15173 # The cast to long int works around a bug in the HP C Compiler
15174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15176 # This bug is HP SR number 8606223364.
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15178 $as_echo_n "checking size of void *... " >&6; }
15179 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15184 else
15185 if test "$ac_cv_type_void_p" = yes; then
15186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15188 { as_fn_set_status 77
15189 as_fn_error "cannot compute sizeof (void *)
15190 See \`config.log' for more details." "$LINENO" 5; }; }
15191 else
15192 ac_cv_sizeof_void_p=0
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15198 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15202 cat >>confdefs.h <<_ACEOF
15203 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15204 _ACEOF
15207 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15208 if test "$cross_compiling" = yes; then :
15209 case "$target:$ptr_type_size" in
15210 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15211 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15213 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15214 esac
15216 else
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15220 #include <pthread.h>
15221 #include <stdlib.h>
15222 #include <ucontext.h>
15223 #include <unistd.h>
15225 __thread int tls;
15227 static char stack[10 * 1024 * 1024];
15228 static ucontext_t c;
15230 /* Called via makecontext/setcontext. */
15232 static void
15233 cfn (void)
15235 exit (tls);
15238 /* Called via pthread_create. */
15240 static void *
15241 tfn (void *dummy)
15243 /* The thread should still see this value after calling
15244 setcontext. */
15245 tls = 0;
15247 setcontext (&c);
15249 /* The call to setcontext should not return. */
15250 abort ();
15254 main ()
15256 pthread_t tid;
15258 /* The thread should not see this value. */
15259 tls = 1;
15261 if (getcontext (&c) < 0)
15262 abort ();
15264 c.uc_stack.ss_sp = stack;
15265 #ifdef MAKECONTEXT_STACK_TOP
15266 c.uc_stack.ss_sp += sizeof stack;
15267 #endif
15268 c.uc_stack.ss_flags = 0;
15269 c.uc_stack.ss_size = sizeof stack;
15270 c.uc_link = NULL;
15271 makecontext (&c, cfn, 0);
15273 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15274 abort ();
15276 if (pthread_join (tid, NULL) != 0)
15277 abort ();
15279 /* The thread should have called exit. */
15280 abort ();
15283 _ACEOF
15284 if ac_fn_c_try_run "$LINENO"; then :
15285 libgo_cv_lib_setcontext_clobbers_tls=no
15286 else
15287 libgo_cv_lib_setcontext_clobbers_tls=yes
15289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15290 conftest.$ac_objext conftest.beam conftest.$ac_ext
15293 CFLAGS="$CFLAGS_hold"
15294 LIBS="$LIBS_hold"
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15298 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15299 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15301 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15306 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15307 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15308 $as_echo_n "(cached) " >&6
15309 else
15311 libgo_cv_ro_eh_frame=no
15312 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15313 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15314 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15315 libgo_cv_ro_eh_frame=yes
15316 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15317 | grep -v '#write' > /dev/null; then
15318 libgo_cv_ro_eh_frame=yes
15321 rm -f conftest.*
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15325 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15326 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15328 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15330 else
15332 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15337 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15338 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15339 $as_echo_n "(cached) " >&6
15340 else
15341 CFLAGS_hold=$CFLAGS
15342 CFLAGS="$CFLAGS -Qunused-arguments"
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345 int i;
15346 _ACEOF
15347 if ac_fn_c_try_compile "$LINENO"; then :
15348 libgo_cv_c_unused_arguments=yes
15349 else
15350 libgo_cv_c_unused_arguments=no
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353 CFLAGS=$CFLAGS_hold
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15356 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15359 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15360 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15361 $as_echo_n "(cached) " >&6
15362 else
15364 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15365 CFLAGS_hold=$CFLAGS
15366 if test "$libgo_cv_c_unused_arguments" = yes; then
15367 CFLAGS="$CFLAGS -Qunused-arguments"
15369 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15370 libgo_cv_as_comdat_gnu=yes
15371 else
15372 libgo_cv_as_comdat_gnu=no
15374 CFLAGS=$CFLAGS_hold
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15378 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15379 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15381 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15386 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15387 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15388 $as_echo_n "(cached) " >&6
15389 else
15391 libgo_cv_as_x86_pcrel=yes
15392 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15393 CFLAGS_hold=$CFLAGS
15394 if test "$libgo_cv_c_unused_arguments" = yes; then
15395 CFLAGS="$CFLAGS -Qunused-arguments"
15397 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15398 libgo_cv_as_x86_pcrel=no
15400 CFLAGS=$CFLAGS_hold
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15404 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15405 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15407 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15412 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15413 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15414 $as_echo_n "(cached) " >&6
15415 else
15417 libgo_cv_as_x86_64_unwind_section_type=yes
15418 echo '.section .eh_frame,"a",@unwind' > conftest.s
15419 CFLAGS_hold=$CFLAGS
15420 if test "$libgo_cv_c_unused_arguments" = yes; then
15421 CFLAGS="$CFLAGS -Qunused-arguments"
15423 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15424 libgo_cv_as_x86_64_unwind_section_type=no
15426 CFLAGS=$CFLAGS_hold
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15430 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15431 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15433 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15437 cat >confcache <<\_ACEOF
15438 # This file is a shell script that caches the results of configure
15439 # tests run on this system so they can be shared between configure
15440 # scripts and configure runs, see configure's option --config-cache.
15441 # It is not useful on other systems. If it contains results you don't
15442 # want to keep, you may remove or edit it.
15444 # config.status only pays attention to the cache file if you give it
15445 # the --recheck option to rerun configure.
15447 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15448 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15449 # following values.
15451 _ACEOF
15453 # The following way of writing the cache mishandles newlines in values,
15454 # but we know of no workaround that is simple, portable, and efficient.
15455 # So, we kill variables containing newlines.
15456 # Ultrix sh set writes to stderr and can't be redirected directly,
15457 # and sets the high bit in the cache file unless we assign to the vars.
15459 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15460 eval ac_val=\$$ac_var
15461 case $ac_val in #(
15462 *${as_nl}*)
15463 case $ac_var in #(
15464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15466 esac
15467 case $ac_var in #(
15468 _ | IFS | as_nl) ;; #(
15469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15470 *) { eval $ac_var=; unset $ac_var;} ;;
15471 esac ;;
15472 esac
15473 done
15475 (set) 2>&1 |
15476 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15477 *${as_nl}ac_space=\ *)
15478 # `set' does not quote correctly, so add quotes: double-quote
15479 # substitution turns \\\\ into \\, and sed turns \\ into \.
15480 sed -n \
15481 "s/'/'\\\\''/g;
15482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15483 ;; #(
15485 # `set' quotes correctly as required by POSIX, so do not add quotes.
15486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15488 esac |
15489 sort
15491 sed '
15492 /^ac_cv_env_/b end
15493 t clear
15494 :clear
15495 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15496 t end
15497 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15498 :end' >>confcache
15499 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15500 if test -w "$cache_file"; then
15501 test "x$cache_file" != "x/dev/null" &&
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15503 $as_echo "$as_me: updating cache $cache_file" >&6;}
15504 cat confcache >$cache_file
15505 else
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15507 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15510 rm -f confcache
15512 if test ${multilib} = yes; then
15513 multilib_arg="--enable-multilib"
15514 else
15515 multilib_arg=
15518 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15521 ac_config_commands="$ac_config_commands default"
15524 cat >confcache <<\_ACEOF
15525 # This file is a shell script that caches the results of configure
15526 # tests run on this system so they can be shared between configure
15527 # scripts and configure runs, see configure's option --config-cache.
15528 # It is not useful on other systems. If it contains results you don't
15529 # want to keep, you may remove or edit it.
15531 # config.status only pays attention to the cache file if you give it
15532 # the --recheck option to rerun configure.
15534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15536 # following values.
15538 _ACEOF
15540 # The following way of writing the cache mishandles newlines in values,
15541 # but we know of no workaround that is simple, portable, and efficient.
15542 # So, we kill variables containing newlines.
15543 # Ultrix sh set writes to stderr and can't be redirected directly,
15544 # and sets the high bit in the cache file unless we assign to the vars.
15546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15547 eval ac_val=\$$ac_var
15548 case $ac_val in #(
15549 *${as_nl}*)
15550 case $ac_var in #(
15551 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15553 esac
15554 case $ac_var in #(
15555 _ | IFS | as_nl) ;; #(
15556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15557 *) { eval $ac_var=; unset $ac_var;} ;;
15558 esac ;;
15559 esac
15560 done
15562 (set) 2>&1 |
15563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15564 *${as_nl}ac_space=\ *)
15565 # `set' does not quote correctly, so add quotes: double-quote
15566 # substitution turns \\\\ into \\, and sed turns \\ into \.
15567 sed -n \
15568 "s/'/'\\\\''/g;
15569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15570 ;; #(
15572 # `set' quotes correctly as required by POSIX, so do not add quotes.
15573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15575 esac |
15576 sort
15578 sed '
15579 /^ac_cv_env_/b end
15580 t clear
15581 :clear
15582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15583 t end
15584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15585 :end' >>confcache
15586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15587 if test -w "$cache_file"; then
15588 test "x$cache_file" != "x/dev/null" &&
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15590 $as_echo "$as_me: updating cache $cache_file" >&6;}
15591 cat confcache >$cache_file
15592 else
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15597 rm -f confcache
15599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15600 # Let make expand exec_prefix.
15601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15603 DEFS=-DHAVE_CONFIG_H
15605 ac_libobjs=
15606 ac_ltlibobjs=
15607 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15608 # 1. Remove the extension, and $U if already installed.
15609 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15610 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15611 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15612 # will be set to the directory where LIBOBJS objects are built.
15613 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15614 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15615 done
15616 LIBOBJS=$ac_libobjs
15618 LTLIBOBJS=$ac_ltlibobjs
15621 if test -n "$EXEEXT"; then
15622 am__EXEEXT_TRUE=
15623 am__EXEEXT_FALSE='#'
15624 else
15625 am__EXEEXT_TRUE='#'
15626 am__EXEEXT_FALSE=
15629 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15630 as_fn_error "conditional \"AMDEP\" was never defined.
15631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15633 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15634 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15637 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15638 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15641 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15642 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15645 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15646 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15649 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15650 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15653 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15654 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15657 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15658 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15661 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15662 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15665 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15666 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15669 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15670 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15674 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15678 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15681 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15682 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15685 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15686 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15691 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15694 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15695 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15698 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15699 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15702 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15703 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15707 : ${CONFIG_STATUS=./config.status}
15708 ac_write_fail=0
15709 ac_clean_files_save=$ac_clean_files
15710 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15712 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15713 as_write_fail=0
15714 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15715 #! $SHELL
15716 # Generated by $as_me.
15717 # Run this file to recreate the current configuration.
15718 # Compiler output produced by configure, useful for debugging
15719 # configure, is in config.log if it exists.
15721 debug=false
15722 ac_cs_recheck=false
15723 ac_cs_silent=false
15725 SHELL=\${CONFIG_SHELL-$SHELL}
15726 export SHELL
15727 _ASEOF
15728 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15729 ## -------------------- ##
15730 ## M4sh Initialization. ##
15731 ## -------------------- ##
15733 # Be more Bourne compatible
15734 DUALCASE=1; export DUALCASE # for MKS sh
15735 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15736 emulate sh
15737 NULLCMD=:
15738 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15739 # is contrary to our usage. Disable this feature.
15740 alias -g '${1+"$@"}'='"$@"'
15741 setopt NO_GLOB_SUBST
15742 else
15743 case `(set -o) 2>/dev/null` in #(
15744 *posix*) :
15745 set -o posix ;; #(
15746 *) :
15748 esac
15752 as_nl='
15754 export as_nl
15755 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15756 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15757 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15758 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15759 # Prefer a ksh shell builtin over an external printf program on Solaris,
15760 # but without wasting forks for bash or zsh.
15761 if test -z "$BASH_VERSION$ZSH_VERSION" \
15762 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15763 as_echo='print -r --'
15764 as_echo_n='print -rn --'
15765 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15766 as_echo='printf %s\n'
15767 as_echo_n='printf %s'
15768 else
15769 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15770 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15771 as_echo_n='/usr/ucb/echo -n'
15772 else
15773 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15774 as_echo_n_body='eval
15775 arg=$1;
15776 case $arg in #(
15777 *"$as_nl"*)
15778 expr "X$arg" : "X\\(.*\\)$as_nl";
15779 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15780 esac;
15781 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15783 export as_echo_n_body
15784 as_echo_n='sh -c $as_echo_n_body as_echo'
15786 export as_echo_body
15787 as_echo='sh -c $as_echo_body as_echo'
15790 # The user is always right.
15791 if test "${PATH_SEPARATOR+set}" != set; then
15792 PATH_SEPARATOR=:
15793 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15794 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15795 PATH_SEPARATOR=';'
15800 # IFS
15801 # We need space, tab and new line, in precisely that order. Quoting is
15802 # there to prevent editors from complaining about space-tab.
15803 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15804 # splitting by setting IFS to empty value.)
15805 IFS=" "" $as_nl"
15807 # Find who we are. Look in the path if we contain no directory separator.
15808 case $0 in #((
15809 *[\\/]* ) as_myself=$0 ;;
15810 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15811 for as_dir in $PATH
15813 IFS=$as_save_IFS
15814 test -z "$as_dir" && as_dir=.
15815 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15816 done
15817 IFS=$as_save_IFS
15820 esac
15821 # We did not find ourselves, most probably we were run as `sh COMMAND'
15822 # in which case we are not to be found in the path.
15823 if test "x$as_myself" = x; then
15824 as_myself=$0
15826 if test ! -f "$as_myself"; then
15827 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15828 exit 1
15831 # Unset variables that we do not need and which cause bugs (e.g. in
15832 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15833 # suppresses any "Segmentation fault" message there. '((' could
15834 # trigger a bug in pdksh 5.2.14.
15835 for as_var in BASH_ENV ENV MAIL MAILPATH
15836 do eval test x\${$as_var+set} = xset \
15837 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15838 done
15839 PS1='$ '
15840 PS2='> '
15841 PS4='+ '
15843 # NLS nuisances.
15844 LC_ALL=C
15845 export LC_ALL
15846 LANGUAGE=C
15847 export LANGUAGE
15849 # CDPATH.
15850 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15853 # as_fn_error ERROR [LINENO LOG_FD]
15854 # ---------------------------------
15855 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15856 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15857 # script with status $?, using 1 if that was 0.
15858 as_fn_error ()
15860 as_status=$?; test $as_status -eq 0 && as_status=1
15861 if test "$3"; then
15862 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15863 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15865 $as_echo "$as_me: error: $1" >&2
15866 as_fn_exit $as_status
15867 } # as_fn_error
15870 # as_fn_set_status STATUS
15871 # -----------------------
15872 # Set $? to STATUS, without forking.
15873 as_fn_set_status ()
15875 return $1
15876 } # as_fn_set_status
15878 # as_fn_exit STATUS
15879 # -----------------
15880 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15881 as_fn_exit ()
15883 set +e
15884 as_fn_set_status $1
15885 exit $1
15886 } # as_fn_exit
15888 # as_fn_unset VAR
15889 # ---------------
15890 # Portably unset VAR.
15891 as_fn_unset ()
15893 { eval $1=; unset $1;}
15895 as_unset=as_fn_unset
15896 # as_fn_append VAR VALUE
15897 # ----------------------
15898 # Append the text in VALUE to the end of the definition contained in VAR. Take
15899 # advantage of any shell optimizations that allow amortized linear growth over
15900 # repeated appends, instead of the typical quadratic growth present in naive
15901 # implementations.
15902 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15903 eval 'as_fn_append ()
15905 eval $1+=\$2
15907 else
15908 as_fn_append ()
15910 eval $1=\$$1\$2
15912 fi # as_fn_append
15914 # as_fn_arith ARG...
15915 # ------------------
15916 # Perform arithmetic evaluation on the ARGs, and store the result in the
15917 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15918 # must be portable across $(()) and expr.
15919 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15920 eval 'as_fn_arith ()
15922 as_val=$(( $* ))
15924 else
15925 as_fn_arith ()
15927 as_val=`expr "$@" || test $? -eq 1`
15929 fi # as_fn_arith
15932 if expr a : '\(a\)' >/dev/null 2>&1 &&
15933 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15934 as_expr=expr
15935 else
15936 as_expr=false
15939 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15940 as_basename=basename
15941 else
15942 as_basename=false
15945 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15946 as_dirname=dirname
15947 else
15948 as_dirname=false
15951 as_me=`$as_basename -- "$0" ||
15952 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15953 X"$0" : 'X\(//\)$' \| \
15954 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15955 $as_echo X/"$0" |
15956 sed '/^.*\/\([^/][^/]*\)\/*$/{
15957 s//\1/
15960 /^X\/\(\/\/\)$/{
15961 s//\1/
15964 /^X\/\(\/\).*/{
15965 s//\1/
15968 s/.*/./; q'`
15970 # Avoid depending upon Character Ranges.
15971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15974 as_cr_digits='0123456789'
15975 as_cr_alnum=$as_cr_Letters$as_cr_digits
15977 ECHO_C= ECHO_N= ECHO_T=
15978 case `echo -n x` in #(((((
15979 -n*)
15980 case `echo 'xy\c'` in
15981 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15982 xy) ECHO_C='\c';;
15983 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15984 ECHO_T=' ';;
15985 esac;;
15987 ECHO_N='-n';;
15988 esac
15990 rm -f conf$$ conf$$.exe conf$$.file
15991 if test -d conf$$.dir; then
15992 rm -f conf$$.dir/conf$$.file
15993 else
15994 rm -f conf$$.dir
15995 mkdir conf$$.dir 2>/dev/null
15997 if (echo >conf$$.file) 2>/dev/null; then
15998 if ln -s conf$$.file conf$$ 2>/dev/null; then
15999 as_ln_s='ln -s'
16000 # ... but there are two gotchas:
16001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16003 # In both cases, we have to default to `cp -p'.
16004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16005 as_ln_s='cp -p'
16006 elif ln conf$$.file conf$$ 2>/dev/null; then
16007 as_ln_s=ln
16008 else
16009 as_ln_s='cp -p'
16011 else
16012 as_ln_s='cp -p'
16014 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16015 rmdir conf$$.dir 2>/dev/null
16018 # as_fn_mkdir_p
16019 # -------------
16020 # Create "$as_dir" as a directory, including parents if necessary.
16021 as_fn_mkdir_p ()
16024 case $as_dir in #(
16025 -*) as_dir=./$as_dir;;
16026 esac
16027 test -d "$as_dir" || eval $as_mkdir_p || {
16028 as_dirs=
16029 while :; do
16030 case $as_dir in #(
16031 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16032 *) as_qdir=$as_dir;;
16033 esac
16034 as_dirs="'$as_qdir' $as_dirs"
16035 as_dir=`$as_dirname -- "$as_dir" ||
16036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16037 X"$as_dir" : 'X\(//\)[^/]' \| \
16038 X"$as_dir" : 'X\(//\)$' \| \
16039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16040 $as_echo X"$as_dir" |
16041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16042 s//\1/
16045 /^X\(\/\/\)[^/].*/{
16046 s//\1/
16049 /^X\(\/\/\)$/{
16050 s//\1/
16053 /^X\(\/\).*/{
16054 s//\1/
16057 s/.*/./; q'`
16058 test -d "$as_dir" && break
16059 done
16060 test -z "$as_dirs" || eval "mkdir $as_dirs"
16061 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16064 } # as_fn_mkdir_p
16065 if mkdir -p . 2>/dev/null; then
16066 as_mkdir_p='mkdir -p "$as_dir"'
16067 else
16068 test -d ./-p && rmdir ./-p
16069 as_mkdir_p=false
16072 if test -x / >/dev/null 2>&1; then
16073 as_test_x='test -x'
16074 else
16075 if ls -dL / >/dev/null 2>&1; then
16076 as_ls_L_option=L
16077 else
16078 as_ls_L_option=
16080 as_test_x='
16081 eval sh -c '\''
16082 if test -d "$1"; then
16083 test -d "$1/.";
16084 else
16085 case $1 in #(
16086 -*)set "./$1";;
16087 esac;
16088 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16089 ???[sx]*):;;*)false;;esac;fi
16090 '\'' sh
16093 as_executable_p=$as_test_x
16095 # Sed expression to map a string onto a valid CPP name.
16096 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16098 # Sed expression to map a string onto a valid variable name.
16099 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16102 exec 6>&1
16103 ## ----------------------------------- ##
16104 ## Main body of $CONFIG_STATUS script. ##
16105 ## ----------------------------------- ##
16106 _ASEOF
16107 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16110 # Save the log message, to keep $0 and so on meaningful, and to
16111 # report actual input values of CONFIG_FILES etc. instead of their
16112 # values after options handling.
16113 ac_log="
16114 This file was extended by package-unused $as_me version-unused, which was
16115 generated by GNU Autoconf 2.64. Invocation command line was
16117 CONFIG_FILES = $CONFIG_FILES
16118 CONFIG_HEADERS = $CONFIG_HEADERS
16119 CONFIG_LINKS = $CONFIG_LINKS
16120 CONFIG_COMMANDS = $CONFIG_COMMANDS
16121 $ $0 $@
16123 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16126 _ACEOF
16128 case $ac_config_files in *"
16129 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16130 esac
16132 case $ac_config_headers in *"
16133 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16134 esac
16137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16138 # Files that config.status was made for.
16139 config_files="$ac_config_files"
16140 config_headers="$ac_config_headers"
16141 config_commands="$ac_config_commands"
16143 _ACEOF
16145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16146 ac_cs_usage="\
16147 \`$as_me' instantiates files and other configuration actions
16148 from templates according to the current configuration. Unless the files
16149 and actions are specified as TAGs, all are instantiated by default.
16151 Usage: $0 [OPTION]... [TAG]...
16153 -h, --help print this help, then exit
16154 -V, --version print version number and configuration settings, then exit
16155 -q, --quiet, --silent
16156 do not print progress messages
16157 -d, --debug don't remove temporary files
16158 --recheck update $as_me by reconfiguring in the same conditions
16159 --file=FILE[:TEMPLATE]
16160 instantiate the configuration file FILE
16161 --header=FILE[:TEMPLATE]
16162 instantiate the configuration header FILE
16164 Configuration files:
16165 $config_files
16167 Configuration headers:
16168 $config_headers
16170 Configuration commands:
16171 $config_commands
16173 Report bugs to the package provider."
16175 _ACEOF
16176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16177 ac_cs_version="\\
16178 package-unused config.status version-unused
16179 configured by $0, generated by GNU Autoconf 2.64,
16180 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16182 Copyright (C) 2009 Free Software Foundation, Inc.
16183 This config.status script is free software; the Free Software Foundation
16184 gives unlimited permission to copy, distribute and modify it."
16186 ac_pwd='$ac_pwd'
16187 srcdir='$srcdir'
16188 INSTALL='$INSTALL'
16189 MKDIR_P='$MKDIR_P'
16190 AWK='$AWK'
16191 test -n "\$AWK" || AWK=awk
16192 _ACEOF
16194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16195 # The default lists apply if the user does not specify any file.
16196 ac_need_defaults=:
16197 while test $# != 0
16199 case $1 in
16200 --*=*)
16201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16202 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16203 ac_shift=:
16206 ac_option=$1
16207 ac_optarg=$2
16208 ac_shift=shift
16210 esac
16212 case $ac_option in
16213 # Handling of the options.
16214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16215 ac_cs_recheck=: ;;
16216 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16217 $as_echo "$ac_cs_version"; exit ;;
16218 --debug | --debu | --deb | --de | --d | -d )
16219 debug=: ;;
16220 --file | --fil | --fi | --f )
16221 $ac_shift
16222 case $ac_optarg in
16223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16224 esac
16225 as_fn_append CONFIG_FILES " '$ac_optarg'"
16226 ac_need_defaults=false;;
16227 --header | --heade | --head | --hea )
16228 $ac_shift
16229 case $ac_optarg in
16230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16231 esac
16232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16233 ac_need_defaults=false;;
16234 --he | --h)
16235 # Conflict between --help and --header
16236 as_fn_error "ambiguous option: \`$1'
16237 Try \`$0 --help' for more information.";;
16238 --help | --hel | -h )
16239 $as_echo "$ac_cs_usage"; exit ;;
16240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16242 ac_cs_silent=: ;;
16244 # This is an error.
16245 -*) as_fn_error "unrecognized option: \`$1'
16246 Try \`$0 --help' for more information." ;;
16248 *) as_fn_append ac_config_targets " $1"
16249 ac_need_defaults=false ;;
16251 esac
16252 shift
16253 done
16255 ac_configure_extra_args=
16257 if $ac_cs_silent; then
16258 exec 6>/dev/null
16259 ac_configure_extra_args="$ac_configure_extra_args --silent"
16262 _ACEOF
16263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16264 if \$ac_cs_recheck; then
16265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16266 shift
16267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16268 CONFIG_SHELL='$SHELL'
16269 export CONFIG_SHELL
16270 exec "\$@"
16273 _ACEOF
16274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16275 exec 5>>config.log
16277 echo
16278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16279 ## Running $as_me. ##
16280 _ASBOX
16281 $as_echo "$ac_log"
16282 } >&5
16284 _ACEOF
16285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16287 # INIT-COMMANDS
16290 srcdir="$srcdir"
16291 host="$host"
16292 target="$target"
16293 with_multisubdir="$with_multisubdir"
16294 with_multisrctop="$with_multisrctop"
16295 with_target_subdir="$with_target_subdir"
16296 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16297 multi_basedir="$multi_basedir"
16298 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16299 CC="$CC"
16300 CXX="$CXX"
16301 GFORTRAN="$GFORTRAN"
16302 GCJ="$GCJ"
16303 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16306 # The HP-UX ksh and POSIX shell print the target directory to stdout
16307 # if CDPATH is set.
16308 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16310 sed_quote_subst='$sed_quote_subst'
16311 double_quote_subst='$double_quote_subst'
16312 delay_variable_subst='$delay_variable_subst'
16313 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16314 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16315 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16316 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16317 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16318 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16319 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16320 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16321 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16322 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16323 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16324 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16325 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16326 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16327 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16328 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16329 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16330 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16331 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16332 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16333 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16334 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16335 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16336 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16337 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16338 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16339 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16340 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16341 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16342 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16343 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16344 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16345 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16346 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16347 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16348 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16349 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16350 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16351 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16352 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16353 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16354 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16355 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16356 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16357 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16358 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16359 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16360 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16361 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"`'
16362 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16363 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16364 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16365 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16366 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16367 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16368 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16369 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16370 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16371 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16372 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16373 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16374 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16375 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16376 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16377 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16378 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16379 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16380 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16381 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16382 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16383 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16384 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16385 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16386 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16387 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16388 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16389 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16390 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16391 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16392 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16393 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16394 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16395 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16396 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16397 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16398 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16399 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16400 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16401 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16402 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16403 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16404 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16405 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16406 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16407 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16408 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16409 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16410 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16411 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16412 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16413 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16414 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16415 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16416 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16417 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16418 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16419 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16420 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16421 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16422 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16423 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16424 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16425 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16426 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16427 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16428 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16429 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16430 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16431 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16432 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16433 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16434 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16435 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16436 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16437 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16438 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16439 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16440 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16441 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16442 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16443 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16444 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16445 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16446 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16447 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16448 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16449 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16450 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16451 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16452 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16453 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16454 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16455 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16456 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16457 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16458 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16459 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16460 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16461 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16462 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16463 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16464 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16465 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16466 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16467 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16468 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16469 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16470 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16471 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16472 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16473 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16474 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16475 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16477 LTCC='$LTCC'
16478 LTCFLAGS='$LTCFLAGS'
16479 compiler='$compiler_DEFAULT'
16481 # A function that is used when there is no print builtin or printf.
16482 func_fallback_echo ()
16484 eval 'cat <<_LTECHO_EOF
16486 _LTECHO_EOF'
16489 # Quote evaled strings.
16490 for var in SED \
16491 GREP \
16492 EGREP \
16493 FGREP \
16494 SHELL \
16495 ECHO \
16496 LD \
16497 NM \
16498 LN_S \
16499 lt_SP2NL \
16500 lt_NL2SP \
16501 reload_flag \
16502 OBJDUMP \
16503 deplibs_check_method \
16504 file_magic_cmd \
16505 AR \
16506 AR_FLAGS \
16507 STRIP \
16508 RANLIB \
16509 CC \
16510 CFLAGS \
16511 compiler \
16512 lt_cv_sys_global_symbol_pipe \
16513 lt_cv_sys_global_symbol_to_cdecl \
16514 lt_cv_sys_global_symbol_to_c_name_address \
16515 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16516 lt_prog_compiler_no_builtin_flag \
16517 lt_prog_compiler_wl \
16518 lt_prog_compiler_pic \
16519 lt_prog_compiler_static \
16520 lt_cv_prog_compiler_c_o \
16521 need_locks \
16522 DSYMUTIL \
16523 NMEDIT \
16524 LIPO \
16525 OTOOL \
16526 OTOOL64 \
16527 shrext_cmds \
16528 export_dynamic_flag_spec \
16529 whole_archive_flag_spec \
16530 compiler_needs_object \
16531 with_gnu_ld \
16532 allow_undefined_flag \
16533 no_undefined_flag \
16534 hardcode_libdir_flag_spec \
16535 hardcode_libdir_flag_spec_ld \
16536 hardcode_libdir_separator \
16537 fix_srcfile_path \
16538 exclude_expsyms \
16539 include_expsyms \
16540 file_list_spec \
16541 variables_saved_for_relink \
16542 libname_spec \
16543 library_names_spec \
16544 soname_spec \
16545 install_override_mode \
16546 finish_eval \
16547 old_striplib \
16548 striplib \
16549 LD_GO \
16550 reload_flag_GO \
16551 compiler_GO \
16552 lt_prog_compiler_no_builtin_flag_GO \
16553 lt_prog_compiler_wl_GO \
16554 lt_prog_compiler_pic_GO \
16555 lt_prog_compiler_static_GO \
16556 lt_cv_prog_compiler_c_o_GO \
16557 export_dynamic_flag_spec_GO \
16558 whole_archive_flag_spec_GO \
16559 compiler_needs_object_GO \
16560 with_gnu_ld_GO \
16561 allow_undefined_flag_GO \
16562 no_undefined_flag_GO \
16563 hardcode_libdir_flag_spec_GO \
16564 hardcode_libdir_flag_spec_ld_GO \
16565 hardcode_libdir_separator_GO \
16566 fix_srcfile_path_GO \
16567 exclude_expsyms_GO \
16568 include_expsyms_GO \
16569 file_list_spec_GO; do
16570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16571 *[\\\\\\\`\\"\\\$]*)
16572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16577 esac
16578 done
16580 # Double-quote double-evaled strings.
16581 for var in reload_cmds \
16582 old_postinstall_cmds \
16583 old_postuninstall_cmds \
16584 old_archive_cmds \
16585 extract_expsyms_cmds \
16586 old_archive_from_new_cmds \
16587 old_archive_from_expsyms_cmds \
16588 archive_cmds \
16589 archive_expsym_cmds \
16590 module_cmds \
16591 module_expsym_cmds \
16592 export_symbols_cmds \
16593 prelink_cmds \
16594 postinstall_cmds \
16595 postuninstall_cmds \
16596 finish_cmds \
16597 sys_lib_search_path_spec \
16598 sys_lib_dlsearch_path_spec \
16599 reload_cmds_GO \
16600 old_archive_cmds_GO \
16601 old_archive_from_new_cmds_GO \
16602 old_archive_from_expsyms_cmds_GO \
16603 archive_cmds_GO \
16604 archive_expsym_cmds_GO \
16605 module_cmds_GO \
16606 module_expsym_cmds_GO \
16607 export_symbols_cmds_GO \
16608 prelink_cmds_GO; do
16609 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16610 *[\\\\\\\`\\"\\\$]*)
16611 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16614 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16616 esac
16617 done
16619 ac_aux_dir='$ac_aux_dir'
16620 xsi_shell='$xsi_shell'
16621 lt_shell_append='$lt_shell_append'
16623 # See if we are running on zsh, and set the options which allow our
16624 # commands through without removal of \ escapes INIT.
16625 if test -n "\${ZSH_VERSION+set}" ; then
16626 setopt NO_GLOB_SUBST
16630 PACKAGE='$PACKAGE'
16631 VERSION='$VERSION'
16632 TIMESTAMP='$TIMESTAMP'
16633 RM='$RM'
16634 ofile='$ofile'
16641 # Variables needed in config.status (file generation) which aren't already
16642 # passed by autoconf.
16643 SUBDIRS="$SUBDIRS"
16646 _ACEOF
16648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16650 # Handling of arguments.
16651 for ac_config_target in $ac_config_targets
16653 case $ac_config_target in
16654 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16655 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16656 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16657 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16658 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16659 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16660 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16662 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16663 esac
16664 done
16667 # If the user did not use the arguments to specify the items to instantiate,
16668 # then the envvar interface is used. Set only those that are not.
16669 # We use the long form for the default assignment because of an extremely
16670 # bizarre bug on SunOS 4.1.3.
16671 if $ac_need_defaults; then
16672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16677 # Have a temporary directory for convenience. Make it in the build tree
16678 # simply because there is no reason against having it here, and in addition,
16679 # creating and moving files from /tmp can sometimes cause problems.
16680 # Hook for its removal unless debugging.
16681 # Note that there is a small window in which the directory will not be cleaned:
16682 # after its creation but before its name has been assigned to `$tmp'.
16683 $debug ||
16685 tmp=
16686 trap 'exit_status=$?
16687 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16689 trap 'as_fn_exit 1' 1 2 13 15
16691 # Create a (secure) tmp directory for tmp files.
16694 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16695 test -n "$tmp" && test -d "$tmp"
16696 } ||
16698 tmp=./conf$$-$RANDOM
16699 (umask 077 && mkdir "$tmp")
16700 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16702 # Set up the scripts for CONFIG_FILES section.
16703 # No need to generate them if there are no CONFIG_FILES.
16704 # This happens for instance with `./config.status config.h'.
16705 if test -n "$CONFIG_FILES"; then
16708 ac_cr=`echo X | tr X '\015'`
16709 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16710 # But we know of no other shell where ac_cr would be empty at this
16711 # point, so we can use a bashism as a fallback.
16712 if test "x$ac_cr" = x; then
16713 eval ac_cr=\$\'\\r\'
16715 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16716 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16717 ac_cs_awk_cr='\r'
16718 else
16719 ac_cs_awk_cr=$ac_cr
16722 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16723 _ACEOF
16727 echo "cat >conf$$subs.awk <<_ACEOF" &&
16728 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16729 echo "_ACEOF"
16730 } >conf$$subs.sh ||
16731 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16732 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16733 ac_delim='%!_!# '
16734 for ac_last_try in false false false false false :; do
16735 . ./conf$$subs.sh ||
16736 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16738 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16739 if test $ac_delim_n = $ac_delim_num; then
16740 break
16741 elif $ac_last_try; then
16742 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16743 else
16744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16746 done
16747 rm -f conf$$subs.sh
16749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16750 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16751 _ACEOF
16752 sed -n '
16754 s/^/S["/; s/!.*/"]=/
16757 s/^[^!]*!//
16758 :repl
16759 t repl
16760 s/'"$ac_delim"'$//
16761 t delim
16764 s/\(.\{148\}\).*/\1/
16765 t more1
16766 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16769 b repl
16770 :more1
16771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16774 s/.\{148\}//
16775 t nl
16776 :delim
16778 s/\(.\{148\}\).*/\1/
16779 t more2
16780 s/["\\]/\\&/g; s/^/"/; s/$/"/
16783 :more2
16784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16787 s/.\{148\}//
16788 t delim
16789 ' <conf$$subs.awk | sed '
16790 /^[^""]/{
16792 s/\n//
16794 ' >>$CONFIG_STATUS || ac_write_fail=1
16795 rm -f conf$$subs.awk
16796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16797 _ACAWK
16798 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16799 for (key in S) S_is_set[key] = 1
16800 FS = "\a"
16804 line = $ 0
16805 nfields = split(line, field, "@")
16806 substed = 0
16807 len = length(field[1])
16808 for (i = 2; i < nfields; i++) {
16809 key = field[i]
16810 keylen = length(key)
16811 if (S_is_set[key]) {
16812 value = S[key]
16813 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16814 len += length(value) + length(field[++i])
16815 substed = 1
16816 } else
16817 len += 1 + keylen
16820 print line
16823 _ACAWK
16824 _ACEOF
16825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16826 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16827 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16828 else
16830 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16831 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16832 _ACEOF
16834 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16835 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16836 # trailing colons and then remove the whole line if VPATH becomes empty
16837 # (actually we leave an empty line to preserve line numbers).
16838 if test "x$srcdir" = x.; then
16839 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16840 s/:*\$(srcdir):*/:/
16841 s/:*\${srcdir}:*/:/
16842 s/:*@srcdir@:*/:/
16843 s/^\([^=]*=[ ]*\):*/\1/
16844 s/:*$//
16845 s/^[^=]*=[ ]*$//
16849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16850 fi # test -n "$CONFIG_FILES"
16852 # Set up the scripts for CONFIG_HEADERS section.
16853 # No need to generate them if there are no CONFIG_HEADERS.
16854 # This happens for instance with `./config.status Makefile'.
16855 if test -n "$CONFIG_HEADERS"; then
16856 cat >"$tmp/defines.awk" <<\_ACAWK ||
16857 BEGIN {
16858 _ACEOF
16860 # Transform confdefs.h into an awk script `defines.awk', embedded as
16861 # here-document in config.status, that substitutes the proper values into
16862 # config.h.in to produce config.h.
16864 # Create a delimiter string that does not exist in confdefs.h, to ease
16865 # handling of long lines.
16866 ac_delim='%!_!# '
16867 for ac_last_try in false false :; do
16868 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16869 if test -z "$ac_t"; then
16870 break
16871 elif $ac_last_try; then
16872 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16873 else
16874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16876 done
16878 # For the awk script, D is an array of macro values keyed by name,
16879 # likewise P contains macro parameters if any. Preserve backslash
16880 # newline sequences.
16882 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16883 sed -n '
16884 s/.\{148\}/&'"$ac_delim"'/g
16885 t rset
16886 :rset
16887 s/^[ ]*#[ ]*define[ ][ ]*/ /
16888 t def
16890 :def
16891 s/\\$//
16892 t bsnl
16893 s/["\\]/\\&/g
16894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16895 D["\1"]=" \3"/p
16896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16898 :bsnl
16899 s/["\\]/\\&/g
16900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16901 D["\1"]=" \3\\\\\\n"\\/p
16902 t cont
16903 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16904 t cont
16906 :cont
16908 s/.\{148\}/&'"$ac_delim"'/g
16909 t clear
16910 :clear
16911 s/\\$//
16912 t bsnlc
16913 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16915 :bsnlc
16916 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16917 b cont
16918 ' <confdefs.h | sed '
16919 s/'"$ac_delim"'/"\\\
16920 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16923 for (key in D) D_is_set[key] = 1
16924 FS = "\a"
16926 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16927 line = \$ 0
16928 split(line, arg, " ")
16929 if (arg[1] == "#") {
16930 defundef = arg[2]
16931 mac1 = arg[3]
16932 } else {
16933 defundef = substr(arg[1], 2)
16934 mac1 = arg[2]
16936 split(mac1, mac2, "(") #)
16937 macro = mac2[1]
16938 prefix = substr(line, 1, index(line, defundef) - 1)
16939 if (D_is_set[macro]) {
16940 # Preserve the white space surrounding the "#".
16941 print prefix "define", macro P[macro] D[macro]
16942 next
16943 } else {
16944 # Replace #undef with comments. This is necessary, for example,
16945 # in the case of _POSIX_SOURCE, which is predefined and required
16946 # on some systems where configure will not decide to define it.
16947 if (defundef == "undef") {
16948 print "/*", prefix defundef, macro, "*/"
16949 next
16953 { print }
16954 _ACAWK
16955 _ACEOF
16956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16957 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16958 fi # test -n "$CONFIG_HEADERS"
16961 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16962 shift
16963 for ac_tag
16965 case $ac_tag in
16966 :[FHLC]) ac_mode=$ac_tag; continue;;
16967 esac
16968 case $ac_mode$ac_tag in
16969 :[FHL]*:*);;
16970 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16971 :[FH]-) ac_tag=-:-;;
16972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16973 esac
16974 ac_save_IFS=$IFS
16975 IFS=:
16976 set x $ac_tag
16977 IFS=$ac_save_IFS
16978 shift
16979 ac_file=$1
16980 shift
16982 case $ac_mode in
16983 :L) ac_source=$1;;
16984 :[FH])
16985 ac_file_inputs=
16986 for ac_f
16988 case $ac_f in
16989 -) ac_f="$tmp/stdin";;
16990 *) # Look for the file first in the build tree, then in the source tree
16991 # (if the path is not absolute). The absolute path cannot be DOS-style,
16992 # because $ac_f cannot contain `:'.
16993 test -f "$ac_f" ||
16994 case $ac_f in
16995 [\\/$]*) false;;
16996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16997 esac ||
16998 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16999 esac
17000 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17001 as_fn_append ac_file_inputs " '$ac_f'"
17002 done
17004 # Let's still pretend it is `configure' which instantiates (i.e., don't
17005 # use $as_me), people would be surprised to read:
17006 # /* config.h. Generated by config.status. */
17007 configure_input='Generated from '`
17008 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17009 `' by configure.'
17010 if test x"$ac_file" != x-; then
17011 configure_input="$ac_file. $configure_input"
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17013 $as_echo "$as_me: creating $ac_file" >&6;}
17015 # Neutralize special characters interpreted by sed in replacement strings.
17016 case $configure_input in #(
17017 *\&* | *\|* | *\\* )
17018 ac_sed_conf_input=`$as_echo "$configure_input" |
17019 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17020 *) ac_sed_conf_input=$configure_input;;
17021 esac
17023 case $ac_tag in
17024 *:-:* | *:-) cat >"$tmp/stdin" \
17025 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17026 esac
17028 esac
17030 ac_dir=`$as_dirname -- "$ac_file" ||
17031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17032 X"$ac_file" : 'X\(//\)[^/]' \| \
17033 X"$ac_file" : 'X\(//\)$' \| \
17034 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17035 $as_echo X"$ac_file" |
17036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17037 s//\1/
17040 /^X\(\/\/\)[^/].*/{
17041 s//\1/
17044 /^X\(\/\/\)$/{
17045 s//\1/
17048 /^X\(\/\).*/{
17049 s//\1/
17052 s/.*/./; q'`
17053 as_dir="$ac_dir"; as_fn_mkdir_p
17054 ac_builddir=.
17056 case "$ac_dir" in
17057 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17060 # A ".." for each directory in $ac_dir_suffix.
17061 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17062 case $ac_top_builddir_sub in
17063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17065 esac ;;
17066 esac
17067 ac_abs_top_builddir=$ac_pwd
17068 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17069 # for backward compatibility:
17070 ac_top_builddir=$ac_top_build_prefix
17072 case $srcdir in
17073 .) # We are building in place.
17074 ac_srcdir=.
17075 ac_top_srcdir=$ac_top_builddir_sub
17076 ac_abs_top_srcdir=$ac_pwd ;;
17077 [\\/]* | ?:[\\/]* ) # Absolute name.
17078 ac_srcdir=$srcdir$ac_dir_suffix;
17079 ac_top_srcdir=$srcdir
17080 ac_abs_top_srcdir=$srcdir ;;
17081 *) # Relative name.
17082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17083 ac_top_srcdir=$ac_top_build_prefix$srcdir
17084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17085 esac
17086 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17089 case $ac_mode in
17092 # CONFIG_FILE
17095 case $INSTALL in
17096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17097 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17098 esac
17099 ac_MKDIR_P=$MKDIR_P
17100 case $MKDIR_P in
17101 [\\/$]* | ?:[\\/]* ) ;;
17102 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17103 esac
17104 _ACEOF
17106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17107 # If the template does not know about datarootdir, expand it.
17108 # FIXME: This hack should be removed a few years after 2.60.
17109 ac_datarootdir_hack=; ac_datarootdir_seen=
17110 ac_sed_dataroot='
17111 /datarootdir/ {
17115 /@datadir@/p
17116 /@docdir@/p
17117 /@infodir@/p
17118 /@localedir@/p
17119 /@mandir@/p'
17120 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17121 *datarootdir*) ac_datarootdir_seen=yes;;
17122 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17124 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17125 _ACEOF
17126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17127 ac_datarootdir_hack='
17128 s&@datadir@&$datadir&g
17129 s&@docdir@&$docdir&g
17130 s&@infodir@&$infodir&g
17131 s&@localedir@&$localedir&g
17132 s&@mandir@&$mandir&g
17133 s&\\\${datarootdir}&$datarootdir&g' ;;
17134 esac
17135 _ACEOF
17137 # Neutralize VPATH when `$srcdir' = `.'.
17138 # Shell code in configure.ac might set extrasub.
17139 # FIXME: do we really want to maintain this feature?
17140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17141 ac_sed_extra="$ac_vpsub
17142 $extrasub
17143 _ACEOF
17144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17147 s|@configure_input@|$ac_sed_conf_input|;t t
17148 s&@top_builddir@&$ac_top_builddir_sub&;t t
17149 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17150 s&@srcdir@&$ac_srcdir&;t t
17151 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17152 s&@top_srcdir@&$ac_top_srcdir&;t t
17153 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17154 s&@builddir@&$ac_builddir&;t t
17155 s&@abs_builddir@&$ac_abs_builddir&;t t
17156 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17157 s&@INSTALL@&$ac_INSTALL&;t t
17158 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17159 $ac_datarootdir_hack
17161 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17162 || as_fn_error "could not create $ac_file" "$LINENO" 5
17164 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17165 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17166 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17168 which seems to be undefined. Please make sure it is defined." >&5
17169 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17170 which seems to be undefined. Please make sure it is defined." >&2;}
17172 rm -f "$tmp/stdin"
17173 case $ac_file in
17174 -) cat "$tmp/out" && rm -f "$tmp/out";;
17175 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17176 esac \
17177 || as_fn_error "could not create $ac_file" "$LINENO" 5
17181 # CONFIG_HEADER
17183 if test x"$ac_file" != x-; then
17185 $as_echo "/* $configure_input */" \
17186 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17187 } >"$tmp/config.h" \
17188 || as_fn_error "could not create $ac_file" "$LINENO" 5
17189 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17191 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17192 else
17193 rm -f "$ac_file"
17194 mv "$tmp/config.h" "$ac_file" \
17195 || as_fn_error "could not create $ac_file" "$LINENO" 5
17197 else
17198 $as_echo "/* $configure_input */" \
17199 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17200 || as_fn_error "could not create -" "$LINENO" 5
17202 # Compute "$ac_file"'s index in $config_headers.
17203 _am_arg="$ac_file"
17204 _am_stamp_count=1
17205 for _am_header in $config_headers :; do
17206 case $_am_header in
17207 $_am_arg | $_am_arg:* )
17208 break ;;
17210 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17211 esac
17212 done
17213 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17214 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17215 X"$_am_arg" : 'X\(//\)[^/]' \| \
17216 X"$_am_arg" : 'X\(//\)$' \| \
17217 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17218 $as_echo X"$_am_arg" |
17219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17220 s//\1/
17223 /^X\(\/\/\)[^/].*/{
17224 s//\1/
17227 /^X\(\/\/\)$/{
17228 s//\1/
17231 /^X\(\/\).*/{
17232 s//\1/
17235 s/.*/./; q'`/stamp-h$_am_stamp_count
17238 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17239 $as_echo "$as_me: executing $ac_file commands" >&6;}
17241 esac
17244 case $ac_file$ac_mode in
17245 "default-1":C)
17246 # Only add multilib support code if we just rebuilt the top-level
17247 # Makefile.
17248 case " $CONFIG_FILES " in
17249 *" Makefile "*)
17250 ac_file=Makefile . ${multi_basedir}/config-ml.in
17252 esac ;;
17253 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17254 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17255 # are listed without --file. Let's play safe and only enable the eval
17256 # if we detect the quoting.
17257 case $CONFIG_FILES in
17258 *\'*) eval set x "$CONFIG_FILES" ;;
17259 *) set x $CONFIG_FILES ;;
17260 esac
17261 shift
17262 for mf
17264 # Strip MF so we end up with the name of the file.
17265 mf=`echo "$mf" | sed -e 's/:.*$//'`
17266 # Check whether this is an Automake generated Makefile or not.
17267 # We used to match only the files named `Makefile.in', but
17268 # some people rename them; so instead we look at the file content.
17269 # Grep'ing the first line is not enough: some people post-process
17270 # each Makefile.in and add a new line on top of each file to say so.
17271 # Grep'ing the whole file is not good either: AIX grep has a line
17272 # limit of 2048, but all sed's we know have understand at least 4000.
17273 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17274 dirpart=`$as_dirname -- "$mf" ||
17275 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17276 X"$mf" : 'X\(//\)[^/]' \| \
17277 X"$mf" : 'X\(//\)$' \| \
17278 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17279 $as_echo X"$mf" |
17280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17281 s//\1/
17284 /^X\(\/\/\)[^/].*/{
17285 s//\1/
17288 /^X\(\/\/\)$/{
17289 s//\1/
17292 /^X\(\/\).*/{
17293 s//\1/
17296 s/.*/./; q'`
17297 else
17298 continue
17300 # Extract the definition of DEPDIR, am__include, and am__quote
17301 # from the Makefile without running `make'.
17302 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17303 test -z "$DEPDIR" && continue
17304 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17305 test -z "am__include" && continue
17306 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17307 # When using ansi2knr, U may be empty or an underscore; expand it
17308 U=`sed -n 's/^U = //p' < "$mf"`
17309 # Find all dependency output files, they are included files with
17310 # $(DEPDIR) in their names. We invoke sed twice because it is the
17311 # simplest approach to changing $(DEPDIR) to its actual value in the
17312 # expansion.
17313 for file in `sed -n "
17314 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17315 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17316 # Make sure the directory exists.
17317 test -f "$dirpart/$file" && continue
17318 fdir=`$as_dirname -- "$file" ||
17319 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17320 X"$file" : 'X\(//\)[^/]' \| \
17321 X"$file" : 'X\(//\)$' \| \
17322 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17323 $as_echo X"$file" |
17324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17325 s//\1/
17328 /^X\(\/\/\)[^/].*/{
17329 s//\1/
17332 /^X\(\/\/\)$/{
17333 s//\1/
17336 /^X\(\/\).*/{
17337 s//\1/
17340 s/.*/./; q'`
17341 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17342 # echo "creating $dirpart/$file"
17343 echo '# dummy' > "$dirpart/$file"
17344 done
17345 done
17348 "libtool":C)
17350 # See if we are running on zsh, and set the options which allow our
17351 # commands through without removal of \ escapes.
17352 if test -n "${ZSH_VERSION+set}" ; then
17353 setopt NO_GLOB_SUBST
17356 cfgfile="${ofile}T"
17357 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17358 $RM "$cfgfile"
17360 cat <<_LT_EOF >> "$cfgfile"
17361 #! $SHELL
17363 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17364 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17365 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17366 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17368 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17369 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17370 # Written by Gordon Matzigkeit, 1996
17372 # This file is part of GNU Libtool.
17374 # GNU Libtool is free software; you can redistribute it and/or
17375 # modify it under the terms of the GNU General Public License as
17376 # published by the Free Software Foundation; either version 2 of
17377 # the License, or (at your option) any later version.
17379 # As a special exception to the GNU General Public License,
17380 # if you distribute this file as part of a program or library that
17381 # is built using GNU Libtool, you may include this file under the
17382 # same distribution terms that you use for the rest of that program.
17384 # GNU Libtool is distributed in the hope that it will be useful,
17385 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17387 # GNU General Public License for more details.
17389 # You should have received a copy of the GNU General Public License
17390 # along with GNU Libtool; see the file COPYING. If not, a copy
17391 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17392 # obtained by writing to the Free Software Foundation, Inc.,
17393 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17396 # The names of the tagged configurations supported by this script.
17397 available_tags="GO "
17399 # ### BEGIN LIBTOOL CONFIG
17401 # A sed program that does not truncate output.
17402 SED=$lt_SED
17404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17405 Xsed="\$SED -e 1s/^X//"
17407 # A grep program that handles long lines.
17408 GREP=$lt_GREP
17410 # An ERE matcher.
17411 EGREP=$lt_EGREP
17413 # A literal string matcher.
17414 FGREP=$lt_FGREP
17416 # Shell to use when invoking shell scripts.
17417 SHELL=$lt_SHELL
17419 # An echo program that protects backslashes.
17420 ECHO=$lt_ECHO
17422 # Which release of libtool.m4 was used?
17423 macro_version=$macro_version
17424 macro_revision=$macro_revision
17426 # Whether or not to build shared libraries.
17427 build_libtool_libs=$enable_shared
17429 # Whether or not to build static libraries.
17430 build_old_libs=$enable_static
17432 # What type of objects to build.
17433 pic_mode=$pic_mode
17435 # Whether or not to optimize for fast installation.
17436 fast_install=$enable_fast_install
17438 # The host system.
17439 host_alias=$host_alias
17440 host=$host
17441 host_os=$host_os
17443 # The build system.
17444 build_alias=$build_alias
17445 build=$build
17446 build_os=$build_os
17448 # A BSD- or MS-compatible name lister.
17449 NM=$lt_NM
17451 # Whether we need soft or hard links.
17452 LN_S=$lt_LN_S
17454 # What is the maximum length of a command?
17455 max_cmd_len=$max_cmd_len
17457 # Object file suffix (normally "o").
17458 objext=$ac_objext
17460 # Executable file suffix (normally "").
17461 exeext=$exeext
17463 # whether the shell understands "unset".
17464 lt_unset=$lt_unset
17466 # turn spaces into newlines.
17467 SP2NL=$lt_lt_SP2NL
17469 # turn newlines into spaces.
17470 NL2SP=$lt_lt_NL2SP
17472 # An object symbol dumper.
17473 OBJDUMP=$lt_OBJDUMP
17475 # Method to check whether dependent libraries are shared objects.
17476 deplibs_check_method=$lt_deplibs_check_method
17478 # Command to use when deplibs_check_method == "file_magic".
17479 file_magic_cmd=$lt_file_magic_cmd
17481 # The archiver.
17482 AR=$lt_AR
17483 AR_FLAGS=$lt_AR_FLAGS
17485 # A symbol stripping program.
17486 STRIP=$lt_STRIP
17488 # Commands used to install an old-style archive.
17489 RANLIB=$lt_RANLIB
17490 old_postinstall_cmds=$lt_old_postinstall_cmds
17491 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17493 # Whether to use a lock for old archive extraction.
17494 lock_old_archive_extraction=$lock_old_archive_extraction
17496 # A C compiler.
17497 LTCC=$lt_CC
17499 # LTCC compiler flags.
17500 LTCFLAGS=$lt_CFLAGS
17502 # Take the output of nm and produce a listing of raw symbols and C names.
17503 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17505 # Transform the output of nm in a proper C declaration.
17506 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17508 # Transform the output of nm in a C name address pair.
17509 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17511 # Transform the output of nm in a C name address pair when lib prefix is needed.
17512 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17514 # The name of the directory that contains temporary libtool files.
17515 objdir=$objdir
17517 # Used to examine libraries when file_magic_cmd begins with "file".
17518 MAGIC_CMD=$MAGIC_CMD
17520 # Must we lock files when doing compilation?
17521 need_locks=$lt_need_locks
17523 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17524 DSYMUTIL=$lt_DSYMUTIL
17526 # Tool to change global to local symbols on Mac OS X.
17527 NMEDIT=$lt_NMEDIT
17529 # Tool to manipulate fat objects and archives on Mac OS X.
17530 LIPO=$lt_LIPO
17532 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17533 OTOOL=$lt_OTOOL
17535 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17536 OTOOL64=$lt_OTOOL64
17538 # Old archive suffix (normally "a").
17539 libext=$libext
17541 # Shared library suffix (normally ".so").
17542 shrext_cmds=$lt_shrext_cmds
17544 # The commands to extract the exported symbol list from a shared archive.
17545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17547 # Variables whose values should be saved in libtool wrapper scripts and
17548 # restored at link time.
17549 variables_saved_for_relink=$lt_variables_saved_for_relink
17551 # Do we need the "lib" prefix for modules?
17552 need_lib_prefix=$need_lib_prefix
17554 # Do we need a version for libraries?
17555 need_version=$need_version
17557 # Library versioning type.
17558 version_type=$version_type
17560 # Shared library runtime path variable.
17561 runpath_var=$runpath_var
17563 # Shared library path variable.
17564 shlibpath_var=$shlibpath_var
17566 # Is shlibpath searched before the hard-coded library search path?
17567 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17569 # Format of library name prefix.
17570 libname_spec=$lt_libname_spec
17572 # List of archive names. First name is the real one, the rest are links.
17573 # The last name is the one that the linker finds with -lNAME
17574 library_names_spec=$lt_library_names_spec
17576 # The coded name of the library, if different from the real name.
17577 soname_spec=$lt_soname_spec
17579 # Permission mode override for installation of shared libraries.
17580 install_override_mode=$lt_install_override_mode
17582 # Command to use after installation of a shared archive.
17583 postinstall_cmds=$lt_postinstall_cmds
17585 # Command to use after uninstallation of a shared archive.
17586 postuninstall_cmds=$lt_postuninstall_cmds
17588 # Commands used to finish a libtool library installation in a directory.
17589 finish_cmds=$lt_finish_cmds
17591 # As "finish_cmds", except a single script fragment to be evaled but
17592 # not shown.
17593 finish_eval=$lt_finish_eval
17595 # Whether we should hardcode library paths into libraries.
17596 hardcode_into_libs=$hardcode_into_libs
17598 # Compile-time system search path for libraries.
17599 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17601 # Run-time system search path for libraries.
17602 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17604 # Whether dlopen is supported.
17605 dlopen_support=$enable_dlopen
17607 # Whether dlopen of programs is supported.
17608 dlopen_self=$enable_dlopen_self
17610 # Whether dlopen of statically linked programs is supported.
17611 dlopen_self_static=$enable_dlopen_self_static
17613 # Commands to strip libraries.
17614 old_striplib=$lt_old_striplib
17615 striplib=$lt_striplib
17618 # The linker used to build libraries.
17619 LD=$lt_LD
17621 # How to create reloadable object files.
17622 reload_flag=$lt_reload_flag
17623 reload_cmds=$lt_reload_cmds
17625 # Commands used to build an old-style archive.
17626 old_archive_cmds=$lt_old_archive_cmds
17628 # A language specific compiler.
17629 CC=$lt_compiler
17631 # Is the compiler the GNU compiler?
17632 with_gcc=$GCC
17634 # Compiler flag to turn off builtin functions.
17635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17637 # How to pass a linker flag through the compiler.
17638 wl=$lt_lt_prog_compiler_wl
17640 # Additional compiler flags for building library objects.
17641 pic_flag=$lt_lt_prog_compiler_pic
17643 # Compiler flag to prevent dynamic linking.
17644 link_static_flag=$lt_lt_prog_compiler_static
17646 # Does compiler simultaneously support -c and -o options?
17647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17649 # Whether or not to add -lc for building shared libraries.
17650 build_libtool_need_lc=$archive_cmds_need_lc
17652 # Whether or not to disallow shared libs when runtime libs are static.
17653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17655 # Compiler flag to allow reflexive dlopens.
17656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17658 # Compiler flag to generate shared objects directly from archives.
17659 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17661 # Whether the compiler copes with passing no objects directly.
17662 compiler_needs_object=$lt_compiler_needs_object
17664 # Create an old-style archive from a shared archive.
17665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17667 # Create a temporary old-style archive to link instead of a shared archive.
17668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17670 # Commands used to build a shared archive.
17671 archive_cmds=$lt_archive_cmds
17672 archive_expsym_cmds=$lt_archive_expsym_cmds
17674 # Commands used to build a loadable module if different from building
17675 # a shared archive.
17676 module_cmds=$lt_module_cmds
17677 module_expsym_cmds=$lt_module_expsym_cmds
17679 # Whether we are building with GNU ld or not.
17680 with_gnu_ld=$lt_with_gnu_ld
17682 # Flag that allows shared libraries with undefined symbols to be built.
17683 allow_undefined_flag=$lt_allow_undefined_flag
17685 # Flag that enforces no undefined symbols.
17686 no_undefined_flag=$lt_no_undefined_flag
17688 # Flag to hardcode \$libdir into a binary during linking.
17689 # This must work even if \$libdir does not exist
17690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17692 # If ld is used when linking, flag to hardcode \$libdir into a binary
17693 # during linking. This must work even if \$libdir does not exist.
17694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17696 # Whether we need a single "-rpath" flag with a separated argument.
17697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17699 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17700 # DIR into the resulting binary.
17701 hardcode_direct=$hardcode_direct
17703 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17704 # DIR into the resulting binary and the resulting library dependency is
17705 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17706 # library is relocated.
17707 hardcode_direct_absolute=$hardcode_direct_absolute
17709 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17710 # into the resulting binary.
17711 hardcode_minus_L=$hardcode_minus_L
17713 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17714 # into the resulting binary.
17715 hardcode_shlibpath_var=$hardcode_shlibpath_var
17717 # Set to "yes" if building a shared library automatically hardcodes DIR
17718 # into the library and all subsequent libraries and executables linked
17719 # against it.
17720 hardcode_automatic=$hardcode_automatic
17722 # Set to yes if linker adds runtime paths of dependent libraries
17723 # to runtime path list.
17724 inherit_rpath=$inherit_rpath
17726 # Whether libtool must link a program against all its dependency libraries.
17727 link_all_deplibs=$link_all_deplibs
17729 # Fix the shell variable \$srcfile for the compiler.
17730 fix_srcfile_path=$lt_fix_srcfile_path
17732 # Set to "yes" if exported symbols are required.
17733 always_export_symbols=$always_export_symbols
17735 # The commands to list exported symbols.
17736 export_symbols_cmds=$lt_export_symbols_cmds
17738 # Symbols that should not be listed in the preloaded symbols.
17739 exclude_expsyms=$lt_exclude_expsyms
17741 # Symbols that must always be exported.
17742 include_expsyms=$lt_include_expsyms
17744 # Commands necessary for linking programs (against libraries) with templates.
17745 prelink_cmds=$lt_prelink_cmds
17747 # Specify filename containing input files.
17748 file_list_spec=$lt_file_list_spec
17750 # How to hardcode a shared library path into an executable.
17751 hardcode_action=$hardcode_action
17753 # ### END LIBTOOL CONFIG
17755 _LT_EOF
17757 case $host_os in
17758 aix3*)
17759 cat <<\_LT_EOF >> "$cfgfile"
17760 # AIX sometimes has problems with the GCC collect2 program. For some
17761 # reason, if we set the COLLECT_NAMES environment variable, the problems
17762 # vanish in a puff of smoke.
17763 if test "X${COLLECT_NAMES+set}" != Xset; then
17764 COLLECT_NAMES=
17765 export COLLECT_NAMES
17767 _LT_EOF
17769 esac
17772 ltmain="$ac_aux_dir/ltmain.sh"
17775 # We use sed instead of cat because bash on DJGPP gets confused if
17776 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17777 # text mode, it properly converts lines to CR/LF. This bash problem
17778 # is reportedly fixed, but why not run on old versions too?
17779 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17780 || (rm -f "$cfgfile"; exit 1)
17782 case $xsi_shell in
17783 yes)
17784 cat << \_LT_EOF >> "$cfgfile"
17786 # func_dirname file append nondir_replacement
17787 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17788 # otherwise set result to NONDIR_REPLACEMENT.
17789 func_dirname ()
17791 case ${1} in
17792 */*) func_dirname_result="${1%/*}${2}" ;;
17793 * ) func_dirname_result="${3}" ;;
17794 esac
17797 # func_basename file
17798 func_basename ()
17800 func_basename_result="${1##*/}"
17803 # func_dirname_and_basename file append nondir_replacement
17804 # perform func_basename and func_dirname in a single function
17805 # call:
17806 # dirname: Compute the dirname of FILE. If nonempty,
17807 # add APPEND to the result, otherwise set result
17808 # to NONDIR_REPLACEMENT.
17809 # value returned in "$func_dirname_result"
17810 # basename: Compute filename of FILE.
17811 # value retuned in "$func_basename_result"
17812 # Implementation must be kept synchronized with func_dirname
17813 # and func_basename. For efficiency, we do not delegate to
17814 # those functions but instead duplicate the functionality here.
17815 func_dirname_and_basename ()
17817 case ${1} in
17818 */*) func_dirname_result="${1%/*}${2}" ;;
17819 * ) func_dirname_result="${3}" ;;
17820 esac
17821 func_basename_result="${1##*/}"
17824 # func_stripname prefix suffix name
17825 # strip PREFIX and SUFFIX off of NAME.
17826 # PREFIX and SUFFIX must not contain globbing or regex special
17827 # characters, hashes, percent signs, but SUFFIX may contain a leading
17828 # dot (in which case that matches only a dot).
17829 func_stripname ()
17831 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17832 # positional parameters, so assign one to ordinary parameter first.
17833 func_stripname_result=${3}
17834 func_stripname_result=${func_stripname_result#"${1}"}
17835 func_stripname_result=${func_stripname_result%"${2}"}
17838 # func_opt_split
17839 func_opt_split ()
17841 func_opt_split_opt=${1%%=*}
17842 func_opt_split_arg=${1#*=}
17845 # func_lo2o object
17846 func_lo2o ()
17848 case ${1} in
17849 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17850 *) func_lo2o_result=${1} ;;
17851 esac
17854 # func_xform libobj-or-source
17855 func_xform ()
17857 func_xform_result=${1%.*}.lo
17860 # func_arith arithmetic-term...
17861 func_arith ()
17863 func_arith_result=$(( $* ))
17866 # func_len string
17867 # STRING may not start with a hyphen.
17868 func_len ()
17870 func_len_result=${#1}
17873 _LT_EOF
17875 *) # Bourne compatible functions.
17876 cat << \_LT_EOF >> "$cfgfile"
17878 # func_dirname file append nondir_replacement
17879 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17880 # otherwise set result to NONDIR_REPLACEMENT.
17881 func_dirname ()
17883 # Extract subdirectory from the argument.
17884 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17885 if test "X$func_dirname_result" = "X${1}"; then
17886 func_dirname_result="${3}"
17887 else
17888 func_dirname_result="$func_dirname_result${2}"
17892 # func_basename file
17893 func_basename ()
17895 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17899 # func_stripname prefix suffix name
17900 # strip PREFIX and SUFFIX off of NAME.
17901 # PREFIX and SUFFIX must not contain globbing or regex special
17902 # characters, hashes, percent signs, but SUFFIX may contain a leading
17903 # dot (in which case that matches only a dot).
17904 # func_strip_suffix prefix name
17905 func_stripname ()
17907 case ${2} in
17908 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17909 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17910 esac
17913 # sed scripts:
17914 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17915 my_sed_long_arg='1s/^-[^=]*=//'
17917 # func_opt_split
17918 func_opt_split ()
17920 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17921 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17924 # func_lo2o object
17925 func_lo2o ()
17927 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17930 # func_xform libobj-or-source
17931 func_xform ()
17933 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17936 # func_arith arithmetic-term...
17937 func_arith ()
17939 func_arith_result=`expr "$@"`
17942 # func_len string
17943 # STRING may not start with a hyphen.
17944 func_len ()
17946 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17949 _LT_EOF
17950 esac
17952 case $lt_shell_append in
17953 yes)
17954 cat << \_LT_EOF >> "$cfgfile"
17956 # func_append var value
17957 # Append VALUE to the end of shell variable VAR.
17958 func_append ()
17960 eval "$1+=\$2"
17962 _LT_EOF
17965 cat << \_LT_EOF >> "$cfgfile"
17967 # func_append var value
17968 # Append VALUE to the end of shell variable VAR.
17969 func_append ()
17971 eval "$1=\$$1\$2"
17974 _LT_EOF
17976 esac
17979 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17980 || (rm -f "$cfgfile"; exit 1)
17982 mv -f "$cfgfile" "$ofile" ||
17983 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17984 chmod +x "$ofile"
17987 cat <<_LT_EOF >> "$ofile"
17989 # ### BEGIN LIBTOOL TAG CONFIG: GO
17991 # The linker used to build libraries.
17992 LD=$lt_LD_GO
17994 # How to create reloadable object files.
17995 reload_flag=$lt_reload_flag_GO
17996 reload_cmds=$lt_reload_cmds_GO
17998 # Commands used to build an old-style archive.
17999 old_archive_cmds=$lt_old_archive_cmds_GO
18001 # A language specific compiler.
18002 CC=$lt_compiler_GO
18004 # Is the compiler the GNU compiler?
18005 with_gcc=$GCC_GO
18007 # Compiler flag to turn off builtin functions.
18008 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18010 # How to pass a linker flag through the compiler.
18011 wl=$lt_lt_prog_compiler_wl_GO
18013 # Additional compiler flags for building library objects.
18014 pic_flag=$lt_lt_prog_compiler_pic_GO
18016 # Compiler flag to prevent dynamic linking.
18017 link_static_flag=$lt_lt_prog_compiler_static_GO
18019 # Does compiler simultaneously support -c and -o options?
18020 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18022 # Whether or not to add -lc for building shared libraries.
18023 build_libtool_need_lc=$archive_cmds_need_lc_GO
18025 # Whether or not to disallow shared libs when runtime libs are static.
18026 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18028 # Compiler flag to allow reflexive dlopens.
18029 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18031 # Compiler flag to generate shared objects directly from archives.
18032 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18034 # Whether the compiler copes with passing no objects directly.
18035 compiler_needs_object=$lt_compiler_needs_object_GO
18037 # Create an old-style archive from a shared archive.
18038 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18040 # Create a temporary old-style archive to link instead of a shared archive.
18041 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18043 # Commands used to build a shared archive.
18044 archive_cmds=$lt_archive_cmds_GO
18045 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18047 # Commands used to build a loadable module if different from building
18048 # a shared archive.
18049 module_cmds=$lt_module_cmds_GO
18050 module_expsym_cmds=$lt_module_expsym_cmds_GO
18052 # Whether we are building with GNU ld or not.
18053 with_gnu_ld=$lt_with_gnu_ld_GO
18055 # Flag that allows shared libraries with undefined symbols to be built.
18056 allow_undefined_flag=$lt_allow_undefined_flag_GO
18058 # Flag that enforces no undefined symbols.
18059 no_undefined_flag=$lt_no_undefined_flag_GO
18061 # Flag to hardcode \$libdir into a binary during linking.
18062 # This must work even if \$libdir does not exist
18063 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18065 # If ld is used when linking, flag to hardcode \$libdir into a binary
18066 # during linking. This must work even if \$libdir does not exist.
18067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18069 # Whether we need a single "-rpath" flag with a separated argument.
18070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18072 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18073 # DIR into the resulting binary.
18074 hardcode_direct=$hardcode_direct_GO
18076 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18077 # DIR into the resulting binary and the resulting library dependency is
18078 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18079 # library is relocated.
18080 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18082 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18083 # into the resulting binary.
18084 hardcode_minus_L=$hardcode_minus_L_GO
18086 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18087 # into the resulting binary.
18088 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18090 # Set to "yes" if building a shared library automatically hardcodes DIR
18091 # into the library and all subsequent libraries and executables linked
18092 # against it.
18093 hardcode_automatic=$hardcode_automatic_GO
18095 # Set to yes if linker adds runtime paths of dependent libraries
18096 # to runtime path list.
18097 inherit_rpath=$inherit_rpath_GO
18099 # Whether libtool must link a program against all its dependency libraries.
18100 link_all_deplibs=$link_all_deplibs_GO
18102 # Fix the shell variable \$srcfile for the compiler.
18103 fix_srcfile_path=$lt_fix_srcfile_path_GO
18105 # Set to "yes" if exported symbols are required.
18106 always_export_symbols=$always_export_symbols_GO
18108 # The commands to list exported symbols.
18109 export_symbols_cmds=$lt_export_symbols_cmds_GO
18111 # Symbols that should not be listed in the preloaded symbols.
18112 exclude_expsyms=$lt_exclude_expsyms_GO
18114 # Symbols that must always be exported.
18115 include_expsyms=$lt_include_expsyms_GO
18117 # Commands necessary for linking programs (against libraries) with templates.
18118 prelink_cmds=$lt_prelink_cmds_GO
18120 # Specify filename containing input files.
18121 file_list_spec=$lt_file_list_spec_GO
18123 # How to hardcode a shared library path into an executable.
18124 hardcode_action=$hardcode_action_GO
18126 # ### END LIBTOOL TAG CONFIG: GO
18127 _LT_EOF
18130 "default":C) if test -n "$CONFIG_FILES"; then
18131 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18132 # that multilib installs will end up installed in the correct place.
18133 # The testsuite needs it for multilib-aware ABI baseline files.
18134 # To work around this not being passed down from config-ml.in ->
18135 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18136 # append it here. Only modify Makefiles that have just been created.
18138 # Also, get rid of this simulated-VPATH thing that automake does.
18139 cat > vpsed << \_EOF
18140 s!`test -f '$<' || echo '$(srcdir)/'`!!
18141 _EOF
18142 for i in $SUBDIRS; do
18143 case $CONFIG_FILES in
18144 *${i}/Makefile*)
18145 #echo "Adding MULTISUBDIR to $i/Makefile"
18146 sed -f vpsed $i/Makefile > tmp
18147 grep '^MULTISUBDIR =' Makefile >> tmp
18148 mv tmp $i/Makefile
18150 esac
18151 done
18152 rm vpsed
18156 esac
18157 done # for ac_tag
18160 as_fn_exit 0
18161 _ACEOF
18162 ac_clean_files=$ac_clean_files_save
18164 test $ac_write_fail = 0 ||
18165 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18168 # configure is writing to config.log, and then calls config.status.
18169 # config.status does its own redirection, appending to config.log.
18170 # Unfortunately, on DOS this fails, as config.log is still kept open
18171 # by configure, so config.status won't be able to write to it; its
18172 # output is simply discarded. So we exec the FD to /dev/null,
18173 # effectively closing config.log, so it can be properly (re)opened and
18174 # appended to by config.status. When coming back to configure, we
18175 # need to make the FD available again.
18176 if test "$no_create" != yes; then
18177 ac_cs_success=:
18178 ac_config_status_args=
18179 test "$silent" = yes &&
18180 ac_config_status_args="$ac_config_status_args --quiet"
18181 exec 5>/dev/null
18182 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18183 exec 5>>config.log
18184 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18185 # would make configure fail if this is the last instruction.
18186 $ac_cs_success || as_fn_exit $?
18188 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18190 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}