* config/mips/mips.c (mips_multi_add): Zero initialize the newly
[official-gcc.git] / libgo / configure
blobf571d97aad68f7caaca20015c064fdd0857fe251
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 HAVE_STAT_TIMESPEC_FALSE
606 HAVE_STAT_TIMESPEC_TRUE
607 STRUCT_EPOLL_EVENT_FD_OFFSET
608 SIZEOF_STRUCT_EPOLL_EVENT
609 MATH_FLAG
610 STRINGOPS_FLAG
611 HAVE_WAIT4_FALSE
612 HAVE_WAIT4_TRUE
613 HAVE_STRERROR_R_FALSE
614 HAVE_STRERROR_R_TRUE
615 HAVE_SYS_MMAN_H_FALSE
616 HAVE_SYS_MMAN_H_TRUE
617 PTHREAD_LIBS
618 PTHREAD_CFLAGS
619 NET_LIBS
620 MATH_LIBS
621 GOC_IS_LLGO_FALSE
622 GOC_IS_LLGO_TRUE
623 GO_SPLIT_STACK
624 USING_SPLIT_STACK_FALSE
625 USING_SPLIT_STACK_TRUE
626 SPLIT_STACK
627 HWCAP_CFLAGS
628 OSCFLAGS
629 GO_SYSCALL_OS_ARCH_FILE
630 GO_SYSCALL_OS_FILE
631 GO_LIBCALL_OS_ARCH_FILE
632 GO_LIBCALL_OS_FILE
633 ALLGOARCHFAMILY
634 ALLGOARCH
635 GOARCH_MINFRAMESIZE
636 GOARCH_HUGEPAGESIZE
637 GOARCH_INT64ALIGN
638 GOARCH_PCQUANTUM
639 GOARCH_PHYSPAGESIZE
640 GOARCH_CACHELINESIZE
641 GOARCH_BIGENDIAN
642 GOARCH_FAMILY
643 GOARCH
644 USE_DEJAGNU
645 ALLGOOS
646 GOOS
647 LIBGO_IS_BSD_FALSE
648 LIBGO_IS_BSD_TRUE
649 LIBGO_IS_SOLARIS_FALSE
650 LIBGO_IS_SOLARIS_TRUE
651 LIBGO_IS_RTEMS_FALSE
652 LIBGO_IS_RTEMS_TRUE
653 LIBGO_IS_DRAGONFLY_FALSE
654 LIBGO_IS_DRAGONFLY_TRUE
655 LIBGO_IS_OPENBSD_FALSE
656 LIBGO_IS_OPENBSD_TRUE
657 LIBGO_IS_NETBSD_FALSE
658 LIBGO_IS_NETBSD_TRUE
659 LIBGO_IS_LINUX_FALSE
660 LIBGO_IS_LINUX_TRUE
661 LIBGO_IS_IRIX_FALSE
662 LIBGO_IS_IRIX_TRUE
663 LIBGO_IS_FREEBSD_FALSE
664 LIBGO_IS_FREEBSD_TRUE
665 LIBGO_IS_DARWIN_FALSE
666 LIBGO_IS_DARWIN_TRUE
667 go_include
668 LIBATOMIC
669 USE_LIBFFI_FALSE
670 USE_LIBFFI_TRUE
671 LIBFFIINCS
672 LIBFFI
673 nover_glibgo_toolexeclibdir
674 glibgo_toolexeclibdir
675 glibgo_toolexecdir
676 WERROR
677 WARN_FLAGS
678 CC_FOR_BUILD
679 enable_static
680 enable_shared
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
688 OBJDUMP
689 LN_S
691 ac_ct_DUMPBIN
692 DUMPBIN
693 LIBTOOL
694 OBJCOPY
695 RANLIB
697 FGREP
698 EGREP
699 GREP
701 MAINT
702 MAINTAINER_MODE_FALSE
703 MAINTAINER_MODE_TRUE
704 GOCFLAGS
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 multi_basedir
759 libtool_VERSION
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_multilib
802 enable_dependency_tracking
803 enable_maintainer_mode
804 with_gnu_ld
805 enable_shared
806 enable_static
807 with_pic
808 enable_fast_install
809 enable_libtool_lock
810 enable_werror
811 enable_version_specific_runtime_libs
812 with_libffi
813 with_libatomic
814 with_system_libunwind
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
820 CPPFLAGS'
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
871 ac_prev=
872 ac_dashdash=
873 for ac_option
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
882 case $ac_option in
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *) ac_optarg=yes ;;
885 esac
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
891 ac_dashdash=yes ;;
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
910 --config-cache | -C)
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information."
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227 esac
1228 done
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1276 If a cross compiler is detected then cross compile mode will be used." >&2
1277 elif test "x$build_alias" != "x$host_alias"; then
1278 cross_compiling=yes
1282 ac_tool_prefix=
1283 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285 test "$silent" = yes && exec 6>/dev/null
1288 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289 ac_ls_di=`ls -di .` &&
1290 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291 as_fn_error "working directory cannot be determined"
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293 as_fn_error "pwd does not report name of working directory"
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298 ac_srcdir_defaulted=yes
1299 # Try the directory containing this script, then the parent directory.
1300 ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302 X"$as_myself" : 'X\(//\)[^/]' \| \
1303 X"$as_myself" : 'X\(//\)$' \| \
1304 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 s//\1/
1310 /^X\(\/\/\)[^/].*/{
1311 s//\1/
1314 /^X\(\/\/\)$/{
1315 s//\1/
1318 /^X\(\/\).*/{
1319 s//\1/
1322 s/.*/./; q'`
1323 srcdir=$ac_confdir
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 srcdir=..
1327 else
1328 ac_srcdir_defaulted=no
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1337 pwd)`
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 srcdir=.
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1345 case $srcdir in
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 esac
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 done
1356 # Report the --help message.
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1361 cat <<_ACEOF
1362 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1369 Defaults for the options are specified in brackets.
1371 Configuration:
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print \`checking...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for \`--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 [PREFIX]
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1393 For better control, use the options below.
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1415 _ACEOF
1417 cat <<\_ACEOF
1419 Program names:
1420 --program-prefix=PREFIX prepend PREFIX to installed program names
1421 --program-suffix=SUFFIX append SUFFIX to installed program names
1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1424 System types:
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 --target=TARGET configure for building compilers for TARGET [HOST]
1428 _ACEOF
1431 if test -n "$ac_init_help"; then
1432 case $ac_init_help in
1433 short | recursive ) echo "Configuration of package-unused version-unused:";;
1434 esac
1435 cat <<\_ACEOF
1437 Optional Features:
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --enable-multilib build many library versions (default)
1442 --disable-dependency-tracking speeds up one-time build
1443 --enable-dependency-tracking do not reject slow dependency extractors
1444 --enable-maintainer-mode enable make rules and dependencies not useful
1445 (and sometimes confusing) to the casual installer
1446 --enable-shared[=PKGS] build shared libraries [default=yes]
1447 --enable-static[=PKGS] build static libraries [default=yes]
1448 --enable-fast-install[=PKGS]
1449 optimize for fast installation [default=yes]
1450 --disable-libtool-lock avoid locking (might break parallel builds)
1451 --enable-werror turns on -Werror [default=yes]
1452 --enable-version-specific-runtime-libs
1453 Specify that runtime libraries should be installed
1454 in a compiler-specific directory
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --without-libffi don't use libffi
1463 --without-libatomic don't use libatomic
1464 --with-system-libunwind use installed libunwind
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 GOC Go compiler command
1475 GOCFLAGS Go compiler flags
1476 CPP C preprocessor
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to the package provider.
1482 _ACEOF
1483 ac_status=$?
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 package-unused configure version-unused
1545 generated by GNU Autoconf 2.64
1547 Copyright (C) 2009 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1589 ac_retval=1
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 return $ac_retval
1594 } # ac_fn_c_try_compile
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_link ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest$ac_exeext
1603 if { { ac_try="$ac_link"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest$ac_exeext && {
1622 test "$cross_compiling" = yes ||
1623 $as_test_x conftest$ac_exeext
1624 }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1630 ac_retval=1
1632 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634 # interfere with the next link command; also delete a directory that is
1635 # left behind by Apple's compiler. We do this before executing the actions.
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 return $ac_retval
1640 } # ac_fn_c_try_link
1642 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists and can be compiled using the include files in
1645 # INCLUDES, setting the cache variable VAR accordingly.
1646 ac_fn_c_check_header_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1652 $as_echo_n "(cached) " >&6
1653 else
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 eval "$3=yes"
1661 else
1662 eval "$3=no"
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 } # ac_fn_c_check_header_compile
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } >/dev/null && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1703 ac_retval=1
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 return $ac_retval
1708 } # ac_fn_c_try_cpp
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=$ac_status
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 return $ac_retval
1750 } # ac_fn_c_try_run
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 $as_echo_n "(cached) " >&6
1762 else
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1767 #define $2 innocuous_$2
1769 /* System header to define __stub macros and hopefully few prototypes,
1770 which can conflict with char $2 (); below.
1771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772 <limits.h> exists even on freestanding compilers. */
1774 #ifdef __STDC__
1775 # include <limits.h>
1776 #else
1777 # include <assert.h>
1778 #endif
1780 #undef $2
1782 /* Override any GCC internal prototype to avoid an error.
1783 Use char because int might match the return type of a GCC
1784 builtin and then its argument prototype would still apply. */
1785 #ifdef __cplusplus
1786 extern "C"
1787 #endif
1788 char $2 ();
1789 /* The GNU C library defines this for functions which it implements
1790 to always fail with ENOSYS. Some functions are actually named
1791 something starting with __ and the normal name is an alias. */
1792 #if defined __stub_$2 || defined __stub___$2
1793 choke me
1794 #endif
1797 main ()
1799 return $2 ();
1801 return 0;
1803 _ACEOF
1804 if ac_fn_c_try_link "$LINENO"; then :
1805 eval "$3=yes"
1806 else
1807 eval "$3=no"
1809 rm -f core conftest.err conftest.$ac_objext \
1810 conftest$ac_exeext conftest.$ac_ext
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 } # ac_fn_c_check_func
1819 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1820 # -------------------------------------------------------
1821 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1822 # the include files in INCLUDES and setting the cache variable VAR
1823 # accordingly.
1824 ac_fn_c_check_header_mongrel ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831 $as_echo_n "(cached) " >&6
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 else
1837 # Is the header compilable?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1839 $as_echo_n "checking $2 usability... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1843 #include <$2>
1844 _ACEOF
1845 if ac_fn_c_try_compile "$LINENO"; then :
1846 ac_header_compiler=yes
1847 else
1848 ac_header_compiler=no
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1852 $as_echo "$ac_header_compiler" >&6; }
1854 # Is the header present?
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1856 $as_echo_n "checking $2 presence... " >&6; }
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_cpp "$LINENO"; then :
1862 ac_header_preproc=yes
1863 else
1864 ac_header_preproc=no
1866 rm -f conftest.err conftest.$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1868 $as_echo "$ac_header_preproc" >&6; }
1870 # So? What about this header?
1871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1872 yes:no: )
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1874 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1878 no:yes:* )
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1880 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1882 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1884 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1886 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1888 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890 esac
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 eval "$3=\$ac_header_compiler"
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 } # ac_fn_c_check_header_mongrel
1906 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1907 # -------------------------------------------
1908 # Tests whether TYPE exists after having included INCLUDES, setting cache
1909 # variable VAR accordingly.
1910 ac_fn_c_check_type ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 eval "$3=no"
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1923 main ()
1925 if (sizeof ($2))
1926 return 0;
1928 return 0;
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1936 main ()
1938 if (sizeof (($2)))
1939 return 0;
1941 return 0;
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1946 else
1947 eval "$3=yes"
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 } # ac_fn_c_check_type
1960 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1961 # --------------------------------------------
1962 # Tries to find the compile-time value of EXPR in a program that includes
1963 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1964 # computed
1965 ac_fn_c_compute_int ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if test "$cross_compiling" = yes; then
1969 # Depending upon the size, compute the lo and hi bounds.
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1974 main ()
1976 static int test_array [1 - 2 * !(($2) >= 0)];
1977 test_array [0] = 0
1980 return 0;
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 ac_lo=0 ac_mid=0
1985 while :; do
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1990 main ()
1992 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1993 test_array [0] = 0
1996 return 0;
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 ac_hi=$ac_mid; break
2001 else
2002 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2003 if test $ac_lo -le $ac_mid; then
2004 ac_lo= ac_hi=
2005 break
2007 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 done
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 main ()
2018 static int test_array [1 - 2 * !(($2) < 0)];
2019 test_array [0] = 0
2022 return 0;
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_hi=-1 ac_mid=-1
2027 while :; do
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2035 test_array [0] = 0
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_lo=$ac_mid; break
2043 else
2044 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2045 if test $ac_mid -le $ac_hi; then
2046 ac_lo= ac_hi=
2047 break
2049 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 done
2053 else
2054 ac_lo= ac_hi=
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 # Binary search between lo and hi bounds.
2060 while test "x$ac_lo" != "x$ac_hi"; do
2061 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2066 main ()
2068 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2069 test_array [0] = 0
2072 return 0;
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_hi=$ac_mid
2077 else
2078 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082 case $ac_lo in #((
2083 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2084 '') ac_retval=1 ;;
2085 esac
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2090 static long int longval () { return $2; }
2091 static unsigned long int ulongval () { return $2; }
2092 #include <stdio.h>
2093 #include <stdlib.h>
2095 main ()
2098 FILE *f = fopen ("conftest.val", "w");
2099 if (! f)
2100 return 1;
2101 if (($2) < 0)
2103 long int i = longval ();
2104 if (i != ($2))
2105 return 1;
2106 fprintf (f, "%ld", i);
2108 else
2110 unsigned long int i = ulongval ();
2111 if (i != ($2))
2112 return 1;
2113 fprintf (f, "%lu", i);
2115 /* Do not output a trailing newline, as this causes \r\n confusion
2116 on some platforms. */
2117 return ferror (f) || fclose (f) != 0;
2120 return 0;
2122 _ACEOF
2123 if ac_fn_c_try_run "$LINENO"; then :
2124 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2125 else
2126 ac_retval=1
2128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2129 conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 rm -f conftest.val
2133 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 return $ac_retval
2136 } # ac_fn_c_compute_int
2137 cat >config.log <<_ACEOF
2138 This file contains any messages produced by compilers while
2139 running configure, to aid debugging if configure makes a mistake.
2141 It was created by package-unused $as_me version-unused, which was
2142 generated by GNU Autoconf 2.64. Invocation command line was
2144 $ $0 $@
2146 _ACEOF
2147 exec 5>>config.log
2149 cat <<_ASUNAME
2150 ## --------- ##
2151 ## Platform. ##
2152 ## --------- ##
2154 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2155 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2156 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2157 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2158 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2160 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2161 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2163 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2164 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2165 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2166 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2167 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2168 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2169 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2171 _ASUNAME
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 $as_echo "PATH: $as_dir"
2179 done
2180 IFS=$as_save_IFS
2182 } >&5
2184 cat >&5 <<_ACEOF
2187 ## ----------- ##
2188 ## Core tests. ##
2189 ## ----------- ##
2191 _ACEOF
2194 # Keep a trace of the command line.
2195 # Strip out --no-create and --no-recursion so they do not pile up.
2196 # Strip out --silent because we don't want to record it for future runs.
2197 # Also quote any args containing shell meta-characters.
2198 # Make two passes to allow for proper duplicate-argument suppression.
2199 ac_configure_args=
2200 ac_configure_args0=
2201 ac_configure_args1=
2202 ac_must_keep_next=false
2203 for ac_pass in 1 2
2205 for ac_arg
2207 case $ac_arg in
2208 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2210 | -silent | --silent | --silen | --sile | --sil)
2211 continue ;;
2212 *\'*)
2213 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 esac
2215 case $ac_pass in
2216 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2218 as_fn_append ac_configure_args1 " '$ac_arg'"
2219 if test $ac_must_keep_next = true; then
2220 ac_must_keep_next=false # Got value, back to normal.
2221 else
2222 case $ac_arg in
2223 *=* | --config-cache | -C | -disable-* | --disable-* \
2224 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2225 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2226 | -with-* | --with-* | -without-* | --without-* | --x)
2227 case "$ac_configure_args0 " in
2228 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2229 esac
2231 -* ) ac_must_keep_next=true ;;
2232 esac
2234 as_fn_append ac_configure_args " '$ac_arg'"
2236 esac
2237 done
2238 done
2239 { ac_configure_args0=; unset ac_configure_args0;}
2240 { ac_configure_args1=; unset ac_configure_args1;}
2242 # When interrupted or exit'd, cleanup temporary files, and complete
2243 # config.log. We remove comments because anyway the quotes in there
2244 # would cause problems or look ugly.
2245 # WARNING: Use '\'' to represent an apostrophe within the trap.
2246 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2247 trap 'exit_status=$?
2248 # Save into config.log some information that might help in debugging.
2250 echo
2252 cat <<\_ASBOX
2253 ## ---------------- ##
2254 ## Cache variables. ##
2255 ## ---------------- ##
2256 _ASBOX
2257 echo
2258 # The following way of writing the cache mishandles newlines in values,
2260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2261 eval ac_val=\$$ac_var
2262 case $ac_val in #(
2263 *${as_nl}*)
2264 case $ac_var in #(
2265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2267 esac
2268 case $ac_var in #(
2269 _ | IFS | as_nl) ;; #(
2270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271 *) { eval $ac_var=; unset $ac_var;} ;;
2272 esac ;;
2273 esac
2274 done
2275 (set) 2>&1 |
2276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2277 *${as_nl}ac_space=\ *)
2278 sed -n \
2279 "s/'\''/'\''\\\\'\'''\''/g;
2280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2281 ;; #(
2283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2285 esac |
2286 sort
2288 echo
2290 cat <<\_ASBOX
2291 ## ----------------- ##
2292 ## Output variables. ##
2293 ## ----------------- ##
2294 _ASBOX
2295 echo
2296 for ac_var in $ac_subst_vars
2298 eval ac_val=\$$ac_var
2299 case $ac_val in
2300 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301 esac
2302 $as_echo "$ac_var='\''$ac_val'\''"
2303 done | sort
2304 echo
2306 if test -n "$ac_subst_files"; then
2307 cat <<\_ASBOX
2308 ## ------------------- ##
2309 ## File substitutions. ##
2310 ## ------------------- ##
2311 _ASBOX
2312 echo
2313 for ac_var in $ac_subst_files
2315 eval ac_val=\$$ac_var
2316 case $ac_val in
2317 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 esac
2319 $as_echo "$ac_var='\''$ac_val'\''"
2320 done | sort
2321 echo
2324 if test -s confdefs.h; then
2325 cat <<\_ASBOX
2326 ## ----------- ##
2327 ## confdefs.h. ##
2328 ## ----------- ##
2329 _ASBOX
2330 echo
2331 cat confdefs.h
2332 echo
2334 test "$ac_signal" != 0 &&
2335 $as_echo "$as_me: caught signal $ac_signal"
2336 $as_echo "$as_me: exit $exit_status"
2337 } >&5
2338 rm -f core *.core core.conftest.* &&
2339 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2340 exit $exit_status
2342 for ac_signal in 1 2 13 15; do
2343 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2344 done
2345 ac_signal=0
2347 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2348 rm -f -r conftest* confdefs.h
2350 $as_echo "/* confdefs.h */" > confdefs.h
2352 # Predefined preprocessor variables.
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_NAME "$PACKAGE_NAME"
2356 _ACEOF
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2360 _ACEOF
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2364 _ACEOF
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_STRING "$PACKAGE_STRING"
2368 _ACEOF
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2372 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_URL "$PACKAGE_URL"
2376 _ACEOF
2379 # Let the site file select an alternate cache file if it wants to.
2380 # Prefer an explicitly selected file to automatically selected ones.
2381 ac_site_file1=NONE
2382 ac_site_file2=NONE
2383 if test -n "$CONFIG_SITE"; then
2384 ac_site_file1=$CONFIG_SITE
2385 elif test "x$prefix" != xNONE; then
2386 ac_site_file1=$prefix/share/config.site
2387 ac_site_file2=$prefix/etc/config.site
2388 else
2389 ac_site_file1=$ac_default_prefix/share/config.site
2390 ac_site_file2=$ac_default_prefix/etc/config.site
2392 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2394 test "x$ac_site_file" = xNONE && continue
2395 if test -r "$ac_site_file"; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2397 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2398 sed 's/^/| /' "$ac_site_file" >&5
2399 . "$ac_site_file"
2401 done
2403 if test -r "$cache_file"; then
2404 # Some versions of bash will fail to source /dev/null (special
2405 # files actually), so we avoid doing that.
2406 if test -f "$cache_file"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2408 $as_echo "$as_me: loading cache $cache_file" >&6;}
2409 case $cache_file in
2410 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2411 *) . "./$cache_file";;
2412 esac
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2416 $as_echo "$as_me: creating cache $cache_file" >&6;}
2417 >$cache_file
2420 # Check that the precious variables saved in the cache have kept the same
2421 # value.
2422 ac_cache_corrupted=false
2423 for ac_var in $ac_precious_vars; do
2424 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2425 eval ac_new_set=\$ac_env_${ac_var}_set
2426 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2427 eval ac_new_val=\$ac_env_${ac_var}_value
2428 case $ac_old_set,$ac_new_set in
2429 set,)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2431 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2432 ac_cache_corrupted=: ;;
2433 ,set)
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2435 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2436 ac_cache_corrupted=: ;;
2437 ,);;
2439 if test "x$ac_old_val" != "x$ac_new_val"; then
2440 # differences in whitespace do not lead to failure.
2441 ac_old_val_w=`echo x $ac_old_val`
2442 ac_new_val_w=`echo x $ac_new_val`
2443 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2445 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2446 ac_cache_corrupted=:
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2449 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2450 eval $ac_var=\$ac_old_val
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2453 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2455 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2456 fi;;
2457 esac
2458 # Pass precious variables to config.status.
2459 if test "$ac_new_set" = set; then
2460 case $ac_new_val in
2461 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2462 *) ac_arg=$ac_var=$ac_new_val ;;
2463 esac
2464 case " $ac_configure_args " in
2465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2466 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2467 esac
2469 done
2470 if $ac_cache_corrupted; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2474 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2475 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2477 ## -------------------- ##
2478 ## Main body of script. ##
2479 ## -------------------- ##
2481 ac_ext=c
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492 ac_config_headers="$ac_config_headers config.h"
2495 libtool_VERSION=11:0:0
2498 # Default to --enable-multilib
2499 # Check whether --enable-multilib was given.
2500 if test "${enable_multilib+set}" = set; then :
2501 enableval=$enable_multilib; case "$enableval" in
2502 yes) multilib=yes ;;
2503 no) multilib=no ;;
2504 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2505 esac
2506 else
2507 multilib=yes
2511 # We may get other options which we leave undocumented:
2512 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2513 # See config-ml.in if you want the gory details.
2515 if test "$srcdir" = "."; then
2516 if test "$with_target_subdir" != "."; then
2517 multi_basedir="$srcdir/$with_multisrctop../.."
2518 else
2519 multi_basedir="$srcdir/$with_multisrctop.."
2521 else
2522 multi_basedir="$srcdir/.."
2526 # Even if the default multilib is not a cross compilation,
2527 # it may be that some of the other multilibs are.
2528 if test $cross_compiling = no && test $multilib = yes \
2529 && test "x${with_multisubdir}" != x ; then
2530 cross_compiling=maybe
2533 ac_config_commands="$ac_config_commands default-1"
2536 ac_aux_dir=
2537 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2538 for ac_t in install-sh install.sh shtool; do
2539 if test -f "$ac_dir/$ac_t"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/$ac_t -c"
2542 break 2
2544 done
2545 done
2546 if test -z "$ac_aux_dir"; then
2547 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2550 # These three variables are undocumented and unsupported,
2551 # and are intended to be withdrawn in a future Autoconf release.
2552 # They can cause serious problems if a builder's source tree is in a directory
2553 # whose full name contains unusual characters.
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2559 # Make sure we can run config.sub.
2560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2561 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2564 $as_echo_n "checking build system type... " >&6; }
2565 if test "${ac_cv_build+set}" = set; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 ac_build_alias=$build_alias
2569 test "x$ac_build_alias" = x &&
2570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2571 test "x$ac_build_alias" = x &&
2572 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2574 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2578 $as_echo "$ac_cv_build" >&6; }
2579 case $ac_cv_build in
2580 *-*-*) ;;
2581 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2582 esac
2583 build=$ac_cv_build
2584 ac_save_IFS=$IFS; IFS='-'
2585 set x $ac_cv_build
2586 shift
2587 build_cpu=$1
2588 build_vendor=$2
2589 shift; shift
2590 # Remember, the first character of IFS is used to create $*,
2591 # except with old shells:
2592 build_os=$*
2593 IFS=$ac_save_IFS
2594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2598 $as_echo_n "checking host system type... " >&6; }
2599 if test "${ac_cv_host+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 if test "x$host_alias" = x; then
2603 ac_cv_host=$ac_cv_build
2604 else
2605 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2606 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2611 $as_echo "$ac_cv_host" >&6; }
2612 case $ac_cv_host in
2613 *-*-*) ;;
2614 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2615 esac
2616 host=$ac_cv_host
2617 ac_save_IFS=$IFS; IFS='-'
2618 set x $ac_cv_host
2619 shift
2620 host_cpu=$1
2621 host_vendor=$2
2622 shift; shift
2623 # Remember, the first character of IFS is used to create $*,
2624 # except with old shells:
2625 host_os=$*
2626 IFS=$ac_save_IFS
2627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2631 $as_echo_n "checking target system type... " >&6; }
2632 if test "${ac_cv_target+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test "x$target_alias" = x; then
2636 ac_cv_target=$ac_cv_host
2637 else
2638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2639 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2644 $as_echo "$ac_cv_target" >&6; }
2645 case $ac_cv_target in
2646 *-*-*) ;;
2647 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2648 esac
2649 target=$ac_cv_target
2650 ac_save_IFS=$IFS; IFS='-'
2651 set x $ac_cv_target
2652 shift
2653 target_cpu=$1
2654 target_vendor=$2
2655 shift; shift
2656 # Remember, the first character of IFS is used to create $*,
2657 # except with old shells:
2658 target_os=$*
2659 IFS=$ac_save_IFS
2660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2663 # The aliases save the names the user supplied, while $host etc.
2664 # will get canonicalized.
2665 test -n "$target_alias" &&
2666 test "$program_prefix$program_suffix$program_transform_name" = \
2667 NONENONEs,x,x, &&
2668 program_prefix=${target_alias}-
2670 target_alias=${target_alias-$host_alias}
2672 am__api_version='1.11'
2674 # Find a good install program. We prefer a C program (faster),
2675 # so one script is as good as another. But avoid the broken or
2676 # incompatible versions:
2677 # SysV /etc/install, /usr/sbin/install
2678 # SunOS /usr/etc/install
2679 # IRIX /sbin/install
2680 # AIX /bin/install
2681 # AmigaOS /C/install, which installs bootblocks on floppy discs
2682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2685 # OS/2's system install, which has a completely different semantic
2686 # ./install, which can be erroneously created by make from ./install.sh.
2687 # Reject install programs that cannot install multiple files.
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2689 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2690 if test -z "$INSTALL"; then
2691 if test "${ac_cv_path_install+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 # Account for people who put trailing slashes in PATH elements.
2700 case $as_dir/ in #((
2701 ./ | .// | /[cC]/* | \
2702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2704 /usr/ucb/* ) ;;
2706 # OSF1 and SCO ODT 3.0 have their own names for install.
2707 # Don't use installbsd from OSF since it installs stuff as root
2708 # by default.
2709 for ac_prog in ginstall scoinst install; do
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2712 if test $ac_prog = install &&
2713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # AIX install. It has an incompatible calling convention.
2716 elif test $ac_prog = install &&
2717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # program-specific install script used by HP pwplus--don't use.
2720 else
2721 rm -rf conftest.one conftest.two conftest.dir
2722 echo one > conftest.one
2723 echo two > conftest.two
2724 mkdir conftest.dir
2725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2726 test -s conftest.one && test -s conftest.two &&
2727 test -s conftest.dir/conftest.one &&
2728 test -s conftest.dir/conftest.two
2729 then
2730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2731 break 3
2735 done
2736 done
2738 esac
2740 done
2741 IFS=$as_save_IFS
2743 rm -rf conftest.one conftest.two conftest.dir
2746 if test "${ac_cv_path_install+set}" = set; then
2747 INSTALL=$ac_cv_path_install
2748 else
2749 # As a last resort, use the slow shell script. Don't cache a
2750 # value for INSTALL within a source directory, because that will
2751 # break other packages using the cache if that directory is
2752 # removed, or if the value is a relative name.
2753 INSTALL=$ac_install_sh
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2757 $as_echo "$INSTALL" >&6; }
2759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2760 # It thinks the first close brace ends the variable substitution.
2761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2768 $as_echo_n "checking whether build environment is sane... " >&6; }
2769 # Just in case
2770 sleep 1
2771 echo timestamp > conftest.file
2772 # Reject unsafe characters in $srcdir or the absolute working directory
2773 # name. Accept space and tab only in the latter.
2774 am_lf='
2776 case `pwd` in
2777 *[\\\"\#\$\&\'\`$am_lf]*)
2778 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2779 esac
2780 case $srcdir in
2781 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2782 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2783 esac
2785 # Do `set' in a subshell so we don't clobber the current shell's
2786 # arguments. Must try -L first in case configure is actually a
2787 # symlink; some systems play weird games with the mod time of symlinks
2788 # (eg FreeBSD returns the mod time of the symlink's containing
2789 # directory).
2790 if (
2791 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2792 if test "$*" = "X"; then
2793 # -L didn't work.
2794 set X `ls -t "$srcdir/configure" conftest.file`
2796 rm -f conftest.file
2797 if test "$*" != "X $srcdir/configure conftest.file" \
2798 && test "$*" != "X conftest.file $srcdir/configure"; then
2800 # If neither matched, then we have a broken ls. This can happen
2801 # if, for instance, CONFIG_SHELL is bash and it inherits a
2802 # broken ls alias from the environment. This has actually
2803 # happened. Such a system could not be considered "sane".
2804 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2805 alias in your environment" "$LINENO" 5
2808 test "$2" = conftest.file
2810 then
2811 # Ok.
2813 else
2814 as_fn_error "newly created file is older than distributed files!
2815 Check your system clock" "$LINENO" 5
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2819 test "$program_prefix" != NONE &&
2820 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2821 # Use a double $ so make ignores it.
2822 test "$program_suffix" != NONE &&
2823 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2824 # Double any \ or $.
2825 # By default was `s,x,x', remove it if useless.
2826 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2827 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2829 # expand $ac_aux_dir to an absolute path
2830 am_aux_dir=`cd $ac_aux_dir && pwd`
2832 if test x"${MISSING+set}" != xset; then
2833 case $am_aux_dir in
2834 *\ * | *\ *)
2835 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2837 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2838 esac
2840 # Use eval to expand $SHELL
2841 if eval "$MISSING --run true"; then
2842 am_missing_run="$MISSING --run "
2843 else
2844 am_missing_run=
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2846 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2849 if test x"${install_sh}" != xset; then
2850 case $am_aux_dir in
2851 *\ * | *\ *)
2852 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2854 install_sh="\${SHELL} $am_aux_dir/install-sh"
2855 esac
2858 # Installed binaries are usually stripped using `strip' when the user
2859 # run `make install-strip'. However `strip' might not be the right
2860 # tool to use in cross-compilation environments, therefore Automake
2861 # will honor the `STRIP' environment variable to overrule this program.
2862 if test "$cross_compiling" != no; then
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}strip; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_STRIP+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$STRIP"; then
2872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2885 done
2886 done
2887 IFS=$as_save_IFS
2891 STRIP=$ac_cv_prog_STRIP
2892 if test -n "$STRIP"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2894 $as_echo "$STRIP" >&6; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2902 if test -z "$ac_cv_prog_STRIP"; then
2903 ac_ct_STRIP=$STRIP
2904 # Extract the first word of "strip", so it can be a program name with args.
2905 set dummy strip; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test -n "$ac_ct_STRIP"; then
2912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_ac_ct_STRIP="strip"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2925 done
2926 done
2927 IFS=$as_save_IFS
2931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2932 if test -n "$ac_ct_STRIP"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2934 $as_echo "$ac_ct_STRIP" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2940 if test "x$ac_ct_STRIP" = x; then
2941 STRIP=":"
2942 else
2943 case $cross_compiling:$ac_tool_warned in
2944 yes:)
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2947 ac_tool_warned=yes ;;
2948 esac
2949 STRIP=$ac_ct_STRIP
2951 else
2952 STRIP="$ac_cv_prog_STRIP"
2956 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2959 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2960 if test -z "$MKDIR_P"; then
2961 if test "${ac_cv_path_mkdir+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_prog in mkdir gmkdir; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2972 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2973 'mkdir (GNU coreutils) '* | \
2974 'mkdir (coreutils) '* | \
2975 'mkdir (fileutils) '4.1*)
2976 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2977 break 3;;
2978 esac
2979 done
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 if test "${ac_cv_path_mkdir+set}" = set; then
2987 MKDIR_P="$ac_cv_path_mkdir -p"
2988 else
2989 # As a last resort, use the slow shell script. Don't cache a
2990 # value for MKDIR_P within a source directory, because that will
2991 # break other packages using the cache if that directory is
2992 # removed, or if the value is a relative name.
2993 test -d ./--version && rmdir ./--version
2994 MKDIR_P="$ac_install_sh -d"
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2998 $as_echo "$MKDIR_P" >&6; }
3000 mkdir_p="$MKDIR_P"
3001 case $mkdir_p in
3002 [\\/$]* | ?:[\\/]*) ;;
3003 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3004 esac
3006 for ac_prog in gawk mawk nawk awk
3008 # Extract the first word of "$ac_prog", so it can be a program name with args.
3009 set dummy $ac_prog; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_AWK+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$AWK"; then
3016 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_AWK="$ac_prog"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3029 done
3030 done
3031 IFS=$as_save_IFS
3035 AWK=$ac_cv_prog_AWK
3036 if test -n "$AWK"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3038 $as_echo "$AWK" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3045 test -n "$AWK" && break
3046 done
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3049 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3050 set x ${MAKE-make}
3051 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3052 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 cat >conftest.make <<\_ACEOF
3056 SHELL = /bin/sh
3057 all:
3058 @echo '@@@%%%=$(MAKE)=@@@%%%'
3059 _ACEOF
3060 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3061 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3062 *@@@%%%=?*=@@@%%%*)
3063 eval ac_cv_prog_make_${ac_make}_set=yes;;
3065 eval ac_cv_prog_make_${ac_make}_set=no;;
3066 esac
3067 rm -f conftest.make
3069 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071 $as_echo "yes" >&6; }
3072 SET_MAKE=
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 SET_MAKE="MAKE=${MAKE-make}"
3079 rm -rf .tst 2>/dev/null
3080 mkdir .tst 2>/dev/null
3081 if test -d .tst; then
3082 am__leading_dot=.
3083 else
3084 am__leading_dot=_
3086 rmdir .tst 2>/dev/null
3088 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3089 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3090 # is not polluted with repeated "-I."
3091 am__isrc=' -I$(srcdir)'
3092 # test to see if srcdir already configured
3093 if test -f $srcdir/config.status; then
3094 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3098 # test whether we have cygpath
3099 if test -z "$CYGPATH_W"; then
3100 if (cygpath --version) >/dev/null 2>/dev/null; then
3101 CYGPATH_W='cygpath -w'
3102 else
3103 CYGPATH_W=echo
3108 # Define the identity of the package.
3109 PACKAGE='libgo'
3110 VERSION='version-unused'
3113 # Some tools Automake needs.
3115 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3118 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3121 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3124 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3127 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3129 # We need awk for the "check" target. The system "awk" is bad on
3130 # some platforms.
3131 # Always define AMTAR for backward compatibility. Yes, it's still used
3132 # in the wild :-( We should find a proper way to deprecate it ...
3133 AMTAR='$${TAR-tar}'
3135 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3173 done
3174 done
3175 IFS=$as_save_IFS
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$ac_cv_prog_CC"; then
3191 ac_ct_CC=$CC
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193 set dummy gcc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3213 done
3214 done
3215 IFS=$as_save_IFS
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CC=$ac_ct_CC
3239 else
3240 CC="$ac_cv_prog_CC"
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3266 done
3267 done
3268 IFS=$as_save_IFS
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if test "${ac_cv_prog_CC+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 ac_prog_rejected=no
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3305 continue
3307 ac_cv_prog_CC="cc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3311 done
3312 done
3313 IFS=$as_save_IFS
3315 if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3318 shift
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3323 shift
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_CC+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3367 IFS=$as_save_IFS
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3381 test -n "$CC" && break
3382 done
3384 if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3411 IFS=$as_save_IFS
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$ac_ct_CC" && break
3426 done
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 CC=$ac_ct_CC
3444 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error "no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details." "$LINENO" 5; }
3449 # Provide some information about the compiler.
3450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451 set X $ac_compile
3452 ac_compiler=$2
3453 for ac_option in --version -v -V -qversion; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 ac_status=$?
3463 if test -s conftest.err; then
3464 sed '10a\
3465 ... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3468 rm -f conftest.er1 conftest.err
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 done
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3478 main ()
3482 return 0;
3484 _ACEOF
3485 ac_clean_files_save=$ac_clean_files
3486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3487 # Try to create an executable without -o first, disregard a.out.
3488 # It will help us diagnose broken compilers, and finding out an intuition
3489 # of exeext.
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491 $as_echo_n "checking for C compiler default output file name... " >&6; }
3492 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3494 # The possible output files:
3495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3497 ac_rmfiles=
3498 for ac_file in $ac_files
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503 esac
3504 done
3505 rm -f $ac_rmfiles
3507 if { { ac_try="$ac_link_default"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3521 # so that the user can short-circuit this test for compilers unknown to
3522 # Autoconf.
3523 for ac_file in $ac_files ''
3525 test -f "$ac_file" || continue
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3529 [ab].out )
3530 # We found the default executable, but exeext='' is most
3531 # certainly right.
3532 break;;
3533 *.* )
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 then :; else
3536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3542 # actually working.
3543 break;;
3545 break;;
3546 esac
3547 done
3548 test "$ac_cv_exeext" = no && ac_cv_exeext=
3550 else
3551 ac_file=''
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3554 $as_echo "$ac_file" >&6; }
3555 if test -z "$ac_file"; then :
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 { as_fn_set_status 77
3562 as_fn_error "C compiler cannot create executables
3563 See \`config.log' for more details." "$LINENO" 5; }; }
3565 ac_exeext=$ac_cv_exeext
3567 # Check that the compiler produces executables we can run. If not, either
3568 # the compiler is broken, or we cross compile.
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3570 $as_echo_n "checking whether the C compiler works... " >&6; }
3571 # If not cross compiling, check that we can run a simple program.
3572 if test "$cross_compiling" != yes; then
3573 if { ac_try='./$ac_file'
3574 { { case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_try") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; }; then
3584 cross_compiling=no
3585 else
3586 if test "$cross_compiling" = maybe; then
3587 cross_compiling=yes
3588 else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error "cannot run C compiled programs.
3592 If you meant to cross compile, use \`--host'.
3593 See \`config.log' for more details." "$LINENO" 5; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598 $as_echo "yes" >&6; }
3600 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3601 ac_clean_files=$ac_clean_files_save
3602 # Check that the compiler produces executables we can run. If not, either
3603 # the compiler is broken, or we cross compile.
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3605 $as_echo_n "checking whether we are cross compiling... " >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3607 $as_echo "$cross_compiling" >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3610 $as_echo_n "checking for suffix of executables... " >&6; }
3611 if { { ac_try="$ac_link"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; then :
3622 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3623 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3624 # work properly (i.e., refer to `conftest.exe'), while it won't with
3625 # `rm'.
3626 for ac_file in conftest.exe conftest conftest.*; do
3627 test -f "$ac_file" || continue
3628 case $ac_file in
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631 break;;
3632 * ) break;;
3633 esac
3634 done
3635 else
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error "cannot compute suffix of executables: cannot compile and link
3639 See \`config.log' for more details." "$LINENO" 5; }
3641 rm -f conftest$ac_cv_exeext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3643 $as_echo "$ac_cv_exeext" >&6; }
3645 rm -f conftest.$ac_ext
3646 EXEEXT=$ac_cv_exeext
3647 ac_exeext=$EXEEXT
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3649 $as_echo_n "checking for suffix of object files... " >&6; }
3650 if test "${ac_cv_objext+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3657 main ()
3661 return 0;
3663 _ACEOF
3664 rm -f conftest.o conftest.obj
3665 if { { ac_try="$ac_compile"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compile") 2>&5
3673 ac_status=$?
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }; then :
3676 for ac_file in conftest.o conftest.obj conftest.*; do
3677 test -f "$ac_file" || continue;
3678 case $ac_file in
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3681 break;;
3682 esac
3683 done
3684 else
3685 $as_echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error "cannot compute suffix of object files: cannot compile
3691 See \`config.log' for more details." "$LINENO" 5; }
3693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3696 $as_echo "$ac_cv_objext" >&6; }
3697 OBJEXT=$ac_cv_objext
3698 ac_objext=$OBJEXT
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3701 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3708 main ()
3710 #ifndef __GNUC__
3711 choke me
3712 #endif
3715 return 0;
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_compiler_gnu=yes
3720 else
3721 ac_compiler_gnu=no
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3728 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3729 if test $ac_compiler_gnu = yes; then
3730 GCC=yes
3731 else
3732 GCC=
3734 ac_test_CFLAGS=${CFLAGS+set}
3735 ac_save_CFLAGS=$CFLAGS
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3737 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3738 if test "${ac_cv_prog_cc_g+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 ac_save_c_werror_flag=$ac_c_werror_flag
3742 ac_c_werror_flag=yes
3743 ac_cv_prog_cc_g=no
3744 CFLAGS="-g"
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3749 main ()
3753 return 0;
3755 _ACEOF
3756 if ac_fn_c_try_compile "$LINENO"; then :
3757 ac_cv_prog_cc_g=yes
3758 else
3759 CFLAGS=""
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3764 main ()
3768 return 0;
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3773 else
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3775 CFLAGS="-g"
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3780 main ()
3784 return 0;
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_prog_cc_g=yes
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 ac_c_werror_flag=$ac_save_c_werror_flag
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3798 $as_echo "$ac_cv_prog_cc_g" >&6; }
3799 if test "$ac_test_CFLAGS" = set; then
3800 CFLAGS=$ac_save_CFLAGS
3801 elif test $ac_cv_prog_cc_g = yes; then
3802 if test "$GCC" = yes; then
3803 CFLAGS="-g -O2"
3804 else
3805 CFLAGS="-g"
3807 else
3808 if test "$GCC" = yes; then
3809 CFLAGS="-O2"
3810 else
3811 CFLAGS=
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3815 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3816 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 ac_cv_prog_cc_c89=no
3820 ac_save_CC=$CC
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <stdarg.h>
3824 #include <stdio.h>
3825 #include <sys/types.h>
3826 #include <sys/stat.h>
3827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3828 struct buf { int x; };
3829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3830 static char *e (p, i)
3831 char **p;
3832 int i;
3834 return p[i];
3836 static char *f (char * (*g) (char **, int), char **p, ...)
3838 char *s;
3839 va_list v;
3840 va_start (v,p);
3841 s = g (p, va_arg (v,int));
3842 va_end (v);
3843 return s;
3846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3847 function prototypes and stuff, but not '\xHH' hex character constants.
3848 These don't provoke an error unfortunately, instead are silently treated
3849 as 'x'. The following induces an error, until -std is added to get
3850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3851 array size at least. It's necessary to write '\x00'==0 to get something
3852 that's true only with -std. */
3853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3855 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3856 inside strings and character constants. */
3857 #define FOO(x) 'x'
3858 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3860 int test (int i, double x);
3861 struct s1 {int (*f) (int a);};
3862 struct s2 {int (*f) (double a);};
3863 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3864 int argc;
3865 char **argv;
3867 main ()
3869 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3871 return 0;
3873 _ACEOF
3874 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3875 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3877 CC="$ac_save_CC $ac_arg"
3878 if ac_fn_c_try_compile "$LINENO"; then :
3879 ac_cv_prog_cc_c89=$ac_arg
3881 rm -f core conftest.err conftest.$ac_objext
3882 test "x$ac_cv_prog_cc_c89" != "xno" && break
3883 done
3884 rm -f conftest.$ac_ext
3885 CC=$ac_save_CC
3888 # AC_CACHE_VAL
3889 case "x$ac_cv_prog_cc_c89" in
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3892 $as_echo "none needed" >&6; } ;;
3893 xno)
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3895 $as_echo "unsupported" >&6; } ;;
3897 CC="$CC $ac_cv_prog_cc_c89"
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3899 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3900 esac
3901 if test "x$ac_cv_prog_cc_c89" != xno; then :
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 DEPDIR="${am__leading_dot}deps"
3912 ac_config_commands="$ac_config_commands depfiles"
3915 am_make=${MAKE-make}
3916 cat > confinc << 'END'
3917 am__doit:
3918 @echo this is the am__doit target
3919 .PHONY: am__doit
3921 # If we don't find an include directive, just comment out the code.
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3923 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3924 am__include="#"
3925 am__quote=
3926 _am_result=none
3927 # First try GNU make style include.
3928 echo "include confinc" > confmf
3929 # Ignore all kinds of additional output from `make'.
3930 case `$am_make -s -f confmf 2> /dev/null` in #(
3931 *the\ am__doit\ target*)
3932 am__include=include
3933 am__quote=
3934 _am_result=GNU
3936 esac
3937 # Now try BSD make style include.
3938 if test "$am__include" = "#"; then
3939 echo '.include "confinc"' > confmf
3940 case `$am_make -s -f confmf 2> /dev/null` in #(
3941 *the\ am__doit\ target*)
3942 am__include=.include
3943 am__quote="\""
3944 _am_result=BSD
3946 esac
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3951 $as_echo "$_am_result" >&6; }
3952 rm -f confinc confmf
3954 # Check whether --enable-dependency-tracking was given.
3955 if test "${enable_dependency_tracking+set}" = set; then :
3956 enableval=$enable_dependency_tracking;
3959 if test "x$enable_dependency_tracking" != xno; then
3960 am_depcomp="$ac_aux_dir/depcomp"
3961 AMDEPBACKSLASH='\'
3962 am__nodep='_no'
3964 if test "x$enable_dependency_tracking" != xno; then
3965 AMDEP_TRUE=
3966 AMDEP_FALSE='#'
3967 else
3968 AMDEP_TRUE='#'
3969 AMDEP_FALSE=
3974 depcc="$CC" am_compiler_list=
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3977 $as_echo_n "checking dependency style of $depcc... " >&6; }
3978 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3982 # We make a subdir and do the tests there. Otherwise we can end up
3983 # making bogus files that we don't know about and never remove. For
3984 # instance it was reported that on HP-UX the gcc test will end up
3985 # making a dummy file named `D' -- because `-MD' means `put the output
3986 # in D'.
3987 rm -rf conftest.dir
3988 mkdir conftest.dir
3989 # Copy depcomp to subdir because otherwise we won't find it if we're
3990 # using a relative directory.
3991 cp "$am_depcomp" conftest.dir
3992 cd conftest.dir
3993 # We will build objects and dependencies in a subdirectory because
3994 # it helps to detect inapplicable dependency modes. For instance
3995 # both Tru64's cc and ICC support -MD to output dependencies as a
3996 # side effect of compilation, but ICC will put the dependencies in
3997 # the current directory while Tru64 will put them in the object
3998 # directory.
3999 mkdir sub
4001 am_cv_CC_dependencies_compiler_type=none
4002 if test "$am_compiler_list" = ""; then
4003 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4005 am__universal=false
4006 case " $depcc " in #(
4007 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4008 esac
4010 for depmode in $am_compiler_list; do
4011 # Setup a source with many dependencies, because some compilers
4012 # like to wrap large dependency lists on column 80 (with \), and
4013 # we should not choose a depcomp mode which is confused by this.
4015 # We need to recreate these files for each test, as the compiler may
4016 # overwrite some of them when testing with obscure command lines.
4017 # This happens at least with the AIX C compiler.
4018 : > sub/conftest.c
4019 for i in 1 2 3 4 5 6; do
4020 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4021 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4022 # Solaris 8's {/usr,}/bin/sh.
4023 touch sub/conftst$i.h
4024 done
4025 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4028 # mode. It turns out that the SunPro C++ compiler does not properly
4029 # handle `-M -o', and we need to detect this. Also, some Intel
4030 # versions had trouble with output in subdirs
4031 am__obj=sub/conftest.${OBJEXT-o}
4032 am__minus_obj="-o $am__obj"
4033 case $depmode in
4034 gcc)
4035 # This depmode causes a compiler race in universal mode.
4036 test "$am__universal" = false || continue
4038 nosideeffect)
4039 # after this tag, mechanisms are not by side-effect, so they'll
4040 # only be used when explicitly requested
4041 if test "x$enable_dependency_tracking" = xyes; then
4042 continue
4043 else
4044 break
4047 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4048 # This compiler won't grok `-c -o', but also, the minuso test has
4049 # not run yet. These depmodes are late enough in the game, and
4050 # so weak that their functioning should not be impacted.
4051 am__obj=conftest.${OBJEXT-o}
4052 am__minus_obj=
4054 none) break ;;
4055 esac
4056 if depmode=$depmode \
4057 source=sub/conftest.c object=$am__obj \
4058 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4060 >/dev/null 2>conftest.err &&
4061 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4062 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4063 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4064 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4065 # icc doesn't choke on unknown options, it will just issue warnings
4066 # or remarks (even with -Werror). So we grep stderr for any message
4067 # that says an option was ignored or not supported.
4068 # When given -MP, icc 7.0 and 7.1 complain thusly:
4069 # icc: Command line warning: ignoring option '-M'; no argument required
4070 # The diagnosis changed in icc 8.0:
4071 # icc: Command line remark: option '-MP' not supported
4072 if (grep 'ignoring option' conftest.err ||
4073 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4074 am_cv_CC_dependencies_compiler_type=$depmode
4075 break
4078 done
4080 cd ..
4081 rm -rf conftest.dir
4082 else
4083 am_cv_CC_dependencies_compiler_type=none
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4088 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4089 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4092 test "x$enable_dependency_tracking" != xno \
4093 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4094 am__fastdepCC_TRUE=
4095 am__fastdepCC_FALSE='#'
4096 else
4097 am__fastdepCC_TRUE='#'
4098 am__fastdepCC_FALSE=
4102 ac_ext=go
4103 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4104 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compile_gnu=yes
4106 if test -n "$ac_tool_prefix"; then
4107 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4108 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if test "${ac_cv_prog_GOC+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -n "$GOC"; then
4115 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4116 else
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4128 done
4129 done
4130 IFS=$as_save_IFS
4134 GOC=$ac_cv_prog_GOC
4135 if test -n "$GOC"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4137 $as_echo "$GOC" >&6; }
4138 else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4145 if test -z "$ac_cv_prog_GOC"; then
4146 ac_ct_GOC=$GOC
4147 # Extract the first word of "gccgo", so it can be a program name with args.
4148 set dummy gccgo; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 if test -n "$ac_ct_GOC"; then
4155 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_ac_ct_GOC="gccgo"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4168 done
4169 done
4170 IFS=$as_save_IFS
4174 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4175 if test -n "$ac_ct_GOC"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4177 $as_echo "$ac_ct_GOC" >&6; }
4178 else
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4183 if test "x$ac_ct_GOC" = x; then
4184 GOC=""
4185 else
4186 case $cross_compiling:$ac_tool_warned in
4187 yes:)
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4190 ac_tool_warned=yes ;;
4191 esac
4192 GOC=$ac_ct_GOC
4194 else
4195 GOC="$ac_cv_prog_GOC"
4198 if test -z "$GOC"; then
4199 if test -n "$ac_tool_prefix"; then
4200 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4201 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if test "${ac_cv_prog_GOC+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 if test -n "$GOC"; then
4208 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4221 done
4222 done
4223 IFS=$as_save_IFS
4227 GOC=$ac_cv_prog_GOC
4228 if test -n "$GOC"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4230 $as_echo "$GOC" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4239 if test -z "$GOC"; then
4240 # Extract the first word of "gccgo", so it can be a program name with args.
4241 set dummy gccgo; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if test "${ac_cv_prog_GOC+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 if test -n "$GOC"; then
4248 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4249 else
4250 ac_prog_rejected=no
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4259 ac_prog_rejected=yes
4260 continue
4262 ac_cv_prog_GOC="gccgo"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4266 done
4267 done
4268 IFS=$as_save_IFS
4270 if test $ac_prog_rejected = yes; then
4271 # We found a bogon in the path, so make sure we never use it.
4272 set dummy $ac_cv_prog_GOC
4273 shift
4274 if test $# != 0; then
4275 # We chose a different compiler from the bogus one.
4276 # However, it has the same basename, so the bogon will be chosen
4277 # first if we set GOC to just the basename; use the full file name.
4278 shift
4279 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4284 GOC=$ac_cv_prog_GOC
4285 if test -n "$GOC"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4287 $as_echo "$GOC" >&6; }
4288 else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4297 # Provide some information about the compiler.
4298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4299 set X $ac_compile
4300 ac_compiler=$2
4301 { { ac_try="$ac_compiler --version >&5"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_compiler --version >&5") 2>conftest.err
4309 ac_status=$?
4310 if test -s conftest.err; then
4311 sed '10a\
4312 ... rest of stderr output deleted ...
4313 10q' conftest.err >conftest.er1
4314 cat conftest.er1 >&5
4315 rm -f conftest.er1 conftest.err
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }
4319 GOCFLAGS="-g -O2"
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4332 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4333 # Check whether --enable-maintainer-mode was given.
4334 if test "${enable_maintainer_mode+set}" = set; then :
4335 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4336 else
4337 USE_MAINTAINER_MODE=no
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4341 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4342 if test $USE_MAINTAINER_MODE = yes; then
4343 MAINTAINER_MODE_TRUE=
4344 MAINTAINER_MODE_FALSE='#'
4345 else
4346 MAINTAINER_MODE_TRUE='#'
4347 MAINTAINER_MODE_FALSE=
4350 MAINT=$MAINTAINER_MODE_TRUE
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4355 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4356 if test "${ac_cv_path_SED+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4360 for ac_i in 1 2 3 4 5 6 7; do
4361 ac_script="$ac_script$as_nl$ac_script"
4362 done
4363 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4364 { ac_script=; unset ac_script;}
4365 if test -z "$SED"; then
4366 ac_path_SED_found=false
4367 # Loop through the user's path and test for each of PROGNAME-LIST
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_prog in sed gsed; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4376 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4377 # Check for GNU ac_path_SED and select it if it is found.
4378 # Check for GNU $ac_path_SED
4379 case `"$ac_path_SED" --version 2>&1` in
4380 *GNU*)
4381 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4383 ac_count=0
4384 $as_echo_n 0123456789 >"conftest.in"
4385 while :
4387 cat "conftest.in" "conftest.in" >"conftest.tmp"
4388 mv "conftest.tmp" "conftest.in"
4389 cp "conftest.in" "conftest.nl"
4390 $as_echo '' >> "conftest.nl"
4391 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4393 as_fn_arith $ac_count + 1 && ac_count=$as_val
4394 if test $ac_count -gt ${ac_path_SED_max-0}; then
4395 # Best one so far, save it but keep looking for a better one
4396 ac_cv_path_SED="$ac_path_SED"
4397 ac_path_SED_max=$ac_count
4399 # 10*(2^10) chars as input seems more than enough
4400 test $ac_count -gt 10 && break
4401 done
4402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4403 esac
4405 $ac_path_SED_found && break 3
4406 done
4407 done
4408 done
4409 IFS=$as_save_IFS
4410 if test -z "$ac_cv_path_SED"; then
4411 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4413 else
4414 ac_cv_path_SED=$SED
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4419 $as_echo "$ac_cv_path_SED" >&6; }
4420 SED="$ac_cv_path_SED"
4421 rm -f conftest.sed
4423 test -z "$SED" && SED=sed
4424 Xsed="$SED -e 1s/^X//"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4437 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4438 if test "${ac_cv_path_GREP+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if test -z "$GREP"; then
4442 ac_path_GREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in grep ggrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4453 # Check for GNU ac_path_GREP and select it if it is found.
4454 # Check for GNU $ac_path_GREP
4455 case `"$ac_path_GREP" --version 2>&1` in
4456 *GNU*)
4457 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'GREP' >> "conftest.nl"
4467 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_GREP="$ac_path_GREP"
4473 ac_path_GREP_max=$ac_count
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479 esac
4481 $ac_path_GREP_found && break 3
4482 done
4483 done
4484 done
4485 IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_GREP"; then
4487 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4489 else
4490 ac_cv_path_GREP=$GREP
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4495 $as_echo "$ac_cv_path_GREP" >&6; }
4496 GREP="$ac_cv_path_GREP"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4500 $as_echo_n "checking for egrep... " >&6; }
4501 if test "${ac_cv_path_EGREP+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4505 then ac_cv_path_EGREP="$GREP -E"
4506 else
4507 if test -z "$EGREP"; then
4508 ac_path_EGREP_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in egrep; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4518 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4519 # Check for GNU ac_path_EGREP and select it if it is found.
4520 # Check for GNU $ac_path_EGREP
4521 case `"$ac_path_EGREP" --version 2>&1` in
4522 *GNU*)
4523 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4525 ac_count=0
4526 $as_echo_n 0123456789 >"conftest.in"
4527 while :
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo 'EGREP' >> "conftest.nl"
4533 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 as_fn_arith $ac_count + 1 && ac_count=$as_val
4536 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_EGREP="$ac_path_EGREP"
4539 ac_path_EGREP_max=$ac_count
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4543 done
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545 esac
4547 $ac_path_EGREP_found && break 3
4548 done
4549 done
4550 done
4551 IFS=$as_save_IFS
4552 if test -z "$ac_cv_path_EGREP"; then
4553 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4555 else
4556 ac_cv_path_EGREP=$EGREP
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4562 $as_echo "$ac_cv_path_EGREP" >&6; }
4563 EGREP="$ac_cv_path_EGREP"
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4567 $as_echo_n "checking for fgrep... " >&6; }
4568 if test "${ac_cv_path_FGREP+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4572 then ac_cv_path_FGREP="$GREP -F"
4573 else
4574 if test -z "$FGREP"; then
4575 ac_path_FGREP_found=false
4576 # Loop through the user's path and test for each of PROGNAME-LIST
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_prog in fgrep; do
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4585 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4586 # Check for GNU ac_path_FGREP and select it if it is found.
4587 # Check for GNU $ac_path_FGREP
4588 case `"$ac_path_FGREP" --version 2>&1` in
4589 *GNU*)
4590 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4592 ac_count=0
4593 $as_echo_n 0123456789 >"conftest.in"
4594 while :
4596 cat "conftest.in" "conftest.in" >"conftest.tmp"
4597 mv "conftest.tmp" "conftest.in"
4598 cp "conftest.in" "conftest.nl"
4599 $as_echo 'FGREP' >> "conftest.nl"
4600 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4602 as_fn_arith $ac_count + 1 && ac_count=$as_val
4603 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4604 # Best one so far, save it but keep looking for a better one
4605 ac_cv_path_FGREP="$ac_path_FGREP"
4606 ac_path_FGREP_max=$ac_count
4608 # 10*(2^10) chars as input seems more than enough
4609 test $ac_count -gt 10 && break
4610 done
4611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 esac
4614 $ac_path_FGREP_found && break 3
4615 done
4616 done
4617 done
4618 IFS=$as_save_IFS
4619 if test -z "$ac_cv_path_FGREP"; then
4620 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4622 else
4623 ac_cv_path_FGREP=$FGREP
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4629 $as_echo "$ac_cv_path_FGREP" >&6; }
4630 FGREP="$ac_cv_path_FGREP"
4633 test -z "$GREP" && GREP=grep
4651 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4652 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4653 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4656 $as_echo_n "checking how to print strings... " >&6; }
4657 # Test print first, because it will be a builtin if present.
4658 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4659 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4660 ECHO='print -r --'
4661 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4662 ECHO='printf %s\n'
4663 else
4664 # Use this function as a fallback that always works.
4665 func_fallback_echo ()
4667 eval 'cat <<_LTECHO_EOF
4669 _LTECHO_EOF'
4671 ECHO='func_fallback_echo'
4674 # func_echo_all arg...
4675 # Invoke $ECHO with all args, space-separated.
4676 func_echo_all ()
4678 $ECHO ""
4681 case "$ECHO" in
4682 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4683 $as_echo "printf" >&6; } ;;
4684 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4685 $as_echo "print -r" >&6; } ;;
4686 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4687 $as_echo "cat" >&6; } ;;
4688 esac
4705 # Check whether --with-gnu-ld was given.
4706 if test "${with_gnu_ld+set}" = set; then :
4707 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4708 else
4709 with_gnu_ld=no
4712 ac_prog=ld
4713 if test "$GCC" = yes; then
4714 # Check if gcc -print-prog-name=ld gives a path.
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4716 $as_echo_n "checking for ld used by $CC... " >&6; }
4717 case $host in
4718 *-*-mingw*)
4719 # gcc leaves a trailing carriage return which upsets mingw
4720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4723 esac
4724 case $ac_prog in
4725 # Accept absolute paths.
4726 [\\/]* | ?:[\\/]*)
4727 re_direlt='/[^/][^/]*/\.\./'
4728 # Canonicalize the pathname of ld
4729 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4730 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4731 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4732 done
4733 test -z "$LD" && LD="$ac_prog"
4736 # If it fails, then pretend we aren't using GCC.
4737 ac_prog=ld
4740 # If it is relative, then search for the first ld in PATH.
4741 with_gnu_ld=unknown
4743 esac
4744 elif test "$with_gnu_ld" = yes; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4746 $as_echo_n "checking for GNU ld... " >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4749 $as_echo_n "checking for non-GNU ld... " >&6; }
4751 if test "${lt_cv_path_LD+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 if test -z "$LD"; then
4755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4756 for ac_dir in $PATH; do
4757 IFS="$lt_save_ifs"
4758 test -z "$ac_dir" && ac_dir=.
4759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4760 lt_cv_path_LD="$ac_dir/$ac_prog"
4761 # Check to see if the program is GNU ld. I'd rather use --version,
4762 # but apparently some variants of GNU ld only accept -v.
4763 # Break only if it was the GNU/non-GNU ld that we prefer.
4764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4765 *GNU* | *'with BFD'*)
4766 test "$with_gnu_ld" != no && break
4769 test "$with_gnu_ld" != yes && break
4771 esac
4773 done
4774 IFS="$lt_save_ifs"
4775 else
4776 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4780 LD="$lt_cv_path_LD"
4781 if test -n "$LD"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4783 $as_echo "$LD" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4788 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4790 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4791 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4795 case `$LD -v 2>&1 </dev/null` in
4796 *GNU* | *'with BFD'*)
4797 lt_cv_prog_gnu_ld=yes
4800 lt_cv_prog_gnu_ld=no
4802 esac
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4805 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4806 with_gnu_ld=$lt_cv_prog_gnu_ld
4816 if test -n "$ac_tool_prefix"; then
4817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if test -n "$RANLIB"; then
4825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4838 done
4839 done
4840 IFS=$as_save_IFS
4844 RANLIB=$ac_cv_prog_RANLIB
4845 if test -n "$RANLIB"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4847 $as_echo "$RANLIB" >&6; }
4848 else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4855 if test -z "$ac_cv_prog_RANLIB"; then
4856 ac_ct_RANLIB=$RANLIB
4857 # Extract the first word of "ranlib", so it can be a program name with args.
4858 set dummy ranlib; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$ac_ct_RANLIB"; then
4865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_ac_ct_RANLIB="ranlib"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4878 done
4879 done
4880 IFS=$as_save_IFS
4884 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4885 if test -n "$ac_ct_RANLIB"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4887 $as_echo "$ac_ct_RANLIB" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4893 if test "x$ac_ct_RANLIB" = x; then
4894 RANLIB=":"
4895 else
4896 case $cross_compiling:$ac_tool_warned in
4897 yes:)
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900 ac_tool_warned=yes ;;
4901 esac
4902 RANLIB=$ac_ct_RANLIB
4904 else
4905 RANLIB="$ac_cv_prog_RANLIB"
4908 if test -n "$ac_tool_prefix"; then
4909 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4910 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 if test -n "$OBJCOPY"; then
4917 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4930 done
4931 done
4932 IFS=$as_save_IFS
4936 OBJCOPY=$ac_cv_prog_OBJCOPY
4937 if test -n "$OBJCOPY"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4939 $as_echo "$OBJCOPY" >&6; }
4940 else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4947 if test -z "$ac_cv_prog_OBJCOPY"; then
4948 ac_ct_OBJCOPY=$OBJCOPY
4949 # Extract the first word of "objcopy", so it can be a program name with args.
4950 set dummy objcopy; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 if test -n "$ac_ct_OBJCOPY"; then
4957 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 break 2
4970 done
4971 done
4972 IFS=$as_save_IFS
4976 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4977 if test -n "$ac_ct_OBJCOPY"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4979 $as_echo "$ac_ct_OBJCOPY" >&6; }
4980 else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4985 if test "x$ac_ct_OBJCOPY" = x; then
4986 OBJCOPY="missing-objcopy"
4987 else
4988 case $cross_compiling:$ac_tool_warned in
4989 yes:)
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned=yes ;;
4993 esac
4994 OBJCOPY=$ac_ct_OBJCOPY
4996 else
4997 OBJCOPY="$ac_cv_prog_OBJCOPY"
5001 enable_dlopen=yes
5005 case `pwd` in
5006 *\ * | *\ *)
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5008 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5009 esac
5013 macro_version='2.2.7a'
5014 macro_revision='1.3134'
5028 ltmain="$ac_aux_dir/ltmain.sh"
5030 # Backslashify metacharacters that are still active within
5031 # double-quoted strings.
5032 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5034 # Same as above, but do not quote variable references.
5035 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5037 # Sed substitution to delay expansion of an escaped shell variable in a
5038 # double_quote_subst'ed string.
5039 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5041 # Sed substitution to delay expansion of an escaped single quote.
5042 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5044 # Sed substitution to avoid accidental globbing in evaled expressions
5045 no_glob_subst='s/\*/\\\*/g'
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5048 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5049 if test "${lt_cv_path_NM+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$NM"; then
5053 # Let the user override the test.
5054 lt_cv_path_NM="$NM"
5055 else
5056 lt_nm_to_check="${ac_tool_prefix}nm"
5057 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5058 lt_nm_to_check="$lt_nm_to_check nm"
5060 for lt_tmp_nm in $lt_nm_to_check; do
5061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5062 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5063 IFS="$lt_save_ifs"
5064 test -z "$ac_dir" && ac_dir=.
5065 tmp_nm="$ac_dir/$lt_tmp_nm"
5066 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5067 # Check to see if the nm accepts a BSD-compat flag.
5068 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5069 # nm: unknown option "B" ignored
5070 # Tru64's nm complains that /dev/null is an invalid object file
5071 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5072 */dev/null* | *'Invalid file or object type'*)
5073 lt_cv_path_NM="$tmp_nm -B"
5074 break
5077 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5078 */dev/null*)
5079 lt_cv_path_NM="$tmp_nm -p"
5080 break
5083 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5084 continue # so that we can try to find one that supports BSD flags
5086 esac
5088 esac
5090 done
5091 IFS="$lt_save_ifs"
5092 done
5093 : ${lt_cv_path_NM=no}
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5097 $as_echo "$lt_cv_path_NM" >&6; }
5098 if test "$lt_cv_path_NM" != "no"; then
5099 NM="$lt_cv_path_NM"
5100 else
5101 # Didn't find any BSD compatible name lister, look for dumpbin.
5102 if test -n "$DUMPBIN"; then :
5103 # Let the user override the test.
5104 else
5105 if test -n "$ac_tool_prefix"; then
5106 for ac_prog in dumpbin "link -dump"
5108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if test -n "$DUMPBIN"; then
5116 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5129 done
5130 done
5131 IFS=$as_save_IFS
5135 DUMPBIN=$ac_cv_prog_DUMPBIN
5136 if test -n "$DUMPBIN"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5138 $as_echo "$DUMPBIN" >&6; }
5139 else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5145 test -n "$DUMPBIN" && break
5146 done
5148 if test -z "$DUMPBIN"; then
5149 ac_ct_DUMPBIN=$DUMPBIN
5150 for ac_prog in dumpbin "link -dump"
5152 # Extract the first word of "$ac_prog", so it can be a program name with args.
5153 set dummy $ac_prog; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -n "$ac_ct_DUMPBIN"; then
5160 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5173 done
5174 done
5175 IFS=$as_save_IFS
5179 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5180 if test -n "$ac_ct_DUMPBIN"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5182 $as_echo "$ac_ct_DUMPBIN" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5189 test -n "$ac_ct_DUMPBIN" && break
5190 done
5192 if test "x$ac_ct_DUMPBIN" = x; then
5193 DUMPBIN=":"
5194 else
5195 case $cross_compiling:$ac_tool_warned in
5196 yes:)
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199 ac_tool_warned=yes ;;
5200 esac
5201 DUMPBIN=$ac_ct_DUMPBIN
5205 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5206 *COFF*)
5207 DUMPBIN="$DUMPBIN -symbols"
5210 DUMPBIN=:
5212 esac
5215 if test "$DUMPBIN" != ":"; then
5216 NM="$DUMPBIN"
5219 test -z "$NM" && NM=nm
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5227 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5228 if test "${lt_cv_nm_interface+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 lt_cv_nm_interface="BSD nm"
5232 echo "int some_variable = 0;" > conftest.$ac_ext
5233 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5234 (eval "$ac_compile" 2>conftest.err)
5235 cat conftest.err >&5
5236 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5237 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5238 cat conftest.err >&5
5239 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5240 cat conftest.out >&5
5241 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5242 lt_cv_nm_interface="MS dumpbin"
5244 rm -f conftest*
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5247 $as_echo "$lt_cv_nm_interface" >&6; }
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5250 $as_echo_n "checking whether ln -s works... " >&6; }
5251 LN_S=$as_ln_s
5252 if test "$LN_S" = "ln -s"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5254 $as_echo "yes" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5257 $as_echo "no, using $LN_S" >&6; }
5260 # find the maximum length of command line arguments
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5262 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5263 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5267 teststring="ABCD"
5269 case $build_os in
5270 msdosdjgpp*)
5271 # On DJGPP, this test can blow up pretty badly due to problems in libc
5272 # (any single argument exceeding 2000 bytes causes a buffer overrun
5273 # during glob expansion). Even if it were fixed, the result of this
5274 # check would be larger than it should be.
5275 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5278 gnu*)
5279 # Under GNU Hurd, this test is not required because there is
5280 # no limit to the length of command line arguments.
5281 # Libtool will interpret -1 as no limit whatsoever
5282 lt_cv_sys_max_cmd_len=-1;
5285 cygwin* | mingw* | cegcc*)
5286 # On Win9x/ME, this test blows up -- it succeeds, but takes
5287 # about 5 minutes as the teststring grows exponentially.
5288 # Worse, since 9x/ME are not pre-emptively multitasking,
5289 # you end up with a "frozen" computer, even though with patience
5290 # the test eventually succeeds (with a max line length of 256k).
5291 # Instead, let's just punt: use the minimum linelength reported by
5292 # all of the supported platforms: 8192 (on NT/2K/XP).
5293 lt_cv_sys_max_cmd_len=8192;
5296 mint*)
5297 # On MiNT this can take a long time and run out of memory.
5298 lt_cv_sys_max_cmd_len=8192;
5301 amigaos*)
5302 # On AmigaOS with pdksh, this test takes hours, literally.
5303 # So we just punt and use a minimum line length of 8192.
5304 lt_cv_sys_max_cmd_len=8192;
5307 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5308 # This has been around since 386BSD, at least. Likely further.
5309 if test -x /sbin/sysctl; then
5310 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5311 elif test -x /usr/sbin/sysctl; then
5312 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5313 else
5314 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5316 # And add a safety zone
5317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5321 interix*)
5322 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5323 lt_cv_sys_max_cmd_len=196608
5326 osf*)
5327 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5328 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5329 # nice to cause kernel panics so lets avoid the loop below.
5330 # First set a reasonable default.
5331 lt_cv_sys_max_cmd_len=16384
5333 if test -x /sbin/sysconfig; then
5334 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5335 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5336 esac
5339 sco3.2v5*)
5340 lt_cv_sys_max_cmd_len=102400
5342 sysv5* | sco5v6* | sysv4.2uw2*)
5343 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5344 if test -n "$kargmax"; then
5345 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5346 else
5347 lt_cv_sys_max_cmd_len=32768
5351 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5352 if test -n "$lt_cv_sys_max_cmd_len"; then
5353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5355 else
5356 # Make teststring a little bigger before we do anything with it.
5357 # a 1K string should be a reasonable start.
5358 for i in 1 2 3 4 5 6 7 8 ; do
5359 teststring=$teststring$teststring
5360 done
5361 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5362 # If test is not a shell built-in, we'll probably end up computing a
5363 # maximum length that is only half of the actual maximum length, but
5364 # we can't tell.
5365 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5366 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5367 test $i != 17 # 1/2 MB should be enough
5369 i=`expr $i + 1`
5370 teststring=$teststring$teststring
5371 done
5372 # Only check the string length outside the loop.
5373 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5374 teststring=
5375 # Add a significant safety factor because C++ compilers can tack on
5376 # massive amounts of additional arguments before passing them to the
5377 # linker. It appears as though 1/2 is a usable value.
5378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5381 esac
5385 if test -n $lt_cv_sys_max_cmd_len ; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5387 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5390 $as_echo "none" >&6; }
5392 max_cmd_len=$lt_cv_sys_max_cmd_len
5399 : ${CP="cp -f"}
5400 : ${MV="mv -f"}
5401 : ${RM="rm -f"}
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5404 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5405 # Try some XSI features
5406 xsi_shell=no
5407 ( _lt_dummy="a/b/c"
5408 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5409 = c,a/b,, \
5410 && eval 'test $(( 1 + 1 )) -eq 2 \
5411 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5412 && xsi_shell=yes
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5414 $as_echo "$xsi_shell" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5418 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5419 lt_shell_append=no
5420 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5421 >/dev/null 2>&1 \
5422 && lt_shell_append=yes
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5424 $as_echo "$lt_shell_append" >&6; }
5427 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5428 lt_unset=unset
5429 else
5430 lt_unset=false
5437 # test EBCDIC or ASCII
5438 case `echo X|tr X '\101'` in
5439 A) # ASCII based system
5440 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5441 lt_SP2NL='tr \040 \012'
5442 lt_NL2SP='tr \015\012 \040\040'
5444 *) # EBCDIC based system
5445 lt_SP2NL='tr \100 \n'
5446 lt_NL2SP='tr \r\n \100\100'
5448 esac
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5459 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5460 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 lt_cv_ld_reload_flag='-r'
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5466 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5467 reload_flag=$lt_cv_ld_reload_flag
5468 case $reload_flag in
5469 "" | " "*) ;;
5470 *) reload_flag=" $reload_flag" ;;
5471 esac
5472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5473 case $host_os in
5474 darwin*)
5475 if test "$GCC" = yes; then
5476 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5477 else
5478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5481 esac
5491 if test -n "$ac_tool_prefix"; then
5492 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5493 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$OBJDUMP"; then
5500 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5513 done
5514 done
5515 IFS=$as_save_IFS
5519 OBJDUMP=$ac_cv_prog_OBJDUMP
5520 if test -n "$OBJDUMP"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5522 $as_echo "$OBJDUMP" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5530 if test -z "$ac_cv_prog_OBJDUMP"; then
5531 ac_ct_OBJDUMP=$OBJDUMP
5532 # Extract the first word of "objdump", so it can be a program name with args.
5533 set dummy objdump; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -n "$ac_ct_OBJDUMP"; then
5540 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5553 done
5554 done
5555 IFS=$as_save_IFS
5559 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5560 if test -n "$ac_ct_OBJDUMP"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5562 $as_echo "$ac_ct_OBJDUMP" >&6; }
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5568 if test "x$ac_ct_OBJDUMP" = x; then
5569 OBJDUMP="false"
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572 yes:)
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575 ac_tool_warned=yes ;;
5576 esac
5577 OBJDUMP=$ac_ct_OBJDUMP
5579 else
5580 OBJDUMP="$ac_cv_prog_OBJDUMP"
5583 test -z "$OBJDUMP" && OBJDUMP=objdump
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5594 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5595 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 lt_cv_file_magic_cmd='$MAGIC_CMD'
5599 lt_cv_file_magic_test_file=
5600 lt_cv_deplibs_check_method='unknown'
5601 # Need to set the preceding variable on all platforms that support
5602 # interlibrary dependencies.
5603 # 'none' -- dependencies not supported.
5604 # `unknown' -- same as none, but documents that we really don't know.
5605 # 'pass_all' -- all dependencies passed with no checks.
5606 # 'test_compile' -- check by making test program.
5607 # 'file_magic [[regex]]' -- check by looking for files in library path
5608 # which responds to the $file_magic_cmd with a given extended regex.
5609 # If you have `file' or equivalent on your system and you're not sure
5610 # whether `pass_all' will *always* work, you probably want this one.
5612 case $host_os in
5613 aix[4-9]*)
5614 lt_cv_deplibs_check_method=pass_all
5617 beos*)
5618 lt_cv_deplibs_check_method=pass_all
5621 bsdi[45]*)
5622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5623 lt_cv_file_magic_cmd='/usr/bin/file -L'
5624 lt_cv_file_magic_test_file=/shlib/libc.so
5627 cygwin*)
5628 # func_win32_libid is a shell function defined in ltmain.sh
5629 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5630 lt_cv_file_magic_cmd='func_win32_libid'
5633 mingw* | pw32*)
5634 # Base MSYS/MinGW do not provide the 'file' command needed by
5635 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5636 # unless we find 'file', for example because we are cross-compiling.
5637 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5638 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5639 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5640 lt_cv_file_magic_cmd='func_win32_libid'
5641 else
5642 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5643 lt_cv_file_magic_cmd='$OBJDUMP -f'
5647 cegcc*)
5648 # use the weaker test based on 'objdump'. See mingw*.
5649 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5650 lt_cv_file_magic_cmd='$OBJDUMP -f'
5653 darwin* | rhapsody*)
5654 lt_cv_deplibs_check_method=pass_all
5657 freebsd* | dragonfly*)
5658 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5659 case $host_cpu in
5660 i*86 )
5661 # Not sure whether the presence of OpenBSD here was a mistake.
5662 # Let's accept both of them until this is cleared up.
5663 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5664 lt_cv_file_magic_cmd=/usr/bin/file
5665 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5667 esac
5668 else
5669 lt_cv_deplibs_check_method=pass_all
5673 gnu*)
5674 lt_cv_deplibs_check_method=pass_all
5677 haiku*)
5678 lt_cv_deplibs_check_method=pass_all
5681 hpux10.20* | hpux11*)
5682 lt_cv_file_magic_cmd=/usr/bin/file
5683 case $host_cpu in
5684 ia64*)
5685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5686 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5688 hppa*64*)
5689 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]'
5690 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5693 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5694 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5696 esac
5699 interix[3-9]*)
5700 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5704 irix5* | irix6* | nonstopux*)
5705 case $LD in
5706 *-32|*"-32 ") libmagic=32-bit;;
5707 *-n32|*"-n32 ") libmagic=N32;;
5708 *-64|*"-64 ") libmagic=64-bit;;
5709 *) libmagic=never-match;;
5710 esac
5711 lt_cv_deplibs_check_method=pass_all
5714 # This must be Linux ELF.
5715 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5716 lt_cv_deplibs_check_method=pass_all
5719 netbsd*)
5720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5722 else
5723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5727 newos6*)
5728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5729 lt_cv_file_magic_cmd=/usr/bin/file
5730 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5733 *nto* | *qnx*)
5734 lt_cv_deplibs_check_method=pass_all
5737 openbsd*)
5738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5740 else
5741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5745 osf3* | osf4* | osf5*)
5746 lt_cv_deplibs_check_method=pass_all
5749 rdos*)
5750 lt_cv_deplibs_check_method=pass_all
5753 solaris*)
5754 lt_cv_deplibs_check_method=pass_all
5757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5758 lt_cv_deplibs_check_method=pass_all
5761 sysv4 | sysv4.3*)
5762 case $host_vendor in
5763 motorola)
5764 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]'
5765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5767 ncr)
5768 lt_cv_deplibs_check_method=pass_all
5770 sequent)
5771 lt_cv_file_magic_cmd='/bin/file'
5772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5774 sni)
5775 lt_cv_file_magic_cmd='/bin/file'
5776 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5777 lt_cv_file_magic_test_file=/lib/libc.so
5779 siemens)
5780 lt_cv_deplibs_check_method=pass_all
5783 lt_cv_deplibs_check_method=pass_all
5785 esac
5788 tpf*)
5789 lt_cv_deplibs_check_method=pass_all
5791 esac
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5795 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5796 file_magic_cmd=$lt_cv_file_magic_cmd
5797 deplibs_check_method=$lt_cv_deplibs_check_method
5798 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5811 if test -n "$ac_tool_prefix"; then
5812 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5813 set dummy ${ac_tool_prefix}ar; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_prog_AR+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if test -n "$AR"; then
5820 ac_cv_prog_AR="$AR" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829 ac_cv_prog_AR="${ac_tool_prefix}ar"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5833 done
5834 done
5835 IFS=$as_save_IFS
5839 AR=$ac_cv_prog_AR
5840 if test -n "$AR"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5842 $as_echo "$AR" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5850 if test -z "$ac_cv_prog_AR"; then
5851 ac_ct_AR=$AR
5852 # Extract the first word of "ar", so it can be a program name with args.
5853 set dummy ar; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test -n "$ac_ct_AR"; then
5860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5869 ac_cv_prog_ac_ct_AR="ar"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5873 done
5874 done
5875 IFS=$as_save_IFS
5879 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5880 if test -n "$ac_ct_AR"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5882 $as_echo "$ac_ct_AR" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5888 if test "x$ac_ct_AR" = x; then
5889 AR="false"
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897 AR=$ac_ct_AR
5899 else
5900 AR="$ac_cv_prog_AR"
5903 test -z "$AR" && AR=ar
5904 test -z "$AR_FLAGS" && AR_FLAGS=cru
5916 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}strip; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if test "${ac_cv_prog_STRIP+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if test -n "$STRIP"; then
5925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5938 done
5939 done
5940 IFS=$as_save_IFS
5944 STRIP=$ac_cv_prog_STRIP
5945 if test -n "$STRIP"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5947 $as_echo "$STRIP" >&6; }
5948 else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5955 if test -z "$ac_cv_prog_STRIP"; then
5956 ac_ct_STRIP=$STRIP
5957 # Extract the first word of "strip", so it can be a program name with args.
5958 set dummy strip; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if test -n "$ac_ct_STRIP"; then
5965 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974 ac_cv_prog_ac_ct_STRIP="strip"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 break 2
5978 done
5979 done
5980 IFS=$as_save_IFS
5984 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5985 if test -n "$ac_ct_STRIP"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5987 $as_echo "$ac_ct_STRIP" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5993 if test "x$ac_ct_STRIP" = x; then
5994 STRIP=":"
5995 else
5996 case $cross_compiling:$ac_tool_warned in
5997 yes:)
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000 ac_tool_warned=yes ;;
6001 esac
6002 STRIP=$ac_ct_STRIP
6004 else
6005 STRIP="$ac_cv_prog_STRIP"
6008 test -z "$STRIP" && STRIP=:
6015 if test -n "$ac_tool_prefix"; then
6016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 if test -n "$RANLIB"; then
6024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6037 done
6038 done
6039 IFS=$as_save_IFS
6043 RANLIB=$ac_cv_prog_RANLIB
6044 if test -n "$RANLIB"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6046 $as_echo "$RANLIB" >&6; }
6047 else
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6054 if test -z "$ac_cv_prog_RANLIB"; then
6055 ac_ct_RANLIB=$RANLIB
6056 # Extract the first word of "ranlib", so it can be a program name with args.
6057 set dummy ranlib; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 if test -n "$ac_ct_RANLIB"; then
6064 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_ac_ct_RANLIB="ranlib"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6077 done
6078 done
6079 IFS=$as_save_IFS
6083 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6084 if test -n "$ac_ct_RANLIB"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6086 $as_echo "$ac_ct_RANLIB" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6092 if test "x$ac_ct_RANLIB" = x; then
6093 RANLIB=":"
6094 else
6095 case $cross_compiling:$ac_tool_warned in
6096 yes:)
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099 ac_tool_warned=yes ;;
6100 esac
6101 RANLIB=$ac_ct_RANLIB
6103 else
6104 RANLIB="$ac_cv_prog_RANLIB"
6107 test -z "$RANLIB" && RANLIB=:
6114 # Determine commands to create old-style static archives.
6115 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6116 old_postinstall_cmds='chmod 644 $oldlib'
6117 old_postuninstall_cmds=
6119 if test -n "$RANLIB"; then
6120 case $host_os in
6121 openbsd*)
6122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6127 esac
6128 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6131 case $host_os in
6132 darwin*)
6133 lock_old_archive_extraction=yes ;;
6135 lock_old_archive_extraction=no ;;
6136 esac
6176 # If no C compiler was specified, use CC.
6177 LTCC=${LTCC-"$CC"}
6179 # If no C compiler flags were specified, use CFLAGS.
6180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6182 # Allow CC to be a program name with arguments.
6183 compiler=$CC
6186 # Check for command to grab the raw symbol name followed by C symbol from nm.
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6188 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6189 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6193 # These are sane defaults that work on at least a few old systems.
6194 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6196 # Character class describing NM global symbol codes.
6197 symcode='[BCDEGRST]'
6199 # Regexp to match symbols that can be accessed directly from C.
6200 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6202 # Define system-specific variables.
6203 case $host_os in
6204 aix*)
6205 symcode='[BCDT]'
6207 cygwin* | mingw* | pw32* | cegcc*)
6208 symcode='[ABCDGISTW]'
6210 hpux*)
6211 if test "$host_cpu" = ia64; then
6212 symcode='[ABCDEGRST]'
6215 irix* | nonstopux*)
6216 symcode='[BCDEGRST]'
6218 osf*)
6219 symcode='[BCDEGQRST]'
6221 solaris*)
6222 symcode='[BDRT]'
6224 sco3.2v5*)
6225 symcode='[DT]'
6227 sysv4.2uw2*)
6228 symcode='[DT]'
6230 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6231 symcode='[ABDT]'
6233 sysv4)
6234 symcode='[DFNSTU]'
6236 esac
6238 # If we're using GNU nm, then use its standard symbol codes.
6239 case `$NM -V 2>&1` in
6240 *GNU* | *'with BFD'*)
6241 symcode='[ABCDGIRSTW]' ;;
6242 esac
6244 # Transform an extracted symbol line into a proper C declaration.
6245 # Some systems (esp. on ia64) link data and code symbols differently,
6246 # so use this general approach.
6247 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6249 # Transform an extracted symbol line into symbol name and symbol address
6250 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6251 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'"
6253 # Handle CRLF in mingw tool chain
6254 opt_cr=
6255 case $build_os in
6256 mingw*)
6257 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6259 esac
6261 # Try without a prefix underscore, then with it.
6262 for ac_symprfx in "" "_"; do
6264 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6265 symxfrm="\\1 $ac_symprfx\\2 \\2"
6267 # Write the raw and C identifiers.
6268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6269 # Fake it for dumpbin and say T for any non-static function
6270 # and D for any global variable.
6271 # Also find C++ and __fastcall symbols from MSVC++,
6272 # which start with @ or ?.
6273 lt_cv_sys_global_symbol_pipe="$AWK '"\
6274 " {last_section=section; section=\$ 3};"\
6275 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6276 " \$ 0!~/External *\|/{next};"\
6277 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6278 " {if(hide[section]) next};"\
6279 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6280 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6281 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6282 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6283 " ' prfx=^$ac_symprfx"
6284 else
6285 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288 # Check to see that the pipe works correctly.
6289 pipe_works=no
6291 rm -f conftest*
6292 cat > conftest.$ac_ext <<_LT_EOF
6293 #ifdef __cplusplus
6294 extern "C" {
6295 #endif
6296 char nm_test_var;
6297 void nm_test_func(void);
6298 void nm_test_func(void){}
6299 #ifdef __cplusplus
6301 #endif
6302 int main(){nm_test_var='a';nm_test_func();return(0);}
6303 _LT_EOF
6305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6306 (eval $ac_compile) 2>&5
6307 ac_status=$?
6308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }; then
6310 # Now try to grab the symbols.
6311 nlist=conftest.nm
6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6313 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6314 ac_status=$?
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; } && test -s "$nlist"; then
6317 # Try sorting and uniquifying the output.
6318 if sort "$nlist" | uniq > "$nlist"T; then
6319 mv -f "$nlist"T "$nlist"
6320 else
6321 rm -f "$nlist"T
6324 # Make sure that we snagged all the symbols we need.
6325 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6326 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6327 cat <<_LT_EOF > conftest.$ac_ext
6328 #ifdef __cplusplus
6329 extern "C" {
6330 #endif
6332 _LT_EOF
6333 # Now generate the symbol file.
6334 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6336 cat <<_LT_EOF >> conftest.$ac_ext
6338 /* The mapping between symbol names and symbols. */
6339 const struct {
6340 const char *name;
6341 void *address;
6343 lt__PROGRAM__LTX_preloaded_symbols[] =
6345 { "@PROGRAM@", (void *) 0 },
6346 _LT_EOF
6347 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6348 cat <<\_LT_EOF >> conftest.$ac_ext
6349 {0, (void *) 0}
6352 /* This works around a problem in FreeBSD linker */
6353 #ifdef FREEBSD_WORKAROUND
6354 static const void *lt_preloaded_setup() {
6355 return lt__PROGRAM__LTX_preloaded_symbols;
6357 #endif
6359 #ifdef __cplusplus
6361 #endif
6362 _LT_EOF
6363 # Now try linking the two files.
6364 mv conftest.$ac_objext conftstm.$ac_objext
6365 lt_save_LIBS="$LIBS"
6366 lt_save_CFLAGS="$CFLAGS"
6367 LIBS="conftstm.$ac_objext"
6368 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6370 (eval $ac_link) 2>&5
6371 ac_status=$?
6372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6373 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6374 pipe_works=yes
6376 LIBS="$lt_save_LIBS"
6377 CFLAGS="$lt_save_CFLAGS"
6378 else
6379 echo "cannot find nm_test_func in $nlist" >&5
6381 else
6382 echo "cannot find nm_test_var in $nlist" >&5
6384 else
6385 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6387 else
6388 echo "$progname: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6391 rm -rf conftest* conftst*
6393 # Do not use the global_symbol_pipe unless it works.
6394 if test "$pipe_works" = yes; then
6395 break
6396 else
6397 lt_cv_sys_global_symbol_pipe=
6399 done
6403 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6404 lt_cv_sys_global_symbol_to_cdecl=
6406 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6408 $as_echo "failed" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6411 $as_echo "ok" >&6; }
6436 # Check whether --enable-libtool-lock was given.
6437 if test "${enable_libtool_lock+set}" = set; then :
6438 enableval=$enable_libtool_lock;
6441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6443 # Some flags need to be propagated to the compiler or linker for good
6444 # libtool support.
6445 case $host in
6446 ia64-*-hpux*)
6447 # Find out which ABI we are using.
6448 echo 'int i;' > conftest.$ac_ext
6449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6450 (eval $ac_compile) 2>&5
6451 ac_status=$?
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453 test $ac_status = 0; }; then
6454 case `/usr/bin/file conftest.$ac_objext` in
6455 *ELF-32*)
6456 HPUX_IA64_MODE="32"
6458 *ELF-64*)
6459 HPUX_IA64_MODE="64"
6461 esac
6463 rm -rf conftest*
6465 *-*-irix6*)
6466 # Find out which ABI we are using.
6467 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6469 (eval $ac_compile) 2>&5
6470 ac_status=$?
6471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472 test $ac_status = 0; }; then
6473 if test "$lt_cv_prog_gnu_ld" = yes; then
6474 case `/usr/bin/file conftest.$ac_objext` in
6475 *32-bit*)
6476 LD="${LD-ld} -melf32bsmip"
6478 *N32*)
6479 LD="${LD-ld} -melf32bmipn32"
6481 *64-bit*)
6482 LD="${LD-ld} -melf64bmip"
6484 esac
6485 else
6486 case `/usr/bin/file conftest.$ac_objext` in
6487 *32-bit*)
6488 LD="${LD-ld} -32"
6490 *N32*)
6491 LD="${LD-ld} -n32"
6493 *64-bit*)
6494 LD="${LD-ld} -64"
6496 esac
6499 rm -rf conftest*
6502 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6503 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6504 # Find out which ABI we are using.
6505 echo 'int i;' > conftest.$ac_ext
6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6507 (eval $ac_compile) 2>&5
6508 ac_status=$?
6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510 test $ac_status = 0; }; then
6511 case `/usr/bin/file conftest.o` in
6512 *32-bit*)
6513 case $host in
6514 x86_64-*kfreebsd*-gnu)
6515 LD="${LD-ld} -m elf_i386_fbsd"
6517 x86_64-*linux*)
6518 case `/usr/bin/file conftest.o` in
6519 *x86-64*)
6520 LD="${LD-ld} -m elf32_x86_64"
6523 LD="${LD-ld} -m elf_i386"
6525 esac
6527 powerpc64le-*linux*)
6528 LD="${LD-ld} -m elf32lppclinux"
6530 powerpc64-*linux*)
6531 LD="${LD-ld} -m elf32ppclinux"
6533 s390x-*linux*)
6534 LD="${LD-ld} -m elf_s390"
6536 sparc64-*linux*)
6537 LD="${LD-ld} -m elf32_sparc"
6539 esac
6541 *64-bit*)
6542 case $host in
6543 x86_64-*kfreebsd*-gnu)
6544 LD="${LD-ld} -m elf_x86_64_fbsd"
6546 x86_64-*linux*)
6547 LD="${LD-ld} -m elf_x86_64"
6549 powerpcle-*linux*)
6550 LD="${LD-ld} -m elf64lppc"
6552 powerpc-*linux*)
6553 LD="${LD-ld} -m elf64ppc"
6555 s390*-*linux*|s390*-*tpf*)
6556 LD="${LD-ld} -m elf64_s390"
6558 sparc*-*linux*)
6559 LD="${LD-ld} -m elf64_sparc"
6561 esac
6563 esac
6565 rm -rf conftest*
6568 *-*-sco3.2v5*)
6569 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6570 SAVE_CFLAGS="$CFLAGS"
6571 CFLAGS="$CFLAGS -belf"
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6573 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6574 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 ac_ext=c
6578 ac_cpp='$CPP $CPPFLAGS'
6579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6587 main ()
6591 return 0;
6593 _ACEOF
6594 if ac_fn_c_try_link "$LINENO"; then :
6595 lt_cv_cc_needs_belf=yes
6596 else
6597 lt_cv_cc_needs_belf=no
6599 rm -f core conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 ac_ext=c
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6609 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6610 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6611 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6612 CFLAGS="$SAVE_CFLAGS"
6615 sparc*-*solaris*)
6616 # Find out which ABI we are using.
6617 echo 'int i;' > conftest.$ac_ext
6618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6619 (eval $ac_compile) 2>&5
6620 ac_status=$?
6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622 test $ac_status = 0; }; then
6623 case `/usr/bin/file conftest.o` in
6624 *64-bit*)
6625 case $lt_cv_prog_gnu_ld in
6626 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6628 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6629 LD="${LD-ld} -64"
6632 esac
6634 esac
6636 rm -rf conftest*
6638 esac
6640 need_locks="$enable_libtool_lock"
6643 case $host_os in
6644 rhapsody* | darwin*)
6645 if test -n "$ac_tool_prefix"; then
6646 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6647 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 if test -n "$DSYMUTIL"; then
6654 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6667 done
6668 done
6669 IFS=$as_save_IFS
6673 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6674 if test -n "$DSYMUTIL"; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6676 $as_echo "$DSYMUTIL" >&6; }
6677 else
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6684 if test -z "$ac_cv_prog_DSYMUTIL"; then
6685 ac_ct_DSYMUTIL=$DSYMUTIL
6686 # Extract the first word of "dsymutil", so it can be a program name with args.
6687 set dummy dsymutil; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 if test -n "$ac_ct_DSYMUTIL"; then
6694 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6707 done
6708 done
6709 IFS=$as_save_IFS
6713 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6714 if test -n "$ac_ct_DSYMUTIL"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6716 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6717 else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6722 if test "x$ac_ct_DSYMUTIL" = x; then
6723 DSYMUTIL=":"
6724 else
6725 case $cross_compiling:$ac_tool_warned in
6726 yes:)
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729 ac_tool_warned=yes ;;
6730 esac
6731 DSYMUTIL=$ac_ct_DSYMUTIL
6733 else
6734 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6737 if test -n "$ac_tool_prefix"; then
6738 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6739 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 if test -n "$NMEDIT"; then
6746 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6759 done
6760 done
6761 IFS=$as_save_IFS
6765 NMEDIT=$ac_cv_prog_NMEDIT
6766 if test -n "$NMEDIT"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6768 $as_echo "$NMEDIT" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6776 if test -z "$ac_cv_prog_NMEDIT"; then
6777 ac_ct_NMEDIT=$NMEDIT
6778 # Extract the first word of "nmedit", so it can be a program name with args.
6779 set dummy nmedit; ac_word=$2
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 if test -n "$ac_ct_NMEDIT"; then
6786 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6787 else
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6799 done
6800 done
6801 IFS=$as_save_IFS
6805 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6806 if test -n "$ac_ct_NMEDIT"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6808 $as_echo "$ac_ct_NMEDIT" >&6; }
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6814 if test "x$ac_ct_NMEDIT" = x; then
6815 NMEDIT=":"
6816 else
6817 case $cross_compiling:$ac_tool_warned in
6818 yes:)
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6821 ac_tool_warned=yes ;;
6822 esac
6823 NMEDIT=$ac_ct_NMEDIT
6825 else
6826 NMEDIT="$ac_cv_prog_NMEDIT"
6829 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6831 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if test "${ac_cv_prog_LIPO+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$LIPO"; then
6838 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6851 done
6852 done
6853 IFS=$as_save_IFS
6857 LIPO=$ac_cv_prog_LIPO
6858 if test -n "$LIPO"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6860 $as_echo "$LIPO" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6868 if test -z "$ac_cv_prog_LIPO"; then
6869 ac_ct_LIPO=$LIPO
6870 # Extract the first word of "lipo", so it can be a program name with args.
6871 set dummy lipo; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$ac_ct_LIPO"; then
6878 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_prog_ac_ct_LIPO="lipo"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6891 done
6892 done
6893 IFS=$as_save_IFS
6897 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6898 if test -n "$ac_ct_LIPO"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6900 $as_echo "$ac_ct_LIPO" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6906 if test "x$ac_ct_LIPO" = x; then
6907 LIPO=":"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 LIPO=$ac_ct_LIPO
6917 else
6918 LIPO="$ac_cv_prog_LIPO"
6921 if test -n "$ac_tool_prefix"; then
6922 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6923 set dummy ${ac_tool_prefix}otool; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 if test -n "$OTOOL"; then
6930 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6943 done
6944 done
6945 IFS=$as_save_IFS
6949 OTOOL=$ac_cv_prog_OTOOL
6950 if test -n "$OTOOL"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6952 $as_echo "$OTOOL" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6960 if test -z "$ac_cv_prog_OTOOL"; then
6961 ac_ct_OTOOL=$OTOOL
6962 # Extract the first word of "otool", so it can be a program name with args.
6963 set dummy otool; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 if test -n "$ac_ct_OTOOL"; then
6970 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_ac_ct_OTOOL="otool"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6983 done
6984 done
6985 IFS=$as_save_IFS
6989 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6990 if test -n "$ac_ct_OTOOL"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6992 $as_echo "$ac_ct_OTOOL" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6998 if test "x$ac_ct_OTOOL" = x; then
6999 OTOOL=":"
7000 else
7001 case $cross_compiling:$ac_tool_warned in
7002 yes:)
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7005 ac_tool_warned=yes ;;
7006 esac
7007 OTOOL=$ac_ct_OTOOL
7009 else
7010 OTOOL="$ac_cv_prog_OTOOL"
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$OTOOL64"; then
7022 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7035 done
7036 done
7037 IFS=$as_save_IFS
7041 OTOOL64=$ac_cv_prog_OTOOL64
7042 if test -n "$OTOOL64"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7044 $as_echo "$OTOOL64" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7052 if test -z "$ac_cv_prog_OTOOL64"; then
7053 ac_ct_OTOOL64=$OTOOL64
7054 # Extract the first word of "otool64", so it can be a program name with args.
7055 set dummy otool64; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$ac_ct_OTOOL64"; then
7062 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_prog_ac_ct_OTOOL64="otool64"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7075 done
7076 done
7077 IFS=$as_save_IFS
7081 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7082 if test -n "$ac_ct_OTOOL64"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7084 $as_echo "$ac_ct_OTOOL64" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7090 if test "x$ac_ct_OTOOL64" = x; then
7091 OTOOL64=":"
7092 else
7093 case $cross_compiling:$ac_tool_warned in
7094 yes:)
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7097 ac_tool_warned=yes ;;
7098 esac
7099 OTOOL64=$ac_ct_OTOOL64
7101 else
7102 OTOOL64="$ac_cv_prog_OTOOL64"
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7132 $as_echo_n "checking for -single_module linker flag... " >&6; }
7133 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 lt_cv_apple_cc_single_mod=no
7137 if test -z "${LT_MULTI_MODULE}"; then
7138 # By default we will add the -single_module flag. You can override
7139 # by either setting the environment variable LT_MULTI_MODULE
7140 # non-empty at configure time, or by adding -multi_module to the
7141 # link flags.
7142 rm -rf libconftest.dylib*
7143 echo "int foo(void){return 1;}" > conftest.c
7144 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7145 -dynamiclib -Wl,-single_module conftest.c" >&5
7146 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7147 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7148 _lt_result=$?
7149 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7150 lt_cv_apple_cc_single_mod=yes
7151 else
7152 cat conftest.err >&5
7154 rm -rf libconftest.dylib*
7155 rm -f conftest.*
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7159 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7161 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7162 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 lt_cv_ld_exported_symbols_list=no
7166 save_LDFLAGS=$LDFLAGS
7167 echo "_main" > conftest.sym
7168 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7173 main ()
7177 return 0;
7179 _ACEOF
7180 if ac_fn_c_try_link "$LINENO"; then :
7181 lt_cv_ld_exported_symbols_list=yes
7182 else
7183 lt_cv_ld_exported_symbols_list=no
7185 rm -f core conftest.err conftest.$ac_objext \
7186 conftest$ac_exeext conftest.$ac_ext
7187 LDFLAGS="$save_LDFLAGS"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7191 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7193 $as_echo_n "checking for -force_load linker flag... " >&6; }
7194 if test "${lt_cv_ld_force_load+set}" = set; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 lt_cv_ld_force_load=no
7198 cat > conftest.c << _LT_EOF
7199 int forced_loaded() { return 2;}
7200 _LT_EOF
7201 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7202 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7203 echo "$AR cru libconftest.a conftest.o" >&5
7204 $AR cru libconftest.a conftest.o 2>&5
7205 cat > conftest.c << _LT_EOF
7206 int main() { return 0;}
7207 _LT_EOF
7208 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7209 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7210 _lt_result=$?
7211 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7212 lt_cv_ld_force_load=yes
7213 else
7214 cat conftest.err >&5
7216 rm -f conftest.err libconftest.a conftest conftest.c
7217 rm -rf conftest.dSYM
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7221 $as_echo "$lt_cv_ld_force_load" >&6; }
7222 case $host_os in
7223 rhapsody* | darwin1.[012])
7224 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7225 darwin1.*)
7226 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7227 darwin*) # darwin 5.x on
7228 # if running on 10.5 or later, the deployment target defaults
7229 # to the OS version, if on x86, and 10.4, the deployment
7230 # target defaults to 10.4. Don't you love it?
7231 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7232 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7233 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7234 10.[012][,.]*)
7235 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7236 10.*)
7237 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7238 esac
7240 esac
7241 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7242 _lt_dar_single_mod='$single_module'
7244 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7245 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7246 else
7247 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7249 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7250 _lt_dsymutil='~$DSYMUTIL $lib || :'
7251 else
7252 _lt_dsymutil=
7255 esac
7257 ac_ext=c
7258 ac_cpp='$CPP $CPPFLAGS'
7259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7263 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7264 # On Suns, sometimes $CPP names a directory.
7265 if test -n "$CPP" && test -d "$CPP"; then
7266 CPP=
7268 if test -z "$CPP"; then
7269 if test "${ac_cv_prog_CPP+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 # Double quotes because CPP needs to be expanded
7273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7275 ac_preproc_ok=false
7276 for ac_c_preproc_warn_flag in '' yes
7278 # Use a header file that comes with gcc, so configuring glibc
7279 # with a fresh cross-compiler works.
7280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7281 # <limits.h> exists even on freestanding compilers.
7282 # On the NeXT, cc -E runs the code through the compiler's parser,
7283 # not just through cpp. "Syntax error" is here to catch this case.
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 #ifdef __STDC__
7287 # include <limits.h>
7288 #else
7289 # include <assert.h>
7290 #endif
7291 Syntax error
7292 _ACEOF
7293 if ac_fn_c_try_cpp "$LINENO"; then :
7295 else
7296 # Broken: fails on valid input.
7297 continue
7299 rm -f conftest.err conftest.$ac_ext
7301 # OK, works on sane cases. Now check whether nonexistent headers
7302 # can be detected and how.
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7305 #include <ac_nonexistent.h>
7306 _ACEOF
7307 if ac_fn_c_try_cpp "$LINENO"; then :
7308 # Broken: success on invalid input.
7309 continue
7310 else
7311 # Passes both tests.
7312 ac_preproc_ok=:
7313 break
7315 rm -f conftest.err conftest.$ac_ext
7317 done
7318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7319 rm -f conftest.err conftest.$ac_ext
7320 if $ac_preproc_ok; then :
7321 break
7324 done
7325 ac_cv_prog_CPP=$CPP
7328 CPP=$ac_cv_prog_CPP
7329 else
7330 ac_cv_prog_CPP=$CPP
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7333 $as_echo "$CPP" >&6; }
7334 ac_preproc_ok=false
7335 for ac_c_preproc_warn_flag in '' yes
7337 # Use a header file that comes with gcc, so configuring glibc
7338 # with a fresh cross-compiler works.
7339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7340 # <limits.h> exists even on freestanding compilers.
7341 # On the NeXT, cc -E runs the code through the compiler's parser,
7342 # not just through cpp. "Syntax error" is here to catch this case.
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 #ifdef __STDC__
7346 # include <limits.h>
7347 #else
7348 # include <assert.h>
7349 #endif
7350 Syntax error
7351 _ACEOF
7352 if ac_fn_c_try_cpp "$LINENO"; then :
7354 else
7355 # Broken: fails on valid input.
7356 continue
7358 rm -f conftest.err conftest.$ac_ext
7360 # OK, works on sane cases. Now check whether nonexistent headers
7361 # can be detected and how.
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364 #include <ac_nonexistent.h>
7365 _ACEOF
7366 if ac_fn_c_try_cpp "$LINENO"; then :
7367 # Broken: success on invalid input.
7368 continue
7369 else
7370 # Passes both tests.
7371 ac_preproc_ok=:
7372 break
7374 rm -f conftest.err conftest.$ac_ext
7376 done
7377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7378 rm -f conftest.err conftest.$ac_ext
7379 if $ac_preproc_ok; then :
7381 else
7382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7384 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7385 See \`config.log' for more details." "$LINENO" 5; }
7388 ac_ext=c
7389 ac_cpp='$CPP $CPPFLAGS'
7390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7396 $as_echo_n "checking for ANSI C header files... " >&6; }
7397 if test "${ac_cv_header_stdc+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7402 #include <stdlib.h>
7403 #include <stdarg.h>
7404 #include <string.h>
7405 #include <float.h>
7408 main ()
7412 return 0;
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 ac_cv_header_stdc=yes
7417 else
7418 ac_cv_header_stdc=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 if test $ac_cv_header_stdc = yes; then
7423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 #include <string.h>
7428 _ACEOF
7429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7430 $EGREP "memchr" >/dev/null 2>&1; then :
7432 else
7433 ac_cv_header_stdc=no
7435 rm -f conftest*
7439 if test $ac_cv_header_stdc = yes; then
7440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 #include <stdlib.h>
7445 _ACEOF
7446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7447 $EGREP "free" >/dev/null 2>&1; then :
7449 else
7450 ac_cv_header_stdc=no
7452 rm -f conftest*
7456 if test $ac_cv_header_stdc = yes; then
7457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7458 if test "$cross_compiling" = yes; then :
7460 else
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <ctype.h>
7464 #include <stdlib.h>
7465 #if ((' ' & 0x0FF) == 0x020)
7466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7468 #else
7469 # define ISLOWER(c) \
7470 (('a' <= (c) && (c) <= 'i') \
7471 || ('j' <= (c) && (c) <= 'r') \
7472 || ('s' <= (c) && (c) <= 'z'))
7473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7474 #endif
7476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7478 main ()
7480 int i;
7481 for (i = 0; i < 256; i++)
7482 if (XOR (islower (i), ISLOWER (i))
7483 || toupper (i) != TOUPPER (i))
7484 return 2;
7485 return 0;
7487 _ACEOF
7488 if ac_fn_c_try_run "$LINENO"; then :
7490 else
7491 ac_cv_header_stdc=no
7493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7494 conftest.$ac_objext conftest.beam conftest.$ac_ext
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7500 $as_echo "$ac_cv_header_stdc" >&6; }
7501 if test $ac_cv_header_stdc = yes; then
7503 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7507 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7508 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7509 inttypes.h stdint.h unistd.h
7510 do :
7511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7512 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7514 eval as_val=\$$as_ac_Header
7515 if test "x$as_val" = x""yes; then :
7516 cat >>confdefs.h <<_ACEOF
7517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7518 _ACEOF
7522 done
7525 for ac_header in dlfcn.h
7526 do :
7527 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7529 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7530 cat >>confdefs.h <<_ACEOF
7531 #define HAVE_DLFCN_H 1
7532 _ACEOF
7536 done
7538 if test -n "$ac_tool_prefix"; then
7539 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7540 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if test "${ac_cv_prog_GOC+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$GOC"; then
7547 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7560 done
7561 done
7562 IFS=$as_save_IFS
7566 GOC=$ac_cv_prog_GOC
7567 if test -n "$GOC"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7569 $as_echo "$GOC" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7577 if test -z "$ac_cv_prog_GOC"; then
7578 ac_ct_GOC=$GOC
7579 # Extract the first word of "gccgo", so it can be a program name with args.
7580 set dummy gccgo; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 if test -n "$ac_ct_GOC"; then
7587 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_prog_ac_ct_GOC="gccgo"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7600 done
7601 done
7602 IFS=$as_save_IFS
7606 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7607 if test -n "$ac_ct_GOC"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7609 $as_echo "$ac_ct_GOC" >&6; }
7610 else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7615 if test "x$ac_ct_GOC" = x; then
7616 GOC=""
7617 else
7618 case $cross_compiling:$ac_tool_warned in
7619 yes:)
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622 ac_tool_warned=yes ;;
7623 esac
7624 GOC=$ac_ct_GOC
7626 else
7627 GOC="$ac_cv_prog_GOC"
7635 # Set options
7640 enable_win32_dll=no
7643 # Check whether --enable-shared was given.
7644 if test "${enable_shared+set}" = set; then :
7645 enableval=$enable_shared; p=${PACKAGE-default}
7646 case $enableval in
7647 yes) enable_shared=yes ;;
7648 no) enable_shared=no ;;
7650 enable_shared=no
7651 # Look at the argument we got. We use all the common list separators.
7652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7653 for pkg in $enableval; do
7654 IFS="$lt_save_ifs"
7655 if test "X$pkg" = "X$p"; then
7656 enable_shared=yes
7658 done
7659 IFS="$lt_save_ifs"
7661 esac
7662 else
7663 enable_shared=yes
7674 # Check whether --enable-static was given.
7675 if test "${enable_static+set}" = set; then :
7676 enableval=$enable_static; p=${PACKAGE-default}
7677 case $enableval in
7678 yes) enable_static=yes ;;
7679 no) enable_static=no ;;
7681 enable_static=no
7682 # Look at the argument we got. We use all the common list separators.
7683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7684 for pkg in $enableval; do
7685 IFS="$lt_save_ifs"
7686 if test "X$pkg" = "X$p"; then
7687 enable_static=yes
7689 done
7690 IFS="$lt_save_ifs"
7692 esac
7693 else
7694 enable_static=yes
7706 # Check whether --with-pic was given.
7707 if test "${with_pic+set}" = set; then :
7708 withval=$with_pic; pic_mode="$withval"
7709 else
7710 pic_mode=default
7714 test -z "$pic_mode" && pic_mode=default
7722 # Check whether --enable-fast-install was given.
7723 if test "${enable_fast_install+set}" = set; then :
7724 enableval=$enable_fast_install; p=${PACKAGE-default}
7725 case $enableval in
7726 yes) enable_fast_install=yes ;;
7727 no) enable_fast_install=no ;;
7729 enable_fast_install=no
7730 # Look at the argument we got. We use all the common list separators.
7731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7732 for pkg in $enableval; do
7733 IFS="$lt_save_ifs"
7734 if test "X$pkg" = "X$p"; then
7735 enable_fast_install=yes
7737 done
7738 IFS="$lt_save_ifs"
7740 esac
7741 else
7742 enable_fast_install=yes
7755 # This can be used to rebuild libtool when needed
7756 LIBTOOL_DEPS="$ltmain"
7758 # Always use our own libtool.
7759 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7786 test -z "$LN_S" && LN_S="ln -s"
7801 if test -n "${ZSH_VERSION+set}" ; then
7802 setopt NO_GLOB_SUBST
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7806 $as_echo_n "checking for objdir... " >&6; }
7807 if test "${lt_cv_objdir+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 rm -f .libs 2>/dev/null
7811 mkdir .libs 2>/dev/null
7812 if test -d .libs; then
7813 lt_cv_objdir=.libs
7814 else
7815 # MS-DOS does not allow filenames that begin with a dot.
7816 lt_cv_objdir=_libs
7818 rmdir .libs 2>/dev/null
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7821 $as_echo "$lt_cv_objdir" >&6; }
7822 objdir=$lt_cv_objdir
7828 cat >>confdefs.h <<_ACEOF
7829 #define LT_OBJDIR "$lt_cv_objdir/"
7830 _ACEOF
7835 case $host_os in
7836 aix3*)
7837 # AIX sometimes has problems with the GCC collect2 program. For some
7838 # reason, if we set the COLLECT_NAMES environment variable, the problems
7839 # vanish in a puff of smoke.
7840 if test "X${COLLECT_NAMES+set}" != Xset; then
7841 COLLECT_NAMES=
7842 export COLLECT_NAMES
7845 esac
7847 # Global variables:
7848 ofile=libtool
7849 can_build_shared=yes
7851 # All known linkers require a `.a' archive for static linking (except MSVC,
7852 # which needs '.lib').
7853 libext=a
7855 with_gnu_ld="$lt_cv_prog_gnu_ld"
7857 old_CC="$CC"
7858 old_CFLAGS="$CFLAGS"
7860 # Set sane defaults for various variables
7861 test -z "$CC" && CC=cc
7862 test -z "$LTCC" && LTCC=$CC
7863 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7864 test -z "$LD" && LD=ld
7865 test -z "$ac_objext" && ac_objext=o
7867 for cc_temp in $compiler""; do
7868 case $cc_temp in
7869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7871 \-*) ;;
7872 *) break;;
7873 esac
7874 done
7875 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7878 # Only perform the check for file, if the check method requires it
7879 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7880 case $deplibs_check_method in
7881 file_magic*)
7882 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7884 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7885 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 case $MAGIC_CMD in
7889 [\\/*] | ?:[\\/]*)
7890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7893 lt_save_MAGIC_CMD="$MAGIC_CMD"
7894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7896 for ac_dir in $ac_dummy; do
7897 IFS="$lt_save_ifs"
7898 test -z "$ac_dir" && ac_dir=.
7899 if test -f $ac_dir/${ac_tool_prefix}file; then
7900 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7901 if test -n "$file_magic_test_file"; then
7902 case $deplibs_check_method in
7903 "file_magic "*)
7904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7907 $EGREP "$file_magic_regex" > /dev/null; then
7909 else
7910 cat <<_LT_EOF 1>&2
7912 *** Warning: the command libtool uses to detect shared libraries,
7913 *** $file_magic_cmd, produces output that libtool cannot recognize.
7914 *** The result is that libtool may fail to recognize shared libraries
7915 *** as such. This will affect the creation of libtool libraries that
7916 *** depend on shared libraries, but programs linked with such libtool
7917 *** libraries will work regardless of this problem. Nevertheless, you
7918 *** may want to report the problem to your system manager and/or to
7919 *** bug-libtool@gnu.org
7921 _LT_EOF
7922 fi ;;
7923 esac
7925 break
7927 done
7928 IFS="$lt_save_ifs"
7929 MAGIC_CMD="$lt_save_MAGIC_CMD"
7931 esac
7934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935 if test -n "$MAGIC_CMD"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7937 $as_echo "$MAGIC_CMD" >&6; }
7938 else
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7947 if test -z "$lt_cv_path_MAGIC_CMD"; then
7948 if test -n "$ac_tool_prefix"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7950 $as_echo_n "checking for file... " >&6; }
7951 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 case $MAGIC_CMD in
7955 [\\/*] | ?:[\\/]*)
7956 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7959 lt_save_MAGIC_CMD="$MAGIC_CMD"
7960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7961 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7962 for ac_dir in $ac_dummy; do
7963 IFS="$lt_save_ifs"
7964 test -z "$ac_dir" && ac_dir=.
7965 if test -f $ac_dir/file; then
7966 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7967 if test -n "$file_magic_test_file"; then
7968 case $deplibs_check_method in
7969 "file_magic "*)
7970 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7973 $EGREP "$file_magic_regex" > /dev/null; then
7975 else
7976 cat <<_LT_EOF 1>&2
7978 *** Warning: the command libtool uses to detect shared libraries,
7979 *** $file_magic_cmd, produces output that libtool cannot recognize.
7980 *** The result is that libtool may fail to recognize shared libraries
7981 *** as such. This will affect the creation of libtool libraries that
7982 *** depend on shared libraries, but programs linked with such libtool
7983 *** libraries will work regardless of this problem. Nevertheless, you
7984 *** may want to report the problem to your system manager and/or to
7985 *** bug-libtool@gnu.org
7987 _LT_EOF
7988 fi ;;
7989 esac
7991 break
7993 done
7994 IFS="$lt_save_ifs"
7995 MAGIC_CMD="$lt_save_MAGIC_CMD"
7997 esac
8000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001 if test -n "$MAGIC_CMD"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8003 $as_echo "$MAGIC_CMD" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8010 else
8011 MAGIC_CMD=:
8017 esac
8019 # Use C for the default configuration in the libtool script
8021 lt_save_CC="$CC"
8022 ac_ext=c
8023 ac_cpp='$CPP $CPPFLAGS'
8024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029 # Source file extension for C test sources.
8030 ac_ext=c
8032 # Object file extension for compiled C test sources.
8033 objext=o
8034 objext=$objext
8036 # Code to be used in simple compile tests
8037 lt_simple_compile_test_code="int some_variable = 0;"
8039 # Code to be used in simple link tests
8040 lt_simple_link_test_code='int main(){return(0);}'
8048 # If no C compiler was specified, use CC.
8049 LTCC=${LTCC-"$CC"}
8051 # If no C compiler flags were specified, use CFLAGS.
8052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8054 # Allow CC to be a program name with arguments.
8055 compiler=$CC
8057 # Save the default compiler, since it gets overwritten when the other
8058 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8059 compiler_DEFAULT=$CC
8061 # save warnings/boilerplate of simple test code
8062 ac_outfile=conftest.$ac_objext
8063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8065 _lt_compiler_boilerplate=`cat conftest.err`
8066 $RM conftest*
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8071 _lt_linker_boilerplate=`cat conftest.err`
8072 $RM -r conftest*
8075 ## CAVEAT EMPTOR:
8076 ## There is no encapsulation within the following macros, do not change
8077 ## the running order or otherwise move them around unless you know exactly
8078 ## what you are doing...
8079 if test -n "$compiler"; then
8081 lt_prog_compiler_no_builtin_flag=
8083 if test "$GCC" = yes; then
8084 case $cc_basename in
8085 nvcc*)
8086 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8088 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8089 esac
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8092 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8093 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 lt_cv_prog_compiler_rtti_exceptions=no
8097 ac_outfile=conftest.$ac_objext
8098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099 lt_compiler_flag="-fno-rtti -fno-exceptions"
8100 # Insert the option either (1) after the last *FLAGS variable, or
8101 # (2) before a word containing "conftest.", or (3) at the end.
8102 # Note that $ac_compile itself does not contain backslashes and begins
8103 # with a dollar sign (not a hyphen), so the echo should work correctly.
8104 # The option is referenced via a variable to avoid confusing sed.
8105 lt_compile=`echo "$ac_compile" | $SED \
8106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108 -e 's:$: $lt_compiler_flag:'`
8109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8110 (eval "$lt_compile" 2>conftest.err)
8111 ac_status=$?
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 if (exit $ac_status) && test -s "$ac_outfile"; then
8115 # The compiler can only warn and ignore the option if not recognized
8116 # So say no if there are warnings other than the usual output.
8117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8120 lt_cv_prog_compiler_rtti_exceptions=yes
8123 $RM conftest*
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8127 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8129 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8130 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8131 else
8142 lt_prog_compiler_wl=
8143 lt_prog_compiler_pic=
8144 lt_prog_compiler_static=
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8147 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8149 if test "$GCC" = yes; then
8150 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_static='-static'
8153 case $host_os in
8154 aix*)
8155 # All AIX code is PIC.
8156 if test "$host_cpu" = ia64; then
8157 # AIX 5 now supports IA64 processor
8158 lt_prog_compiler_static='-Bstatic'
8160 lt_prog_compiler_pic='-fPIC'
8163 amigaos*)
8164 case $host_cpu in
8165 powerpc)
8166 # see comment about AmigaOS4 .so support
8167 lt_prog_compiler_pic='-fPIC'
8169 m68k)
8170 # FIXME: we need at least 68020 code to build shared libraries, but
8171 # adding the `-m68020' flag to GCC prevents building anything better,
8172 # like `-m68040'.
8173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8175 esac
8178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8179 # PIC is the default for these OSes.
8182 mingw* | cygwin* | pw32* | os2* | cegcc*)
8183 # This hack is so that the source file can tell whether it is being
8184 # built for inclusion in a dll (and should export symbols for example).
8185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8186 # (--disable-auto-import) libraries
8187 lt_prog_compiler_pic='-DDLL_EXPORT'
8190 darwin* | rhapsody*)
8191 # PIC is the default on this platform
8192 # Common symbols not allowed in MH_DYLIB files
8193 lt_prog_compiler_pic='-fno-common'
8196 haiku*)
8197 # PIC is the default for Haiku.
8198 # The "-static" flag exists, but is broken.
8199 lt_prog_compiler_static=
8202 hpux*)
8203 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8204 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8205 # sets the default TLS model and affects inlining.
8206 case $host_cpu in
8207 hppa*64*)
8208 # +Z the default
8211 lt_prog_compiler_pic='-fPIC'
8213 esac
8216 interix[3-9]*)
8217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8218 # Instead, we relocate shared libraries at runtime.
8221 msdosdjgpp*)
8222 # Just because we use GCC doesn't mean we suddenly get shared libraries
8223 # on systems that don't support them.
8224 lt_prog_compiler_can_build_shared=no
8225 enable_shared=no
8228 *nto* | *qnx*)
8229 # QNX uses GNU C++, but need to define -shared option too, otherwise
8230 # it will coredump.
8231 lt_prog_compiler_pic='-fPIC -shared'
8234 sysv4*MP*)
8235 if test -d /usr/nec; then
8236 lt_prog_compiler_pic=-Kconform_pic
8241 lt_prog_compiler_pic='-fPIC'
8243 esac
8245 case $cc_basename in
8246 nvcc*) # Cuda Compiler Driver 2.2
8247 lt_prog_compiler_wl='-Xlinker '
8248 lt_prog_compiler_pic='-Xcompiler -fPIC'
8250 esac
8251 else
8252 # PORTME Check for flag to pass linker flags through the system compiler.
8253 case $host_os in
8254 aix*)
8255 lt_prog_compiler_wl='-Wl,'
8256 if test "$host_cpu" = ia64; then
8257 # AIX 5 now supports IA64 processor
8258 lt_prog_compiler_static='-Bstatic'
8259 else
8260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8264 mingw* | cygwin* | pw32* | os2* | cegcc*)
8265 # This hack is so that the source file can tell whether it is being
8266 # built for inclusion in a dll (and should export symbols for example).
8267 lt_prog_compiler_pic='-DDLL_EXPORT'
8270 hpux9* | hpux10* | hpux11*)
8271 lt_prog_compiler_wl='-Wl,'
8272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8273 # not for PA HP-UX.
8274 case $host_cpu in
8275 hppa*64*|ia64*)
8276 # +Z the default
8279 lt_prog_compiler_pic='+Z'
8281 esac
8282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8283 lt_prog_compiler_static='${wl}-a ${wl}archive'
8286 irix5* | irix6* | nonstopux*)
8287 lt_prog_compiler_wl='-Wl,'
8288 # PIC (with -KPIC) is the default.
8289 lt_prog_compiler_static='-non_shared'
8292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8293 case $cc_basename in
8294 # old Intel for x86_64 which still supported -KPIC.
8295 ecc*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-KPIC'
8298 lt_prog_compiler_static='-static'
8300 # icc used to be incompatible with GCC.
8301 # ICC 10 doesn't accept -KPIC any more.
8302 icc* | ifort*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-fPIC'
8305 lt_prog_compiler_static='-static'
8307 # Lahey Fortran 8.1.
8308 lf95*)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='--shared'
8311 lt_prog_compiler_static='--static'
8313 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8314 # Portland Group compilers (*not* the Pentium gcc compiler,
8315 # which looks to be a dead project)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='-fpic'
8318 lt_prog_compiler_static='-Bstatic'
8320 ccc*)
8321 lt_prog_compiler_wl='-Wl,'
8322 # All Alpha code is PIC.
8323 lt_prog_compiler_static='-non_shared'
8325 xl* | bgxl* | bgf* | mpixl*)
8326 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-qpic'
8329 lt_prog_compiler_static='-qstaticlink'
8332 case `$CC -V 2>&1 | sed 5q` in
8333 *Sun\ F* | *Sun*Fortran*)
8334 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 lt_prog_compiler_wl=''
8339 *Sun\ C*)
8340 # Sun C 5.9
8341 lt_prog_compiler_pic='-KPIC'
8342 lt_prog_compiler_static='-Bstatic'
8343 lt_prog_compiler_wl='-Wl,'
8345 esac
8347 esac
8350 newsos6)
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8355 *nto* | *qnx*)
8356 # QNX uses GNU C++, but need to define -shared option too, otherwise
8357 # it will coredump.
8358 lt_prog_compiler_pic='-fPIC -shared'
8361 osf3* | osf4* | osf5*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # All OSF/1 code is PIC.
8364 lt_prog_compiler_static='-non_shared'
8367 rdos*)
8368 lt_prog_compiler_static='-non_shared'
8371 solaris*)
8372 lt_prog_compiler_pic='-KPIC'
8373 lt_prog_compiler_static='-Bstatic'
8374 case $cc_basename in
8375 f77* | f90* | f95*)
8376 lt_prog_compiler_wl='-Qoption ld ';;
8378 lt_prog_compiler_wl='-Wl,';;
8379 esac
8382 sunos4*)
8383 lt_prog_compiler_wl='-Qoption ld '
8384 lt_prog_compiler_pic='-PIC'
8385 lt_prog_compiler_static='-Bstatic'
8388 sysv4 | sysv4.2uw2* | sysv4.3*)
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8394 sysv4*MP*)
8395 if test -d /usr/nec ;then
8396 lt_prog_compiler_pic='-Kconform_pic'
8397 lt_prog_compiler_static='-Bstatic'
8401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
8407 unicos*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_can_build_shared=no
8412 uts4*)
8413 lt_prog_compiler_pic='-pic'
8414 lt_prog_compiler_static='-Bstatic'
8418 lt_prog_compiler_can_build_shared=no
8420 esac
8423 case $host_os in
8424 # For platforms which do not support PIC, -DPIC is meaningless:
8425 *djgpp*)
8426 lt_prog_compiler_pic=
8429 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8431 esac
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8433 $as_echo "$lt_prog_compiler_pic" >&6; }
8441 # Check to make sure the PIC flag actually works.
8443 if test -n "$lt_prog_compiler_pic"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8445 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8446 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 lt_cv_prog_compiler_pic_works=no
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8453 # Insert the option either (1) after the last *FLAGS variable, or
8454 # (2) before a word containing "conftest.", or (3) at the end.
8455 # Note that $ac_compile itself does not contain backslashes and begins
8456 # with a dollar sign (not a hyphen), so the echo should work correctly.
8457 # The option is referenced via a variable to avoid confusing sed.
8458 lt_compile=`echo "$ac_compile" | $SED \
8459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8461 -e 's:$: $lt_compiler_flag:'`
8462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8463 (eval "$lt_compile" 2>conftest.err)
8464 ac_status=$?
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 if (exit $ac_status) && test -s "$ac_outfile"; then
8468 # The compiler can only warn and ignore the option if not recognized
8469 # So say no if there are warnings other than the usual output.
8470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8473 lt_cv_prog_compiler_pic_works=yes
8476 $RM conftest*
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8480 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8482 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8483 case $lt_prog_compiler_pic in
8484 "" | " "*) ;;
8485 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8486 esac
8487 else
8488 lt_prog_compiler_pic=
8489 lt_prog_compiler_can_build_shared=no
8500 # Check to make sure the static flag actually works.
8502 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8504 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8505 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 lt_cv_prog_compiler_static_works=no
8509 save_LDFLAGS="$LDFLAGS"
8510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8513 # The linker can only warn and ignore the option if not recognized
8514 # So say no if there are warnings
8515 if test -s conftest.err; then
8516 # Append any errors to the config.log.
8517 cat conftest.err 1>&5
8518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8520 if diff conftest.exp conftest.er2 >/dev/null; then
8521 lt_cv_prog_compiler_static_works=yes
8523 else
8524 lt_cv_prog_compiler_static_works=yes
8527 $RM -r conftest*
8528 LDFLAGS="$save_LDFLAGS"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8532 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8534 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8536 else
8537 lt_prog_compiler_static=
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 lt_cv_prog_compiler_c_o=no
8552 $RM -r conftest 2>/dev/null
8553 mkdir conftest
8554 cd conftest
8555 mkdir out
8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8558 lt_compiler_flag="-o out/conftest2.$ac_objext"
8559 # Insert the option either (1) after the last *FLAGS variable, or
8560 # (2) before a word containing "conftest.", or (3) at the end.
8561 # Note that $ac_compile itself does not contain backslashes and begins
8562 # with a dollar sign (not a hyphen), so the echo should work correctly.
8563 lt_compile=`echo "$ac_compile" | $SED \
8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8566 -e 's:$: $lt_compiler_flag:'`
8567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8568 (eval "$lt_compile" 2>out/conftest.err)
8569 ac_status=$?
8570 cat out/conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8573 then
8574 # The compiler can only warn and ignore the option if not recognized
8575 # So say no if there are warnings
8576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8579 lt_cv_prog_compiler_c_o=yes
8582 chmod u+w . 2>&5
8583 $RM conftest*
8584 # SGI C++ compiler will create directory out/ii_files/ for
8585 # template instantiation
8586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8587 $RM out/* && rmdir out
8588 cd ..
8589 $RM -r conftest
8590 $RM conftest*
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8594 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8603 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 lt_cv_prog_compiler_c_o=no
8607 $RM -r conftest 2>/dev/null
8608 mkdir conftest
8609 cd conftest
8610 mkdir out
8611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8613 lt_compiler_flag="-o out/conftest2.$ac_objext"
8614 # Insert the option either (1) after the last *FLAGS variable, or
8615 # (2) before a word containing "conftest.", or (3) at the end.
8616 # Note that $ac_compile itself does not contain backslashes and begins
8617 # with a dollar sign (not a hyphen), so the echo should work correctly.
8618 lt_compile=`echo "$ac_compile" | $SED \
8619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621 -e 's:$: $lt_compiler_flag:'`
8622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623 (eval "$lt_compile" 2>out/conftest.err)
8624 ac_status=$?
8625 cat out/conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8628 then
8629 # The compiler can only warn and ignore the option if not recognized
8630 # So say no if there are warnings
8631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8634 lt_cv_prog_compiler_c_o=yes
8637 chmod u+w . 2>&5
8638 $RM conftest*
8639 # SGI C++ compiler will create directory out/ii_files/ for
8640 # template instantiation
8641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8642 $RM out/* && rmdir out
8643 cd ..
8644 $RM -r conftest
8645 $RM conftest*
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8654 hard_links="nottested"
8655 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8656 # do not overwrite the value of need_locks provided by the user
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8658 $as_echo_n "checking if we can lock with hard links... " >&6; }
8659 hard_links=yes
8660 $RM conftest*
8661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662 touch conftest.a
8663 ln conftest.a conftest.b 2>&5 || hard_links=no
8664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8666 $as_echo "$hard_links" >&6; }
8667 if test "$hard_links" = no; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8669 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8670 need_locks=warn
8672 else
8673 need_locks=no
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8682 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8684 runpath_var=
8685 allow_undefined_flag=
8686 always_export_symbols=no
8687 archive_cmds=
8688 archive_expsym_cmds=
8689 compiler_needs_object=no
8690 enable_shared_with_static_runtimes=no
8691 export_dynamic_flag_spec=
8692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8693 hardcode_automatic=no
8694 hardcode_direct=no
8695 hardcode_direct_absolute=no
8696 hardcode_libdir_flag_spec=
8697 hardcode_libdir_flag_spec_ld=
8698 hardcode_libdir_separator=
8699 hardcode_minus_L=no
8700 hardcode_shlibpath_var=unsupported
8701 inherit_rpath=no
8702 link_all_deplibs=unknown
8703 module_cmds=
8704 module_expsym_cmds=
8705 old_archive_from_new_cmds=
8706 old_archive_from_expsyms_cmds=
8707 thread_safe_flag_spec=
8708 whole_archive_flag_spec=
8709 # include_expsyms should be a list of space-separated symbols to be *always*
8710 # included in the symbol list
8711 include_expsyms=
8712 # exclude_expsyms can be an extended regexp of symbols to exclude
8713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8715 # as well as any symbol that contains `d'.
8716 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8718 # platforms (ab)use it in PIC code, but their linkers get confused if
8719 # the symbol is explicitly referenced. Since portable code cannot
8720 # rely on this symbol name, it's probably fine to never include it in
8721 # preloaded symbol tables.
8722 # Exclude shared library initialization/finalization symbols.
8723 extract_expsyms_cmds=
8725 case $host_os in
8726 cygwin* | mingw* | pw32* | cegcc*)
8727 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8728 # When not using gcc, we currently assume that we are using
8729 # Microsoft Visual C++.
8730 if test "$GCC" != yes; then
8731 with_gnu_ld=no
8734 interix*)
8735 # we just hope/assume this is gcc and not c89 (= MSVC++)
8736 with_gnu_ld=yes
8738 openbsd*)
8739 with_gnu_ld=no
8741 esac
8743 ld_shlibs=yes
8745 # On some targets, GNU ld is compatible enough with the native linker
8746 # that we're better off using the native interface for both.
8747 lt_use_gnu_ld_interface=no
8748 if test "$with_gnu_ld" = yes; then
8749 case $host_os in
8750 aix*)
8751 # The AIX port of GNU ld has always aspired to compatibility
8752 # with the native linker. However, as the warning in the GNU ld
8753 # block says, versions before 2.19.5* couldn't really create working
8754 # shared libraries, regardless of the interface used.
8755 case `$LD -v 2>&1` in
8756 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8757 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8758 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8760 lt_use_gnu_ld_interface=yes
8762 esac
8765 lt_use_gnu_ld_interface=yes
8767 esac
8770 if test "$lt_use_gnu_ld_interface" = yes; then
8771 # If archive_cmds runs LD, not CC, wlarc should be empty
8772 wlarc='${wl}'
8774 # Set some defaults for GNU ld with shared library support. These
8775 # are reset later if shared libraries are not supported. Putting them
8776 # here allows them to be overridden if necessary.
8777 runpath_var=LD_RUN_PATH
8778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8779 export_dynamic_flag_spec='${wl}--export-dynamic'
8780 # ancient GNU ld didn't support --whole-archive et. al.
8781 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8783 else
8784 whole_archive_flag_spec=
8786 supports_anon_versioning=no
8787 case `$LD -v 2>&1` in
8788 *GNU\ gold*) supports_anon_versioning=yes ;;
8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8792 *\ 2.11.*) ;; # other 2.11 versions
8793 *) supports_anon_versioning=yes ;;
8794 esac
8796 # See if GNU ld supports shared libraries.
8797 case $host_os in
8798 aix[3-9]*)
8799 # On AIX/PPC, the GNU linker is very broken
8800 if test "$host_cpu" != ia64; then
8801 ld_shlibs=no
8802 cat <<_LT_EOF 1>&2
8804 *** Warning: the GNU linker, at least up to release 2.19, is reported
8805 *** to be unable to reliably create shared libraries on AIX.
8806 *** Therefore, libtool is disabling shared libraries support. If you
8807 *** really care for shared libraries, you may want to install binutils
8808 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8809 *** You will then need to restart the configuration process.
8811 _LT_EOF
8815 amigaos*)
8816 case $host_cpu in
8817 powerpc)
8818 # see comment about AmigaOS4 .so support
8819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8820 archive_expsym_cmds=''
8822 m68k)
8823 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)'
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_minus_L=yes
8827 esac
8830 beos*)
8831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8832 allow_undefined_flag=unsupported
8833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8834 # support --undefined. This deserves some investigation. FIXME
8835 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836 else
8837 ld_shlibs=no
8841 cygwin* | mingw* | pw32* | cegcc*)
8842 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8843 # as there is no search path for DLLs.
8844 hardcode_libdir_flag_spec='-L$libdir'
8845 export_dynamic_flag_spec='${wl}--export-all-symbols'
8846 allow_undefined_flag=unsupported
8847 always_export_symbols=no
8848 enable_shared_with_static_runtimes=yes
8849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8851 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8853 # If the export-symbols file already is a .def file (1st line
8854 # is EXPORTS), use it as is; otherwise, prepend...
8855 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8856 cp $export_symbols $output_objdir/$soname.def;
8857 else
8858 echo EXPORTS > $output_objdir/$soname.def;
8859 cat $export_symbols >> $output_objdir/$soname.def;
8861 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8862 else
8863 ld_shlibs=no
8867 haiku*)
8868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8869 link_all_deplibs=yes
8872 interix[3-9]*)
8873 hardcode_direct=no
8874 hardcode_shlibpath_var=no
8875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876 export_dynamic_flag_spec='${wl}-E'
8877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8878 # Instead, shared libraries are loaded at an image base (0x10000000 by
8879 # default) and relocated if they conflict, which is a slow very memory
8880 # consuming and fragmenting process. To avoid this, we pick a random,
8881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8884 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'
8887 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8888 tmp_diet=no
8889 if test "$host_os" = linux-dietlibc; then
8890 case $cc_basename in
8891 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8892 esac
8894 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8895 && test "$tmp_diet" = no
8896 then
8897 tmp_addflag=
8898 tmp_sharedflag='-shared'
8899 case $cc_basename,$host_cpu in
8900 pgcc*) # Portland Group C compiler
8901 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'
8902 tmp_addflag=' $pic_flag'
8904 pgf77* | pgf90* | pgf95* | pgfortran*)
8905 # Portland Group f77 and f90 compilers
8906 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'
8907 tmp_addflag=' $pic_flag -Mnomain' ;;
8908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8909 tmp_addflag=' -i_dynamic' ;;
8910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8911 tmp_addflag=' -i_dynamic -nofor_main' ;;
8912 ifc* | ifort*) # Intel Fortran compiler
8913 tmp_addflag=' -nofor_main' ;;
8914 lf95*) # Lahey Fortran 8.1
8915 whole_archive_flag_spec=
8916 tmp_sharedflag='--shared' ;;
8917 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8918 tmp_sharedflag='-qmkshrobj'
8919 tmp_addflag= ;;
8920 nvcc*) # Cuda Compiler Driver 2.2
8921 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8922 compiler_needs_object=yes
8924 esac
8925 case `$CC -V 2>&1 | sed 5q` in
8926 *Sun\ C*) # Sun C 5.9
8927 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'
8928 compiler_needs_object=yes
8929 tmp_sharedflag='-G' ;;
8930 *Sun\ F*) # Sun Fortran 8.3
8931 tmp_sharedflag='-G' ;;
8932 esac
8933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935 if test "x$supports_anon_versioning" = xyes; then
8936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8942 case $cc_basename in
8943 xlf* | bgf* | bgxlf* | mpixlf*)
8944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8946 hardcode_libdir_flag_spec=
8947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8948 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8956 esac
8957 else
8958 ld_shlibs=no
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8965 wlarc=
8966 else
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8972 solaris*)
8973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8974 ld_shlibs=no
8975 cat <<_LT_EOF 1>&2
8977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8978 *** create shared libraries on Solaris systems. Therefore, libtool
8979 *** is disabling shared libraries support. We urge you to upgrade GNU
8980 *** binutils to release 2.9.1 or newer. Another option is to modify
8981 *** your PATH or compiler configuration so that the native linker is
8982 *** used, and then restart.
8984 _LT_EOF
8985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8994 case `$LD -v 2>&1` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8996 ld_shlibs=no
8997 cat <<_LT_EOF 1>&2
8999 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9000 *** reliably create shared libraries on SCO systems. Therefore, libtool
9001 *** is disabling shared libraries support. We urge you to upgrade GNU
9002 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9003 *** your PATH or compiler configuration so that the native linker is
9004 *** used, and then restart.
9006 _LT_EOF
9009 # For security reasons, it is highly recommended that you always
9010 # use absolute paths for naming shared libraries, and exclude the
9011 # DT_RUNPATH tag from executables and libraries. But doing so
9012 # requires that you compile everything twice, which is a pain.
9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9021 esac
9024 sunos4*)
9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 wlarc=
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9039 esac
9041 if test "$ld_shlibs" = no; then
9042 runpath_var=
9043 hardcode_libdir_flag_spec=
9044 export_dynamic_flag_spec=
9045 whole_archive_flag_spec=
9047 else
9048 # PORTME fill in a description of your system's linker (not GNU ld)
9049 case $host_os in
9050 aix3*)
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 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'
9054 # Note: this linker hardcodes the directories in LIBPATH if there
9055 # are no directories specified by -L.
9056 hardcode_minus_L=yes
9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058 # Neither direct hardcoding nor static linking is supported with a
9059 # broken collect2.
9060 hardcode_direct=unsupported
9064 aix[4-9]*)
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 # If we're using GNU nm, then we don't want the "-C" option.
9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074 # Also, AIX nm treats weak defined symbols like other global
9075 # defined symbols, whereas GNU nm marks them as "W".
9076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9077 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'
9078 else
9079 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'
9081 aix_use_runtimelinking=no
9083 # Test if we are trying to use run time linking or normal
9084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9085 # need to do runtime linking.
9086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9087 for ld_flag in $LDFLAGS; do
9088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9089 aix_use_runtimelinking=yes
9090 break
9092 done
9094 esac
9096 exp_sym_flag='-bexport'
9097 no_entry_flag='-bnoentry'
9100 # When large executables or shared objects are built, AIX ld can
9101 # have problems creating the table of contents. If linking a library
9102 # or program results in "error TOC overflow" add -mminimal-toc to
9103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9106 archive_cmds=''
9107 hardcode_direct=yes
9108 hardcode_direct_absolute=yes
9109 hardcode_libdir_separator=':'
9110 link_all_deplibs=yes
9111 file_list_spec='${wl}-f,'
9113 if test "$GCC" = yes; then
9114 case $host_os in aix4.[012]|aix4.[012].*)
9115 # We only want to do this on AIX 4.2 and lower, the check
9116 # below for broken collect2 doesn't work under 4.3+
9117 collect2name=`${CC} -print-prog-name=collect2`
9118 if test -f "$collect2name" &&
9119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9120 then
9121 # We have reworked collect2
9123 else
9124 # We have old collect2
9125 hardcode_direct=unsupported
9126 # It fails to find uninstalled libraries when the uninstalled
9127 # path is not listed in the libpath. Setting hardcode_minus_L
9128 # to unsupported forces relinking
9129 hardcode_minus_L=yes
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 hardcode_libdir_separator=
9134 esac
9135 shared_flag='-shared'
9136 if test "$aix_use_runtimelinking" = yes; then
9137 shared_flag="$shared_flag "'${wl}-G'
9139 else
9140 # not using gcc
9141 if test "$host_cpu" = ia64; then
9142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9143 # chokes on -Wl,-G. The following line is correct:
9144 shared_flag='-G'
9145 else
9146 if test "$aix_use_runtimelinking" = yes; then
9147 shared_flag='${wl}-G'
9148 else
9149 shared_flag='${wl}-bM:SRE'
9154 export_dynamic_flag_spec='${wl}-bexpall'
9155 # It seems that -bexpall does not export symbols beginning with
9156 # underscore (_), so it is better to generate a list of symbols to export.
9157 always_export_symbols=yes
9158 if test "$aix_use_runtimelinking" = yes; then
9159 # Warning - without using the other runtime loading flags (-brtl),
9160 # -berok will link without error, but may produce a broken library.
9161 allow_undefined_flag='-berok'
9162 # Determine the default libpath from the value encoded in an
9163 # empty executable.
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9168 main ()
9172 return 0;
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"; then :
9177 lt_aix_libpath_sed='
9178 /Import File Strings/,/^$/ {
9179 /^0/ {
9180 s/^0 *\(.*\)$/\1/
9184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185 # Check for a 64-bit object if we didn't find anything.
9186 if test -z "$aix_libpath"; then
9187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9190 rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195 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"
9196 else
9197 if test "$host_cpu" = ia64; then
9198 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9199 allow_undefined_flag="-z nodefs"
9200 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"
9201 else
9202 # Determine the default libpath from the value encoded in an
9203 # empty executable.
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9208 main ()
9212 return 0;
9214 _ACEOF
9215 if ac_fn_c_try_link "$LINENO"; then :
9217 lt_aix_libpath_sed='
9218 /Import File Strings/,/^$/ {
9219 /^0/ {
9220 s/^0 *\(.*\)$/\1/
9224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 # Check for a 64-bit object if we didn't find anything.
9226 if test -z "$aix_libpath"; then
9227 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230 rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9235 # Warning - without using the other run time loading flags,
9236 # -berok will link without error, but may produce a broken library.
9237 no_undefined_flag=' ${wl}-bernotok'
9238 allow_undefined_flag=' ${wl}-berok'
9239 if test "$with_gnu_ld" = yes; then
9240 # We only use this code for GNU lds that support --whole-archive.
9241 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9242 else
9243 # Exported symbols can be pulled into shared objects from archives
9244 whole_archive_flag_spec='$convenience'
9246 archive_cmds_need_lc=yes
9247 # This is similar to how AIX traditionally builds its shared libraries.
9248 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'
9253 amigaos*)
9254 case $host_cpu in
9255 powerpc)
9256 # see comment about AmigaOS4 .so support
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds=''
9260 m68k)
9261 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)'
9262 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_minus_L=yes
9265 esac
9268 bsdi[45]*)
9269 export_dynamic_flag_spec=-rdynamic
9272 cygwin* | mingw* | pw32* | cegcc*)
9273 # When not using gcc, we currently assume that we are using
9274 # Microsoft Visual C++.
9275 # hardcode_libdir_flag_spec is actually meaningless, as there is
9276 # no search path for DLLs.
9277 hardcode_libdir_flag_spec=' '
9278 allow_undefined_flag=unsupported
9279 # Tell ltmain to make .lib files, not .a files.
9280 libext=lib
9281 # Tell ltmain to make .dll files, not .so files.
9282 shrext_cmds=".dll"
9283 # FIXME: Setting linknames here is a bad hack.
9284 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9285 # The linker will automatically build a .lib file if we build a DLL.
9286 old_archive_from_new_cmds='true'
9287 # FIXME: Should let the user specify the lib program.
9288 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9289 fix_srcfile_path='`cygpath -w "$srcfile"`'
9290 enable_shared_with_static_runtimes=yes
9293 darwin* | rhapsody*)
9296 archive_cmds_need_lc=no
9297 hardcode_direct=no
9298 hardcode_automatic=yes
9299 hardcode_shlibpath_var=unsupported
9300 if test "$lt_cv_ld_force_load" = "yes"; then
9301 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\"`'
9302 else
9303 whole_archive_flag_spec=''
9305 link_all_deplibs=yes
9306 allow_undefined_flag="$_lt_dar_allow_undefined"
9307 case $cc_basename in
9308 ifort*) _lt_dar_can_shared=yes ;;
9309 *) _lt_dar_can_shared=$GCC ;;
9310 esac
9311 if test "$_lt_dar_can_shared" = "yes"; then
9312 output_verbose_link_cmd=func_echo_all
9313 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9314 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9315 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}"
9316 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}"
9318 else
9319 ld_shlibs=no
9324 dgux*)
9325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326 hardcode_libdir_flag_spec='-L$libdir'
9327 hardcode_shlibpath_var=no
9330 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9331 # support. Future versions do this automatically, but an explicit c++rt0.o
9332 # does not break anything, and helps significantly (at the cost of a little
9333 # extra space).
9334 freebsd2.2*)
9335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9336 hardcode_libdir_flag_spec='-R$libdir'
9337 hardcode_direct=yes
9338 hardcode_shlibpath_var=no
9341 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9342 freebsd2.*)
9343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_direct=yes
9345 hardcode_minus_L=yes
9346 hardcode_shlibpath_var=no
9349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9350 freebsd* | dragonfly*)
9351 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9352 hardcode_libdir_flag_spec='-R$libdir'
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9357 hpux9*)
9358 if test "$GCC" = yes; then
9359 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'
9360 else
9361 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'
9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364 hardcode_libdir_separator=:
9365 hardcode_direct=yes
9367 # hardcode_minus_L: Not really in the search PATH,
9368 # but as the default location of the library.
9369 hardcode_minus_L=yes
9370 export_dynamic_flag_spec='${wl}-E'
9373 hpux10*)
9374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9375 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9376 else
9377 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9379 if test "$with_gnu_ld" = no; then
9380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9381 hardcode_libdir_flag_spec_ld='+b $libdir'
9382 hardcode_libdir_separator=:
9383 hardcode_direct=yes
9384 hardcode_direct_absolute=yes
9385 export_dynamic_flag_spec='${wl}-E'
9386 # hardcode_minus_L: Not really in the search PATH,
9387 # but as the default location of the library.
9388 hardcode_minus_L=yes
9392 hpux11*)
9393 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9394 case $host_cpu in
9395 hppa*64*)
9396 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 ia64*)
9399 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404 esac
9405 else
9406 case $host_cpu in
9407 hppa*64*)
9408 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 ia64*)
9411 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9415 # Older versions of the 11.00 compiler do not understand -b yet
9416 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9418 $as_echo_n "checking if $CC understands -b... " >&6; }
9419 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 lt_cv_prog_compiler__b=no
9423 save_LDFLAGS="$LDFLAGS"
9424 LDFLAGS="$LDFLAGS -b"
9425 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9427 # The linker can only warn and ignore the option if not recognized
9428 # So say no if there are warnings
9429 if test -s conftest.err; then
9430 # Append any errors to the config.log.
9431 cat conftest.err 1>&5
9432 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9434 if diff conftest.exp conftest.er2 >/dev/null; then
9435 lt_cv_prog_compiler__b=yes
9437 else
9438 lt_cv_prog_compiler__b=yes
9441 $RM -r conftest*
9442 LDFLAGS="$save_LDFLAGS"
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9446 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9448 if test x"$lt_cv_prog_compiler__b" = xyes; then
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9450 else
9451 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9455 esac
9457 if test "$with_gnu_ld" = no; then
9458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459 hardcode_libdir_separator=:
9461 case $host_cpu in
9462 hppa*64*|ia64*)
9463 hardcode_direct=no
9464 hardcode_shlibpath_var=no
9467 hardcode_direct=yes
9468 hardcode_direct_absolute=yes
9469 export_dynamic_flag_spec='${wl}-E'
9471 # hardcode_minus_L: Not really in the search PATH,
9472 # but as the default location of the library.
9473 hardcode_minus_L=yes
9475 esac
9479 irix5* | irix6* | nonstopux*)
9480 if test "$GCC" = yes; then
9481 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'
9482 # Try to use the -exported_symbol ld option, if it does not
9483 # work, assume that -exports_file does not work either and
9484 # implicitly export all symbols.
9485 save_LDFLAGS="$LDFLAGS"
9486 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489 int foo(void) {}
9490 _ACEOF
9491 if ac_fn_c_try_link "$LINENO"; then :
9492 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'
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 LDFLAGS="$save_LDFLAGS"
9498 else
9499 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'
9500 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'
9502 archive_cmds_need_lc='no'
9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505 inherit_rpath=yes
9506 link_all_deplibs=yes
9509 netbsd*)
9510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9512 else
9513 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9515 hardcode_libdir_flag_spec='-R$libdir'
9516 hardcode_direct=yes
9517 hardcode_shlibpath_var=no
9520 newsos6)
9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_direct=yes
9523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524 hardcode_libdir_separator=:
9525 hardcode_shlibpath_var=no
9528 *nto* | *qnx*)
9531 openbsd*)
9532 if test -f /usr/libexec/ld.so; then
9533 hardcode_direct=yes
9534 hardcode_shlibpath_var=no
9535 hardcode_direct_absolute=yes
9536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9540 export_dynamic_flag_spec='${wl}-E'
9541 else
9542 case $host_os in
9543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9545 hardcode_libdir_flag_spec='-R$libdir'
9548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9551 esac
9553 else
9554 ld_shlibs=no
9558 os2*)
9559 hardcode_libdir_flag_spec='-L$libdir'
9560 hardcode_minus_L=yes
9561 allow_undefined_flag=unsupported
9562 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'
9563 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9566 osf3*)
9567 if test "$GCC" = yes; then
9568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9569 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'
9570 else
9571 allow_undefined_flag=' -expect_unresolved \*'
9572 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'
9574 archive_cmds_need_lc='no'
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 hardcode_libdir_separator=:
9579 osf4* | osf5*) # as osf3* with the addition of -msym flag
9580 if test "$GCC" = yes; then
9581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9582 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'
9583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9584 else
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9587 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~
9588 $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'
9590 # Both c and cxx compiler support -rpath directly
9591 hardcode_libdir_flag_spec='-rpath $libdir'
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_separator=:
9597 solaris*)
9598 no_undefined_flag=' -z defs'
9599 if test "$GCC" = yes; then
9600 wlarc='${wl}'
9601 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9603 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9604 else
9605 case `$CC -V 2>&1` in
9606 *"Compilers 5.0"*)
9607 wlarc=''
9608 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9613 wlarc='${wl}'
9614 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9616 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 esac
9620 hardcode_libdir_flag_spec='-R$libdir'
9621 hardcode_shlibpath_var=no
9622 case $host_os in
9623 solaris2.[0-5] | solaris2.[0-5].*) ;;
9625 # The compiler driver will combine and reorder linker options,
9626 # but understands `-z linker_flag'. GCC discards it without `$wl',
9627 # but is careful enough not to reorder.
9628 # Supported since Solaris 2.6 (maybe 2.5.1?)
9629 if test "$GCC" = yes; then
9630 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9631 else
9632 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9635 esac
9636 link_all_deplibs=yes
9639 sunos4*)
9640 if test "x$host_vendor" = xsequent; then
9641 # Use $CC to link under sequent, because it throws in some extra .o
9642 # files that make .init and .fini sections work.
9643 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9644 else
9645 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_direct=yes
9649 hardcode_minus_L=yes
9650 hardcode_shlibpath_var=no
9653 sysv4)
9654 case $host_vendor in
9655 sni)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_direct=yes # is this really true???
9659 siemens)
9660 ## LD is ld it makes a PLAMLIB
9661 ## CC just makes a GrossModule.
9662 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9663 reload_cmds='$CC -r -o $output$reload_objs'
9664 hardcode_direct=no
9666 motorola)
9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9670 esac
9671 runpath_var='LD_RUN_PATH'
9672 hardcode_shlibpath_var=no
9675 sysv4.3*)
9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_shlibpath_var=no
9678 export_dynamic_flag_spec='-Bexport'
9681 sysv4*MP*)
9682 if test -d /usr/nec; then
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_shlibpath_var=no
9685 runpath_var=LD_RUN_PATH
9686 hardcode_runpath_var=yes
9687 ld_shlibs=yes
9691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9692 no_undefined_flag='${wl}-z,text'
9693 archive_cmds_need_lc=no
9694 hardcode_shlibpath_var=no
9695 runpath_var='LD_RUN_PATH'
9697 if test "$GCC" = yes; then
9698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 else
9701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 sysv5* | sco3.2v5* | sco5v6*)
9707 # Note: We can NOT use -z defs as we might desire, because we do not
9708 # link with -lc, and that would cause any symbols used from libc to
9709 # always be unresolved, which means just about no library would
9710 # ever link correctly. If we're not using GNU ld we use -z text
9711 # though, which does catch some bad symbols but isn't as heavy-handed
9712 # as -z defs.
9713 no_undefined_flag='${wl}-z,text'
9714 allow_undefined_flag='${wl}-z,nodefs'
9715 archive_cmds_need_lc=no
9716 hardcode_shlibpath_var=no
9717 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9718 hardcode_libdir_separator=':'
9719 link_all_deplibs=yes
9720 export_dynamic_flag_spec='${wl}-Bexport'
9721 runpath_var='LD_RUN_PATH'
9723 if test "$GCC" = yes; then
9724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 else
9727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 uts4*)
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_shlibpath_var=no
9739 ld_shlibs=no
9741 esac
9743 if test x$host_vendor = xsni; then
9744 case $host in
9745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9746 export_dynamic_flag_spec='${wl}-Blargedynsym'
9748 esac
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9753 $as_echo "$ld_shlibs" >&6; }
9754 test "$ld_shlibs" = no && can_build_shared=no
9756 with_gnu_ld=$with_gnu_ld
9773 # Do we need to explicitly link libc?
9775 case "x$archive_cmds_need_lc" in
9776 x|xyes)
9777 # Assume -lc should be added
9778 archive_cmds_need_lc=yes
9780 if test "$enable_shared" = yes && test "$GCC" = yes; then
9781 case $archive_cmds in
9782 *'~'*)
9783 # FIXME: we may have to deal with multi-command sequences.
9785 '$CC '*)
9786 # Test whether the compiler implicitly links with -lc since on some
9787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9788 # to ld, don't add -lc before -lgcc.
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9791 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 $RM conftest*
9795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9798 (eval $ac_compile) 2>&5
9799 ac_status=$?
9800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801 test $ac_status = 0; } 2>conftest.err; then
9802 soname=conftest
9803 lib=conftest
9804 libobjs=conftest.$ac_objext
9805 deplibs=
9806 wl=$lt_prog_compiler_wl
9807 pic_flag=$lt_prog_compiler_pic
9808 compiler_flags=-v
9809 linker_flags=-v
9810 verstring=
9811 output_objdir=.
9812 libname=conftest
9813 lt_save_allow_undefined_flag=$allow_undefined_flag
9814 allow_undefined_flag=
9815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9816 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9817 ac_status=$?
9818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9819 test $ac_status = 0; }
9820 then
9821 lt_cv_archive_cmds_need_lc=no
9822 else
9823 lt_cv_archive_cmds_need_lc=yes
9825 allow_undefined_flag=$lt_save_allow_undefined_flag
9826 else
9827 cat conftest.err 1>&5
9829 $RM conftest*
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9833 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9834 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9836 esac
9839 esac
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9998 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10000 if test "$GCC" = yes; then
10001 case $host_os in
10002 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10003 *) lt_awk_arg="/^libraries:/" ;;
10004 esac
10005 case $host_os in
10006 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10007 *) lt_sed_strip_eq="s,=/,/,g" ;;
10008 esac
10009 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10010 case $lt_search_path_spec in
10011 *\;*)
10012 # if the path contains ";" then we assume it to be the separator
10013 # otherwise default to the standard path separator (i.e. ":") - it is
10014 # assumed that no part of a normal pathname contains ";" but that should
10015 # okay in the real world where ";" in dirpaths is itself problematic.
10016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10019 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10021 esac
10022 # Ok, now we have the path, separated by spaces, we can step through it
10023 # and add multilib dir if necessary.
10024 lt_tmp_lt_search_path_spec=
10025 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10026 for lt_sys_path in $lt_search_path_spec; do
10027 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10029 else
10030 test -d "$lt_sys_path" && \
10031 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10033 done
10034 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10035 BEGIN {RS=" "; FS="/|\n";} {
10036 lt_foo="";
10037 lt_count=0;
10038 for (lt_i = NF; lt_i > 0; lt_i--) {
10039 if ($lt_i != "" && $lt_i != ".") {
10040 if ($lt_i == "..") {
10041 lt_count++;
10042 } else {
10043 if (lt_count == 0) {
10044 lt_foo="/" $lt_i lt_foo;
10045 } else {
10046 lt_count--;
10051 if (lt_foo != "") { lt_freq[lt_foo]++; }
10052 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10054 # AWK program above erroneously prepends '/' to C:/dos/paths
10055 # for these hosts.
10056 case $host_os in
10057 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10058 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10059 esac
10060 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10061 else
10062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10064 library_names_spec=
10065 libname_spec='lib$name'
10066 soname_spec=
10067 shrext_cmds=".so"
10068 postinstall_cmds=
10069 postuninstall_cmds=
10070 finish_cmds=
10071 finish_eval=
10072 shlibpath_var=
10073 shlibpath_overrides_runpath=unknown
10074 version_type=none
10075 dynamic_linker="$host_os ld.so"
10076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10077 need_lib_prefix=unknown
10078 hardcode_into_libs=no
10080 # when you set need_version to no, make sure it does not cause -set_version
10081 # flags to be left without arguments
10082 need_version=unknown
10084 case $host_os in
10085 aix3*)
10086 version_type=linux
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10088 shlibpath_var=LIBPATH
10090 # AIX 3 has no versioning support, so we append a major version to the name.
10091 soname_spec='${libname}${release}${shared_ext}$major'
10094 aix[4-9]*)
10095 version_type=linux
10096 need_lib_prefix=no
10097 need_version=no
10098 hardcode_into_libs=yes
10099 if test "$host_cpu" = ia64; then
10100 # AIX 5 supports IA64
10101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 else
10104 # With GCC up to 2.95.x, collect2 would create an import file
10105 # for dependence libraries. The import file would start with
10106 # the line `#! .'. This would cause the generated library to
10107 # depend on `.', always an invalid library. This was fixed in
10108 # development snapshots of GCC prior to 3.0.
10109 case $host_os in
10110 aix4 | aix4.[01] | aix4.[01].*)
10111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10112 echo ' yes '
10113 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10115 else
10116 can_build_shared=no
10119 esac
10120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10121 # soname into executable. Probably we can add versioning support to
10122 # collect2, so additional links can be useful in future.
10123 if test "$aix_use_runtimelinking" = yes; then
10124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10125 # instead of lib<name>.a to let people know that these are not
10126 # typical AIX shared libraries.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 else
10129 # We preserve .a as extension for shared libraries through AIX4.2
10130 # and later when we are not doing run time linking.
10131 library_names_spec='${libname}${release}.a $libname.a'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10134 shlibpath_var=LIBPATH
10138 amigaos*)
10139 case $host_cpu in
10140 powerpc)
10141 # Since July 2007 AmigaOS4 officially supports .so libraries.
10142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 m68k)
10146 library_names_spec='$libname.ixlibrary $libname.a'
10147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10148 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'
10150 esac
10153 beos*)
10154 library_names_spec='${libname}${shared_ext}'
10155 dynamic_linker="$host_os ld.so"
10156 shlibpath_var=LIBRARY_PATH
10159 bsdi[45]*)
10160 version_type=linux
10161 need_version=no
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10168 # the default ld.so.conf also contains /usr/contrib/lib and
10169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10170 # libtool to hard-code these into programs
10173 cygwin* | mingw* | pw32* | cegcc*)
10174 version_type=windows
10175 shrext_cmds=".dll"
10176 need_version=no
10177 need_lib_prefix=no
10179 case $GCC,$host_os in
10180 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10181 library_names_spec='$libname.dll.a'
10182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10183 postinstall_cmds='base_file=`basename \${file}`~
10184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10185 dldir=$destdir/`dirname \$dlpath`~
10186 test -d \$dldir || mkdir -p \$dldir~
10187 $install_prog $dir/$dlname \$dldir/$dlname~
10188 chmod a+x \$dldir/$dlname~
10189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10193 dlpath=$dir/\$dldll~
10194 $RM \$dlpath'
10195 shlibpath_overrides_runpath=yes
10197 case $host_os in
10198 cygwin*)
10199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10202 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10204 mingw* | cegcc*)
10205 # MinGW DLLs use traditional 'lib' prefix
10206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 pw32*)
10209 # pw32 DLLs use 'pw' prefix rather than 'lib'
10210 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10212 esac
10216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10218 esac
10219 dynamic_linker='Win32 ld.exe'
10220 # FIXME: first we should search . and the directory the executable is in
10221 shlibpath_var=PATH
10224 darwin* | rhapsody*)
10225 dynamic_linker="$host_os dyld"
10226 version_type=darwin
10227 need_lib_prefix=no
10228 need_version=no
10229 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10230 soname_spec='${libname}${release}${major}$shared_ext'
10231 shlibpath_overrides_runpath=yes
10232 shlibpath_var=DYLD_LIBRARY_PATH
10233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10235 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10239 dgux*)
10240 version_type=linux
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10248 freebsd* | dragonfly*)
10249 # DragonFly does not have aout. When/if they implement a new
10250 # versioning mechanism, adjust this.
10251 if test -x /usr/bin/objformat; then
10252 objformat=`/usr/bin/objformat`
10253 else
10254 case $host_os in
10255 freebsd[23].*) objformat=aout ;;
10256 *) objformat=elf ;;
10257 esac
10259 version_type=freebsd-$objformat
10260 case $version_type in
10261 freebsd-elf*)
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 need_version=no
10264 need_lib_prefix=no
10266 freebsd-*)
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10268 need_version=yes
10270 esac
10271 shlibpath_var=LD_LIBRARY_PATH
10272 case $host_os in
10273 freebsd2.*)
10274 shlibpath_overrides_runpath=yes
10276 freebsd3.[01]* | freebsdelf3.[01]*)
10277 shlibpath_overrides_runpath=yes
10278 hardcode_into_libs=yes
10280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10282 shlibpath_overrides_runpath=no
10283 hardcode_into_libs=yes
10285 *) # from 4.6 on, and DragonFly
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10289 esac
10292 gnu*)
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 hardcode_into_libs=yes
10302 haiku*)
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 dynamic_linker="$host_os runtime_loader"
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LIBRARY_PATH
10310 shlibpath_overrides_runpath=yes
10311 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10312 hardcode_into_libs=yes
10315 hpux9* | hpux10* | hpux11*)
10316 # Give a soname corresponding to the major version so that dld.sl refuses to
10317 # link against other versions.
10318 version_type=sunos
10319 need_lib_prefix=no
10320 need_version=no
10321 case $host_cpu in
10322 ia64*)
10323 shrext_cmds='.so'
10324 hardcode_into_libs=yes
10325 dynamic_linker="$host_os dld.so"
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 if test "X$HPUX_IA64_MODE" = X32; then
10331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10332 else
10333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10337 hppa*64*)
10338 shrext_cmds='.sl'
10339 hardcode_into_libs=yes
10340 dynamic_linker="$host_os dld.sl"
10341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10349 shrext_cmds='.sl'
10350 dynamic_linker="$host_os dld.sl"
10351 shlibpath_var=SHLIB_PATH
10352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10356 esac
10357 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10358 postinstall_cmds='chmod 555 $lib'
10359 # or fails outright, so override atomically:
10360 install_override_mode=555
10363 interix[3-9]*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=no
10372 hardcode_into_libs=yes
10375 irix5* | irix6* | nonstopux*)
10376 case $host_os in
10377 nonstopux*) version_type=nonstopux ;;
10379 if test "$lt_cv_prog_gnu_ld" = yes; then
10380 version_type=linux
10381 else
10382 version_type=irix
10383 fi ;;
10384 esac
10385 need_lib_prefix=no
10386 need_version=no
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10389 case $host_os in
10390 irix5* | nonstopux*)
10391 libsuff= shlibsuff=
10394 case $LD in # libtool.m4 will add one of these switches to LD
10395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10396 libsuff= shlibsuff= libmagic=32-bit;;
10397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10398 libsuff=32 shlibsuff=N32 libmagic=N32;;
10399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10401 *) libsuff= shlibsuff= libmagic=never-match;;
10402 esac
10404 esac
10405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10406 shlibpath_overrides_runpath=no
10407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10409 hardcode_into_libs=yes
10412 # No shared lib support for Linux oldld, aout, or coff.
10413 linux*oldld* | linux*aout* | linux*coff*)
10414 dynamic_linker=no
10417 # This must be Linux ELF.
10418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10419 version_type=linux
10420 need_lib_prefix=no
10421 need_version=no
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 shlibpath_overrides_runpath=no
10428 # Some binutils ld are patched to set DT_RUNPATH
10429 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 lt_cv_shlibpath_overrides_runpath=no
10433 save_LDFLAGS=$LDFLAGS
10434 save_libdir=$libdir
10435 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10436 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10441 main ()
10445 return 0;
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10450 lt_cv_shlibpath_overrides_runpath=yes
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LDFLAGS=$save_LDFLAGS
10456 libdir=$save_libdir
10460 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10462 # This implies no fast_install, which is unacceptable.
10463 # Some rework will be needed to allow for fast_install
10464 # before this can be enabled.
10465 hardcode_into_libs=yes
10467 # Append ld.so.conf contents to the search path
10468 if test -f /etc/ld.so.conf; then
10469 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' ' '`
10470 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10473 # We used to test for /lib/ld.so.1 and disable shared libraries on
10474 # powerpc, because MkLinux only supported shared libraries with the
10475 # GNU dynamic linker. Since this was broken with cross compilers,
10476 # most powerpc-linux boxes support dynamic linking these days and
10477 # people can always --disable-shared, the test was removed, and we
10478 # assume the GNU/Linux dynamic linker is in use.
10479 dynamic_linker='GNU/Linux ld.so'
10482 netbsd*)
10483 version_type=sunos
10484 need_lib_prefix=no
10485 need_version=no
10486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10489 dynamic_linker='NetBSD (a.out) ld.so'
10490 else
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 dynamic_linker='NetBSD ld.elf_so'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=yes
10497 hardcode_into_libs=yes
10500 newsos6)
10501 version_type=linux
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=yes
10507 *nto* | *qnx*)
10508 version_type=qnx
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=no
10515 hardcode_into_libs=yes
10516 dynamic_linker='ldqnx.so'
10519 openbsd*)
10520 version_type=sunos
10521 sys_lib_dlsearch_path_spec="/usr/lib"
10522 need_lib_prefix=no
10523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10524 case $host_os in
10525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10526 *) need_version=no ;;
10527 esac
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10532 case $host_os in
10533 openbsd2.[89] | openbsd2.[89].*)
10534 shlibpath_overrides_runpath=no
10537 shlibpath_overrides_runpath=yes
10539 esac
10540 else
10541 shlibpath_overrides_runpath=yes
10545 os2*)
10546 libname_spec='$name'
10547 shrext_cmds=".dll"
10548 need_lib_prefix=no
10549 library_names_spec='$libname${shared_ext} $libname.a'
10550 dynamic_linker='OS/2 ld.exe'
10551 shlibpath_var=LIBPATH
10554 osf3* | osf4* | osf5*)
10555 version_type=osf
10556 need_lib_prefix=no
10557 need_version=no
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10565 rdos*)
10566 dynamic_linker=no
10569 solaris*)
10570 version_type=linux
10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10578 # ldd complains unless libraries are executable
10579 postinstall_cmds='chmod +x $lib'
10582 sunos4*)
10583 version_type=sunos
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 if test "$with_gnu_ld" = yes; then
10589 need_lib_prefix=no
10591 need_version=yes
10594 sysv4 | sysv4.3*)
10595 version_type=linux
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 case $host_vendor in
10600 sni)
10601 shlibpath_overrides_runpath=no
10602 need_lib_prefix=no
10603 runpath_var=LD_RUN_PATH
10605 siemens)
10606 need_lib_prefix=no
10608 motorola)
10609 need_lib_prefix=no
10610 need_version=no
10611 shlibpath_overrides_runpath=no
10612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10614 esac
10617 sysv4*MP*)
10618 if test -d /usr/nec ;then
10619 version_type=linux
10620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10621 soname_spec='$libname${shared_ext}.$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10627 version_type=freebsd-elf
10628 need_lib_prefix=no
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10634 hardcode_into_libs=yes
10635 if test "$with_gnu_ld" = yes; then
10636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10637 else
10638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10639 case $host_os in
10640 sco3.2v5*)
10641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10643 esac
10645 sys_lib_dlsearch_path_spec='/usr/lib'
10648 tpf*)
10649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10650 version_type=linux
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10659 uts4*)
10660 version_type=linux
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10667 dynamic_linker=no
10669 esac
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10671 $as_echo "$dynamic_linker" >&6; }
10672 test "$dynamic_linker" = no && can_build_shared=no
10674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10675 if test "$GCC" = yes; then
10676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10679 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10680 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10682 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10683 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10779 hardcode_action=
10780 if test -n "$hardcode_libdir_flag_spec" ||
10781 test -n "$runpath_var" ||
10782 test "X$hardcode_automatic" = "Xyes" ; then
10784 # We can hardcode non-existent directories.
10785 if test "$hardcode_direct" != no &&
10786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10787 # have to relink, otherwise we might link with an installed library
10788 # when we should be linking with a yet-to-be-installed one
10789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10790 test "$hardcode_minus_L" != no; then
10791 # Linking always hardcodes the temporary library directory.
10792 hardcode_action=relink
10793 else
10794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10795 hardcode_action=immediate
10797 else
10798 # We cannot hardcode anything, or else we can only hardcode existing
10799 # directories.
10800 hardcode_action=unsupported
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10803 $as_echo "$hardcode_action" >&6; }
10805 if test "$hardcode_action" = relink ||
10806 test "$inherit_rpath" = yes; then
10807 # Fast installation is not supported
10808 enable_fast_install=no
10809 elif test "$shlibpath_overrides_runpath" = yes ||
10810 test "$enable_shared" = no; then
10811 # Fast installation is not necessary
10812 enable_fast_install=needless
10820 if test "x$enable_dlopen" != xyes; then
10821 enable_dlopen=unknown
10822 enable_dlopen_self=unknown
10823 enable_dlopen_self_static=unknown
10824 else
10825 lt_cv_dlopen=no
10826 lt_cv_dlopen_libs=
10828 case $host_os in
10829 beos*)
10830 lt_cv_dlopen="load_add_on"
10831 lt_cv_dlopen_libs=
10832 lt_cv_dlopen_self=yes
10835 mingw* | pw32* | cegcc*)
10836 lt_cv_dlopen="LoadLibrary"
10837 lt_cv_dlopen_libs=
10840 cygwin*)
10841 lt_cv_dlopen="dlopen"
10842 lt_cv_dlopen_libs=
10845 darwin*)
10846 # if libdl is installed we need to link against it
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-ldl $LIBS"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char dlopen ();
10865 main ()
10867 return dlopen ();
10869 return 0;
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 ac_cv_lib_dl_dlopen=yes
10874 else
10875 ac_cv_lib_dl_dlopen=no
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10883 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10885 else
10887 lt_cv_dlopen="dyld"
10888 lt_cv_dlopen_libs=
10889 lt_cv_dlopen_self=yes
10896 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10897 if test "x$ac_cv_func_shl_load" = x""yes; then :
10898 lt_cv_dlopen="shl_load"
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10901 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10902 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-ldld $LIBS"
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char shl_load ();
10918 main ()
10920 return shl_load ();
10922 return 0;
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"; then :
10926 ac_cv_lib_dld_shl_load=yes
10927 else
10928 ac_cv_lib_dld_shl_load=no
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10935 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10936 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10938 else
10939 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10940 if test "x$ac_cv_func_dlopen" = x""yes; then :
10941 lt_cv_dlopen="dlopen"
10942 else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10944 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10945 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-ldl $LIBS"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10953 /* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char dlopen ();
10961 main ()
10963 return dlopen ();
10965 return 0;
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_lib_dl_dlopen=yes
10970 else
10971 ac_cv_lib_dl_dlopen=no
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10978 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10979 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10983 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10984 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-lsvld $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char dlopen ();
11000 main ()
11002 return dlopen ();
11004 return 0;
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_svld_dlopen=yes
11009 else
11010 ac_cv_lib_svld_dlopen=no
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11017 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11018 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11022 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11023 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-ldld $LIBS"
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11031 /* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 char dld_link ();
11039 main ()
11041 return dld_link ();
11043 return 0;
11045 _ACEOF
11046 if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_lib_dld_dld_link=yes
11048 else
11049 ac_cv_lib_dld_dld_link=no
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_lib_save_LIBS
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11056 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11057 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11077 esac
11079 if test "x$lt_cv_dlopen" != xno; then
11080 enable_dlopen=yes
11081 else
11082 enable_dlopen=no
11085 case $lt_cv_dlopen in
11086 dlopen)
11087 save_CPPFLAGS="$CPPFLAGS"
11088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11090 save_LDFLAGS="$LDFLAGS"
11091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11093 save_LIBS="$LIBS"
11094 LIBS="$lt_cv_dlopen_libs $LIBS"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11097 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11098 if test "${lt_cv_dlopen_self+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 if test "$cross_compiling" = yes; then :
11102 lt_cv_dlopen_self=cross
11103 else
11104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11105 lt_status=$lt_dlunknown
11106 cat > conftest.$ac_ext <<_LT_EOF
11107 #line 11107 "configure"
11108 #include "confdefs.h"
11110 #if HAVE_DLFCN_H
11111 #include <dlfcn.h>
11112 #endif
11114 #include <stdio.h>
11116 #ifdef RTLD_GLOBAL
11117 # define LT_DLGLOBAL RTLD_GLOBAL
11118 #else
11119 # ifdef DL_GLOBAL
11120 # define LT_DLGLOBAL DL_GLOBAL
11121 # else
11122 # define LT_DLGLOBAL 0
11123 # endif
11124 #endif
11126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11127 find out it does not work in some platform. */
11128 #ifndef LT_DLLAZY_OR_NOW
11129 # ifdef RTLD_LAZY
11130 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11131 # else
11132 # ifdef DL_LAZY
11133 # define LT_DLLAZY_OR_NOW DL_LAZY
11134 # else
11135 # ifdef RTLD_NOW
11136 # define LT_DLLAZY_OR_NOW RTLD_NOW
11137 # else
11138 # ifdef DL_NOW
11139 # define LT_DLLAZY_OR_NOW DL_NOW
11140 # else
11141 # define LT_DLLAZY_OR_NOW 0
11142 # endif
11143 # endif
11144 # endif
11145 # endif
11146 #endif
11148 /* When -fvisbility=hidden is used, assume the code has been annotated
11149 correspondingly for the symbols needed. */
11150 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11151 void fnord () __attribute__((visibility("default")));
11152 #endif
11154 void fnord () { int i=42; }
11155 int main ()
11157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11158 int status = $lt_dlunknown;
11160 if (self)
11162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11163 else
11165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11166 else puts (dlerror ());
11168 /* dlclose (self); */
11170 else
11171 puts (dlerror ());
11173 return status;
11175 _LT_EOF
11176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11177 (eval $ac_link) 2>&5
11178 ac_status=$?
11179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11181 (./conftest; exit; ) >&5 2>/dev/null
11182 lt_status=$?
11183 case x$lt_status in
11184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11186 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11187 esac
11188 else :
11189 # compilation failed
11190 lt_cv_dlopen_self=no
11193 rm -fr conftest*
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11198 $as_echo "$lt_cv_dlopen_self" >&6; }
11200 if test "x$lt_cv_dlopen_self" = xyes; then
11201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11203 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11204 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 if test "$cross_compiling" = yes; then :
11208 lt_cv_dlopen_self_static=cross
11209 else
11210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11211 lt_status=$lt_dlunknown
11212 cat > conftest.$ac_ext <<_LT_EOF
11213 #line 11213 "configure"
11214 #include "confdefs.h"
11216 #if HAVE_DLFCN_H
11217 #include <dlfcn.h>
11218 #endif
11220 #include <stdio.h>
11222 #ifdef RTLD_GLOBAL
11223 # define LT_DLGLOBAL RTLD_GLOBAL
11224 #else
11225 # ifdef DL_GLOBAL
11226 # define LT_DLGLOBAL DL_GLOBAL
11227 # else
11228 # define LT_DLGLOBAL 0
11229 # endif
11230 #endif
11232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11233 find out it does not work in some platform. */
11234 #ifndef LT_DLLAZY_OR_NOW
11235 # ifdef RTLD_LAZY
11236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11237 # else
11238 # ifdef DL_LAZY
11239 # define LT_DLLAZY_OR_NOW DL_LAZY
11240 # else
11241 # ifdef RTLD_NOW
11242 # define LT_DLLAZY_OR_NOW RTLD_NOW
11243 # else
11244 # ifdef DL_NOW
11245 # define LT_DLLAZY_OR_NOW DL_NOW
11246 # else
11247 # define LT_DLLAZY_OR_NOW 0
11248 # endif
11249 # endif
11250 # endif
11251 # endif
11252 #endif
11254 /* When -fvisbility=hidden is used, assume the code has been annotated
11255 correspondingly for the symbols needed. */
11256 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11257 void fnord () __attribute__((visibility("default")));
11258 #endif
11260 void fnord () { int i=42; }
11261 int main ()
11263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11264 int status = $lt_dlunknown;
11266 if (self)
11268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11269 else
11271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11272 else puts (dlerror ());
11274 /* dlclose (self); */
11276 else
11277 puts (dlerror ());
11279 return status;
11281 _LT_EOF
11282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11283 (eval $ac_link) 2>&5
11284 ac_status=$?
11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11287 (./conftest; exit; ) >&5 2>/dev/null
11288 lt_status=$?
11289 case x$lt_status in
11290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11293 esac
11294 else :
11295 # compilation failed
11296 lt_cv_dlopen_self_static=no
11299 rm -fr conftest*
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11304 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11307 CPPFLAGS="$save_CPPFLAGS"
11308 LDFLAGS="$save_LDFLAGS"
11309 LIBS="$save_LIBS"
11311 esac
11313 case $lt_cv_dlopen_self in
11314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11315 *) enable_dlopen_self=unknown ;;
11316 esac
11318 case $lt_cv_dlopen_self_static in
11319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11320 *) enable_dlopen_self_static=unknown ;;
11321 esac
11340 striplib=
11341 old_striplib=
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11343 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11344 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348 $as_echo "yes" >&6; }
11349 else
11350 # FIXME - insert some real tests, host_os isn't really good enough
11351 case $host_os in
11352 darwin*)
11353 if test -n "$STRIP" ; then
11354 striplib="$STRIP -x"
11355 old_striplib="$STRIP -S"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11357 $as_echo "yes" >&6; }
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11367 esac
11381 # Report which library types will actually be built
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11383 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11385 $as_echo "$can_build_shared" >&6; }
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11388 $as_echo_n "checking whether to build shared libraries... " >&6; }
11389 test "$can_build_shared" = "no" && enable_shared=no
11391 # On AIX, shared libraries and static libraries use the same namespace, and
11392 # are all built from PIC.
11393 case $host_os in
11394 aix3*)
11395 test "$enable_shared" = yes && enable_static=no
11396 if test -n "$RANLIB"; then
11397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11398 postinstall_cmds='$RANLIB $lib'
11402 aix[4-9]*)
11403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11404 test "$enable_shared" = yes && enable_static=no
11407 esac
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11409 $as_echo "$enable_shared" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11412 $as_echo_n "checking whether to build static libraries... " >&6; }
11413 # Make sure either enable_shared or enable_static is yes.
11414 test "$enable_shared" = yes || enable_static=yes
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11416 $as_echo "$enable_static" >&6; }
11422 ac_ext=c
11423 ac_cpp='$CPP $CPPFLAGS'
11424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428 CC="$lt_save_CC"
11442 # Source file extension for Go test sources.
11443 ac_ext=go
11445 # Object file extension for compiled Go test sources.
11446 objext=o
11447 objext_GO=$objext
11449 # Code to be used in simple compile tests
11450 lt_simple_compile_test_code="package main; func main() { }"
11452 # Code to be used in simple link tests
11453 lt_simple_link_test_code='package main; func main() { }'
11455 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11462 # If no C compiler was specified, use CC.
11463 LTCC=${LTCC-"$CC"}
11465 # If no C compiler flags were specified, use CFLAGS.
11466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11468 # Allow CC to be a program name with arguments.
11469 compiler=$CC
11472 # save warnings/boilerplate of simple test code
11473 ac_outfile=conftest.$ac_objext
11474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11476 _lt_compiler_boilerplate=`cat conftest.err`
11477 $RM conftest*
11479 ac_outfile=conftest.$ac_objext
11480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11482 _lt_linker_boilerplate=`cat conftest.err`
11483 $RM -r conftest*
11486 # Allow CC to be a program name with arguments.
11487 lt_save_CC="$CC"
11488 lt_save_GCC="$GCC"
11489 GCC=yes
11490 CC=${GOC-"gccgo"}
11491 compiler=$CC
11492 compiler_GO=$CC
11493 LD_GO="$LD"
11494 for cc_temp in $compiler""; do
11495 case $cc_temp in
11496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11498 \-*) ;;
11499 *) break;;
11500 esac
11501 done
11502 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11505 # Go did not exist at the time GCC didn't implicitly link libc in.
11506 archive_cmds_need_lc_GO=no
11508 old_archive_cmds_GO=$old_archive_cmds
11510 ## CAVEAT EMPTOR:
11511 ## There is no encapsulation within the following macros, do not change
11512 ## the running order or otherwise move them around unless you know exactly
11513 ## what you are doing...
11514 if test -n "$compiler"; then
11516 lt_prog_compiler_no_builtin_flag_GO=
11518 if test "$GCC" = yes; then
11519 case $cc_basename in
11520 nvcc*)
11521 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11523 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11524 esac
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11527 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 lt_cv_prog_compiler_rtti_exceptions=no
11532 ac_outfile=conftest.$ac_objext
11533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11534 lt_compiler_flag="-fno-rtti -fno-exceptions"
11535 # Insert the option either (1) after the last *FLAGS variable, or
11536 # (2) before a word containing "conftest.", or (3) at the end.
11537 # Note that $ac_compile itself does not contain backslashes and begins
11538 # with a dollar sign (not a hyphen), so the echo should work correctly.
11539 # The option is referenced via a variable to avoid confusing sed.
11540 lt_compile=`echo "$ac_compile" | $SED \
11541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11543 -e 's:$: $lt_compiler_flag:'`
11544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11545 (eval "$lt_compile" 2>conftest.err)
11546 ac_status=$?
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 if (exit $ac_status) && test -s "$ac_outfile"; then
11550 # The compiler can only warn and ignore the option if not recognized
11551 # So say no if there are warnings other than the usual output.
11552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11555 lt_cv_prog_compiler_rtti_exceptions=yes
11558 $RM conftest*
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11562 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11565 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11566 else
11574 lt_prog_compiler_wl_GO=
11575 lt_prog_compiler_pic_GO=
11576 lt_prog_compiler_static_GO=
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11579 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11581 if test "$GCC" = yes; then
11582 lt_prog_compiler_wl_GO='-Wl,'
11583 lt_prog_compiler_static_GO='-static'
11585 case $host_os in
11586 aix*)
11587 # All AIX code is PIC.
11588 if test "$host_cpu" = ia64; then
11589 # AIX 5 now supports IA64 processor
11590 lt_prog_compiler_static_GO='-Bstatic'
11592 lt_prog_compiler_pic_GO='-fPIC'
11595 amigaos*)
11596 case $host_cpu in
11597 powerpc)
11598 # see comment about AmigaOS4 .so support
11599 lt_prog_compiler_pic_GO='-fPIC'
11601 m68k)
11602 # FIXME: we need at least 68020 code to build shared libraries, but
11603 # adding the `-m68020' flag to GCC prevents building anything better,
11604 # like `-m68040'.
11605 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11607 esac
11610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11611 # PIC is the default for these OSes.
11614 mingw* | cygwin* | pw32* | os2* | cegcc*)
11615 # This hack is so that the source file can tell whether it is being
11616 # built for inclusion in a dll (and should export symbols for example).
11617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11618 # (--disable-auto-import) libraries
11619 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11622 darwin* | rhapsody*)
11623 # PIC is the default on this platform
11624 # Common symbols not allowed in MH_DYLIB files
11625 lt_prog_compiler_pic_GO='-fno-common'
11628 haiku*)
11629 # PIC is the default for Haiku.
11630 # The "-static" flag exists, but is broken.
11631 lt_prog_compiler_static_GO=
11634 hpux*)
11635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11637 # sets the default TLS model and affects inlining.
11638 case $host_cpu in
11639 hppa*64*)
11640 # +Z the default
11643 lt_prog_compiler_pic_GO='-fPIC'
11645 esac
11648 interix[3-9]*)
11649 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11650 # Instead, we relocate shared libraries at runtime.
11653 msdosdjgpp*)
11654 # Just because we use GCC doesn't mean we suddenly get shared libraries
11655 # on systems that don't support them.
11656 lt_prog_compiler_can_build_shared_GO=no
11657 enable_shared=no
11660 *nto* | *qnx*)
11661 # QNX uses GNU C++, but need to define -shared option too, otherwise
11662 # it will coredump.
11663 lt_prog_compiler_pic_GO='-fPIC -shared'
11666 sysv4*MP*)
11667 if test -d /usr/nec; then
11668 lt_prog_compiler_pic_GO=-Kconform_pic
11673 lt_prog_compiler_pic_GO='-fPIC'
11675 esac
11677 case $cc_basename in
11678 nvcc*) # Cuda Compiler Driver 2.2
11679 lt_prog_compiler_wl_GO='-Xlinker '
11680 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11682 esac
11683 else
11684 # PORTME Check for flag to pass linker flags through the system compiler.
11685 case $host_os in
11686 aix*)
11687 lt_prog_compiler_wl_GO='-Wl,'
11688 if test "$host_cpu" = ia64; then
11689 # AIX 5 now supports IA64 processor
11690 lt_prog_compiler_static_GO='-Bstatic'
11691 else
11692 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11696 mingw* | cygwin* | pw32* | os2* | cegcc*)
11697 # This hack is so that the source file can tell whether it is being
11698 # built for inclusion in a dll (and should export symbols for example).
11699 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11702 hpux9* | hpux10* | hpux11*)
11703 lt_prog_compiler_wl_GO='-Wl,'
11704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11705 # not for PA HP-UX.
11706 case $host_cpu in
11707 hppa*64*|ia64*)
11708 # +Z the default
11711 lt_prog_compiler_pic_GO='+Z'
11713 esac
11714 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11715 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11718 irix5* | irix6* | nonstopux*)
11719 lt_prog_compiler_wl_GO='-Wl,'
11720 # PIC (with -KPIC) is the default.
11721 lt_prog_compiler_static_GO='-non_shared'
11724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11725 case $cc_basename in
11726 # old Intel for x86_64 which still supported -KPIC.
11727 ecc*)
11728 lt_prog_compiler_wl_GO='-Wl,'
11729 lt_prog_compiler_pic_GO='-KPIC'
11730 lt_prog_compiler_static_GO='-static'
11732 # icc used to be incompatible with GCC.
11733 # ICC 10 doesn't accept -KPIC any more.
11734 icc* | ifort*)
11735 lt_prog_compiler_wl_GO='-Wl,'
11736 lt_prog_compiler_pic_GO='-fPIC'
11737 lt_prog_compiler_static_GO='-static'
11739 # Lahey Fortran 8.1.
11740 lf95*)
11741 lt_prog_compiler_wl_GO='-Wl,'
11742 lt_prog_compiler_pic_GO='--shared'
11743 lt_prog_compiler_static_GO='--static'
11745 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11746 # Portland Group compilers (*not* the Pentium gcc compiler,
11747 # which looks to be a dead project)
11748 lt_prog_compiler_wl_GO='-Wl,'
11749 lt_prog_compiler_pic_GO='-fpic'
11750 lt_prog_compiler_static_GO='-Bstatic'
11752 ccc*)
11753 lt_prog_compiler_wl_GO='-Wl,'
11754 # All Alpha code is PIC.
11755 lt_prog_compiler_static_GO='-non_shared'
11757 xl* | bgxl* | bgf* | mpixl*)
11758 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11759 lt_prog_compiler_wl_GO='-Wl,'
11760 lt_prog_compiler_pic_GO='-qpic'
11761 lt_prog_compiler_static_GO='-qstaticlink'
11764 case `$CC -V 2>&1 | sed 5q` in
11765 *Sun\ F* | *Sun*Fortran*)
11766 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11767 lt_prog_compiler_pic_GO='-KPIC'
11768 lt_prog_compiler_static_GO='-Bstatic'
11769 lt_prog_compiler_wl_GO=''
11771 *Sun\ C*)
11772 # Sun C 5.9
11773 lt_prog_compiler_pic_GO='-KPIC'
11774 lt_prog_compiler_static_GO='-Bstatic'
11775 lt_prog_compiler_wl_GO='-Wl,'
11777 esac
11779 esac
11782 newsos6)
11783 lt_prog_compiler_pic_GO='-KPIC'
11784 lt_prog_compiler_static_GO='-Bstatic'
11787 *nto* | *qnx*)
11788 # QNX uses GNU C++, but need to define -shared option too, otherwise
11789 # it will coredump.
11790 lt_prog_compiler_pic_GO='-fPIC -shared'
11793 osf3* | osf4* | osf5*)
11794 lt_prog_compiler_wl_GO='-Wl,'
11795 # All OSF/1 code is PIC.
11796 lt_prog_compiler_static_GO='-non_shared'
11799 rdos*)
11800 lt_prog_compiler_static_GO='-non_shared'
11803 solaris*)
11804 lt_prog_compiler_pic_GO='-KPIC'
11805 lt_prog_compiler_static_GO='-Bstatic'
11806 case $cc_basename in
11807 f77* | f90* | f95*)
11808 lt_prog_compiler_wl_GO='-Qoption ld ';;
11810 lt_prog_compiler_wl_GO='-Wl,';;
11811 esac
11814 sunos4*)
11815 lt_prog_compiler_wl_GO='-Qoption ld '
11816 lt_prog_compiler_pic_GO='-PIC'
11817 lt_prog_compiler_static_GO='-Bstatic'
11820 sysv4 | sysv4.2uw2* | sysv4.3*)
11821 lt_prog_compiler_wl_GO='-Wl,'
11822 lt_prog_compiler_pic_GO='-KPIC'
11823 lt_prog_compiler_static_GO='-Bstatic'
11826 sysv4*MP*)
11827 if test -d /usr/nec ;then
11828 lt_prog_compiler_pic_GO='-Kconform_pic'
11829 lt_prog_compiler_static_GO='-Bstatic'
11833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11834 lt_prog_compiler_wl_GO='-Wl,'
11835 lt_prog_compiler_pic_GO='-KPIC'
11836 lt_prog_compiler_static_GO='-Bstatic'
11839 unicos*)
11840 lt_prog_compiler_wl_GO='-Wl,'
11841 lt_prog_compiler_can_build_shared_GO=no
11844 uts4*)
11845 lt_prog_compiler_pic_GO='-pic'
11846 lt_prog_compiler_static_GO='-Bstatic'
11850 lt_prog_compiler_can_build_shared_GO=no
11852 esac
11855 case $host_os in
11856 # For platforms which do not support PIC, -DPIC is meaningless:
11857 *djgpp*)
11858 lt_prog_compiler_pic_GO=
11861 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11863 esac
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11865 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11870 # Check to make sure the PIC flag actually works.
11872 if test -n "$lt_prog_compiler_pic_GO"; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11874 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11875 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 lt_cv_prog_compiler_pic_works_GO=no
11879 ac_outfile=conftest.$ac_objext
11880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11881 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11882 # Insert the option either (1) after the last *FLAGS variable, or
11883 # (2) before a word containing "conftest.", or (3) at the end.
11884 # Note that $ac_compile itself does not contain backslashes and begins
11885 # with a dollar sign (not a hyphen), so the echo should work correctly.
11886 # The option is referenced via a variable to avoid confusing sed.
11887 lt_compile=`echo "$ac_compile" | $SED \
11888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890 -e 's:$: $lt_compiler_flag:'`
11891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11892 (eval "$lt_compile" 2>conftest.err)
11893 ac_status=$?
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 if (exit $ac_status) && test -s "$ac_outfile"; then
11897 # The compiler can only warn and ignore the option if not recognized
11898 # So say no if there are warnings other than the usual output.
11899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11902 lt_cv_prog_compiler_pic_works_GO=yes
11905 $RM conftest*
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11909 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11911 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11912 case $lt_prog_compiler_pic_GO in
11913 "" | " "*) ;;
11914 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11915 esac
11916 else
11917 lt_prog_compiler_pic_GO=
11918 lt_prog_compiler_can_build_shared_GO=no
11926 # Check to make sure the static flag actually works.
11928 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11930 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11931 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 lt_cv_prog_compiler_static_works_GO=no
11935 save_LDFLAGS="$LDFLAGS"
11936 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11937 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11939 # The linker can only warn and ignore the option if not recognized
11940 # So say no if there are warnings
11941 if test -s conftest.err; then
11942 # Append any errors to the config.log.
11943 cat conftest.err 1>&5
11944 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11946 if diff conftest.exp conftest.er2 >/dev/null; then
11947 lt_cv_prog_compiler_static_works_GO=yes
11949 else
11950 lt_cv_prog_compiler_static_works_GO=yes
11953 $RM -r conftest*
11954 LDFLAGS="$save_LDFLAGS"
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11958 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11960 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11962 else
11963 lt_prog_compiler_static_GO=
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11971 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 lt_cv_prog_compiler_c_o_GO=no
11975 $RM -r conftest 2>/dev/null
11976 mkdir conftest
11977 cd conftest
11978 mkdir out
11979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11981 lt_compiler_flag="-o out/conftest2.$ac_objext"
11982 # Insert the option either (1) after the last *FLAGS variable, or
11983 # (2) before a word containing "conftest.", or (3) at the end.
11984 # Note that $ac_compile itself does not contain backslashes and begins
11985 # with a dollar sign (not a hyphen), so the echo should work correctly.
11986 lt_compile=`echo "$ac_compile" | $SED \
11987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11989 -e 's:$: $lt_compiler_flag:'`
11990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11991 (eval "$lt_compile" 2>out/conftest.err)
11992 ac_status=$?
11993 cat out/conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11996 then
11997 # The compiler can only warn and ignore the option if not recognized
11998 # So say no if there are warnings
11999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12002 lt_cv_prog_compiler_c_o_GO=yes
12005 chmod u+w . 2>&5
12006 $RM conftest*
12007 # SGI C++ compiler will create directory out/ii_files/ for
12008 # template instantiation
12009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12010 $RM out/* && rmdir out
12011 cd ..
12012 $RM -r conftest
12013 $RM conftest*
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12017 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12022 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12023 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 lt_cv_prog_compiler_c_o_GO=no
12027 $RM -r conftest 2>/dev/null
12028 mkdir conftest
12029 cd conftest
12030 mkdir out
12031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12033 lt_compiler_flag="-o out/conftest2.$ac_objext"
12034 # Insert the option either (1) after the last *FLAGS variable, or
12035 # (2) before a word containing "conftest.", or (3) at the end.
12036 # Note that $ac_compile itself does not contain backslashes and begins
12037 # with a dollar sign (not a hyphen), so the echo should work correctly.
12038 lt_compile=`echo "$ac_compile" | $SED \
12039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12041 -e 's:$: $lt_compiler_flag:'`
12042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12043 (eval "$lt_compile" 2>out/conftest.err)
12044 ac_status=$?
12045 cat out/conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12048 then
12049 # The compiler can only warn and ignore the option if not recognized
12050 # So say no if there are warnings
12051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12054 lt_cv_prog_compiler_c_o_GO=yes
12057 chmod u+w . 2>&5
12058 $RM conftest*
12059 # SGI C++ compiler will create directory out/ii_files/ for
12060 # template instantiation
12061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12062 $RM out/* && rmdir out
12063 cd ..
12064 $RM -r conftest
12065 $RM conftest*
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12069 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12074 hard_links="nottested"
12075 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12076 # do not overwrite the value of need_locks provided by the user
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12078 $as_echo_n "checking if we can lock with hard links... " >&6; }
12079 hard_links=yes
12080 $RM conftest*
12081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12082 touch conftest.a
12083 ln conftest.a conftest.b 2>&5 || hard_links=no
12084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12086 $as_echo "$hard_links" >&6; }
12087 if test "$hard_links" = no; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12089 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12090 need_locks=warn
12092 else
12093 need_locks=no
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12099 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12101 runpath_var=
12102 allow_undefined_flag_GO=
12103 always_export_symbols_GO=no
12104 archive_cmds_GO=
12105 archive_expsym_cmds_GO=
12106 compiler_needs_object_GO=no
12107 enable_shared_with_static_runtimes_GO=no
12108 export_dynamic_flag_spec_GO=
12109 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12110 hardcode_automatic_GO=no
12111 hardcode_direct_GO=no
12112 hardcode_direct_absolute_GO=no
12113 hardcode_libdir_flag_spec_GO=
12114 hardcode_libdir_flag_spec_ld_GO=
12115 hardcode_libdir_separator_GO=
12116 hardcode_minus_L_GO=no
12117 hardcode_shlibpath_var_GO=unsupported
12118 inherit_rpath_GO=no
12119 link_all_deplibs_GO=unknown
12120 module_cmds_GO=
12121 module_expsym_cmds_GO=
12122 old_archive_from_new_cmds_GO=
12123 old_archive_from_expsyms_cmds_GO=
12124 thread_safe_flag_spec_GO=
12125 whole_archive_flag_spec_GO=
12126 # include_expsyms should be a list of space-separated symbols to be *always*
12127 # included in the symbol list
12128 include_expsyms_GO=
12129 # exclude_expsyms can be an extended regexp of symbols to exclude
12130 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12132 # as well as any symbol that contains `d'.
12133 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12135 # platforms (ab)use it in PIC code, but their linkers get confused if
12136 # the symbol is explicitly referenced. Since portable code cannot
12137 # rely on this symbol name, it's probably fine to never include it in
12138 # preloaded symbol tables.
12139 # Exclude shared library initialization/finalization symbols.
12140 extract_expsyms_cmds=
12142 case $host_os in
12143 cygwin* | mingw* | pw32* | cegcc*)
12144 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12145 # When not using gcc, we currently assume that we are using
12146 # Microsoft Visual C++.
12147 if test "$GCC" != yes; then
12148 with_gnu_ld=no
12151 interix*)
12152 # we just hope/assume this is gcc and not c89 (= MSVC++)
12153 with_gnu_ld=yes
12155 openbsd*)
12156 with_gnu_ld=no
12158 esac
12160 ld_shlibs_GO=yes
12162 # On some targets, GNU ld is compatible enough with the native linker
12163 # that we're better off using the native interface for both.
12164 lt_use_gnu_ld_interface=no
12165 if test "$with_gnu_ld" = yes; then
12166 case $host_os in
12167 aix*)
12168 # The AIX port of GNU ld has always aspired to compatibility
12169 # with the native linker. However, as the warning in the GNU ld
12170 # block says, versions before 2.19.5* couldn't really create working
12171 # shared libraries, regardless of the interface used.
12172 case `$LD -v 2>&1` in
12173 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12174 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12175 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12177 lt_use_gnu_ld_interface=yes
12179 esac
12182 lt_use_gnu_ld_interface=yes
12184 esac
12187 if test "$lt_use_gnu_ld_interface" = yes; then
12188 # If archive_cmds runs LD, not CC, wlarc should be empty
12189 wlarc='${wl}'
12191 # Set some defaults for GNU ld with shared library support. These
12192 # are reset later if shared libraries are not supported. Putting them
12193 # here allows them to be overridden if necessary.
12194 runpath_var=LD_RUN_PATH
12195 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12196 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12197 # ancient GNU ld didn't support --whole-archive et. al.
12198 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12199 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12200 else
12201 whole_archive_flag_spec_GO=
12203 supports_anon_versioning=no
12204 case `$LD -v 2>&1` in
12205 *GNU\ gold*) supports_anon_versioning=yes ;;
12206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12209 *\ 2.11.*) ;; # other 2.11 versions
12210 *) supports_anon_versioning=yes ;;
12211 esac
12213 # See if GNU ld supports shared libraries.
12214 case $host_os in
12215 aix[3-9]*)
12216 # On AIX/PPC, the GNU linker is very broken
12217 if test "$host_cpu" != ia64; then
12218 ld_shlibs_GO=no
12219 cat <<_LT_EOF 1>&2
12221 *** Warning: the GNU linker, at least up to release 2.19, is reported
12222 *** to be unable to reliably create shared libraries on AIX.
12223 *** Therefore, libtool is disabling shared libraries support. If you
12224 *** really care for shared libraries, you may want to install binutils
12225 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12226 *** You will then need to restart the configuration process.
12228 _LT_EOF
12232 amigaos*)
12233 case $host_cpu in
12234 powerpc)
12235 # see comment about AmigaOS4 .so support
12236 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 archive_expsym_cmds_GO=''
12239 m68k)
12240 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)'
12241 hardcode_libdir_flag_spec_GO='-L$libdir'
12242 hardcode_minus_L_GO=yes
12244 esac
12247 beos*)
12248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12249 allow_undefined_flag_GO=unsupported
12250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12251 # support --undefined. This deserves some investigation. FIXME
12252 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253 else
12254 ld_shlibs_GO=no
12258 cygwin* | mingw* | pw32* | cegcc*)
12259 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12260 # as there is no search path for DLLs.
12261 hardcode_libdir_flag_spec_GO='-L$libdir'
12262 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12263 allow_undefined_flag_GO=unsupported
12264 always_export_symbols_GO=no
12265 enable_shared_with_static_runtimes_GO=yes
12266 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12268 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12269 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12270 # If the export-symbols file already is a .def file (1st line
12271 # is EXPORTS), use it as is; otherwise, prepend...
12272 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12273 cp $export_symbols $output_objdir/$soname.def;
12274 else
12275 echo EXPORTS > $output_objdir/$soname.def;
12276 cat $export_symbols >> $output_objdir/$soname.def;
12278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12279 else
12280 ld_shlibs_GO=no
12284 haiku*)
12285 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286 link_all_deplibs_GO=yes
12289 interix[3-9]*)
12290 hardcode_direct_GO=no
12291 hardcode_shlibpath_var_GO=no
12292 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12293 export_dynamic_flag_spec_GO='${wl}-E'
12294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12295 # Instead, shared libraries are loaded at an image base (0x10000000 by
12296 # default) and relocated if they conflict, which is a slow very memory
12297 # consuming and fragmenting process. To avoid this, we pick a random,
12298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12300 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'
12301 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'
12304 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12305 tmp_diet=no
12306 if test "$host_os" = linux-dietlibc; then
12307 case $cc_basename in
12308 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12309 esac
12311 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12312 && test "$tmp_diet" = no
12313 then
12314 tmp_addflag=
12315 tmp_sharedflag='-shared'
12316 case $cc_basename,$host_cpu in
12317 pgcc*) # Portland Group C compiler
12318 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'
12319 tmp_addflag=' $pic_flag'
12321 pgf77* | pgf90* | pgf95* | pgfortran*)
12322 # Portland Group f77 and f90 compilers
12323 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'
12324 tmp_addflag=' $pic_flag -Mnomain' ;;
12325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12326 tmp_addflag=' -i_dynamic' ;;
12327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12328 tmp_addflag=' -i_dynamic -nofor_main' ;;
12329 ifc* | ifort*) # Intel Fortran compiler
12330 tmp_addflag=' -nofor_main' ;;
12331 lf95*) # Lahey Fortran 8.1
12332 whole_archive_flag_spec_GO=
12333 tmp_sharedflag='--shared' ;;
12334 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12335 tmp_sharedflag='-qmkshrobj'
12336 tmp_addflag= ;;
12337 nvcc*) # Cuda Compiler Driver 2.2
12338 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12339 compiler_needs_object_GO=yes
12341 esac
12342 case `$CC -V 2>&1 | sed 5q` in
12343 *Sun\ C*) # Sun C 5.9
12344 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'
12345 compiler_needs_object_GO=yes
12346 tmp_sharedflag='-G' ;;
12347 *Sun\ F*) # Sun Fortran 8.3
12348 tmp_sharedflag='-G' ;;
12349 esac
12350 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12352 if test "x$supports_anon_versioning" = xyes; then
12353 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12355 echo "local: *; };" >> $output_objdir/$libname.ver~
12356 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12359 case $cc_basename in
12360 xlf* | bgf* | bgxlf* | mpixlf*)
12361 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12362 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12363 hardcode_libdir_flag_spec_GO=
12364 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12365 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12366 if test "x$supports_anon_versioning" = xyes; then
12367 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12369 echo "local: *; };" >> $output_objdir/$libname.ver~
12370 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12373 esac
12374 else
12375 ld_shlibs_GO=no
12379 netbsd*)
12380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12381 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12382 wlarc=
12383 else
12384 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12385 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12389 solaris*)
12390 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12391 ld_shlibs_GO=no
12392 cat <<_LT_EOF 1>&2
12394 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12395 *** create shared libraries on Solaris systems. Therefore, libtool
12396 *** is disabling shared libraries support. We urge you to upgrade GNU
12397 *** binutils to release 2.9.1 or newer. Another option is to modify
12398 *** your PATH or compiler configuration so that the native linker is
12399 *** used, and then restart.
12401 _LT_EOF
12402 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12403 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12405 else
12406 ld_shlibs_GO=no
12410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12411 case `$LD -v 2>&1` in
12412 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12413 ld_shlibs_GO=no
12414 cat <<_LT_EOF 1>&2
12416 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12417 *** reliably create shared libraries on SCO systems. Therefore, libtool
12418 *** is disabling shared libraries support. We urge you to upgrade GNU
12419 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12420 *** your PATH or compiler configuration so that the native linker is
12421 *** used, and then restart.
12423 _LT_EOF
12426 # For security reasons, it is highly recommended that you always
12427 # use absolute paths for naming shared libraries, and exclude the
12428 # DT_RUNPATH tag from executables and libraries. But doing so
12429 # requires that you compile everything twice, which is a pain.
12430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12431 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12432 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12434 else
12435 ld_shlibs_GO=no
12438 esac
12441 sunos4*)
12442 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12443 wlarc=
12444 hardcode_direct_GO=yes
12445 hardcode_shlibpath_var_GO=no
12449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12450 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12451 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12452 else
12453 ld_shlibs_GO=no
12456 esac
12458 if test "$ld_shlibs_GO" = no; then
12459 runpath_var=
12460 hardcode_libdir_flag_spec_GO=
12461 export_dynamic_flag_spec_GO=
12462 whole_archive_flag_spec_GO=
12464 else
12465 # PORTME fill in a description of your system's linker (not GNU ld)
12466 case $host_os in
12467 aix3*)
12468 allow_undefined_flag_GO=unsupported
12469 always_export_symbols_GO=yes
12470 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'
12471 # Note: this linker hardcodes the directories in LIBPATH if there
12472 # are no directories specified by -L.
12473 hardcode_minus_L_GO=yes
12474 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12475 # Neither direct hardcoding nor static linking is supported with a
12476 # broken collect2.
12477 hardcode_direct_GO=unsupported
12481 aix[4-9]*)
12482 if test "$host_cpu" = ia64; then
12483 # On IA64, the linker does run time linking by default, so we don't
12484 # have to do anything special.
12485 aix_use_runtimelinking=no
12486 exp_sym_flag='-Bexport'
12487 no_entry_flag=""
12488 else
12489 # If we're using GNU nm, then we don't want the "-C" option.
12490 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12491 # Also, AIX nm treats weak defined symbols like other global
12492 # defined symbols, whereas GNU nm marks them as "W".
12493 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12494 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'
12495 else
12496 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'
12498 aix_use_runtimelinking=no
12500 # Test if we are trying to use run time linking or normal
12501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12502 # need to do runtime linking.
12503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12504 for ld_flag in $LDFLAGS; do
12505 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12506 aix_use_runtimelinking=yes
12507 break
12509 done
12511 esac
12513 exp_sym_flag='-bexport'
12514 no_entry_flag='-bnoentry'
12517 # When large executables or shared objects are built, AIX ld can
12518 # have problems creating the table of contents. If linking a library
12519 # or program results in "error TOC overflow" add -mminimal-toc to
12520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12523 archive_cmds_GO=''
12524 hardcode_direct_GO=yes
12525 hardcode_direct_absolute_GO=yes
12526 hardcode_libdir_separator_GO=':'
12527 link_all_deplibs_GO=yes
12528 file_list_spec_GO='${wl}-f,'
12530 if test "$GCC" = yes; then
12531 case $host_os in aix4.[012]|aix4.[012].*)
12532 # We only want to do this on AIX 4.2 and lower, the check
12533 # below for broken collect2 doesn't work under 4.3+
12534 collect2name=`${CC} -print-prog-name=collect2`
12535 if test -f "$collect2name" &&
12536 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12537 then
12538 # We have reworked collect2
12540 else
12541 # We have old collect2
12542 hardcode_direct_GO=unsupported
12543 # It fails to find uninstalled libraries when the uninstalled
12544 # path is not listed in the libpath. Setting hardcode_minus_L
12545 # to unsupported forces relinking
12546 hardcode_minus_L_GO=yes
12547 hardcode_libdir_flag_spec_GO='-L$libdir'
12548 hardcode_libdir_separator_GO=
12551 esac
12552 shared_flag='-shared'
12553 if test "$aix_use_runtimelinking" = yes; then
12554 shared_flag="$shared_flag "'${wl}-G'
12556 else
12557 # not using gcc
12558 if test "$host_cpu" = ia64; then
12559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12560 # chokes on -Wl,-G. The following line is correct:
12561 shared_flag='-G'
12562 else
12563 if test "$aix_use_runtimelinking" = yes; then
12564 shared_flag='${wl}-G'
12565 else
12566 shared_flag='${wl}-bM:SRE'
12571 export_dynamic_flag_spec_GO='${wl}-bexpall'
12572 # It seems that -bexpall does not export symbols beginning with
12573 # underscore (_), so it is better to generate a list of symbols to export.
12574 always_export_symbols_GO=yes
12575 if test "$aix_use_runtimelinking" = yes; then
12576 # Warning - without using the other runtime loading flags (-brtl),
12577 # -berok will link without error, but may produce a broken library.
12578 allow_undefined_flag_GO='-berok'
12579 # Determine the default libpath from the value encoded in an
12580 # empty executable.
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12585 main ()
12589 return 0;
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12594 lt_aix_libpath_sed='
12595 /Import File Strings/,/^$/ {
12596 /^0/ {
12597 s/^0 *\(.*\)$/\1/
12601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12602 # Check for a 64-bit object if we didn't find anything.
12603 if test -z "$aix_libpath"; then
12604 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12607 rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12611 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12612 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"
12613 else
12614 if test "$host_cpu" = ia64; then
12615 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12616 allow_undefined_flag_GO="-z nodefs"
12617 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"
12618 else
12619 # Determine the default libpath from the value encoded in an
12620 # empty executable.
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12625 main ()
12629 return 0;
12631 _ACEOF
12632 if ac_fn_c_try_link "$LINENO"; then :
12634 lt_aix_libpath_sed='
12635 /Import File Strings/,/^$/ {
12636 /^0/ {
12637 s/^0 *\(.*\)$/\1/
12641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642 # Check for a 64-bit object if we didn't find anything.
12643 if test -z "$aix_libpath"; then
12644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12651 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12652 # Warning - without using the other run time loading flags,
12653 # -berok will link without error, but may produce a broken library.
12654 no_undefined_flag_GO=' ${wl}-bernotok'
12655 allow_undefined_flag_GO=' ${wl}-berok'
12656 if test "$with_gnu_ld" = yes; then
12657 # We only use this code for GNU lds that support --whole-archive.
12658 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12659 else
12660 # Exported symbols can be pulled into shared objects from archives
12661 whole_archive_flag_spec_GO='$convenience'
12663 archive_cmds_need_lc_GO=yes
12664 # This is similar to how AIX traditionally builds its shared libraries.
12665 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'
12670 amigaos*)
12671 case $host_cpu in
12672 powerpc)
12673 # see comment about AmigaOS4 .so support
12674 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12675 archive_expsym_cmds_GO=''
12677 m68k)
12678 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)'
12679 hardcode_libdir_flag_spec_GO='-L$libdir'
12680 hardcode_minus_L_GO=yes
12682 esac
12685 bsdi[45]*)
12686 export_dynamic_flag_spec_GO=-rdynamic
12689 cygwin* | mingw* | pw32* | cegcc*)
12690 # When not using gcc, we currently assume that we are using
12691 # Microsoft Visual C++.
12692 # hardcode_libdir_flag_spec is actually meaningless, as there is
12693 # no search path for DLLs.
12694 hardcode_libdir_flag_spec_GO=' '
12695 allow_undefined_flag_GO=unsupported
12696 # Tell ltmain to make .lib files, not .a files.
12697 libext=lib
12698 # Tell ltmain to make .dll files, not .so files.
12699 shrext_cmds=".dll"
12700 # FIXME: Setting linknames here is a bad hack.
12701 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12702 # The linker will automatically build a .lib file if we build a DLL.
12703 old_archive_from_new_cmds_GO='true'
12704 # FIXME: Should let the user specify the lib program.
12705 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12706 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12707 enable_shared_with_static_runtimes_GO=yes
12710 darwin* | rhapsody*)
12713 archive_cmds_need_lc_GO=no
12714 hardcode_direct_GO=no
12715 hardcode_automatic_GO=yes
12716 hardcode_shlibpath_var_GO=unsupported
12717 if test "$lt_cv_ld_force_load" = "yes"; then
12718 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\"`'
12719 else
12720 whole_archive_flag_spec_GO=''
12722 link_all_deplibs_GO=yes
12723 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12724 case $cc_basename in
12725 ifort*) _lt_dar_can_shared=yes ;;
12726 *) _lt_dar_can_shared=$GCC ;;
12727 esac
12728 if test "$_lt_dar_can_shared" = "yes"; then
12729 output_verbose_link_cmd=func_echo_all
12730 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}"
12731 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12732 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}"
12733 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}"
12735 else
12736 ld_shlibs_GO=no
12741 dgux*)
12742 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12743 hardcode_libdir_flag_spec_GO='-L$libdir'
12744 hardcode_shlibpath_var_GO=no
12747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12748 # support. Future versions do this automatically, but an explicit c++rt0.o
12749 # does not break anything, and helps significantly (at the cost of a little
12750 # extra space).
12751 freebsd2.2*)
12752 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12753 hardcode_libdir_flag_spec_GO='-R$libdir'
12754 hardcode_direct_GO=yes
12755 hardcode_shlibpath_var_GO=no
12758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12759 freebsd2.*)
12760 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12761 hardcode_direct_GO=yes
12762 hardcode_minus_L_GO=yes
12763 hardcode_shlibpath_var_GO=no
12766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12767 freebsd* | dragonfly*)
12768 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12769 hardcode_libdir_flag_spec_GO='-R$libdir'
12770 hardcode_direct_GO=yes
12771 hardcode_shlibpath_var_GO=no
12774 hpux9*)
12775 if test "$GCC" = yes; then
12776 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'
12777 else
12778 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'
12780 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12781 hardcode_libdir_separator_GO=:
12782 hardcode_direct_GO=yes
12784 # hardcode_minus_L: Not really in the search PATH,
12785 # but as the default location of the library.
12786 hardcode_minus_L_GO=yes
12787 export_dynamic_flag_spec_GO='${wl}-E'
12790 hpux10*)
12791 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12792 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12793 else
12794 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12796 if test "$with_gnu_ld" = no; then
12797 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12798 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12799 hardcode_libdir_separator_GO=:
12800 hardcode_direct_GO=yes
12801 hardcode_direct_absolute_GO=yes
12802 export_dynamic_flag_spec_GO='${wl}-E'
12803 # hardcode_minus_L: Not really in the search PATH,
12804 # but as the default location of the library.
12805 hardcode_minus_L_GO=yes
12809 hpux11*)
12810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12811 case $host_cpu in
12812 hppa*64*)
12813 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12815 ia64*)
12816 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12819 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12821 esac
12822 else
12823 case $host_cpu in
12824 hppa*64*)
12825 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12827 ia64*)
12828 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12831 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12833 esac
12835 if test "$with_gnu_ld" = no; then
12836 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12837 hardcode_libdir_separator_GO=:
12839 case $host_cpu in
12840 hppa*64*|ia64*)
12841 hardcode_direct_GO=no
12842 hardcode_shlibpath_var_GO=no
12845 hardcode_direct_GO=yes
12846 hardcode_direct_absolute_GO=yes
12847 export_dynamic_flag_spec_GO='${wl}-E'
12849 # hardcode_minus_L: Not really in the search PATH,
12850 # but as the default location of the library.
12851 hardcode_minus_L_GO=yes
12853 esac
12857 irix5* | irix6* | nonstopux*)
12858 if test "$GCC" = yes; then
12859 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'
12860 # Try to use the -exported_symbol ld option, if it does not
12861 # work, assume that -exports_file does not work either and
12862 # implicitly export all symbols.
12863 save_LDFLAGS="$LDFLAGS"
12864 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 int foo(void) {}
12868 _ACEOF
12869 if ac_fn_c_try_link "$LINENO"; then :
12870 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'
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 LDFLAGS="$save_LDFLAGS"
12876 else
12877 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'
12878 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'
12880 archive_cmds_need_lc_GO='no'
12881 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12882 hardcode_libdir_separator_GO=:
12883 inherit_rpath_GO=yes
12884 link_all_deplibs_GO=yes
12887 netbsd*)
12888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12889 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12890 else
12891 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12893 hardcode_libdir_flag_spec_GO='-R$libdir'
12894 hardcode_direct_GO=yes
12895 hardcode_shlibpath_var_GO=no
12898 newsos6)
12899 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_direct_GO=yes
12901 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12902 hardcode_libdir_separator_GO=:
12903 hardcode_shlibpath_var_GO=no
12906 *nto* | *qnx*)
12909 openbsd*)
12910 if test -f /usr/libexec/ld.so; then
12911 hardcode_direct_GO=yes
12912 hardcode_shlibpath_var_GO=no
12913 hardcode_direct_absolute_GO=yes
12914 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12915 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12916 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12917 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12918 export_dynamic_flag_spec_GO='${wl}-E'
12919 else
12920 case $host_os in
12921 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12922 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12923 hardcode_libdir_flag_spec_GO='-R$libdir'
12926 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12927 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12929 esac
12931 else
12932 ld_shlibs_GO=no
12936 os2*)
12937 hardcode_libdir_flag_spec_GO='-L$libdir'
12938 hardcode_minus_L_GO=yes
12939 allow_undefined_flag_GO=unsupported
12940 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'
12941 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12944 osf3*)
12945 if test "$GCC" = yes; then
12946 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12947 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'
12948 else
12949 allow_undefined_flag_GO=' -expect_unresolved \*'
12950 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'
12952 archive_cmds_need_lc_GO='no'
12953 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12954 hardcode_libdir_separator_GO=:
12957 osf4* | osf5*) # as osf3* with the addition of -msym flag
12958 if test "$GCC" = yes; then
12959 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12960 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
12961 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12962 else
12963 allow_undefined_flag_GO=' -expect_unresolved \*'
12964 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'
12965 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~
12966 $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'
12968 # Both c and cxx compiler support -rpath directly
12969 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12971 archive_cmds_need_lc_GO='no'
12972 hardcode_libdir_separator_GO=:
12975 solaris*)
12976 no_undefined_flag_GO=' -z defs'
12977 if test "$GCC" = yes; then
12978 wlarc='${wl}'
12979 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12980 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12981 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12982 else
12983 case `$CC -V 2>&1` in
12984 *"Compilers 5.0"*)
12985 wlarc=''
12986 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12987 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12988 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12991 wlarc='${wl}'
12992 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12993 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12994 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12996 esac
12998 hardcode_libdir_flag_spec_GO='-R$libdir'
12999 hardcode_shlibpath_var_GO=no
13000 case $host_os in
13001 solaris2.[0-5] | solaris2.[0-5].*) ;;
13003 # The compiler driver will combine and reorder linker options,
13004 # but understands `-z linker_flag'. GCC discards it without `$wl',
13005 # but is careful enough not to reorder.
13006 # Supported since Solaris 2.6 (maybe 2.5.1?)
13007 if test "$GCC" = yes; then
13008 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13009 else
13010 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13013 esac
13014 link_all_deplibs_GO=yes
13017 sunos4*)
13018 if test "x$host_vendor" = xsequent; then
13019 # Use $CC to link under sequent, because it throws in some extra .o
13020 # files that make .init and .fini sections work.
13021 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13022 else
13023 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13025 hardcode_libdir_flag_spec_GO='-L$libdir'
13026 hardcode_direct_GO=yes
13027 hardcode_minus_L_GO=yes
13028 hardcode_shlibpath_var_GO=no
13031 sysv4)
13032 case $host_vendor in
13033 sni)
13034 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13035 hardcode_direct_GO=yes # is this really true???
13037 siemens)
13038 ## LD is ld it makes a PLAMLIB
13039 ## CC just makes a GrossModule.
13040 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13041 reload_cmds_GO='$CC -r -o $output$reload_objs'
13042 hardcode_direct_GO=no
13044 motorola)
13045 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13046 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13048 esac
13049 runpath_var='LD_RUN_PATH'
13050 hardcode_shlibpath_var_GO=no
13053 sysv4.3*)
13054 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13055 hardcode_shlibpath_var_GO=no
13056 export_dynamic_flag_spec_GO='-Bexport'
13059 sysv4*MP*)
13060 if test -d /usr/nec; then
13061 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13062 hardcode_shlibpath_var_GO=no
13063 runpath_var=LD_RUN_PATH
13064 hardcode_runpath_var=yes
13065 ld_shlibs_GO=yes
13069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13070 no_undefined_flag_GO='${wl}-z,text'
13071 archive_cmds_need_lc_GO=no
13072 hardcode_shlibpath_var_GO=no
13073 runpath_var='LD_RUN_PATH'
13075 if test "$GCC" = yes; then
13076 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 else
13079 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13084 sysv5* | sco3.2v5* | sco5v6*)
13085 # Note: We can NOT use -z defs as we might desire, because we do not
13086 # link with -lc, and that would cause any symbols used from libc to
13087 # always be unresolved, which means just about no library would
13088 # ever link correctly. If we're not using GNU ld we use -z text
13089 # though, which does catch some bad symbols but isn't as heavy-handed
13090 # as -z defs.
13091 no_undefined_flag_GO='${wl}-z,text'
13092 allow_undefined_flag_GO='${wl}-z,nodefs'
13093 archive_cmds_need_lc_GO=no
13094 hardcode_shlibpath_var_GO=no
13095 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13096 hardcode_libdir_separator_GO=':'
13097 link_all_deplibs_GO=yes
13098 export_dynamic_flag_spec_GO='${wl}-Bexport'
13099 runpath_var='LD_RUN_PATH'
13101 if test "$GCC" = yes; then
13102 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 else
13105 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13110 uts4*)
13111 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13112 hardcode_libdir_flag_spec_GO='-L$libdir'
13113 hardcode_shlibpath_var_GO=no
13117 ld_shlibs_GO=no
13119 esac
13121 if test x$host_vendor = xsni; then
13122 case $host in
13123 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13124 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13126 esac
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13131 $as_echo "$ld_shlibs_GO" >&6; }
13132 test "$ld_shlibs_GO" = no && can_build_shared=no
13134 with_gnu_ld_GO=$with_gnu_ld
13142 # Do we need to explicitly link libc?
13144 case "x$archive_cmds_need_lc_GO" in
13145 x|xyes)
13146 # Assume -lc should be added
13147 archive_cmds_need_lc_GO=yes
13149 if test "$enable_shared" = yes && test "$GCC" = yes; then
13150 case $archive_cmds_GO in
13151 *'~'*)
13152 # FIXME: we may have to deal with multi-command sequences.
13154 '$CC '*)
13155 # Test whether the compiler implicitly links with -lc since on some
13156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13157 # to ld, don't add -lc before -lgcc.
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13159 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13160 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 $RM conftest*
13164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13167 (eval $ac_compile) 2>&5
13168 ac_status=$?
13169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13170 test $ac_status = 0; } 2>conftest.err; then
13171 soname=conftest
13172 lib=conftest
13173 libobjs=conftest.$ac_objext
13174 deplibs=
13175 wl=$lt_prog_compiler_wl_GO
13176 pic_flag=$lt_prog_compiler_pic_GO
13177 compiler_flags=-v
13178 linker_flags=-v
13179 verstring=
13180 output_objdir=.
13181 libname=conftest
13182 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13183 allow_undefined_flag_GO=
13184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13185 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13186 ac_status=$?
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }
13189 then
13190 lt_cv_archive_cmds_need_lc_GO=no
13191 else
13192 lt_cv_archive_cmds_need_lc_GO=yes
13194 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13195 else
13196 cat conftest.err 1>&5
13198 $RM conftest*
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13202 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13203 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13205 esac
13208 esac
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13274 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13275 hardcode_action_GO=
13276 if test -n "$hardcode_libdir_flag_spec_GO" ||
13277 test -n "$runpath_var_GO" ||
13278 test "X$hardcode_automatic_GO" = "Xyes" ; then
13280 # We can hardcode non-existent directories.
13281 if test "$hardcode_direct_GO" != no &&
13282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13283 # have to relink, otherwise we might link with an installed library
13284 # when we should be linking with a yet-to-be-installed one
13285 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13286 test "$hardcode_minus_L_GO" != no; then
13287 # Linking always hardcodes the temporary library directory.
13288 hardcode_action_GO=relink
13289 else
13290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13291 hardcode_action_GO=immediate
13293 else
13294 # We cannot hardcode anything, or else we can only hardcode existing
13295 # directories.
13296 hardcode_action_GO=unsupported
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13299 $as_echo "$hardcode_action_GO" >&6; }
13301 if test "$hardcode_action_GO" = relink ||
13302 test "$inherit_rpath_GO" = yes; then
13303 # Fast installation is not supported
13304 enable_fast_install=no
13305 elif test "$shlibpath_overrides_runpath" = yes ||
13306 test "$enable_shared" = no; then
13307 # Fast installation is not necessary
13308 enable_fast_install=needless
13319 ac_ext=c
13320 ac_cpp='$CPP $CPPFLAGS'
13321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13326 GCC=$lt_save_GCC
13327 CC="$lt_save_CC"
13332 ac_config_commands="$ac_config_commands libtool"
13337 # Only expand once:
13343 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13346 for ac_prog in gawk mawk nawk awk
13348 # Extract the first word of "$ac_prog", so it can be a program name with args.
13349 set dummy $ac_prog; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if test "${ac_cv_prog_AWK+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 if test -n "$AWK"; then
13356 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365 ac_cv_prog_AWK="$ac_prog"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13369 done
13370 done
13371 IFS=$as_save_IFS
13375 AWK=$ac_cv_prog_AWK
13376 if test -n "$AWK"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13378 $as_echo "$AWK" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13385 test -n "$AWK" && break
13386 done
13389 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13392 # Check whether --enable-werror was given.
13393 if test "${enable_werror+set}" = set; then :
13394 enableval=$enable_werror;
13397 if test "x$enable_werror" != "xno"; then
13398 WERROR="-Werror"
13402 glibgo_toolexecdir=no
13403 glibgo_toolexeclibdir=no
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13406 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13407 # Check whether --enable-version-specific-runtime-libs was given.
13408 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13409 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13410 yes) version_specific_libs=yes ;;
13411 no) version_specific_libs=no ;;
13412 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13413 esac
13414 else
13415 version_specific_libs=no
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13419 $as_echo "$version_specific_libs" >&6; }
13421 # Version-specific runtime libs processing.
13422 if test $version_specific_libs = yes; then
13423 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13424 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13427 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13428 # Install a library built with a cross compiler in tooldir, not libdir.
13429 if test -n "$with_cross_host" &&
13430 test x"$with_cross_host" != x"no"; then
13431 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13432 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13433 else
13434 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13435 nover_glibgo_toolexeclibdir='${libdir}'
13437 multi_os_directory=`$GOC -print-multi-os-directory`
13438 case $multi_os_directory in
13439 .) ;; # Avoid trailing /.
13440 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13441 esac
13443 if test x"$glibgo_toolexecdir" = x"no"; then
13444 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13445 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13452 # See if the user wants to configure without libffi. Some
13453 # architectures don't support it. FIXME: We should set a default
13454 # based on the host.
13456 # Check whether --with-libffi was given.
13457 if test "${with_libffi+set}" = set; then :
13458 withval=$with_libffi; :
13459 else
13460 with_libffi=${with_libffi_default-yes}
13464 LIBFFI=
13465 LIBFFIINCS=
13466 if test "$with_libffi" != no; then
13468 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13470 LIBFFI=../libffi/libffi_convenience.la
13471 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13475 if test "$with_liffi" != "no"; then
13476 USE_LIBFFI_TRUE=
13477 USE_LIBFFI_FALSE='#'
13478 else
13479 USE_LIBFFI_TRUE='#'
13480 USE_LIBFFI_FALSE=
13484 # See if the user wants to configure without libatomic. This is useful if we are
13485 # on an architecture for which libgo does not need an atomic support library and
13486 # libatomic does not support our C compiler.
13488 # Check whether --with-libatomic was given.
13489 if test "${with_libatomic+set}" = set; then :
13490 withval=$with_libatomic; :
13491 else
13492 with_libatomic=${with_libatomic_default-yes}
13496 LIBATOMIC=
13497 if test "$with_libatomic" != no; then
13498 LIBATOMIC=../libatomic/libatomic_convenience.la
13502 # Used to tell GNU make to include a file without telling automake to
13503 # include it.
13504 go_include="-include"
13507 # All known GOOS values. This is the union of all operating systems
13508 # supported by the gofrontend and all operating systems supported by
13509 # the gc toolchain.
13510 ALLGOOS="android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
13512 is_darwin=no
13513 is_freebsd=no
13514 is_irix=no
13515 is_linux=no
13516 is_netbsd=no
13517 is_openbsd=no
13518 is_dragonfly=no
13519 is_rtems=no
13520 is_solaris=no
13521 GOOS=unknown
13522 case ${host} in
13523 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13524 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13525 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13526 *-*-linux*) is_linux=yes; GOOS=linux ;;
13527 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13528 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13529 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13530 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13531 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13532 esac
13533 if test $is_darwin = yes; then
13534 LIBGO_IS_DARWIN_TRUE=
13535 LIBGO_IS_DARWIN_FALSE='#'
13536 else
13537 LIBGO_IS_DARWIN_TRUE='#'
13538 LIBGO_IS_DARWIN_FALSE=
13541 if test $is_freebsd = yes; then
13542 LIBGO_IS_FREEBSD_TRUE=
13543 LIBGO_IS_FREEBSD_FALSE='#'
13544 else
13545 LIBGO_IS_FREEBSD_TRUE='#'
13546 LIBGO_IS_FREEBSD_FALSE=
13549 if test $is_irix = yes; then
13550 LIBGO_IS_IRIX_TRUE=
13551 LIBGO_IS_IRIX_FALSE='#'
13552 else
13553 LIBGO_IS_IRIX_TRUE='#'
13554 LIBGO_IS_IRIX_FALSE=
13557 if test $is_linux = yes; then
13558 LIBGO_IS_LINUX_TRUE=
13559 LIBGO_IS_LINUX_FALSE='#'
13560 else
13561 LIBGO_IS_LINUX_TRUE='#'
13562 LIBGO_IS_LINUX_FALSE=
13565 if test $is_netbsd = yes; then
13566 LIBGO_IS_NETBSD_TRUE=
13567 LIBGO_IS_NETBSD_FALSE='#'
13568 else
13569 LIBGO_IS_NETBSD_TRUE='#'
13570 LIBGO_IS_NETBSD_FALSE=
13573 if test $is_openbsd = yes; then
13574 LIBGO_IS_OPENBSD_TRUE=
13575 LIBGO_IS_OPENBSD_FALSE='#'
13576 else
13577 LIBGO_IS_OPENBSD_TRUE='#'
13578 LIBGO_IS_OPENBSD_FALSE=
13581 if test $is_dragonfly = yes; then
13582 LIBGO_IS_DRAGONFLY_TRUE=
13583 LIBGO_IS_DRAGONFLY_FALSE='#'
13584 else
13585 LIBGO_IS_DRAGONFLY_TRUE='#'
13586 LIBGO_IS_DRAGONFLY_FALSE=
13589 if test $is_rtems = yes; then
13590 LIBGO_IS_RTEMS_TRUE=
13591 LIBGO_IS_RTEMS_FALSE='#'
13592 else
13593 LIBGO_IS_RTEMS_TRUE='#'
13594 LIBGO_IS_RTEMS_FALSE=
13597 if test $is_solaris = yes; then
13598 LIBGO_IS_SOLARIS_TRUE=
13599 LIBGO_IS_SOLARIS_FALSE='#'
13600 else
13601 LIBGO_IS_SOLARIS_TRUE='#'
13602 LIBGO_IS_SOLARIS_FALSE=
13605 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13606 LIBGO_IS_BSD_TRUE=
13607 LIBGO_IS_BSD_FALSE='#'
13608 else
13609 LIBGO_IS_BSD_TRUE='#'
13610 LIBGO_IS_BSD_FALSE=
13616 USE_DEJAGNU=no
13617 case ${host} in
13618 *-*-rtems*) USE_DEJAGNU=yes ;;
13619 ${build}) ;;
13620 *) USE_DEJAGNU=yes ;;
13621 esac
13624 # All known GOARCH values. This is the union of all architectures
13625 # supported by the gofrontend and all architectures supported by the
13626 # gc toolchain.
13627 # N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
13628 ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mipso32 mipsn32 mipso64 mipsn64 mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x sparc sparc64"
13630 # All known GOARCH_FAMILY values.
13631 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64"
13633 GOARCH=unknown
13634 GOARCH_FAMILY=unknown
13635 GOARCH_BIGENDIAN=0
13636 GOARCH_CACHELINESIZE=64
13637 GOARCH_PHYSPAGESIZE=4096
13638 GOARCH_PCQUANTUM=1
13639 GOARCH_INT64ALIGN=8
13640 GOARCH_HUGEPAGESIZE=0
13641 GOARCH_MINFRAMESIZE=0
13642 case ${host} in
13643 alpha*-*-*)
13644 GOARCH=alpha
13645 GOARCH_FAMILY=ALPHA
13646 GOARCH_PHYSPAGESIZE=8192
13647 GOARCH_PCQUANTUM=4
13649 aarch64-*-*)
13650 GOARCH=arm64
13651 GOARCH_FAMILY=ARM64
13652 GOARCH_CACHELINESIZE=32
13653 GOARCH_PHYSPAGESIZE=65536
13654 GOARCH_PCQUANTUM=4
13655 GOARCH_MINFRAMESIZE=8
13657 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13658 GOARCH=arm
13659 GOARCH_FAMILY=ARM
13660 GOARCH_CACHELINESIZE=32
13661 GOARCH_PCQUANTUM=4
13662 GOARCH_MINFRAMESIZE=4
13664 i[34567]86-*-* | x86_64-*-*)
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13668 #ifdef __x86_64__
13669 #error 64-bit
13670 #endif
13671 _ACEOF
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673 GOARCH=386
13674 GOARCH_FAMILY=I386
13675 GOARCH_INT64ALIGN=4
13676 GOARCH_HUGEPAGESIZE="1 << 21"
13678 else
13679 GOARCH=amd64
13680 GOARCH_FAMILY=AMD64
13681 GOARCH_HUGEPAGESIZE="1 << 21"
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 ia64-*-*)
13687 GOARCH=ia64
13688 GOARCH_FAMILY=IA64
13689 GOARCH_CACHELINESIZE=16384
13690 GOARCH_PHYSPAGESIZE=65536
13692 m68k*-*-*)
13693 GOARCH=m68k
13694 GOARCH_FAMILY=M68K
13695 GOARCH_BIGENDIAN=1
13696 GOARCH_CACHELINESIZE=16
13697 GOARCH_PCQUANTUM=4
13698 GOARCH_INT64ALIGN=2
13700 mips*-*-*)
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 #if _MIPS_SIM != _ABIO32
13705 #error not o32
13706 #endif
13707 _ACEOF
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 mips_abi="o32"
13710 else
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13714 #if _MIPS_SIM != _ABIN32
13715 #error not n32
13716 #endif
13717 _ACEOF
13718 if ac_fn_c_try_compile "$LINENO"; then :
13719 mips_abi="n32"
13720 else
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13724 #if _MIPS_SIM != _ABI64
13725 #error not n64
13726 #endif
13727 _ACEOF
13728 if ac_fn_c_try_compile "$LINENO"; then :
13729 mips_abi="n64"
13730 else
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13734 #if _MIPS_SIM != _ABIO64
13735 #error not o64
13736 #endif
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739 mips_abi="o64"
13740 else
13741 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13742 mips_abi="n32"
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 case "$mips_abi" in
13752 "o32") GOARCH=mipso32 ;;
13753 "n32") GOARCH=mipsn32 ;;
13754 "n64") GOARCH=mipsn64 ;;
13755 "o64") GOARCH=mipso64 ;;
13756 esac
13757 case "$mips_abi" in
13758 "o32" | "n32")
13759 GOARCH_FAMILY=MIPS
13760 GOARCH_MINFRAMESIZE=4
13762 "n64" | "o64")
13763 GOARCH_FAMILY=MIPS64
13764 GOARCH_MINFRAMESIZE=8
13766 esac
13767 case "${host}" in
13768 mips*el)
13771 GOARCH_BIGENDIAN=1
13773 esac
13774 GOARCH_CACHELINESIZE=32
13775 GOARCH_PHYSPAGESIZE=16384
13776 GOARCH_PCQUANTUM=4
13778 rs6000*-*-* | powerpc*-*-*)
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13782 #ifdef _ARCH_PPC64
13783 #error 64-bit
13784 #endif
13785 _ACEOF
13786 if ac_fn_c_try_compile "$LINENO"; then :
13787 GOARCH=ppc
13788 GOARCH_FAMILY=PPC
13789 GOARCH_BIGENDIAN=1
13791 else
13793 GOARCH_FAMILY=PPC64
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13797 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13798 #error 64be
13799 #endif
13800 _ACEOF
13801 if ac_fn_c_try_compile "$LINENO"; then :
13802 GOARCH=ppc64le
13804 else
13805 GOARCH=ppc64
13806 GOARCH_BIGENDIAN=1
13809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 GOARCH_PHYSPAGESIZE=65536
13813 GOARCH_PCQUANTUM=4
13814 GOARCH_MINFRAMESIZE=32
13816 s390*-*-*)
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13820 #if defined(__s390x__)
13821 #error 64-bit
13822 #endif
13823 _ACEOF
13824 if ac_fn_c_try_compile "$LINENO"; then :
13825 GOARCH=s390
13826 GOARCH_FAMILY=S390
13827 GOARCH_MINFRAMESIZE=4
13829 else
13830 GOARCH=s390x
13831 GOARCH_FAMILY=S390X
13832 GOARCH_MINFRAMESIZE=8
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 GOARCH_BIGENDIAN=1
13837 GOARCH_CACHELINESIZE=256
13838 GOARCH_PCQUANTUM=2
13840 sparc*-*-*)
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13844 #if defined(__sparcv9) || defined(__arch64__)
13845 #error 64-bit
13846 #endif
13847 _ACEOF
13848 if ac_fn_c_try_compile "$LINENO"; then :
13849 GOARCH=sparc
13850 GOARCH_FAMILY=SPARC
13852 else
13853 GOARCH=sparc64
13854 GOARCH_FAMILY=SPARC64
13857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13858 GOARCH_BIGENDIAN=1
13859 GOARCH_PHYSPAGESIZE=8192
13860 GOARCH_PCQUANTUM=4
13862 esac
13875 GO_LIBCALL_OS_FILE=
13876 GO_LIBCALL_OS_ARCH_FILE=
13877 GO_SYSCALL_OS_FILE=
13878 GO_SYSCALL_OS_ARCH_FILE=
13879 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13880 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13882 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13883 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13885 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13886 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13888 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13889 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13896 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13897 case "$target" in
13898 mips-sgi-irix6.5*)
13899 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13900 # msghdr in <sys/socket.h>.
13901 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13903 *-*-solaris2.1[01])
13904 # Solaris 10+ needs this so struct msghdr gets the msg_control
13905 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13906 # above doesn't work with C99.
13907 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13909 esac
13913 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
13915 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
13916 # with a different meaning.
13917 case ${target_os} in
13918 solaris2*)
13919 ac_save_CFLAGS="$CFLAGS"
13920 CFLAGS="$CFLAGS -Wa,-nH"
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
13923 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13928 main ()
13930 return 0;
13932 return 0;
13934 _ACEOF
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 ac_hwcap_flags=yes
13937 else
13938 ac_hwcap_flags=no
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 if test "$ac_hwcap_flags" = "yes"; then
13942 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
13945 $as_echo "$ac_hwcap_flags" >&6; }
13947 CFLAGS="$ac_save_CFLAGS"
13949 esac
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13955 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13956 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 CFLAGS_hold=$CFLAGS
13960 CFLAGS="$CFLAGS -fsplit-stack"
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963 int i;
13964 _ACEOF
13965 if ac_fn_c_try_compile "$LINENO"; then :
13966 libgo_cv_c_split_stack_supported=yes
13967 else
13968 libgo_cv_c_split_stack_supported=no
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971 CFLAGS=$CFLAGS_hold
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13974 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
13977 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
13978 if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 cat > conftest1.c << EOF
13982 extern void f();
13983 int main() { f(); return 0; }
13985 cat > conftest2.c << EOF
13986 void f() {}
13988 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
13989 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
13990 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
13991 libgo_cv_c_linker_split_non_split=yes
13992 else
13993 libgo_cv_c_linker_split_non_split=no
13995 rm -f conftest1.* conftest2.* conftest
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
13998 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14000 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14001 SPLIT_STACK=-fsplit-stack
14003 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14005 else
14006 SPLIT_STACK=
14009 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14010 USING_SPLIT_STACK_TRUE=
14011 USING_SPLIT_STACK_FALSE='#'
14012 else
14013 USING_SPLIT_STACK_TRUE='#'
14014 USING_SPLIT_STACK_FALSE=
14018 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14019 GO_SPLIT_STACK=-fno-split-stack
14020 else
14021 GO_SPLIT_STACK=
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14026 $as_echo_n "checking whether linker supports split stack... " >&6; }
14027 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 libgo_cv_c_linker_supports_split_stack=no
14031 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14032 libgo_cv_c_linker_supports_split_stack=yes
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14036 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14037 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14039 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14044 $as_echo_n "checking whether compiler is llgo... " >&6; }
14045 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 libgo_cv_c_goc_is_llgo=no
14049 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14050 libgo_cv_c_goc_is_llgo=yes
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14054 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14055 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14056 GOC_IS_LLGO_TRUE=
14057 GOC_IS_LLGO_FALSE='#'
14058 else
14059 GOC_IS_LLGO_TRUE='#'
14060 GOC_IS_LLGO_FALSE=
14064 MATH_LIBS=
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14066 $as_echo_n "checking for sqrt in -lm... " >&6; }
14067 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-lm $LIBS"
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 char sqrt ();
14083 main ()
14085 return sqrt ();
14087 return 0;
14089 _ACEOF
14090 if ac_fn_c_try_link "$LINENO"; then :
14091 ac_cv_lib_m_sqrt=yes
14092 else
14093 ac_cv_lib_m_sqrt=no
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14097 LIBS=$ac_check_lib_save_LIBS
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14100 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14101 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14102 MATH_LIBS=-lm
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14108 $as_echo_n "checking for socket libraries... " >&6; }
14109 if test "${libgo_cv_lib_sockets+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 libgo_cv_lib_sockets=
14113 libgo_check_both=no
14114 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14115 if test "x$ac_cv_func_connect" = x""yes; then :
14116 libgo_check_socket=no
14117 else
14118 libgo_check_socket=yes
14121 if test "$libgo_check_socket" = "yes"; then
14122 unset ac_cv_func_connect
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14124 $as_echo_n "checking for main in -lsocket... " >&6; }
14125 if test "${ac_cv_lib_socket_main+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 ac_check_lib_save_LIBS=$LIBS
14129 LIBS="-lsocket $LIBS"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14135 main ()
14137 return main ();
14139 return 0;
14141 _ACEOF
14142 if ac_fn_c_try_link "$LINENO"; then :
14143 ac_cv_lib_socket_main=yes
14144 else
14145 ac_cv_lib_socket_main=no
14147 rm -f core conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14149 LIBS=$ac_check_lib_save_LIBS
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14152 $as_echo "$ac_cv_lib_socket_main" >&6; }
14153 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14154 libgo_cv_lib_sockets="-lsocket"
14155 else
14156 libgo_check_both=yes
14160 if test "$libgo_check_both" = "yes"; then
14161 libgo_old_libs=$LIBS
14162 LIBS="$LIBS -lsocket -lnsl"
14163 unset ac_cv_func_accept
14164 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14165 if test "x$ac_cv_func_accept" = x""yes; then :
14166 libgo_check_nsl=no
14167 libgo_cv_lib_sockets="-lsocket -lnsl"
14170 unset ac_cv_func_accept
14171 LIBS=$libgo_old_libs
14173 unset ac_cv_func_gethostbyname
14174 libgo_old_libs="$LIBS"
14175 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14176 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14178 else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14180 $as_echo_n "checking for main in -lnsl... " >&6; }
14181 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14182 $as_echo_n "(cached) " >&6
14183 else
14184 ac_check_lib_save_LIBS=$LIBS
14185 LIBS="-lnsl $LIBS"
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14191 main ()
14193 return main ();
14195 return 0;
14197 _ACEOF
14198 if ac_fn_c_try_link "$LINENO"; then :
14199 ac_cv_lib_nsl_main=yes
14200 else
14201 ac_cv_lib_nsl_main=no
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 LIBS=$ac_check_lib_save_LIBS
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14208 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14209 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14210 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14215 unset ac_cv_func_gethostbyname
14216 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14217 if test "x$ac_cv_func_sendfile" = x""yes; then :
14219 else
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14221 $as_echo_n "checking for main in -lsendfile... " >&6; }
14222 if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 ac_check_lib_save_LIBS=$LIBS
14226 LIBS="-lsendfile $LIBS"
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14232 main ()
14234 return main ();
14236 return 0;
14238 _ACEOF
14239 if ac_fn_c_try_link "$LINENO"; then :
14240 ac_cv_lib_sendfile_main=yes
14241 else
14242 ac_cv_lib_sendfile_main=no
14244 rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14246 LIBS=$ac_check_lib_save_LIBS
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14249 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14250 if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14251 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14256 LIBS=$libgo_old_libs
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14260 $as_echo "$libgo_cv_lib_sockets" >&6; }
14261 NET_LIBS="$libgo_cv_lib_sockets"
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14265 $as_echo_n "checking whether -pthread is supported... " >&6; }
14266 if test "${libgo_cv_lib_pthread+set}" = set; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 CFLAGS_hold=$CFLAGS
14270 CFLAGS="$CFLAGS -pthread"
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14273 int i;
14274 _ACEOF
14275 if ac_fn_c_try_compile "$LINENO"; then :
14276 libgo_cv_lib_pthread=yes
14277 else
14278 libgo_cv_lib_pthread=no
14280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281 CFLAGS=$CFLAGS_hold
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14284 $as_echo "$libgo_cv_lib_pthread" >&6; }
14285 PTHREAD_CFLAGS=
14286 if test "$libgo_cv_lib_pthread" = yes; then
14287 PTHREAD_CFLAGS=-pthread
14291 PTHREAD_LIBS=
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14293 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14294 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14295 $as_echo_n "(cached) " >&6
14296 else
14297 ac_check_lib_save_LIBS=$LIBS
14298 LIBS="-lpthread $LIBS"
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14302 /* Override any GCC internal prototype to avoid an error.
14303 Use char because int might match the return type of a GCC
14304 builtin and then its argument prototype would still apply. */
14305 #ifdef __cplusplus
14306 extern "C"
14307 #endif
14308 char pthread_create ();
14310 main ()
14312 return pthread_create ();
14314 return 0;
14316 _ACEOF
14317 if ac_fn_c_try_link "$LINENO"; then :
14318 ac_cv_lib_pthread_pthread_create=yes
14319 else
14320 ac_cv_lib_pthread_pthread_create=no
14322 rm -f core conftest.err conftest.$ac_objext \
14323 conftest$ac_exeext conftest.$ac_ext
14324 LIBS=$ac_check_lib_save_LIBS
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14327 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14328 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14329 PTHREAD_LIBS=-lpthread
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14335 $as_echo_n "checking for library containing sched_yield... " >&6; }
14336 if test "${ac_cv_search_sched_yield+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 ac_func_search_save_LIBS=$LIBS
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14343 /* Override any GCC internal prototype to avoid an error.
14344 Use char because int might match the return type of a GCC
14345 builtin and then its argument prototype would still apply. */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char sched_yield ();
14351 main ()
14353 return sched_yield ();
14355 return 0;
14357 _ACEOF
14358 for ac_lib in '' rt; do
14359 if test -z "$ac_lib"; then
14360 ac_res="none required"
14361 else
14362 ac_res=-l$ac_lib
14363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14365 if ac_fn_c_try_link "$LINENO"; then :
14366 ac_cv_search_sched_yield=$ac_res
14368 rm -f core conftest.err conftest.$ac_objext \
14369 conftest$ac_exeext
14370 if test "${ac_cv_search_sched_yield+set}" = set; then :
14371 break
14373 done
14374 if test "${ac_cv_search_sched_yield+set}" = set; then :
14376 else
14377 ac_cv_search_sched_yield=no
14379 rm conftest.$ac_ext
14380 LIBS=$ac_func_search_save_LIBS
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14383 $as_echo "$ac_cv_search_sched_yield" >&6; }
14384 ac_res=$ac_cv_search_sched_yield
14385 if test "$ac_res" != no; then :
14386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14391 $as_echo_n "checking for library containing nanosleep... " >&6; }
14392 if test "${ac_cv_search_nanosleep+set}" = set; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 ac_func_search_save_LIBS=$LIBS
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14402 #ifdef __cplusplus
14403 extern "C"
14404 #endif
14405 char nanosleep ();
14407 main ()
14409 return nanosleep ();
14411 return 0;
14413 _ACEOF
14414 for ac_lib in '' rt; do
14415 if test -z "$ac_lib"; then
14416 ac_res="none required"
14417 else
14418 ac_res=-l$ac_lib
14419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14421 if ac_fn_c_try_link "$LINENO"; then :
14422 ac_cv_search_nanosleep=$ac_res
14424 rm -f core conftest.err conftest.$ac_objext \
14425 conftest$ac_exeext
14426 if test "${ac_cv_search_nanosleep+set}" = set; then :
14427 break
14429 done
14430 if test "${ac_cv_search_nanosleep+set}" = set; then :
14432 else
14433 ac_cv_search_nanosleep=no
14435 rm conftest.$ac_ext
14436 LIBS=$ac_func_search_save_LIBS
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14439 $as_echo "$ac_cv_search_nanosleep" >&6; }
14440 ac_res=$ac_cv_search_nanosleep
14441 if test "$ac_res" != no; then :
14442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14447 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14448 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 ac_func_search_save_LIBS=$LIBS
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14455 /* Override any GCC internal prototype to avoid an error.
14456 Use char because int might match the return type of a GCC
14457 builtin and then its argument prototype would still apply. */
14458 #ifdef __cplusplus
14459 extern "C"
14460 #endif
14461 char clock_gettime ();
14463 main ()
14465 return clock_gettime ();
14467 return 0;
14469 _ACEOF
14470 for ac_lib in '' rt; do
14471 if test -z "$ac_lib"; then
14472 ac_res="none required"
14473 else
14474 ac_res=-l$ac_lib
14475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14477 if ac_fn_c_try_link "$LINENO"; then :
14478 ac_cv_search_clock_gettime=$ac_res
14480 rm -f core conftest.err conftest.$ac_objext \
14481 conftest$ac_exeext
14482 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14483 break
14485 done
14486 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14488 else
14489 ac_cv_search_clock_gettime=no
14491 rm conftest.$ac_ext
14492 LIBS=$ac_func_search_save_LIBS
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14495 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14496 ac_res=$ac_cv_search_clock_gettime
14497 if test "$ac_res" != no; then :
14498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14504 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14505 if test "${ac_cv_c_bigendian+set}" = set; then :
14506 $as_echo_n "(cached) " >&6
14507 else
14508 ac_cv_c_bigendian=unknown
14509 # See if we're dealing with a universal compiler.
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14512 #ifndef __APPLE_CC__
14513 not a universal capable compiler
14514 #endif
14515 typedef int dummy;
14517 _ACEOF
14518 if ac_fn_c_try_compile "$LINENO"; then :
14520 # Check for potential -arch flags. It is not universal unless
14521 # there are at least two -arch flags with different values.
14522 ac_arch=
14523 ac_prev=
14524 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14525 if test -n "$ac_prev"; then
14526 case $ac_word in
14527 i?86 | x86_64 | ppc | ppc64)
14528 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14529 ac_arch=$ac_word
14530 else
14531 ac_cv_c_bigendian=universal
14532 break
14535 esac
14536 ac_prev=
14537 elif test "x$ac_word" = "x-arch"; then
14538 ac_prev=arch
14540 done
14542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 if test $ac_cv_c_bigendian = unknown; then
14544 # See if sys/param.h defines the BYTE_ORDER macro.
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547 #include <sys/types.h>
14548 #include <sys/param.h>
14551 main ()
14553 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14554 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14555 && LITTLE_ENDIAN)
14556 bogus endian macros
14557 #endif
14560 return 0;
14562 _ACEOF
14563 if ac_fn_c_try_compile "$LINENO"; then :
14564 # It does; now see whether it defined to BIG_ENDIAN or not.
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #include <sys/types.h>
14568 #include <sys/param.h>
14571 main ()
14573 #if BYTE_ORDER != BIG_ENDIAN
14574 not big endian
14575 #endif
14578 return 0;
14580 _ACEOF
14581 if ac_fn_c_try_compile "$LINENO"; then :
14582 ac_cv_c_bigendian=yes
14583 else
14584 ac_cv_c_bigendian=no
14586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 if test $ac_cv_c_bigendian = unknown; then
14591 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14594 #include <limits.h>
14597 main ()
14599 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14600 bogus endian macros
14601 #endif
14604 return 0;
14606 _ACEOF
14607 if ac_fn_c_try_compile "$LINENO"; then :
14608 # It does; now see whether it defined to _BIG_ENDIAN or not.
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 #include <limits.h>
14614 main ()
14616 #ifndef _BIG_ENDIAN
14617 not big endian
14618 #endif
14621 return 0;
14623 _ACEOF
14624 if ac_fn_c_try_compile "$LINENO"; then :
14625 ac_cv_c_bigendian=yes
14626 else
14627 ac_cv_c_bigendian=no
14629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 if test $ac_cv_c_bigendian = unknown; then
14634 # Compile a test program.
14635 if test "$cross_compiling" = yes; then :
14636 # Try to guess by grepping values from an object file.
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14639 short int ascii_mm[] =
14640 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14641 short int ascii_ii[] =
14642 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14643 int use_ascii (int i) {
14644 return ascii_mm[i] + ascii_ii[i];
14646 short int ebcdic_ii[] =
14647 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14648 short int ebcdic_mm[] =
14649 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14650 int use_ebcdic (int i) {
14651 return ebcdic_mm[i] + ebcdic_ii[i];
14653 extern int foo;
14656 main ()
14658 return use_ascii (foo) == use_ebcdic (foo);
14660 return 0;
14662 _ACEOF
14663 if ac_fn_c_try_compile "$LINENO"; then :
14664 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14665 ac_cv_c_bigendian=yes
14667 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14668 if test "$ac_cv_c_bigendian" = unknown; then
14669 ac_cv_c_bigendian=no
14670 else
14671 # finding both strings is unlikely to happen, but who knows?
14672 ac_cv_c_bigendian=unknown
14676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14677 else
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14680 $ac_includes_default
14682 main ()
14685 /* Are we little or big endian? From Harbison&Steele. */
14686 union
14688 long int l;
14689 char c[sizeof (long int)];
14690 } u;
14691 u.l = 1;
14692 return u.c[sizeof (long int) - 1] == 1;
14695 return 0;
14697 _ACEOF
14698 if ac_fn_c_try_run "$LINENO"; then :
14699 ac_cv_c_bigendian=no
14700 else
14701 ac_cv_c_bigendian=yes
14703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14704 conftest.$ac_objext conftest.beam conftest.$ac_ext
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14710 $as_echo "$ac_cv_c_bigendian" >&6; }
14711 case $ac_cv_c_bigendian in #(
14712 yes)
14713 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14714 ;; #(
14716 ;; #(
14717 universal)
14719 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14721 ;; #(
14723 as_fn_error "unknown endianness
14724 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14725 esac
14730 # Check whether --with-system-libunwind was given.
14731 if test "${with_system_libunwind+set}" = set; then :
14732 withval=$with_system_libunwind;
14735 # If system-libunwind was not specifically set, pick a default setting.
14736 if test x$with_system_libunwind = x; then
14737 case ${target} in
14738 ia64-*-hpux*) with_system_libunwind=yes ;;
14739 *) with_system_libunwind=no ;;
14740 esac
14742 # Based on system-libunwind and target, do we have ipinfo?
14743 if test x$with_system_libunwind = xyes; then
14744 case ${target} in
14745 ia64-*-*) have_unwind_getipinfo=no ;;
14746 *) have_unwind_getipinfo=yes ;;
14747 esac
14748 else
14749 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14751 case ${target} in
14752 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14753 *) have_unwind_getipinfo=yes ;;
14754 esac
14758 if test x$have_unwind_getipinfo = xyes; then
14760 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14765 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
14766 do :
14767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14768 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14769 eval as_val=\$$as_ac_Header
14770 if test "x$as_val" = x""yes; then :
14771 cat >>confdefs.h <<_ACEOF
14772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14773 _ACEOF
14777 done
14780 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
14781 do :
14782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14783 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14784 #include <sys/socket.h>
14785 #endif
14788 eval as_val=\$$as_ac_Header
14789 if test "x$as_val" = x""yes; then :
14790 cat >>confdefs.h <<_ACEOF
14791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14792 _ACEOF
14796 done
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14800 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14801 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14802 $as_echo_n "(cached) " >&6
14803 else
14804 CFLAGS_hold=$CFLAGS
14805 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14809 #include <sys/types.h>
14810 #ifdef HAVE_LINUX_FILTER_H
14811 #include <linux/filter.h>
14812 #endif
14813 #include <ustat.h>
14815 _ACEOF
14816 if ac_fn_c_try_compile "$LINENO"; then :
14817 libgo_cv_c_ustat_h=yes
14818 else
14819 libgo_cv_c_ustat_h=no
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 CFLAGS=$CFLAGS_hold
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14825 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14826 if test $libgo_cv_c_ustat_h = yes; then
14828 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14832 if test "$ac_cv_header_sys_mman_h" = yes; then
14833 HAVE_SYS_MMAN_H_TRUE=
14834 HAVE_SYS_MMAN_H_FALSE='#'
14835 else
14836 HAVE_SYS_MMAN_H_TRUE='#'
14837 HAVE_SYS_MMAN_H_FALSE=
14841 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14842 do :
14843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14844 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14845 eval as_val=\$$as_ac_var
14846 if test "x$as_val" = x""yes; then :
14847 cat >>confdefs.h <<_ACEOF
14848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14849 _ACEOF
14852 done
14854 if test "$ac_cv_func_strerror_r" = yes; then
14855 HAVE_STRERROR_R_TRUE=
14856 HAVE_STRERROR_R_FALSE='#'
14857 else
14858 HAVE_STRERROR_R_TRUE='#'
14859 HAVE_STRERROR_R_FALSE=
14862 if test "$ac_cv_func_wait4" = yes; then
14863 HAVE_WAIT4_TRUE=
14864 HAVE_WAIT4_FALSE='#'
14865 else
14866 HAVE_WAIT4_TRUE='#'
14867 HAVE_WAIT4_FALSE=
14871 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
14872 do :
14873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14874 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14875 eval as_val=\$$as_ac_var
14876 if test "x$as_val" = x""yes; then :
14877 cat >>confdefs.h <<_ACEOF
14878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14879 _ACEOF
14882 done
14884 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14885 if test "x$ac_cv_type_off_t" = x""yes; then :
14887 else
14889 cat >>confdefs.h <<_ACEOF
14890 #define off_t long int
14891 _ACEOF
14895 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14896 if test "x$ac_cv_type_loff_t" = x""yes; then :
14898 cat >>confdefs.h <<_ACEOF
14899 #define HAVE_LOFF_T 1
14900 _ACEOF
14906 LIBS_hold="$LIBS"
14907 LIBS="$LIBS -lm"
14908 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14909 do :
14910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14912 eval as_val=\$$as_ac_var
14913 if test "x$as_val" = x""yes; then :
14914 cat >>confdefs.h <<_ACEOF
14915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14916 _ACEOF
14919 done
14921 LIBS="$LIBS_hold"
14923 CFLAGS_hold="$CFLAGS"
14924 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14925 LIBS_hold="$LIBS"
14926 LIBS="$LIBS $PTHREAD_LIBS"
14927 for ac_func in sem_timedwait
14928 do :
14929 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14930 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14931 cat >>confdefs.h <<_ACEOF
14932 #define HAVE_SEM_TIMEDWAIT 1
14933 _ACEOF
14936 done
14938 CFLAGS="$CFLAGS_hold"
14939 LIBS="$LIBS_hold"
14941 LIBS_hold="$LIBS"
14942 LIBS="$LIBS $MATH_LIBS"
14943 for ac_func in matherr
14944 do :
14945 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14946 if test "x$ac_cv_func_matherr" = x""yes; then :
14947 cat >>confdefs.h <<_ACEOF
14948 #define HAVE_MATHERR 1
14949 _ACEOF
14952 done
14954 LIBS="$LIBS_hold"
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14957 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14958 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14959 $as_echo_n "(cached) " >&6
14960 else
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14964 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14965 uint32 i;
14966 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14968 _ACEOF
14969 if ac_fn_c_try_link "$LINENO"; then :
14970 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14971 else
14972 libgo_cv_func___sync_bool_compare_and_swap_4=no
14974 rm -f core conftest.err conftest.$ac_objext \
14975 conftest$ac_exeext conftest.$ac_ext
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14978 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14979 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14981 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14986 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14987 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14988 $as_echo_n "(cached) " >&6
14989 else
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14993 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14994 uint64 i;
14995 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14997 _ACEOF
14998 if ac_fn_c_try_link "$LINENO"; then :
14999 libgo_cv_func___sync_bool_compare_and_swap_8=yes
15000 else
15001 libgo_cv_func___sync_bool_compare_and_swap_8=no
15003 rm -f core conftest.err conftest.$ac_objext \
15004 conftest$ac_exeext conftest.$ac_ext
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
15007 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
15008 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
15010 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
15015 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
15016 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
15017 $as_echo_n "(cached) " >&6
15018 else
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15022 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15023 uint32 i;
15024 int main() { return __sync_fetch_and_add (&i, 1); }
15026 _ACEOF
15027 if ac_fn_c_try_link "$LINENO"; then :
15028 libgo_cv_func___sync_fetch_and_add_4=yes
15029 else
15030 libgo_cv_func___sync_fetch_and_add_4=no
15032 rm -f core conftest.err conftest.$ac_objext \
15033 conftest$ac_exeext conftest.$ac_ext
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15036 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15037 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15039 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15044 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15045 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15046 $as_echo_n "(cached) " >&6
15047 else
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15051 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15052 uint64 i;
15053 int main() { return __sync_add_and_fetch (&i, 1); }
15055 _ACEOF
15056 if ac_fn_c_try_link "$LINENO"; then :
15057 libgo_cv_func___sync_add_and_fetch_8=yes
15058 else
15059 libgo_cv_func___sync_add_and_fetch_8=no
15061 rm -f core conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15065 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15066 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15068 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15073 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15074 if test "${libgo_cv_c_stringops+set}" = set; then :
15075 $as_echo_n "(cached) " >&6
15076 else
15077 CFLAGS_hold=$CFLAGS
15078 CFLAGS="$CFLAGS -minline-all-stringops"
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 int i;
15082 _ACEOF
15083 if ac_fn_c_try_compile "$LINENO"; then :
15084 libgo_cv_c_stringops=yes
15085 else
15086 libgo_cv_c_stringops=no
15088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089 CFLAGS=$CFLAGS_hold
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15092 $as_echo "$libgo_cv_c_stringops" >&6; }
15093 STRINGOPS_FLAG=
15094 if test "$libgo_cv_c_stringops" = yes; then
15095 STRINGOPS_FLAG=-minline-all-stringops
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15100 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15101 if test "${libgo_cv_c_fancymath+set}" = set; then :
15102 $as_echo_n "(cached) " >&6
15103 else
15104 CFLAGS_hold=$CFLAGS
15105 CFLAGS="$CFLAGS -mfancy-math-387"
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15108 int i;
15109 _ACEOF
15110 if ac_fn_c_try_compile "$LINENO"; then :
15111 libgo_cv_c_fancymath=yes
15112 else
15113 libgo_cv_c_fancymath=no
15115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 CFLAGS=$CFLAGS_hold
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15119 $as_echo "$libgo_cv_c_fancymath" >&6; }
15120 MATH_FLAG=
15121 if test "$libgo_cv_c_fancymath" = yes; then
15122 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15123 else
15124 MATH_FLAG="-ffp-contract=off"
15128 CFLAGS_hold=$CFLAGS
15129 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15130 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15131 if test "x$ac_cv_type_off64_t" = x""yes; then :
15133 cat >>confdefs.h <<_ACEOF
15134 #define HAVE_OFF64_T 1
15135 _ACEOF
15140 CFLAGS=$CFLAGS_hold
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15143 $as_echo_n "checking epoll_event size... " >&6; }
15144 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15145 $as_echo_n "(cached) " >&6
15146 else
15147 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15149 else
15150 libgo_cv_c_epoll_event_size=0
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15155 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15156 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15160 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15161 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15162 $as_echo_n "(cached) " >&6
15163 else
15164 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15165 #include <sys/epoll.h>"; then :
15167 else
15168 libgo_cv_c_epoll_event_fd_offset=0
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15173 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15174 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15179 #include <sys/stat.h>
15181 _ACEOF
15182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15183 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15184 have_stat_timespec=yes
15185 else
15186 have_stat_timespec=no
15188 rm -f conftest*
15190 if test $have_stat_timespec = yes; then
15191 HAVE_STAT_TIMESPEC_TRUE=
15192 HAVE_STAT_TIMESPEC_FALSE='#'
15193 else
15194 HAVE_STAT_TIMESPEC_TRUE='#'
15195 HAVE_STAT_TIMESPEC_FALSE=
15199 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15201 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15202 libgo_has_struct_exception=yes
15203 else
15204 libgo_has_struct_exception=no
15207 if test "$libgo_has_struct_exception" = "yes"; then
15209 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15214 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15215 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 CFLAGS_hold="$CFLAGS"
15219 CFLAGS="$PTHREAD_CFLAGS"
15220 LIBS_hold="$LIBS"
15221 LIBS="$LIBS $PTHREAD_LIBS"
15222 # The cast to long int works around a bug in the HP C Compiler
15223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15225 # This bug is HP SR number 8606223364.
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15227 $as_echo_n "checking size of void *... " >&6; }
15228 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15229 $as_echo_n "(cached) " >&6
15230 else
15231 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15233 else
15234 if test "$ac_cv_type_void_p" = yes; then
15235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15237 { as_fn_set_status 77
15238 as_fn_error "cannot compute sizeof (void *)
15239 See \`config.log' for more details." "$LINENO" 5; }; }
15240 else
15241 ac_cv_sizeof_void_p=0
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15247 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15251 cat >>confdefs.h <<_ACEOF
15252 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15253 _ACEOF
15256 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15257 if test "$cross_compiling" = yes; then :
15258 case "$target:$ptr_type_size" in
15259 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15260 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15262 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15263 esac
15265 else
15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15269 #include <pthread.h>
15270 #include <stdlib.h>
15271 #include <ucontext.h>
15272 #include <unistd.h>
15274 __thread int tls;
15276 static char stack[10 * 1024 * 1024];
15277 static ucontext_t c;
15279 /* Called via makecontext/setcontext. */
15281 static void
15282 cfn (void)
15284 exit (tls);
15287 /* Called via pthread_create. */
15289 static void *
15290 tfn (void *dummy)
15292 /* The thread should still see this value after calling
15293 setcontext. */
15294 tls = 0;
15296 setcontext (&c);
15298 /* The call to setcontext should not return. */
15299 abort ();
15303 main ()
15305 pthread_t tid;
15307 /* The thread should not see this value. */
15308 tls = 1;
15310 if (getcontext (&c) < 0)
15311 abort ();
15313 c.uc_stack.ss_sp = stack;
15314 #ifdef MAKECONTEXT_STACK_TOP
15315 c.uc_stack.ss_sp += sizeof stack;
15316 #endif
15317 c.uc_stack.ss_flags = 0;
15318 c.uc_stack.ss_size = sizeof stack;
15319 c.uc_link = NULL;
15320 makecontext (&c, cfn, 0);
15322 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15323 abort ();
15325 if (pthread_join (tid, NULL) != 0)
15326 abort ();
15328 /* The thread should have called exit. */
15329 abort ();
15332 _ACEOF
15333 if ac_fn_c_try_run "$LINENO"; then :
15334 libgo_cv_lib_setcontext_clobbers_tls=no
15335 else
15336 libgo_cv_lib_setcontext_clobbers_tls=yes
15338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15339 conftest.$ac_objext conftest.beam conftest.$ac_ext
15342 CFLAGS="$CFLAGS_hold"
15343 LIBS="$LIBS_hold"
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15347 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15348 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15350 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15355 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15356 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15360 libgo_cv_ro_eh_frame=no
15361 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15362 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15363 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15364 libgo_cv_ro_eh_frame=yes
15365 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15366 | grep -v '#write' > /dev/null; then
15367 libgo_cv_ro_eh_frame=yes
15370 rm -f conftest.*
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15374 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15375 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15377 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15379 else
15381 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15386 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15387 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15388 $as_echo_n "(cached) " >&6
15389 else
15390 CFLAGS_hold=$CFLAGS
15391 CFLAGS="$CFLAGS -Qunused-arguments"
15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393 /* end confdefs.h. */
15394 int i;
15395 _ACEOF
15396 if ac_fn_c_try_compile "$LINENO"; then :
15397 libgo_cv_c_unused_arguments=yes
15398 else
15399 libgo_cv_c_unused_arguments=no
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402 CFLAGS=$CFLAGS_hold
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15405 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15408 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15409 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15413 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15414 CFLAGS_hold=$CFLAGS
15415 if test "$libgo_cv_c_unused_arguments" = yes; then
15416 CFLAGS="$CFLAGS -Qunused-arguments"
15418 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15419 libgo_cv_as_comdat_gnu=yes
15420 else
15421 libgo_cv_as_comdat_gnu=no
15423 CFLAGS=$CFLAGS_hold
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15427 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15428 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15430 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15435 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15436 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15440 libgo_cv_as_x86_pcrel=yes
15441 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15442 CFLAGS_hold=$CFLAGS
15443 if test "$libgo_cv_c_unused_arguments" = yes; then
15444 CFLAGS="$CFLAGS -Qunused-arguments"
15446 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15447 libgo_cv_as_x86_pcrel=no
15449 CFLAGS=$CFLAGS_hold
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15453 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15454 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15456 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15461 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15462 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15463 $as_echo_n "(cached) " >&6
15464 else
15466 libgo_cv_as_x86_64_unwind_section_type=yes
15467 echo '.section .eh_frame,"a",@unwind' > conftest.s
15468 CFLAGS_hold=$CFLAGS
15469 if test "$libgo_cv_c_unused_arguments" = yes; then
15470 CFLAGS="$CFLAGS -Qunused-arguments"
15472 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15473 libgo_cv_as_x86_64_unwind_section_type=no
15475 CFLAGS=$CFLAGS_hold
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15479 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15480 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15482 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15487 $as_echo_n "checking assembler supports AES instructions... " >&6; }
15488 if test "${libgo_cv_as_x86_aes+set}" = set; then :
15489 $as_echo_n "(cached) " >&6
15490 else
15492 libgo_cv_as_x86_aes=yes
15493 echo 'aesenc %xmm0, %xmm1' > conftest.s
15494 CFLAGS_hold=$CFLAGS
15495 if test "$libgo_cv_c_unused_arguments" = yes; then
15496 CFLAGS="$CFLAGS -Qunused-arguments"
15498 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15499 libgo_cv_as_x86_aes=no
15501 CFLAGS=$CFLAGS_hold
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15505 $as_echo "$libgo_cv_as_x86_aes" >&6; }
15506 if test "x$libgo_cv_as_x86_aes" = xyes; then
15508 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15512 cat >confcache <<\_ACEOF
15513 # This file is a shell script that caches the results of configure
15514 # tests run on this system so they can be shared between configure
15515 # scripts and configure runs, see configure's option --config-cache.
15516 # It is not useful on other systems. If it contains results you don't
15517 # want to keep, you may remove or edit it.
15519 # config.status only pays attention to the cache file if you give it
15520 # the --recheck option to rerun configure.
15522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15524 # following values.
15526 _ACEOF
15528 # The following way of writing the cache mishandles newlines in values,
15529 # but we know of no workaround that is simple, portable, and efficient.
15530 # So, we kill variables containing newlines.
15531 # Ultrix sh set writes to stderr and can't be redirected directly,
15532 # and sets the high bit in the cache file unless we assign to the vars.
15534 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15535 eval ac_val=\$$ac_var
15536 case $ac_val in #(
15537 *${as_nl}*)
15538 case $ac_var in #(
15539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15541 esac
15542 case $ac_var in #(
15543 _ | IFS | as_nl) ;; #(
15544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15545 *) { eval $ac_var=; unset $ac_var;} ;;
15546 esac ;;
15547 esac
15548 done
15550 (set) 2>&1 |
15551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15552 *${as_nl}ac_space=\ *)
15553 # `set' does not quote correctly, so add quotes: double-quote
15554 # substitution turns \\\\ into \\, and sed turns \\ into \.
15555 sed -n \
15556 "s/'/'\\\\''/g;
15557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15558 ;; #(
15560 # `set' quotes correctly as required by POSIX, so do not add quotes.
15561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15563 esac |
15564 sort
15566 sed '
15567 /^ac_cv_env_/b end
15568 t clear
15569 :clear
15570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15571 t end
15572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15573 :end' >>confcache
15574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15575 if test -w "$cache_file"; then
15576 test "x$cache_file" != "x/dev/null" &&
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15578 $as_echo "$as_me: updating cache $cache_file" >&6;}
15579 cat confcache >$cache_file
15580 else
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15585 rm -f confcache
15587 if test ${multilib} = yes; then
15588 multilib_arg="--enable-multilib"
15589 else
15590 multilib_arg=
15593 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15596 ac_config_commands="$ac_config_commands default"
15599 cat >confcache <<\_ACEOF
15600 # This file is a shell script that caches the results of configure
15601 # tests run on this system so they can be shared between configure
15602 # scripts and configure runs, see configure's option --config-cache.
15603 # It is not useful on other systems. If it contains results you don't
15604 # want to keep, you may remove or edit it.
15606 # config.status only pays attention to the cache file if you give it
15607 # the --recheck option to rerun configure.
15609 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15610 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15611 # following values.
15613 _ACEOF
15615 # The following way of writing the cache mishandles newlines in values,
15616 # but we know of no workaround that is simple, portable, and efficient.
15617 # So, we kill variables containing newlines.
15618 # Ultrix sh set writes to stderr and can't be redirected directly,
15619 # and sets the high bit in the cache file unless we assign to the vars.
15621 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15622 eval ac_val=\$$ac_var
15623 case $ac_val in #(
15624 *${as_nl}*)
15625 case $ac_var in #(
15626 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15627 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15628 esac
15629 case $ac_var in #(
15630 _ | IFS | as_nl) ;; #(
15631 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15632 *) { eval $ac_var=; unset $ac_var;} ;;
15633 esac ;;
15634 esac
15635 done
15637 (set) 2>&1 |
15638 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15639 *${as_nl}ac_space=\ *)
15640 # `set' does not quote correctly, so add quotes: double-quote
15641 # substitution turns \\\\ into \\, and sed turns \\ into \.
15642 sed -n \
15643 "s/'/'\\\\''/g;
15644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15645 ;; #(
15647 # `set' quotes correctly as required by POSIX, so do not add quotes.
15648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15650 esac |
15651 sort
15653 sed '
15654 /^ac_cv_env_/b end
15655 t clear
15656 :clear
15657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15658 t end
15659 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15660 :end' >>confcache
15661 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15662 if test -w "$cache_file"; then
15663 test "x$cache_file" != "x/dev/null" &&
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15665 $as_echo "$as_me: updating cache $cache_file" >&6;}
15666 cat confcache >$cache_file
15667 else
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15669 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15672 rm -f confcache
15674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15675 # Let make expand exec_prefix.
15676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15678 DEFS=-DHAVE_CONFIG_H
15680 ac_libobjs=
15681 ac_ltlibobjs=
15682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15683 # 1. Remove the extension, and $U if already installed.
15684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15687 # will be set to the directory where LIBOBJS objects are built.
15688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15690 done
15691 LIBOBJS=$ac_libobjs
15693 LTLIBOBJS=$ac_ltlibobjs
15696 if test -n "$EXEEXT"; then
15697 am__EXEEXT_TRUE=
15698 am__EXEEXT_FALSE='#'
15699 else
15700 am__EXEEXT_TRUE='#'
15701 am__EXEEXT_FALSE=
15704 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15705 as_fn_error "conditional \"AMDEP\" was never defined.
15706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15708 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15709 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15712 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15713 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15716 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
15717 as_fn_error "conditional \"USE_LIBFFI\" was never defined.
15718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15720 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15721 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15724 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15725 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15728 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15729 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15732 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15733 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15736 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15737 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15740 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15741 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15744 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15745 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15748 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15749 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15753 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15757 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15760 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15761 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15764 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15765 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15769 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15770 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15773 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15774 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15777 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15778 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15781 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15782 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15786 : ${CONFIG_STATUS=./config.status}
15787 ac_write_fail=0
15788 ac_clean_files_save=$ac_clean_files
15789 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15791 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15792 as_write_fail=0
15793 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15794 #! $SHELL
15795 # Generated by $as_me.
15796 # Run this file to recreate the current configuration.
15797 # Compiler output produced by configure, useful for debugging
15798 # configure, is in config.log if it exists.
15800 debug=false
15801 ac_cs_recheck=false
15802 ac_cs_silent=false
15804 SHELL=\${CONFIG_SHELL-$SHELL}
15805 export SHELL
15806 _ASEOF
15807 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15808 ## -------------------- ##
15809 ## M4sh Initialization. ##
15810 ## -------------------- ##
15812 # Be more Bourne compatible
15813 DUALCASE=1; export DUALCASE # for MKS sh
15814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15815 emulate sh
15816 NULLCMD=:
15817 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15818 # is contrary to our usage. Disable this feature.
15819 alias -g '${1+"$@"}'='"$@"'
15820 setopt NO_GLOB_SUBST
15821 else
15822 case `(set -o) 2>/dev/null` in #(
15823 *posix*) :
15824 set -o posix ;; #(
15825 *) :
15827 esac
15831 as_nl='
15833 export as_nl
15834 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15835 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15836 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15837 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15838 # Prefer a ksh shell builtin over an external printf program on Solaris,
15839 # but without wasting forks for bash or zsh.
15840 if test -z "$BASH_VERSION$ZSH_VERSION" \
15841 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15842 as_echo='print -r --'
15843 as_echo_n='print -rn --'
15844 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15845 as_echo='printf %s\n'
15846 as_echo_n='printf %s'
15847 else
15848 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15849 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15850 as_echo_n='/usr/ucb/echo -n'
15851 else
15852 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15853 as_echo_n_body='eval
15854 arg=$1;
15855 case $arg in #(
15856 *"$as_nl"*)
15857 expr "X$arg" : "X\\(.*\\)$as_nl";
15858 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15859 esac;
15860 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15862 export as_echo_n_body
15863 as_echo_n='sh -c $as_echo_n_body as_echo'
15865 export as_echo_body
15866 as_echo='sh -c $as_echo_body as_echo'
15869 # The user is always right.
15870 if test "${PATH_SEPARATOR+set}" != set; then
15871 PATH_SEPARATOR=:
15872 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15873 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15874 PATH_SEPARATOR=';'
15879 # IFS
15880 # We need space, tab and new line, in precisely that order. Quoting is
15881 # there to prevent editors from complaining about space-tab.
15882 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15883 # splitting by setting IFS to empty value.)
15884 IFS=" "" $as_nl"
15886 # Find who we are. Look in the path if we contain no directory separator.
15887 case $0 in #((
15888 *[\\/]* ) as_myself=$0 ;;
15889 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 for as_dir in $PATH
15892 IFS=$as_save_IFS
15893 test -z "$as_dir" && as_dir=.
15894 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15895 done
15896 IFS=$as_save_IFS
15899 esac
15900 # We did not find ourselves, most probably we were run as `sh COMMAND'
15901 # in which case we are not to be found in the path.
15902 if test "x$as_myself" = x; then
15903 as_myself=$0
15905 if test ! -f "$as_myself"; then
15906 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15907 exit 1
15910 # Unset variables that we do not need and which cause bugs (e.g. in
15911 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15912 # suppresses any "Segmentation fault" message there. '((' could
15913 # trigger a bug in pdksh 5.2.14.
15914 for as_var in BASH_ENV ENV MAIL MAILPATH
15915 do eval test x\${$as_var+set} = xset \
15916 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15917 done
15918 PS1='$ '
15919 PS2='> '
15920 PS4='+ '
15922 # NLS nuisances.
15923 LC_ALL=C
15924 export LC_ALL
15925 LANGUAGE=C
15926 export LANGUAGE
15928 # CDPATH.
15929 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15932 # as_fn_error ERROR [LINENO LOG_FD]
15933 # ---------------------------------
15934 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15935 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15936 # script with status $?, using 1 if that was 0.
15937 as_fn_error ()
15939 as_status=$?; test $as_status -eq 0 && as_status=1
15940 if test "$3"; then
15941 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15942 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15944 $as_echo "$as_me: error: $1" >&2
15945 as_fn_exit $as_status
15946 } # as_fn_error
15949 # as_fn_set_status STATUS
15950 # -----------------------
15951 # Set $? to STATUS, without forking.
15952 as_fn_set_status ()
15954 return $1
15955 } # as_fn_set_status
15957 # as_fn_exit STATUS
15958 # -----------------
15959 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15960 as_fn_exit ()
15962 set +e
15963 as_fn_set_status $1
15964 exit $1
15965 } # as_fn_exit
15967 # as_fn_unset VAR
15968 # ---------------
15969 # Portably unset VAR.
15970 as_fn_unset ()
15972 { eval $1=; unset $1;}
15974 as_unset=as_fn_unset
15975 # as_fn_append VAR VALUE
15976 # ----------------------
15977 # Append the text in VALUE to the end of the definition contained in VAR. Take
15978 # advantage of any shell optimizations that allow amortized linear growth over
15979 # repeated appends, instead of the typical quadratic growth present in naive
15980 # implementations.
15981 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15982 eval 'as_fn_append ()
15984 eval $1+=\$2
15986 else
15987 as_fn_append ()
15989 eval $1=\$$1\$2
15991 fi # as_fn_append
15993 # as_fn_arith ARG...
15994 # ------------------
15995 # Perform arithmetic evaluation on the ARGs, and store the result in the
15996 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15997 # must be portable across $(()) and expr.
15998 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15999 eval 'as_fn_arith ()
16001 as_val=$(( $* ))
16003 else
16004 as_fn_arith ()
16006 as_val=`expr "$@" || test $? -eq 1`
16008 fi # as_fn_arith
16011 if expr a : '\(a\)' >/dev/null 2>&1 &&
16012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16013 as_expr=expr
16014 else
16015 as_expr=false
16018 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16019 as_basename=basename
16020 else
16021 as_basename=false
16024 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16025 as_dirname=dirname
16026 else
16027 as_dirname=false
16030 as_me=`$as_basename -- "$0" ||
16031 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16032 X"$0" : 'X\(//\)$' \| \
16033 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16034 $as_echo X/"$0" |
16035 sed '/^.*\/\([^/][^/]*\)\/*$/{
16036 s//\1/
16039 /^X\/\(\/\/\)$/{
16040 s//\1/
16043 /^X\/\(\/\).*/{
16044 s//\1/
16047 s/.*/./; q'`
16049 # Avoid depending upon Character Ranges.
16050 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16051 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16052 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16053 as_cr_digits='0123456789'
16054 as_cr_alnum=$as_cr_Letters$as_cr_digits
16056 ECHO_C= ECHO_N= ECHO_T=
16057 case `echo -n x` in #(((((
16058 -n*)
16059 case `echo 'xy\c'` in
16060 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16061 xy) ECHO_C='\c';;
16062 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16063 ECHO_T=' ';;
16064 esac;;
16066 ECHO_N='-n';;
16067 esac
16069 rm -f conf$$ conf$$.exe conf$$.file
16070 if test -d conf$$.dir; then
16071 rm -f conf$$.dir/conf$$.file
16072 else
16073 rm -f conf$$.dir
16074 mkdir conf$$.dir 2>/dev/null
16076 if (echo >conf$$.file) 2>/dev/null; then
16077 if ln -s conf$$.file conf$$ 2>/dev/null; then
16078 as_ln_s='ln -s'
16079 # ... but there are two gotchas:
16080 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16081 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16082 # In both cases, we have to default to `cp -p'.
16083 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16084 as_ln_s='cp -p'
16085 elif ln conf$$.file conf$$ 2>/dev/null; then
16086 as_ln_s=ln
16087 else
16088 as_ln_s='cp -p'
16090 else
16091 as_ln_s='cp -p'
16093 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16094 rmdir conf$$.dir 2>/dev/null
16097 # as_fn_mkdir_p
16098 # -------------
16099 # Create "$as_dir" as a directory, including parents if necessary.
16100 as_fn_mkdir_p ()
16103 case $as_dir in #(
16104 -*) as_dir=./$as_dir;;
16105 esac
16106 test -d "$as_dir" || eval $as_mkdir_p || {
16107 as_dirs=
16108 while :; do
16109 case $as_dir in #(
16110 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16111 *) as_qdir=$as_dir;;
16112 esac
16113 as_dirs="'$as_qdir' $as_dirs"
16114 as_dir=`$as_dirname -- "$as_dir" ||
16115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16116 X"$as_dir" : 'X\(//\)[^/]' \| \
16117 X"$as_dir" : 'X\(//\)$' \| \
16118 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16119 $as_echo X"$as_dir" |
16120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16121 s//\1/
16124 /^X\(\/\/\)[^/].*/{
16125 s//\1/
16128 /^X\(\/\/\)$/{
16129 s//\1/
16132 /^X\(\/\).*/{
16133 s//\1/
16136 s/.*/./; q'`
16137 test -d "$as_dir" && break
16138 done
16139 test -z "$as_dirs" || eval "mkdir $as_dirs"
16140 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16143 } # as_fn_mkdir_p
16144 if mkdir -p . 2>/dev/null; then
16145 as_mkdir_p='mkdir -p "$as_dir"'
16146 else
16147 test -d ./-p && rmdir ./-p
16148 as_mkdir_p=false
16151 if test -x / >/dev/null 2>&1; then
16152 as_test_x='test -x'
16153 else
16154 if ls -dL / >/dev/null 2>&1; then
16155 as_ls_L_option=L
16156 else
16157 as_ls_L_option=
16159 as_test_x='
16160 eval sh -c '\''
16161 if test -d "$1"; then
16162 test -d "$1/.";
16163 else
16164 case $1 in #(
16165 -*)set "./$1";;
16166 esac;
16167 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16168 ???[sx]*):;;*)false;;esac;fi
16169 '\'' sh
16172 as_executable_p=$as_test_x
16174 # Sed expression to map a string onto a valid CPP name.
16175 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16177 # Sed expression to map a string onto a valid variable name.
16178 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16181 exec 6>&1
16182 ## ----------------------------------- ##
16183 ## Main body of $CONFIG_STATUS script. ##
16184 ## ----------------------------------- ##
16185 _ASEOF
16186 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16189 # Save the log message, to keep $0 and so on meaningful, and to
16190 # report actual input values of CONFIG_FILES etc. instead of their
16191 # values after options handling.
16192 ac_log="
16193 This file was extended by package-unused $as_me version-unused, which was
16194 generated by GNU Autoconf 2.64. Invocation command line was
16196 CONFIG_FILES = $CONFIG_FILES
16197 CONFIG_HEADERS = $CONFIG_HEADERS
16198 CONFIG_LINKS = $CONFIG_LINKS
16199 CONFIG_COMMANDS = $CONFIG_COMMANDS
16200 $ $0 $@
16202 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16205 _ACEOF
16207 case $ac_config_files in *"
16208 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16209 esac
16211 case $ac_config_headers in *"
16212 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16213 esac
16216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16217 # Files that config.status was made for.
16218 config_files="$ac_config_files"
16219 config_headers="$ac_config_headers"
16220 config_commands="$ac_config_commands"
16222 _ACEOF
16224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16225 ac_cs_usage="\
16226 \`$as_me' instantiates files and other configuration actions
16227 from templates according to the current configuration. Unless the files
16228 and actions are specified as TAGs, all are instantiated by default.
16230 Usage: $0 [OPTION]... [TAG]...
16232 -h, --help print this help, then exit
16233 -V, --version print version number and configuration settings, then exit
16234 -q, --quiet, --silent
16235 do not print progress messages
16236 -d, --debug don't remove temporary files
16237 --recheck update $as_me by reconfiguring in the same conditions
16238 --file=FILE[:TEMPLATE]
16239 instantiate the configuration file FILE
16240 --header=FILE[:TEMPLATE]
16241 instantiate the configuration header FILE
16243 Configuration files:
16244 $config_files
16246 Configuration headers:
16247 $config_headers
16249 Configuration commands:
16250 $config_commands
16252 Report bugs to the package provider."
16254 _ACEOF
16255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16256 ac_cs_version="\\
16257 package-unused config.status version-unused
16258 configured by $0, generated by GNU Autoconf 2.64,
16259 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16261 Copyright (C) 2009 Free Software Foundation, Inc.
16262 This config.status script is free software; the Free Software Foundation
16263 gives unlimited permission to copy, distribute and modify it."
16265 ac_pwd='$ac_pwd'
16266 srcdir='$srcdir'
16267 INSTALL='$INSTALL'
16268 MKDIR_P='$MKDIR_P'
16269 AWK='$AWK'
16270 test -n "\$AWK" || AWK=awk
16271 _ACEOF
16273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16274 # The default lists apply if the user does not specify any file.
16275 ac_need_defaults=:
16276 while test $# != 0
16278 case $1 in
16279 --*=*)
16280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16281 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16282 ac_shift=:
16285 ac_option=$1
16286 ac_optarg=$2
16287 ac_shift=shift
16289 esac
16291 case $ac_option in
16292 # Handling of the options.
16293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16294 ac_cs_recheck=: ;;
16295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16296 $as_echo "$ac_cs_version"; exit ;;
16297 --debug | --debu | --deb | --de | --d | -d )
16298 debug=: ;;
16299 --file | --fil | --fi | --f )
16300 $ac_shift
16301 case $ac_optarg in
16302 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16303 esac
16304 as_fn_append CONFIG_FILES " '$ac_optarg'"
16305 ac_need_defaults=false;;
16306 --header | --heade | --head | --hea )
16307 $ac_shift
16308 case $ac_optarg in
16309 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16310 esac
16311 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16312 ac_need_defaults=false;;
16313 --he | --h)
16314 # Conflict between --help and --header
16315 as_fn_error "ambiguous option: \`$1'
16316 Try \`$0 --help' for more information.";;
16317 --help | --hel | -h )
16318 $as_echo "$ac_cs_usage"; exit ;;
16319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16320 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16321 ac_cs_silent=: ;;
16323 # This is an error.
16324 -*) as_fn_error "unrecognized option: \`$1'
16325 Try \`$0 --help' for more information." ;;
16327 *) as_fn_append ac_config_targets " $1"
16328 ac_need_defaults=false ;;
16330 esac
16331 shift
16332 done
16334 ac_configure_extra_args=
16336 if $ac_cs_silent; then
16337 exec 6>/dev/null
16338 ac_configure_extra_args="$ac_configure_extra_args --silent"
16341 _ACEOF
16342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16343 if \$ac_cs_recheck; then
16344 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16345 shift
16346 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16347 CONFIG_SHELL='$SHELL'
16348 export CONFIG_SHELL
16349 exec "\$@"
16352 _ACEOF
16353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16354 exec 5>>config.log
16356 echo
16357 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16358 ## Running $as_me. ##
16359 _ASBOX
16360 $as_echo "$ac_log"
16361 } >&5
16363 _ACEOF
16364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16366 # INIT-COMMANDS
16369 srcdir="$srcdir"
16370 host="$host"
16371 target="$target"
16372 with_multisubdir="$with_multisubdir"
16373 with_multisrctop="$with_multisrctop"
16374 with_target_subdir="$with_target_subdir"
16375 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16376 multi_basedir="$multi_basedir"
16377 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16378 CC="$CC"
16379 CXX="$CXX"
16380 GFORTRAN="$GFORTRAN"
16381 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16384 # The HP-UX ksh and POSIX shell print the target directory to stdout
16385 # if CDPATH is set.
16386 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16388 sed_quote_subst='$sed_quote_subst'
16389 double_quote_subst='$double_quote_subst'
16390 delay_variable_subst='$delay_variable_subst'
16391 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16392 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16393 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16394 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16395 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16396 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16397 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16398 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16399 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16400 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16401 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16402 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16403 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16404 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16405 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16406 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16407 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16408 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16409 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16410 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16411 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16412 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16413 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16414 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16415 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16416 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16417 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16418 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16419 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16420 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16421 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16422 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16423 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16424 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16425 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16426 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16427 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16428 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16429 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16430 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16431 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16432 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16433 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16434 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16435 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16436 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16437 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16438 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16439 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"`'
16440 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16441 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16442 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16443 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16444 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16445 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16446 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16447 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16448 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16449 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16450 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16451 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16452 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16453 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16454 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16455 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16456 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16457 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16458 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16459 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16460 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16461 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16462 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16463 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16464 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16465 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16466 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16467 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16468 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16469 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16470 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16471 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16472 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16473 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16474 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16475 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16476 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16477 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16478 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16479 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16480 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16481 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16482 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16483 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16484 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16485 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16486 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16487 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16488 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16489 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16490 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16491 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16492 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16493 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16494 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16495 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16496 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16497 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16498 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16499 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16500 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16501 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16502 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16503 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16504 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16505 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16506 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16507 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16508 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16509 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16510 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16511 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16512 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16513 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16514 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16515 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16516 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16517 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16518 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16519 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16520 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16521 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16522 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16523 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16524 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16525 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16526 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16527 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16528 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16529 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16530 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16531 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16532 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16533 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16534 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16535 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16536 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16537 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16538 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16539 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16540 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16541 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16542 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16543 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16544 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16545 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16546 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16547 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16548 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16549 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16550 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16551 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16552 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16553 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16555 LTCC='$LTCC'
16556 LTCFLAGS='$LTCFLAGS'
16557 compiler='$compiler_DEFAULT'
16559 # A function that is used when there is no print builtin or printf.
16560 func_fallback_echo ()
16562 eval 'cat <<_LTECHO_EOF
16564 _LTECHO_EOF'
16567 # Quote evaled strings.
16568 for var in SED \
16569 GREP \
16570 EGREP \
16571 FGREP \
16572 SHELL \
16573 ECHO \
16574 LD \
16575 NM \
16576 LN_S \
16577 lt_SP2NL \
16578 lt_NL2SP \
16579 reload_flag \
16580 OBJDUMP \
16581 deplibs_check_method \
16582 file_magic_cmd \
16583 AR \
16584 AR_FLAGS \
16585 STRIP \
16586 RANLIB \
16587 CC \
16588 CFLAGS \
16589 compiler \
16590 lt_cv_sys_global_symbol_pipe \
16591 lt_cv_sys_global_symbol_to_cdecl \
16592 lt_cv_sys_global_symbol_to_c_name_address \
16593 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16594 lt_prog_compiler_no_builtin_flag \
16595 lt_prog_compiler_wl \
16596 lt_prog_compiler_pic \
16597 lt_prog_compiler_static \
16598 lt_cv_prog_compiler_c_o \
16599 need_locks \
16600 DSYMUTIL \
16601 NMEDIT \
16602 LIPO \
16603 OTOOL \
16604 OTOOL64 \
16605 shrext_cmds \
16606 export_dynamic_flag_spec \
16607 whole_archive_flag_spec \
16608 compiler_needs_object \
16609 with_gnu_ld \
16610 allow_undefined_flag \
16611 no_undefined_flag \
16612 hardcode_libdir_flag_spec \
16613 hardcode_libdir_flag_spec_ld \
16614 hardcode_libdir_separator \
16615 fix_srcfile_path \
16616 exclude_expsyms \
16617 include_expsyms \
16618 file_list_spec \
16619 variables_saved_for_relink \
16620 libname_spec \
16621 library_names_spec \
16622 soname_spec \
16623 install_override_mode \
16624 finish_eval \
16625 old_striplib \
16626 striplib \
16627 LD_GO \
16628 reload_flag_GO \
16629 compiler_GO \
16630 lt_prog_compiler_no_builtin_flag_GO \
16631 lt_prog_compiler_wl_GO \
16632 lt_prog_compiler_pic_GO \
16633 lt_prog_compiler_static_GO \
16634 lt_cv_prog_compiler_c_o_GO \
16635 export_dynamic_flag_spec_GO \
16636 whole_archive_flag_spec_GO \
16637 compiler_needs_object_GO \
16638 with_gnu_ld_GO \
16639 allow_undefined_flag_GO \
16640 no_undefined_flag_GO \
16641 hardcode_libdir_flag_spec_GO \
16642 hardcode_libdir_flag_spec_ld_GO \
16643 hardcode_libdir_separator_GO \
16644 fix_srcfile_path_GO \
16645 exclude_expsyms_GO \
16646 include_expsyms_GO \
16647 file_list_spec_GO; do
16648 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16649 *[\\\\\\\`\\"\\\$]*)
16650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16655 esac
16656 done
16658 # Double-quote double-evaled strings.
16659 for var in reload_cmds \
16660 old_postinstall_cmds \
16661 old_postuninstall_cmds \
16662 old_archive_cmds \
16663 extract_expsyms_cmds \
16664 old_archive_from_new_cmds \
16665 old_archive_from_expsyms_cmds \
16666 archive_cmds \
16667 archive_expsym_cmds \
16668 module_cmds \
16669 module_expsym_cmds \
16670 export_symbols_cmds \
16671 prelink_cmds \
16672 postinstall_cmds \
16673 postuninstall_cmds \
16674 finish_cmds \
16675 sys_lib_search_path_spec \
16676 sys_lib_dlsearch_path_spec \
16677 reload_cmds_GO \
16678 old_archive_cmds_GO \
16679 old_archive_from_new_cmds_GO \
16680 old_archive_from_expsyms_cmds_GO \
16681 archive_cmds_GO \
16682 archive_expsym_cmds_GO \
16683 module_cmds_GO \
16684 module_expsym_cmds_GO \
16685 export_symbols_cmds_GO \
16686 prelink_cmds_GO; do
16687 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16688 *[\\\\\\\`\\"\\\$]*)
16689 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16692 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16694 esac
16695 done
16697 ac_aux_dir='$ac_aux_dir'
16698 xsi_shell='$xsi_shell'
16699 lt_shell_append='$lt_shell_append'
16701 # See if we are running on zsh, and set the options which allow our
16702 # commands through without removal of \ escapes INIT.
16703 if test -n "\${ZSH_VERSION+set}" ; then
16704 setopt NO_GLOB_SUBST
16708 PACKAGE='$PACKAGE'
16709 VERSION='$VERSION'
16710 TIMESTAMP='$TIMESTAMP'
16711 RM='$RM'
16712 ofile='$ofile'
16719 # Variables needed in config.status (file generation) which aren't already
16720 # passed by autoconf.
16721 SUBDIRS="$SUBDIRS"
16724 _ACEOF
16726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16728 # Handling of arguments.
16729 for ac_config_target in $ac_config_targets
16731 case $ac_config_target in
16732 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16733 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16734 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16735 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16736 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16737 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16738 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16740 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16741 esac
16742 done
16745 # If the user did not use the arguments to specify the items to instantiate,
16746 # then the envvar interface is used. Set only those that are not.
16747 # We use the long form for the default assignment because of an extremely
16748 # bizarre bug on SunOS 4.1.3.
16749 if $ac_need_defaults; then
16750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16755 # Have a temporary directory for convenience. Make it in the build tree
16756 # simply because there is no reason against having it here, and in addition,
16757 # creating and moving files from /tmp can sometimes cause problems.
16758 # Hook for its removal unless debugging.
16759 # Note that there is a small window in which the directory will not be cleaned:
16760 # after its creation but before its name has been assigned to `$tmp'.
16761 $debug ||
16763 tmp=
16764 trap 'exit_status=$?
16765 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16767 trap 'as_fn_exit 1' 1 2 13 15
16769 # Create a (secure) tmp directory for tmp files.
16772 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16773 test -n "$tmp" && test -d "$tmp"
16774 } ||
16776 tmp=./conf$$-$RANDOM
16777 (umask 077 && mkdir "$tmp")
16778 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16780 # Set up the scripts for CONFIG_FILES section.
16781 # No need to generate them if there are no CONFIG_FILES.
16782 # This happens for instance with `./config.status config.h'.
16783 if test -n "$CONFIG_FILES"; then
16786 ac_cr=`echo X | tr X '\015'`
16787 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16788 # But we know of no other shell where ac_cr would be empty at this
16789 # point, so we can use a bashism as a fallback.
16790 if test "x$ac_cr" = x; then
16791 eval ac_cr=\$\'\\r\'
16793 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16794 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16795 ac_cs_awk_cr='\r'
16796 else
16797 ac_cs_awk_cr=$ac_cr
16800 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16801 _ACEOF
16805 echo "cat >conf$$subs.awk <<_ACEOF" &&
16806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16807 echo "_ACEOF"
16808 } >conf$$subs.sh ||
16809 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16810 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16811 ac_delim='%!_!# '
16812 for ac_last_try in false false false false false :; do
16813 . ./conf$$subs.sh ||
16814 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16816 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16817 if test $ac_delim_n = $ac_delim_num; then
16818 break
16819 elif $ac_last_try; then
16820 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16821 else
16822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16824 done
16825 rm -f conf$$subs.sh
16827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16828 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16829 _ACEOF
16830 sed -n '
16832 s/^/S["/; s/!.*/"]=/
16835 s/^[^!]*!//
16836 :repl
16837 t repl
16838 s/'"$ac_delim"'$//
16839 t delim
16842 s/\(.\{148\}\).*/\1/
16843 t more1
16844 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16847 b repl
16848 :more1
16849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16852 s/.\{148\}//
16853 t nl
16854 :delim
16856 s/\(.\{148\}\).*/\1/
16857 t more2
16858 s/["\\]/\\&/g; s/^/"/; s/$/"/
16861 :more2
16862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16865 s/.\{148\}//
16866 t delim
16867 ' <conf$$subs.awk | sed '
16868 /^[^""]/{
16870 s/\n//
16872 ' >>$CONFIG_STATUS || ac_write_fail=1
16873 rm -f conf$$subs.awk
16874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16875 _ACAWK
16876 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16877 for (key in S) S_is_set[key] = 1
16878 FS = "\a"
16882 line = $ 0
16883 nfields = split(line, field, "@")
16884 substed = 0
16885 len = length(field[1])
16886 for (i = 2; i < nfields; i++) {
16887 key = field[i]
16888 keylen = length(key)
16889 if (S_is_set[key]) {
16890 value = S[key]
16891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16892 len += length(value) + length(field[++i])
16893 substed = 1
16894 } else
16895 len += 1 + keylen
16898 print line
16901 _ACAWK
16902 _ACEOF
16903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16904 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16905 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16906 else
16908 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16909 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16910 _ACEOF
16912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16914 # trailing colons and then remove the whole line if VPATH becomes empty
16915 # (actually we leave an empty line to preserve line numbers).
16916 if test "x$srcdir" = x.; then
16917 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16918 s/:*\$(srcdir):*/:/
16919 s/:*\${srcdir}:*/:/
16920 s/:*@srcdir@:*/:/
16921 s/^\([^=]*=[ ]*\):*/\1/
16922 s/:*$//
16923 s/^[^=]*=[ ]*$//
16927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16928 fi # test -n "$CONFIG_FILES"
16930 # Set up the scripts for CONFIG_HEADERS section.
16931 # No need to generate them if there are no CONFIG_HEADERS.
16932 # This happens for instance with `./config.status Makefile'.
16933 if test -n "$CONFIG_HEADERS"; then
16934 cat >"$tmp/defines.awk" <<\_ACAWK ||
16935 BEGIN {
16936 _ACEOF
16938 # Transform confdefs.h into an awk script `defines.awk', embedded as
16939 # here-document in config.status, that substitutes the proper values into
16940 # config.h.in to produce config.h.
16942 # Create a delimiter string that does not exist in confdefs.h, to ease
16943 # handling of long lines.
16944 ac_delim='%!_!# '
16945 for ac_last_try in false false :; do
16946 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16947 if test -z "$ac_t"; then
16948 break
16949 elif $ac_last_try; then
16950 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16951 else
16952 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16954 done
16956 # For the awk script, D is an array of macro values keyed by name,
16957 # likewise P contains macro parameters if any. Preserve backslash
16958 # newline sequences.
16960 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16961 sed -n '
16962 s/.\{148\}/&'"$ac_delim"'/g
16963 t rset
16964 :rset
16965 s/^[ ]*#[ ]*define[ ][ ]*/ /
16966 t def
16968 :def
16969 s/\\$//
16970 t bsnl
16971 s/["\\]/\\&/g
16972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16973 D["\1"]=" \3"/p
16974 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16976 :bsnl
16977 s/["\\]/\\&/g
16978 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16979 D["\1"]=" \3\\\\\\n"\\/p
16980 t cont
16981 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16982 t cont
16984 :cont
16986 s/.\{148\}/&'"$ac_delim"'/g
16987 t clear
16988 :clear
16989 s/\\$//
16990 t bsnlc
16991 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16993 :bsnlc
16994 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16995 b cont
16996 ' <confdefs.h | sed '
16997 s/'"$ac_delim"'/"\\\
16998 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17001 for (key in D) D_is_set[key] = 1
17002 FS = "\a"
17004 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17005 line = \$ 0
17006 split(line, arg, " ")
17007 if (arg[1] == "#") {
17008 defundef = arg[2]
17009 mac1 = arg[3]
17010 } else {
17011 defundef = substr(arg[1], 2)
17012 mac1 = arg[2]
17014 split(mac1, mac2, "(") #)
17015 macro = mac2[1]
17016 prefix = substr(line, 1, index(line, defundef) - 1)
17017 if (D_is_set[macro]) {
17018 # Preserve the white space surrounding the "#".
17019 print prefix "define", macro P[macro] D[macro]
17020 next
17021 } else {
17022 # Replace #undef with comments. This is necessary, for example,
17023 # in the case of _POSIX_SOURCE, which is predefined and required
17024 # on some systems where configure will not decide to define it.
17025 if (defundef == "undef") {
17026 print "/*", prefix defundef, macro, "*/"
17027 next
17031 { print }
17032 _ACAWK
17033 _ACEOF
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17036 fi # test -n "$CONFIG_HEADERS"
17039 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17040 shift
17041 for ac_tag
17043 case $ac_tag in
17044 :[FHLC]) ac_mode=$ac_tag; continue;;
17045 esac
17046 case $ac_mode$ac_tag in
17047 :[FHL]*:*);;
17048 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17049 :[FH]-) ac_tag=-:-;;
17050 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17051 esac
17052 ac_save_IFS=$IFS
17053 IFS=:
17054 set x $ac_tag
17055 IFS=$ac_save_IFS
17056 shift
17057 ac_file=$1
17058 shift
17060 case $ac_mode in
17061 :L) ac_source=$1;;
17062 :[FH])
17063 ac_file_inputs=
17064 for ac_f
17066 case $ac_f in
17067 -) ac_f="$tmp/stdin";;
17068 *) # Look for the file first in the build tree, then in the source tree
17069 # (if the path is not absolute). The absolute path cannot be DOS-style,
17070 # because $ac_f cannot contain `:'.
17071 test -f "$ac_f" ||
17072 case $ac_f in
17073 [\\/$]*) false;;
17074 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17075 esac ||
17076 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17077 esac
17078 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17079 as_fn_append ac_file_inputs " '$ac_f'"
17080 done
17082 # Let's still pretend it is `configure' which instantiates (i.e., don't
17083 # use $as_me), people would be surprised to read:
17084 # /* config.h. Generated by config.status. */
17085 configure_input='Generated from '`
17086 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17087 `' by configure.'
17088 if test x"$ac_file" != x-; then
17089 configure_input="$ac_file. $configure_input"
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17091 $as_echo "$as_me: creating $ac_file" >&6;}
17093 # Neutralize special characters interpreted by sed in replacement strings.
17094 case $configure_input in #(
17095 *\&* | *\|* | *\\* )
17096 ac_sed_conf_input=`$as_echo "$configure_input" |
17097 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17098 *) ac_sed_conf_input=$configure_input;;
17099 esac
17101 case $ac_tag in
17102 *:-:* | *:-) cat >"$tmp/stdin" \
17103 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17104 esac
17106 esac
17108 ac_dir=`$as_dirname -- "$ac_file" ||
17109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17110 X"$ac_file" : 'X\(//\)[^/]' \| \
17111 X"$ac_file" : 'X\(//\)$' \| \
17112 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17113 $as_echo X"$ac_file" |
17114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17115 s//\1/
17118 /^X\(\/\/\)[^/].*/{
17119 s//\1/
17122 /^X\(\/\/\)$/{
17123 s//\1/
17126 /^X\(\/\).*/{
17127 s//\1/
17130 s/.*/./; q'`
17131 as_dir="$ac_dir"; as_fn_mkdir_p
17132 ac_builddir=.
17134 case "$ac_dir" in
17135 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17137 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17138 # A ".." for each directory in $ac_dir_suffix.
17139 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17140 case $ac_top_builddir_sub in
17141 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17142 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17143 esac ;;
17144 esac
17145 ac_abs_top_builddir=$ac_pwd
17146 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17147 # for backward compatibility:
17148 ac_top_builddir=$ac_top_build_prefix
17150 case $srcdir in
17151 .) # We are building in place.
17152 ac_srcdir=.
17153 ac_top_srcdir=$ac_top_builddir_sub
17154 ac_abs_top_srcdir=$ac_pwd ;;
17155 [\\/]* | ?:[\\/]* ) # Absolute name.
17156 ac_srcdir=$srcdir$ac_dir_suffix;
17157 ac_top_srcdir=$srcdir
17158 ac_abs_top_srcdir=$srcdir ;;
17159 *) # Relative name.
17160 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17161 ac_top_srcdir=$ac_top_build_prefix$srcdir
17162 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17163 esac
17164 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17167 case $ac_mode in
17170 # CONFIG_FILE
17173 case $INSTALL in
17174 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17175 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17176 esac
17177 ac_MKDIR_P=$MKDIR_P
17178 case $MKDIR_P in
17179 [\\/$]* | ?:[\\/]* ) ;;
17180 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17181 esac
17182 _ACEOF
17184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17185 # If the template does not know about datarootdir, expand it.
17186 # FIXME: This hack should be removed a few years after 2.60.
17187 ac_datarootdir_hack=; ac_datarootdir_seen=
17188 ac_sed_dataroot='
17189 /datarootdir/ {
17193 /@datadir@/p
17194 /@docdir@/p
17195 /@infodir@/p
17196 /@localedir@/p
17197 /@mandir@/p'
17198 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17199 *datarootdir*) ac_datarootdir_seen=yes;;
17200 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17202 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17203 _ACEOF
17204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17205 ac_datarootdir_hack='
17206 s&@datadir@&$datadir&g
17207 s&@docdir@&$docdir&g
17208 s&@infodir@&$infodir&g
17209 s&@localedir@&$localedir&g
17210 s&@mandir@&$mandir&g
17211 s&\\\${datarootdir}&$datarootdir&g' ;;
17212 esac
17213 _ACEOF
17215 # Neutralize VPATH when `$srcdir' = `.'.
17216 # Shell code in configure.ac might set extrasub.
17217 # FIXME: do we really want to maintain this feature?
17218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17219 ac_sed_extra="$ac_vpsub
17220 $extrasub
17221 _ACEOF
17222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17225 s|@configure_input@|$ac_sed_conf_input|;t t
17226 s&@top_builddir@&$ac_top_builddir_sub&;t t
17227 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17228 s&@srcdir@&$ac_srcdir&;t t
17229 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17230 s&@top_srcdir@&$ac_top_srcdir&;t t
17231 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17232 s&@builddir@&$ac_builddir&;t t
17233 s&@abs_builddir@&$ac_abs_builddir&;t t
17234 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17235 s&@INSTALL@&$ac_INSTALL&;t t
17236 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17237 $ac_datarootdir_hack
17239 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17240 || as_fn_error "could not create $ac_file" "$LINENO" 5
17242 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17243 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17244 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17246 which seems to be undefined. Please make sure it is defined." >&5
17247 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17248 which seems to be undefined. Please make sure it is defined." >&2;}
17250 rm -f "$tmp/stdin"
17251 case $ac_file in
17252 -) cat "$tmp/out" && rm -f "$tmp/out";;
17253 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17254 esac \
17255 || as_fn_error "could not create $ac_file" "$LINENO" 5
17259 # CONFIG_HEADER
17261 if test x"$ac_file" != x-; then
17263 $as_echo "/* $configure_input */" \
17264 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17265 } >"$tmp/config.h" \
17266 || as_fn_error "could not create $ac_file" "$LINENO" 5
17267 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17269 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17270 else
17271 rm -f "$ac_file"
17272 mv "$tmp/config.h" "$ac_file" \
17273 || as_fn_error "could not create $ac_file" "$LINENO" 5
17275 else
17276 $as_echo "/* $configure_input */" \
17277 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17278 || as_fn_error "could not create -" "$LINENO" 5
17280 # Compute "$ac_file"'s index in $config_headers.
17281 _am_arg="$ac_file"
17282 _am_stamp_count=1
17283 for _am_header in $config_headers :; do
17284 case $_am_header in
17285 $_am_arg | $_am_arg:* )
17286 break ;;
17288 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17289 esac
17290 done
17291 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17292 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17293 X"$_am_arg" : 'X\(//\)[^/]' \| \
17294 X"$_am_arg" : 'X\(//\)$' \| \
17295 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17296 $as_echo X"$_am_arg" |
17297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17298 s//\1/
17301 /^X\(\/\/\)[^/].*/{
17302 s//\1/
17305 /^X\(\/\/\)$/{
17306 s//\1/
17309 /^X\(\/\).*/{
17310 s//\1/
17313 s/.*/./; q'`/stamp-h$_am_stamp_count
17316 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17317 $as_echo "$as_me: executing $ac_file commands" >&6;}
17319 esac
17322 case $ac_file$ac_mode in
17323 "default-1":C)
17324 # Only add multilib support code if we just rebuilt the top-level
17325 # Makefile.
17326 case " $CONFIG_FILES " in
17327 *" Makefile "*)
17328 ac_file=Makefile . ${multi_basedir}/config-ml.in
17330 esac ;;
17331 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17332 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17333 # are listed without --file. Let's play safe and only enable the eval
17334 # if we detect the quoting.
17335 case $CONFIG_FILES in
17336 *\'*) eval set x "$CONFIG_FILES" ;;
17337 *) set x $CONFIG_FILES ;;
17338 esac
17339 shift
17340 for mf
17342 # Strip MF so we end up with the name of the file.
17343 mf=`echo "$mf" | sed -e 's/:.*$//'`
17344 # Check whether this is an Automake generated Makefile or not.
17345 # We used to match only the files named `Makefile.in', but
17346 # some people rename them; so instead we look at the file content.
17347 # Grep'ing the first line is not enough: some people post-process
17348 # each Makefile.in and add a new line on top of each file to say so.
17349 # Grep'ing the whole file is not good either: AIX grep has a line
17350 # limit of 2048, but all sed's we know have understand at least 4000.
17351 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17352 dirpart=`$as_dirname -- "$mf" ||
17353 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17354 X"$mf" : 'X\(//\)[^/]' \| \
17355 X"$mf" : 'X\(//\)$' \| \
17356 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17357 $as_echo X"$mf" |
17358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17359 s//\1/
17362 /^X\(\/\/\)[^/].*/{
17363 s//\1/
17366 /^X\(\/\/\)$/{
17367 s//\1/
17370 /^X\(\/\).*/{
17371 s//\1/
17374 s/.*/./; q'`
17375 else
17376 continue
17378 # Extract the definition of DEPDIR, am__include, and am__quote
17379 # from the Makefile without running `make'.
17380 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17381 test -z "$DEPDIR" && continue
17382 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17383 test -z "am__include" && continue
17384 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17385 # When using ansi2knr, U may be empty or an underscore; expand it
17386 U=`sed -n 's/^U = //p' < "$mf"`
17387 # Find all dependency output files, they are included files with
17388 # $(DEPDIR) in their names. We invoke sed twice because it is the
17389 # simplest approach to changing $(DEPDIR) to its actual value in the
17390 # expansion.
17391 for file in `sed -n "
17392 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17393 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17394 # Make sure the directory exists.
17395 test -f "$dirpart/$file" && continue
17396 fdir=`$as_dirname -- "$file" ||
17397 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17398 X"$file" : 'X\(//\)[^/]' \| \
17399 X"$file" : 'X\(//\)$' \| \
17400 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17401 $as_echo X"$file" |
17402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17403 s//\1/
17406 /^X\(\/\/\)[^/].*/{
17407 s//\1/
17410 /^X\(\/\/\)$/{
17411 s//\1/
17414 /^X\(\/\).*/{
17415 s//\1/
17418 s/.*/./; q'`
17419 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17420 # echo "creating $dirpart/$file"
17421 echo '# dummy' > "$dirpart/$file"
17422 done
17423 done
17426 "libtool":C)
17428 # See if we are running on zsh, and set the options which allow our
17429 # commands through without removal of \ escapes.
17430 if test -n "${ZSH_VERSION+set}" ; then
17431 setopt NO_GLOB_SUBST
17434 cfgfile="${ofile}T"
17435 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17436 $RM "$cfgfile"
17438 cat <<_LT_EOF >> "$cfgfile"
17439 #! $SHELL
17441 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17442 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17443 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17444 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17446 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17447 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17448 # Written by Gordon Matzigkeit, 1996
17450 # This file is part of GNU Libtool.
17452 # GNU Libtool is free software; you can redistribute it and/or
17453 # modify it under the terms of the GNU General Public License as
17454 # published by the Free Software Foundation; either version 2 of
17455 # the License, or (at your option) any later version.
17457 # As a special exception to the GNU General Public License,
17458 # if you distribute this file as part of a program or library that
17459 # is built using GNU Libtool, you may include this file under the
17460 # same distribution terms that you use for the rest of that program.
17462 # GNU Libtool is distributed in the hope that it will be useful,
17463 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17464 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17465 # GNU General Public License for more details.
17467 # You should have received a copy of the GNU General Public License
17468 # along with GNU Libtool; see the file COPYING. If not, a copy
17469 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17470 # obtained by writing to the Free Software Foundation, Inc.,
17471 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17474 # The names of the tagged configurations supported by this script.
17475 available_tags="GO "
17477 # ### BEGIN LIBTOOL CONFIG
17479 # A sed program that does not truncate output.
17480 SED=$lt_SED
17482 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17483 Xsed="\$SED -e 1s/^X//"
17485 # A grep program that handles long lines.
17486 GREP=$lt_GREP
17488 # An ERE matcher.
17489 EGREP=$lt_EGREP
17491 # A literal string matcher.
17492 FGREP=$lt_FGREP
17494 # Shell to use when invoking shell scripts.
17495 SHELL=$lt_SHELL
17497 # An echo program that protects backslashes.
17498 ECHO=$lt_ECHO
17500 # Which release of libtool.m4 was used?
17501 macro_version=$macro_version
17502 macro_revision=$macro_revision
17504 # Whether or not to build shared libraries.
17505 build_libtool_libs=$enable_shared
17507 # Whether or not to build static libraries.
17508 build_old_libs=$enable_static
17510 # What type of objects to build.
17511 pic_mode=$pic_mode
17513 # Whether or not to optimize for fast installation.
17514 fast_install=$enable_fast_install
17516 # The host system.
17517 host_alias=$host_alias
17518 host=$host
17519 host_os=$host_os
17521 # The build system.
17522 build_alias=$build_alias
17523 build=$build
17524 build_os=$build_os
17526 # A BSD- or MS-compatible name lister.
17527 NM=$lt_NM
17529 # Whether we need soft or hard links.
17530 LN_S=$lt_LN_S
17532 # What is the maximum length of a command?
17533 max_cmd_len=$max_cmd_len
17535 # Object file suffix (normally "o").
17536 objext=$ac_objext
17538 # Executable file suffix (normally "").
17539 exeext=$exeext
17541 # whether the shell understands "unset".
17542 lt_unset=$lt_unset
17544 # turn spaces into newlines.
17545 SP2NL=$lt_lt_SP2NL
17547 # turn newlines into spaces.
17548 NL2SP=$lt_lt_NL2SP
17550 # An object symbol dumper.
17551 OBJDUMP=$lt_OBJDUMP
17553 # Method to check whether dependent libraries are shared objects.
17554 deplibs_check_method=$lt_deplibs_check_method
17556 # Command to use when deplibs_check_method == "file_magic".
17557 file_magic_cmd=$lt_file_magic_cmd
17559 # The archiver.
17560 AR=$lt_AR
17561 AR_FLAGS=$lt_AR_FLAGS
17563 # A symbol stripping program.
17564 STRIP=$lt_STRIP
17566 # Commands used to install an old-style archive.
17567 RANLIB=$lt_RANLIB
17568 old_postinstall_cmds=$lt_old_postinstall_cmds
17569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17571 # Whether to use a lock for old archive extraction.
17572 lock_old_archive_extraction=$lock_old_archive_extraction
17574 # A C compiler.
17575 LTCC=$lt_CC
17577 # LTCC compiler flags.
17578 LTCFLAGS=$lt_CFLAGS
17580 # Take the output of nm and produce a listing of raw symbols and C names.
17581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17583 # Transform the output of nm in a proper C declaration.
17584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17586 # Transform the output of nm in a C name address pair.
17587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17589 # Transform the output of nm in a C name address pair when lib prefix is needed.
17590 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17592 # The name of the directory that contains temporary libtool files.
17593 objdir=$objdir
17595 # Used to examine libraries when file_magic_cmd begins with "file".
17596 MAGIC_CMD=$MAGIC_CMD
17598 # Must we lock files when doing compilation?
17599 need_locks=$lt_need_locks
17601 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17602 DSYMUTIL=$lt_DSYMUTIL
17604 # Tool to change global to local symbols on Mac OS X.
17605 NMEDIT=$lt_NMEDIT
17607 # Tool to manipulate fat objects and archives on Mac OS X.
17608 LIPO=$lt_LIPO
17610 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17611 OTOOL=$lt_OTOOL
17613 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17614 OTOOL64=$lt_OTOOL64
17616 # Old archive suffix (normally "a").
17617 libext=$libext
17619 # Shared library suffix (normally ".so").
17620 shrext_cmds=$lt_shrext_cmds
17622 # The commands to extract the exported symbol list from a shared archive.
17623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17625 # Variables whose values should be saved in libtool wrapper scripts and
17626 # restored at link time.
17627 variables_saved_for_relink=$lt_variables_saved_for_relink
17629 # Do we need the "lib" prefix for modules?
17630 need_lib_prefix=$need_lib_prefix
17632 # Do we need a version for libraries?
17633 need_version=$need_version
17635 # Library versioning type.
17636 version_type=$version_type
17638 # Shared library runtime path variable.
17639 runpath_var=$runpath_var
17641 # Shared library path variable.
17642 shlibpath_var=$shlibpath_var
17644 # Is shlibpath searched before the hard-coded library search path?
17645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17647 # Format of library name prefix.
17648 libname_spec=$lt_libname_spec
17650 # List of archive names. First name is the real one, the rest are links.
17651 # The last name is the one that the linker finds with -lNAME
17652 library_names_spec=$lt_library_names_spec
17654 # The coded name of the library, if different from the real name.
17655 soname_spec=$lt_soname_spec
17657 # Permission mode override for installation of shared libraries.
17658 install_override_mode=$lt_install_override_mode
17660 # Command to use after installation of a shared archive.
17661 postinstall_cmds=$lt_postinstall_cmds
17663 # Command to use after uninstallation of a shared archive.
17664 postuninstall_cmds=$lt_postuninstall_cmds
17666 # Commands used to finish a libtool library installation in a directory.
17667 finish_cmds=$lt_finish_cmds
17669 # As "finish_cmds", except a single script fragment to be evaled but
17670 # not shown.
17671 finish_eval=$lt_finish_eval
17673 # Whether we should hardcode library paths into libraries.
17674 hardcode_into_libs=$hardcode_into_libs
17676 # Compile-time system search path for libraries.
17677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17679 # Run-time system search path for libraries.
17680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17682 # Whether dlopen is supported.
17683 dlopen_support=$enable_dlopen
17685 # Whether dlopen of programs is supported.
17686 dlopen_self=$enable_dlopen_self
17688 # Whether dlopen of statically linked programs is supported.
17689 dlopen_self_static=$enable_dlopen_self_static
17691 # Commands to strip libraries.
17692 old_striplib=$lt_old_striplib
17693 striplib=$lt_striplib
17696 # The linker used to build libraries.
17697 LD=$lt_LD
17699 # How to create reloadable object files.
17700 reload_flag=$lt_reload_flag
17701 reload_cmds=$lt_reload_cmds
17703 # Commands used to build an old-style archive.
17704 old_archive_cmds=$lt_old_archive_cmds
17706 # A language specific compiler.
17707 CC=$lt_compiler
17709 # Is the compiler the GNU compiler?
17710 with_gcc=$GCC
17712 # Compiler flag to turn off builtin functions.
17713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17715 # How to pass a linker flag through the compiler.
17716 wl=$lt_lt_prog_compiler_wl
17718 # Additional compiler flags for building library objects.
17719 pic_flag=$lt_lt_prog_compiler_pic
17721 # Compiler flag to prevent dynamic linking.
17722 link_static_flag=$lt_lt_prog_compiler_static
17724 # Does compiler simultaneously support -c and -o options?
17725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17727 # Whether or not to add -lc for building shared libraries.
17728 build_libtool_need_lc=$archive_cmds_need_lc
17730 # Whether or not to disallow shared libs when runtime libs are static.
17731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17733 # Compiler flag to allow reflexive dlopens.
17734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17736 # Compiler flag to generate shared objects directly from archives.
17737 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17739 # Whether the compiler copes with passing no objects directly.
17740 compiler_needs_object=$lt_compiler_needs_object
17742 # Create an old-style archive from a shared archive.
17743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17745 # Create a temporary old-style archive to link instead of a shared archive.
17746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17748 # Commands used to build a shared archive.
17749 archive_cmds=$lt_archive_cmds
17750 archive_expsym_cmds=$lt_archive_expsym_cmds
17752 # Commands used to build a loadable module if different from building
17753 # a shared archive.
17754 module_cmds=$lt_module_cmds
17755 module_expsym_cmds=$lt_module_expsym_cmds
17757 # Whether we are building with GNU ld or not.
17758 with_gnu_ld=$lt_with_gnu_ld
17760 # Flag that allows shared libraries with undefined symbols to be built.
17761 allow_undefined_flag=$lt_allow_undefined_flag
17763 # Flag that enforces no undefined symbols.
17764 no_undefined_flag=$lt_no_undefined_flag
17766 # Flag to hardcode \$libdir into a binary during linking.
17767 # This must work even if \$libdir does not exist
17768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17770 # If ld is used when linking, flag to hardcode \$libdir into a binary
17771 # during linking. This must work even if \$libdir does not exist.
17772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17774 # Whether we need a single "-rpath" flag with a separated argument.
17775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17778 # DIR into the resulting binary.
17779 hardcode_direct=$hardcode_direct
17781 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17782 # DIR into the resulting binary and the resulting library dependency is
17783 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17784 # library is relocated.
17785 hardcode_direct_absolute=$hardcode_direct_absolute
17787 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17788 # into the resulting binary.
17789 hardcode_minus_L=$hardcode_minus_L
17791 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17792 # into the resulting binary.
17793 hardcode_shlibpath_var=$hardcode_shlibpath_var
17795 # Set to "yes" if building a shared library automatically hardcodes DIR
17796 # into the library and all subsequent libraries and executables linked
17797 # against it.
17798 hardcode_automatic=$hardcode_automatic
17800 # Set to yes if linker adds runtime paths of dependent libraries
17801 # to runtime path list.
17802 inherit_rpath=$inherit_rpath
17804 # Whether libtool must link a program against all its dependency libraries.
17805 link_all_deplibs=$link_all_deplibs
17807 # Fix the shell variable \$srcfile for the compiler.
17808 fix_srcfile_path=$lt_fix_srcfile_path
17810 # Set to "yes" if exported symbols are required.
17811 always_export_symbols=$always_export_symbols
17813 # The commands to list exported symbols.
17814 export_symbols_cmds=$lt_export_symbols_cmds
17816 # Symbols that should not be listed in the preloaded symbols.
17817 exclude_expsyms=$lt_exclude_expsyms
17819 # Symbols that must always be exported.
17820 include_expsyms=$lt_include_expsyms
17822 # Commands necessary for linking programs (against libraries) with templates.
17823 prelink_cmds=$lt_prelink_cmds
17825 # Specify filename containing input files.
17826 file_list_spec=$lt_file_list_spec
17828 # How to hardcode a shared library path into an executable.
17829 hardcode_action=$hardcode_action
17831 # ### END LIBTOOL CONFIG
17833 _LT_EOF
17835 case $host_os in
17836 aix3*)
17837 cat <<\_LT_EOF >> "$cfgfile"
17838 # AIX sometimes has problems with the GCC collect2 program. For some
17839 # reason, if we set the COLLECT_NAMES environment variable, the problems
17840 # vanish in a puff of smoke.
17841 if test "X${COLLECT_NAMES+set}" != Xset; then
17842 COLLECT_NAMES=
17843 export COLLECT_NAMES
17845 _LT_EOF
17847 esac
17850 ltmain="$ac_aux_dir/ltmain.sh"
17853 # We use sed instead of cat because bash on DJGPP gets confused if
17854 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17855 # text mode, it properly converts lines to CR/LF. This bash problem
17856 # is reportedly fixed, but why not run on old versions too?
17857 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17858 || (rm -f "$cfgfile"; exit 1)
17860 case $xsi_shell in
17861 yes)
17862 cat << \_LT_EOF >> "$cfgfile"
17864 # func_dirname file append nondir_replacement
17865 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17866 # otherwise set result to NONDIR_REPLACEMENT.
17867 func_dirname ()
17869 case ${1} in
17870 */*) func_dirname_result="${1%/*}${2}" ;;
17871 * ) func_dirname_result="${3}" ;;
17872 esac
17875 # func_basename file
17876 func_basename ()
17878 func_basename_result="${1##*/}"
17881 # func_dirname_and_basename file append nondir_replacement
17882 # perform func_basename and func_dirname in a single function
17883 # call:
17884 # dirname: Compute the dirname of FILE. If nonempty,
17885 # add APPEND to the result, otherwise set result
17886 # to NONDIR_REPLACEMENT.
17887 # value returned in "$func_dirname_result"
17888 # basename: Compute filename of FILE.
17889 # value retuned in "$func_basename_result"
17890 # Implementation must be kept synchronized with func_dirname
17891 # and func_basename. For efficiency, we do not delegate to
17892 # those functions but instead duplicate the functionality here.
17893 func_dirname_and_basename ()
17895 case ${1} in
17896 */*) func_dirname_result="${1%/*}${2}" ;;
17897 * ) func_dirname_result="${3}" ;;
17898 esac
17899 func_basename_result="${1##*/}"
17902 # func_stripname prefix suffix name
17903 # strip PREFIX and SUFFIX off of NAME.
17904 # PREFIX and SUFFIX must not contain globbing or regex special
17905 # characters, hashes, percent signs, but SUFFIX may contain a leading
17906 # dot (in which case that matches only a dot).
17907 func_stripname ()
17909 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17910 # positional parameters, so assign one to ordinary parameter first.
17911 func_stripname_result=${3}
17912 func_stripname_result=${func_stripname_result#"${1}"}
17913 func_stripname_result=${func_stripname_result%"${2}"}
17916 # func_opt_split
17917 func_opt_split ()
17919 func_opt_split_opt=${1%%=*}
17920 func_opt_split_arg=${1#*=}
17923 # func_lo2o object
17924 func_lo2o ()
17926 case ${1} in
17927 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17928 *) func_lo2o_result=${1} ;;
17929 esac
17932 # func_xform libobj-or-source
17933 func_xform ()
17935 func_xform_result=${1%.*}.lo
17938 # func_arith arithmetic-term...
17939 func_arith ()
17941 func_arith_result=$(( $* ))
17944 # func_len string
17945 # STRING may not start with a hyphen.
17946 func_len ()
17948 func_len_result=${#1}
17951 _LT_EOF
17953 *) # Bourne compatible functions.
17954 cat << \_LT_EOF >> "$cfgfile"
17956 # func_dirname file append nondir_replacement
17957 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17958 # otherwise set result to NONDIR_REPLACEMENT.
17959 func_dirname ()
17961 # Extract subdirectory from the argument.
17962 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17963 if test "X$func_dirname_result" = "X${1}"; then
17964 func_dirname_result="${3}"
17965 else
17966 func_dirname_result="$func_dirname_result${2}"
17970 # func_basename file
17971 func_basename ()
17973 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17977 # func_stripname prefix suffix name
17978 # strip PREFIX and SUFFIX off of NAME.
17979 # PREFIX and SUFFIX must not contain globbing or regex special
17980 # characters, hashes, percent signs, but SUFFIX may contain a leading
17981 # dot (in which case that matches only a dot).
17982 # func_strip_suffix prefix name
17983 func_stripname ()
17985 case ${2} in
17986 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17987 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17988 esac
17991 # sed scripts:
17992 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17993 my_sed_long_arg='1s/^-[^=]*=//'
17995 # func_opt_split
17996 func_opt_split ()
17998 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17999 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18002 # func_lo2o object
18003 func_lo2o ()
18005 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18008 # func_xform libobj-or-source
18009 func_xform ()
18011 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18014 # func_arith arithmetic-term...
18015 func_arith ()
18017 func_arith_result=`expr "$@"`
18020 # func_len string
18021 # STRING may not start with a hyphen.
18022 func_len ()
18024 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18027 _LT_EOF
18028 esac
18030 case $lt_shell_append in
18031 yes)
18032 cat << \_LT_EOF >> "$cfgfile"
18034 # func_append var value
18035 # Append VALUE to the end of shell variable VAR.
18036 func_append ()
18038 eval "$1+=\$2"
18040 _LT_EOF
18043 cat << \_LT_EOF >> "$cfgfile"
18045 # func_append var value
18046 # Append VALUE to the end of shell variable VAR.
18047 func_append ()
18049 eval "$1=\$$1\$2"
18052 _LT_EOF
18054 esac
18057 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18058 || (rm -f "$cfgfile"; exit 1)
18060 mv -f "$cfgfile" "$ofile" ||
18061 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18062 chmod +x "$ofile"
18065 cat <<_LT_EOF >> "$ofile"
18067 # ### BEGIN LIBTOOL TAG CONFIG: GO
18069 # The linker used to build libraries.
18070 LD=$lt_LD_GO
18072 # How to create reloadable object files.
18073 reload_flag=$lt_reload_flag_GO
18074 reload_cmds=$lt_reload_cmds_GO
18076 # Commands used to build an old-style archive.
18077 old_archive_cmds=$lt_old_archive_cmds_GO
18079 # A language specific compiler.
18080 CC=$lt_compiler_GO
18082 # Is the compiler the GNU compiler?
18083 with_gcc=$GCC_GO
18085 # Compiler flag to turn off builtin functions.
18086 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18088 # How to pass a linker flag through the compiler.
18089 wl=$lt_lt_prog_compiler_wl_GO
18091 # Additional compiler flags for building library objects.
18092 pic_flag=$lt_lt_prog_compiler_pic_GO
18094 # Compiler flag to prevent dynamic linking.
18095 link_static_flag=$lt_lt_prog_compiler_static_GO
18097 # Does compiler simultaneously support -c and -o options?
18098 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18100 # Whether or not to add -lc for building shared libraries.
18101 build_libtool_need_lc=$archive_cmds_need_lc_GO
18103 # Whether or not to disallow shared libs when runtime libs are static.
18104 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18106 # Compiler flag to allow reflexive dlopens.
18107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18109 # Compiler flag to generate shared objects directly from archives.
18110 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18112 # Whether the compiler copes with passing no objects directly.
18113 compiler_needs_object=$lt_compiler_needs_object_GO
18115 # Create an old-style archive from a shared archive.
18116 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18118 # Create a temporary old-style archive to link instead of a shared archive.
18119 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18121 # Commands used to build a shared archive.
18122 archive_cmds=$lt_archive_cmds_GO
18123 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18125 # Commands used to build a loadable module if different from building
18126 # a shared archive.
18127 module_cmds=$lt_module_cmds_GO
18128 module_expsym_cmds=$lt_module_expsym_cmds_GO
18130 # Whether we are building with GNU ld or not.
18131 with_gnu_ld=$lt_with_gnu_ld_GO
18133 # Flag that allows shared libraries with undefined symbols to be built.
18134 allow_undefined_flag=$lt_allow_undefined_flag_GO
18136 # Flag that enforces no undefined symbols.
18137 no_undefined_flag=$lt_no_undefined_flag_GO
18139 # Flag to hardcode \$libdir into a binary during linking.
18140 # This must work even if \$libdir does not exist
18141 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18143 # If ld is used when linking, flag to hardcode \$libdir into a binary
18144 # during linking. This must work even if \$libdir does not exist.
18145 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18147 # Whether we need a single "-rpath" flag with a separated argument.
18148 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18150 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18151 # DIR into the resulting binary.
18152 hardcode_direct=$hardcode_direct_GO
18154 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18155 # DIR into the resulting binary and the resulting library dependency is
18156 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18157 # library is relocated.
18158 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18160 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18161 # into the resulting binary.
18162 hardcode_minus_L=$hardcode_minus_L_GO
18164 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18165 # into the resulting binary.
18166 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18168 # Set to "yes" if building a shared library automatically hardcodes DIR
18169 # into the library and all subsequent libraries and executables linked
18170 # against it.
18171 hardcode_automatic=$hardcode_automatic_GO
18173 # Set to yes if linker adds runtime paths of dependent libraries
18174 # to runtime path list.
18175 inherit_rpath=$inherit_rpath_GO
18177 # Whether libtool must link a program against all its dependency libraries.
18178 link_all_deplibs=$link_all_deplibs_GO
18180 # Fix the shell variable \$srcfile for the compiler.
18181 fix_srcfile_path=$lt_fix_srcfile_path_GO
18183 # Set to "yes" if exported symbols are required.
18184 always_export_symbols=$always_export_symbols_GO
18186 # The commands to list exported symbols.
18187 export_symbols_cmds=$lt_export_symbols_cmds_GO
18189 # Symbols that should not be listed in the preloaded symbols.
18190 exclude_expsyms=$lt_exclude_expsyms_GO
18192 # Symbols that must always be exported.
18193 include_expsyms=$lt_include_expsyms_GO
18195 # Commands necessary for linking programs (against libraries) with templates.
18196 prelink_cmds=$lt_prelink_cmds_GO
18198 # Specify filename containing input files.
18199 file_list_spec=$lt_file_list_spec_GO
18201 # How to hardcode a shared library path into an executable.
18202 hardcode_action=$hardcode_action_GO
18204 # ### END LIBTOOL TAG CONFIG: GO
18205 _LT_EOF
18208 "default":C) if test -n "$CONFIG_FILES"; then
18209 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18210 # that multilib installs will end up installed in the correct place.
18211 # The testsuite needs it for multilib-aware ABI baseline files.
18212 # To work around this not being passed down from config-ml.in ->
18213 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18214 # append it here. Only modify Makefiles that have just been created.
18216 # Also, get rid of this simulated-VPATH thing that automake does.
18217 cat > vpsed << \_EOF
18218 s!`test -f '$<' || echo '$(srcdir)/'`!!
18219 _EOF
18220 for i in $SUBDIRS; do
18221 case $CONFIG_FILES in
18222 *${i}/Makefile*)
18223 #echo "Adding MULTISUBDIR to $i/Makefile"
18224 sed -f vpsed $i/Makefile > tmp
18225 grep '^MULTISUBDIR =' Makefile >> tmp
18226 mv tmp $i/Makefile
18228 esac
18229 done
18230 rm vpsed
18234 esac
18235 done # for ac_tag
18238 as_fn_exit 0
18239 _ACEOF
18240 ac_clean_files=$ac_clean_files_save
18242 test $ac_write_fail = 0 ||
18243 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18246 # configure is writing to config.log, and then calls config.status.
18247 # config.status does its own redirection, appending to config.log.
18248 # Unfortunately, on DOS this fails, as config.log is still kept open
18249 # by configure, so config.status won't be able to write to it; its
18250 # output is simply discarded. So we exec the FD to /dev/null,
18251 # effectively closing config.log, so it can be properly (re)opened and
18252 # appended to by config.status. When coming back to configure, we
18253 # need to make the FD available again.
18254 if test "$no_create" != yes; then
18255 ac_cs_success=:
18256 ac_config_status_args=
18257 test "$silent" = yes &&
18258 ac_config_status_args="$ac_config_status_args --quiet"
18259 exec 5>/dev/null
18260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18261 exec 5>>config.log
18262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18263 # would make configure fail if this is the last instruction.
18264 $ac_cs_success || as_fn_exit $?
18266 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18268 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}