2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
[official-gcc.git] / libgo / configure
blob9eac5c0e5c5f510fba10254ee23d65a5232623a0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 HAVE_STAT_TIMESPEC_FALSE
606 HAVE_STAT_TIMESPEC_TRUE
607 STRUCT_EPOLL_EVENT_FD_OFFSET
608 SIZEOF_STRUCT_EPOLL_EVENT
609 MATH_FLAG
610 STRINGOPS_FLAG
611 HAVE_WAIT4_FALSE
612 HAVE_WAIT4_TRUE
613 HAVE_STRERROR_R_FALSE
614 HAVE_STRERROR_R_TRUE
615 HAVE_SYS_MMAN_H_FALSE
616 HAVE_SYS_MMAN_H_TRUE
617 PTHREAD_LIBS
618 PTHREAD_CFLAGS
619 NET_LIBS
620 MATH_LIBS
621 GOC_IS_LLGO_FALSE
622 GOC_IS_LLGO_TRUE
623 GO_SPLIT_STACK
624 USING_SPLIT_STACK_FALSE
625 USING_SPLIT_STACK_TRUE
626 SPLIT_STACK
627 OSCFLAGS
628 GO_SYSCALL_OS_ARCH_FILE
629 GO_SYSCALL_OS_FILE
630 GO_LIBCALL_OS_ARCH_FILE
631 GO_LIBCALL_OS_FILE
632 ALLGOARCHFAMILY
633 ALLGOARCH
634 GOARCH_MINFRAMESIZE
635 GOARCH_HUGEPAGESIZE
636 GOARCH_INT64ALIGN
637 GOARCH_PCQUANTUM
638 GOARCH_PHYSPAGESIZE
639 GOARCH_CACHELINESIZE
640 GOARCH_BIGENDIAN
641 GOARCH_FAMILY
642 GOARCH
643 USE_DEJAGNU
644 ALLGOOS
645 GOOS
646 LIBGO_IS_BSD_FALSE
647 LIBGO_IS_BSD_TRUE
648 LIBGO_IS_SOLARIS_FALSE
649 LIBGO_IS_SOLARIS_TRUE
650 LIBGO_IS_RTEMS_FALSE
651 LIBGO_IS_RTEMS_TRUE
652 LIBGO_IS_DRAGONFLY_FALSE
653 LIBGO_IS_DRAGONFLY_TRUE
654 LIBGO_IS_OPENBSD_FALSE
655 LIBGO_IS_OPENBSD_TRUE
656 LIBGO_IS_NETBSD_FALSE
657 LIBGO_IS_NETBSD_TRUE
658 LIBGO_IS_LINUX_FALSE
659 LIBGO_IS_LINUX_TRUE
660 LIBGO_IS_IRIX_FALSE
661 LIBGO_IS_IRIX_TRUE
662 LIBGO_IS_FREEBSD_FALSE
663 LIBGO_IS_FREEBSD_TRUE
664 LIBGO_IS_DARWIN_FALSE
665 LIBGO_IS_DARWIN_TRUE
666 go_include
667 LIBATOMIC
668 USE_LIBFFI_FALSE
669 USE_LIBFFI_TRUE
670 LIBFFIINCS
671 LIBFFI
672 nover_glibgo_toolexeclibdir
673 glibgo_toolexeclibdir
674 glibgo_toolexecdir
675 WERROR
676 WARN_FLAGS
677 CC_FOR_BUILD
678 enable_static
679 enable_shared
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
687 OBJDUMP
688 LN_S
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LIBTOOL
693 OBJCOPY
694 RANLIB
696 FGREP
697 EGREP
698 GREP
700 MAINT
701 MAINTAINER_MODE_FALSE
702 MAINTAINER_MODE_TRUE
703 GOCFLAGS
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 multi_basedir
758 libtool_VERSION
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_multilib
801 enable_dependency_tracking
802 enable_maintainer_mode
803 with_gnu_ld
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 enable_libtool_lock
809 enable_werror
810 enable_version_specific_runtime_libs
811 with_libffi
812 with_libatomic
813 with_system_libunwind
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
819 CPPFLAGS'
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
870 ac_prev=
871 ac_dashdash=
872 for ac_option
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
881 case $ac_option in
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *) ac_optarg=yes ;;
884 esac
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
890 ac_dashdash=yes ;;
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
909 --config-cache | -C)
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1204 -*) as_fn_error "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information."
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1226 esac
1227 done
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error "missing argument to $ac_option"
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1275 If a cross compiler is detected then cross compile mode will be used." >&2
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284 test "$silent" = yes && exec 6>/dev/null
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error "pwd does not report name of working directory"
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1313 /^X\(\/\/\)$/{
1314 s//\1/
1317 /^X\(\/\).*/{
1318 s//\1/
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1326 else
1327 ac_srcdir_defaulted=no
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1355 # Report the --help message.
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1368 Defaults for the options are specified in brackets.
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1392 For better control, use the options below.
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1416 cat <<\_ACEOF
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 --target=TARGET configure for building compilers for TARGET [HOST]
1427 _ACEOF
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of package-unused version-unused:";;
1433 esac
1434 cat <<\_ACEOF
1436 Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-multilib build many library versions (default)
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --enable-maintainer-mode enable make rules and dependencies not useful
1444 (and sometimes confusing) to the casual installer
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-static[=PKGS] build static libraries [default=yes]
1447 --enable-fast-install[=PKGS]
1448 optimize for fast installation [default=yes]
1449 --disable-libtool-lock avoid locking (might break parallel builds)
1450 --enable-werror turns on -Werror [default=yes]
1451 --enable-version-specific-runtime-libs
1452 Specify that runtime libraries should be installed
1453 in a compiler-specific directory
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --without-libffi don't use libffi
1462 --without-libatomic don't use libatomic
1463 --with-system-libunwind use installed libunwind
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 GOC Go compiler command
1474 GOCFLAGS Go compiler flags
1475 CPP C preprocessor
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1480 Report bugs to the package provider.
1481 _ACEOF
1482 ac_status=$?
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 package-unused configure version-unused
1544 generated by GNU Autoconf 2.64
1546 Copyright (C) 2009 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1588 ac_retval=1
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 return $ac_retval
1593 } # ac_fn_c_try_compile
1595 # ac_fn_c_try_link LINENO
1596 # -----------------------
1597 # Try to link conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_link ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest$ac_exeext
1602 if { { ac_try="$ac_link"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest$ac_exeext && {
1621 test "$cross_compiling" = yes ||
1622 $as_test_x conftest$ac_exeext
1623 }; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1629 ac_retval=1
1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633 # interfere with the next link command; also delete a directory that is
1634 # left behind by Apple's compiler. We do this before executing the actions.
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637 return $ac_retval
1639 } # ac_fn_c_try_link
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists and can be compiled using the include files in
1644 # INCLUDES, setting the cache variable VAR accordingly.
1645 ac_fn_c_check_header_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1651 $as_echo_n "(cached) " >&6
1652 else
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 eval "$3=yes"
1660 else
1661 eval "$3=no"
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 } # ac_fn_c_check_header_compile
1672 # ac_fn_c_try_cpp LINENO
1673 # ----------------------
1674 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_cpp ()
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } >/dev/null && {
1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 }; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=1
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 return $ac_retval
1707 } # ac_fn_c_try_cpp
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1713 ac_fn_c_try_run ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=$ac_status
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1749 } # ac_fn_c_try_run
1751 # ac_fn_c_check_func LINENO FUNC VAR
1752 # ----------------------------------
1753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1754 ac_fn_c_check_func ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1766 #define $2 innocuous_$2
1768 /* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $2 (); below.
1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1771 <limits.h> exists even on freestanding compilers. */
1773 #ifdef __STDC__
1774 # include <limits.h>
1775 #else
1776 # include <assert.h>
1777 #endif
1779 #undef $2
1781 /* Override any GCC internal prototype to avoid an error.
1782 Use char because int might match the return type of a GCC
1783 builtin and then its argument prototype would still apply. */
1784 #ifdef __cplusplus
1785 extern "C"
1786 #endif
1787 char $2 ();
1788 /* The GNU C library defines this for functions which it implements
1789 to always fail with ENOSYS. Some functions are actually named
1790 something starting with __ and the normal name is an alias. */
1791 #if defined __stub_$2 || defined __stub___$2
1792 choke me
1793 #endif
1796 main ()
1798 return $2 ();
1800 return 0;
1802 _ACEOF
1803 if ac_fn_c_try_link "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1808 rm -f core conftest.err conftest.$ac_objext \
1809 conftest$ac_exeext conftest.$ac_ext
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 } # ac_fn_c_check_func
1818 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1821 # the include files in INCLUDES and setting the cache variable VAR
1822 # accordingly.
1823 ac_fn_c_check_header_mongrel ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 $as_echo_n "(cached) " >&6
1832 eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835 else
1836 # Is the header compilable?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1838 $as_echo_n "checking $2 usability... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1842 #include <$2>
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"; then :
1845 ac_header_compiler=yes
1846 else
1847 ac_header_compiler=no
1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1851 $as_echo "$ac_header_compiler" >&6; }
1853 # Is the header present?
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1855 $as_echo_n "checking $2 presence... " >&6; }
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_cpp "$LINENO"; then :
1861 ac_header_preproc=yes
1862 else
1863 ac_header_preproc=no
1865 rm -f conftest.err conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1867 $as_echo "$ac_header_preproc" >&6; }
1869 # So? What about this header?
1870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1871 yes:no: )
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1873 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877 no:yes:* )
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1879 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1881 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1883 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1885 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 esac
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1893 $as_echo_n "(cached) " >&6
1894 else
1895 eval "$3=\$ac_header_compiler"
1897 eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 } # ac_fn_c_check_header_mongrel
1905 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1906 # -------------------------------------------
1907 # Tests whether TYPE exists after having included INCLUDES, setting cache
1908 # variable VAR accordingly.
1909 ac_fn_c_check_type ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 eval "$3=no"
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1922 main ()
1924 if (sizeof ($2))
1925 return 0;
1927 return 0;
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1935 main ()
1937 if (sizeof (($2)))
1938 return 0;
1940 return 0;
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1945 else
1946 eval "$3=yes"
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_c_check_type
1959 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1960 # --------------------------------------------
1961 # Tries to find the compile-time value of EXPR in a program that includes
1962 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1963 # computed
1964 ac_fn_c_compute_int ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 if test "$cross_compiling" = yes; then
1968 # Depending upon the size, compute the lo and hi bounds.
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1973 main ()
1975 static int test_array [1 - 2 * !(($2) >= 0)];
1976 test_array [0] = 0
1979 return 0;
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 ac_lo=0 ac_mid=0
1984 while :; do
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1989 main ()
1991 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1992 test_array [0] = 0
1995 return 0;
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 ac_hi=$ac_mid; break
2000 else
2001 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2002 if test $ac_lo -le $ac_mid; then
2003 ac_lo= ac_hi=
2004 break
2006 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 done
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2015 main ()
2017 static int test_array [1 - 2 * !(($2) < 0)];
2018 test_array [0] = 0
2021 return 0;
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 ac_hi=-1 ac_mid=-1
2026 while :; do
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2034 test_array [0] = 0
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_lo=$ac_mid; break
2042 else
2043 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2044 if test $ac_mid -le $ac_hi; then
2045 ac_lo= ac_hi=
2046 break
2048 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 done
2052 else
2053 ac_lo= ac_hi=
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 # Binary search between lo and hi bounds.
2059 while test "x$ac_lo" != "x$ac_hi"; do
2060 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2065 main ()
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 test_array [0] = 0
2071 return 0;
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=$ac_mid
2076 else
2077 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 done
2081 case $ac_lo in #((
2082 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2083 '') ac_retval=1 ;;
2084 esac
2085 else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2089 static long int longval () { return $2; }
2090 static unsigned long int ulongval () { return $2; }
2091 #include <stdio.h>
2092 #include <stdlib.h>
2094 main ()
2097 FILE *f = fopen ("conftest.val", "w");
2098 if (! f)
2099 return 1;
2100 if (($2) < 0)
2102 long int i = longval ();
2103 if (i != ($2))
2104 return 1;
2105 fprintf (f, "%ld", i);
2107 else
2109 unsigned long int i = ulongval ();
2110 if (i != ($2))
2111 return 1;
2112 fprintf (f, "%lu", i);
2114 /* Do not output a trailing newline, as this causes \r\n confusion
2115 on some platforms. */
2116 return ferror (f) || fclose (f) != 0;
2119 return 0;
2121 _ACEOF
2122 if ac_fn_c_try_run "$LINENO"; then :
2123 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2124 else
2125 ac_retval=1
2127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2128 conftest.$ac_objext conftest.beam conftest.$ac_ext
2129 rm -f conftest.val
2132 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2133 return $ac_retval
2135 } # ac_fn_c_compute_int
2136 cat >config.log <<_ACEOF
2137 This file contains any messages produced by compilers while
2138 running configure, to aid debugging if configure makes a mistake.
2140 It was created by package-unused $as_me version-unused, which was
2141 generated by GNU Autoconf 2.64. Invocation command line was
2143 $ $0 $@
2145 _ACEOF
2146 exec 5>>config.log
2148 cat <<_ASUNAME
2149 ## --------- ##
2150 ## Platform. ##
2151 ## --------- ##
2153 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2154 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2155 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2156 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2157 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2159 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2160 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2162 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2163 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2164 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2165 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2166 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2167 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2168 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2170 _ASUNAME
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 $as_echo "PATH: $as_dir"
2178 done
2179 IFS=$as_save_IFS
2181 } >&5
2183 cat >&5 <<_ACEOF
2186 ## ----------- ##
2187 ## Core tests. ##
2188 ## ----------- ##
2190 _ACEOF
2193 # Keep a trace of the command line.
2194 # Strip out --no-create and --no-recursion so they do not pile up.
2195 # Strip out --silent because we don't want to record it for future runs.
2196 # Also quote any args containing shell meta-characters.
2197 # Make two passes to allow for proper duplicate-argument suppression.
2198 ac_configure_args=
2199 ac_configure_args0=
2200 ac_configure_args1=
2201 ac_must_keep_next=false
2202 for ac_pass in 1 2
2204 for ac_arg
2206 case $ac_arg in
2207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2209 | -silent | --silent | --silen | --sile | --sil)
2210 continue ;;
2211 *\'*)
2212 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 esac
2214 case $ac_pass in
2215 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2217 as_fn_append ac_configure_args1 " '$ac_arg'"
2218 if test $ac_must_keep_next = true; then
2219 ac_must_keep_next=false # Got value, back to normal.
2220 else
2221 case $ac_arg in
2222 *=* | --config-cache | -C | -disable-* | --disable-* \
2223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2225 | -with-* | --with-* | -without-* | --without-* | --x)
2226 case "$ac_configure_args0 " in
2227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228 esac
2230 -* ) ac_must_keep_next=true ;;
2231 esac
2233 as_fn_append ac_configure_args " '$ac_arg'"
2235 esac
2236 done
2237 done
2238 { ac_configure_args0=; unset ac_configure_args0;}
2239 { ac_configure_args1=; unset ac_configure_args1;}
2241 # When interrupted or exit'd, cleanup temporary files, and complete
2242 # config.log. We remove comments because anyway the quotes in there
2243 # would cause problems or look ugly.
2244 # WARNING: Use '\'' to represent an apostrophe within the trap.
2245 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2246 trap 'exit_status=$?
2247 # Save into config.log some information that might help in debugging.
2249 echo
2251 cat <<\_ASBOX
2252 ## ---------------- ##
2253 ## Cache variables. ##
2254 ## ---------------- ##
2255 _ASBOX
2256 echo
2257 # The following way of writing the cache mishandles newlines in values,
2259 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2260 eval ac_val=\$$ac_var
2261 case $ac_val in #(
2262 *${as_nl}*)
2263 case $ac_var in #(
2264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2266 esac
2267 case $ac_var in #(
2268 _ | IFS | as_nl) ;; #(
2269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2270 *) { eval $ac_var=; unset $ac_var;} ;;
2271 esac ;;
2272 esac
2273 done
2274 (set) 2>&1 |
2275 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2276 *${as_nl}ac_space=\ *)
2277 sed -n \
2278 "s/'\''/'\''\\\\'\'''\''/g;
2279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2280 ;; #(
2282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2284 esac |
2285 sort
2287 echo
2289 cat <<\_ASBOX
2290 ## ----------------- ##
2291 ## Output variables. ##
2292 ## ----------------- ##
2293 _ASBOX
2294 echo
2295 for ac_var in $ac_subst_vars
2297 eval ac_val=\$$ac_var
2298 case $ac_val in
2299 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300 esac
2301 $as_echo "$ac_var='\''$ac_val'\''"
2302 done | sort
2303 echo
2305 if test -n "$ac_subst_files"; then
2306 cat <<\_ASBOX
2307 ## ------------------- ##
2308 ## File substitutions. ##
2309 ## ------------------- ##
2310 _ASBOX
2311 echo
2312 for ac_var in $ac_subst_files
2314 eval ac_val=\$$ac_var
2315 case $ac_val in
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 esac
2318 $as_echo "$ac_var='\''$ac_val'\''"
2319 done | sort
2320 echo
2323 if test -s confdefs.h; then
2324 cat <<\_ASBOX
2325 ## ----------- ##
2326 ## confdefs.h. ##
2327 ## ----------- ##
2328 _ASBOX
2329 echo
2330 cat confdefs.h
2331 echo
2333 test "$ac_signal" != 0 &&
2334 $as_echo "$as_me: caught signal $ac_signal"
2335 $as_echo "$as_me: exit $exit_status"
2336 } >&5
2337 rm -f core *.core core.conftest.* &&
2338 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2339 exit $exit_status
2341 for ac_signal in 1 2 13 15; do
2342 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2343 done
2344 ac_signal=0
2346 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2347 rm -f -r conftest* confdefs.h
2349 $as_echo "/* confdefs.h */" > confdefs.h
2351 # Predefined preprocessor variables.
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_NAME "$PACKAGE_NAME"
2355 _ACEOF
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2359 _ACEOF
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2363 _ACEOF
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_STRING "$PACKAGE_STRING"
2367 _ACEOF
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2371 _ACEOF
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_URL "$PACKAGE_URL"
2375 _ACEOF
2378 # Let the site file select an alternate cache file if it wants to.
2379 # Prefer an explicitly selected file to automatically selected ones.
2380 ac_site_file1=NONE
2381 ac_site_file2=NONE
2382 if test -n "$CONFIG_SITE"; then
2383 ac_site_file1=$CONFIG_SITE
2384 elif test "x$prefix" != xNONE; then
2385 ac_site_file1=$prefix/share/config.site
2386 ac_site_file2=$prefix/etc/config.site
2387 else
2388 ac_site_file1=$ac_default_prefix/share/config.site
2389 ac_site_file2=$ac_default_prefix/etc/config.site
2391 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2393 test "x$ac_site_file" = xNONE && continue
2394 if test -r "$ac_site_file"; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2397 sed 's/^/| /' "$ac_site_file" >&5
2398 . "$ac_site_file"
2400 done
2402 if test -r "$cache_file"; then
2403 # Some versions of bash will fail to source /dev/null (special
2404 # files actually), so we avoid doing that.
2405 if test -f "$cache_file"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2407 $as_echo "$as_me: loading cache $cache_file" >&6;}
2408 case $cache_file in
2409 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2410 *) . "./$cache_file";;
2411 esac
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2415 $as_echo "$as_me: creating cache $cache_file" >&6;}
2416 >$cache_file
2419 # Check that the precious variables saved in the cache have kept the same
2420 # value.
2421 ac_cache_corrupted=false
2422 for ac_var in $ac_precious_vars; do
2423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424 eval ac_new_set=\$ac_env_${ac_var}_set
2425 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426 eval ac_new_val=\$ac_env_${ac_var}_value
2427 case $ac_old_set,$ac_new_set in
2428 set,)
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2432 ,set)
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435 ac_cache_corrupted=: ;;
2436 ,);;
2438 if test "x$ac_old_val" != "x$ac_new_val"; then
2439 # differences in whitespace do not lead to failure.
2440 ac_old_val_w=`echo x $ac_old_val`
2441 ac_new_val_w=`echo x $ac_new_val`
2442 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445 ac_cache_corrupted=:
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449 eval $ac_var=\$ac_old_val
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2452 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2454 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2455 fi;;
2456 esac
2457 # Pass precious variables to config.status.
2458 if test "$ac_new_set" = set; then
2459 case $ac_new_val in
2460 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461 *) ac_arg=$ac_var=$ac_new_val ;;
2462 esac
2463 case " $ac_configure_args " in
2464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2465 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466 esac
2468 done
2469 if $ac_cache_corrupted; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2476 ## -------------------- ##
2477 ## Main body of script. ##
2478 ## -------------------- ##
2480 ac_ext=c
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491 ac_config_headers="$ac_config_headers config.h"
2494 libtool_VERSION=10:0:0
2497 # Default to --enable-multilib
2498 # Check whether --enable-multilib was given.
2499 if test "${enable_multilib+set}" = set; then :
2500 enableval=$enable_multilib; case "$enableval" in
2501 yes) multilib=yes ;;
2502 no) multilib=no ;;
2503 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2504 esac
2505 else
2506 multilib=yes
2510 # We may get other options which we leave undocumented:
2511 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2512 # See config-ml.in if you want the gory details.
2514 if test "$srcdir" = "."; then
2515 if test "$with_target_subdir" != "."; then
2516 multi_basedir="$srcdir/$with_multisrctop../.."
2517 else
2518 multi_basedir="$srcdir/$with_multisrctop.."
2520 else
2521 multi_basedir="$srcdir/.."
2525 # Even if the default multilib is not a cross compilation,
2526 # it may be that some of the other multilibs are.
2527 if test $cross_compiling = no && test $multilib = yes \
2528 && test "x${with_multisubdir}" != x ; then
2529 cross_compiling=maybe
2532 ac_config_commands="$ac_config_commands default-1"
2535 ac_aux_dir=
2536 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2537 for ac_t in install-sh install.sh shtool; do
2538 if test -f "$ac_dir/$ac_t"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/$ac_t -c"
2541 break 2
2543 done
2544 done
2545 if test -z "$ac_aux_dir"; then
2546 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2549 # These three variables are undocumented and unsupported,
2550 # and are intended to be withdrawn in a future Autoconf release.
2551 # They can cause serious problems if a builder's source tree is in a directory
2552 # whose full name contains unusual characters.
2553 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2554 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2555 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2558 # Make sure we can run config.sub.
2559 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2560 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2563 $as_echo_n "checking build system type... " >&6; }
2564 if test "${ac_cv_build+set}" = set; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 ac_build_alias=$build_alias
2568 test "x$ac_build_alias" = x &&
2569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2570 test "x$ac_build_alias" = x &&
2571 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2573 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2577 $as_echo "$ac_cv_build" >&6; }
2578 case $ac_cv_build in
2579 *-*-*) ;;
2580 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2581 esac
2582 build=$ac_cv_build
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_build
2585 shift
2586 build_cpu=$1
2587 build_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 build_os=$*
2592 IFS=$ac_save_IFS
2593 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2597 $as_echo_n "checking host system type... " >&6; }
2598 if test "${ac_cv_host+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test "x$host_alias" = x; then
2602 ac_cv_host=$ac_cv_build
2603 else
2604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2605 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2610 $as_echo "$ac_cv_host" >&6; }
2611 case $ac_cv_host in
2612 *-*-*) ;;
2613 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2614 esac
2615 host=$ac_cv_host
2616 ac_save_IFS=$IFS; IFS='-'
2617 set x $ac_cv_host
2618 shift
2619 host_cpu=$1
2620 host_vendor=$2
2621 shift; shift
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2624 host_os=$*
2625 IFS=$ac_save_IFS
2626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2630 $as_echo_n "checking target system type... " >&6; }
2631 if test "${ac_cv_target+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test "x$target_alias" = x; then
2635 ac_cv_target=$ac_cv_host
2636 else
2637 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2638 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2643 $as_echo "$ac_cv_target" >&6; }
2644 case $ac_cv_target in
2645 *-*-*) ;;
2646 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2647 esac
2648 target=$ac_cv_target
2649 ac_save_IFS=$IFS; IFS='-'
2650 set x $ac_cv_target
2651 shift
2652 target_cpu=$1
2653 target_vendor=$2
2654 shift; shift
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2657 target_os=$*
2658 IFS=$ac_save_IFS
2659 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2662 # The aliases save the names the user supplied, while $host etc.
2663 # will get canonicalized.
2664 test -n "$target_alias" &&
2665 test "$program_prefix$program_suffix$program_transform_name" = \
2666 NONENONEs,x,x, &&
2667 program_prefix=${target_alias}-
2669 target_alias=${target_alias-$host_alias}
2671 am__api_version='1.11'
2673 # Find a good install program. We prefer a C program (faster),
2674 # so one script is as good as another. But avoid the broken or
2675 # incompatible versions:
2676 # SysV /etc/install, /usr/sbin/install
2677 # SunOS /usr/etc/install
2678 # IRIX /sbin/install
2679 # AIX /bin/install
2680 # AmigaOS /C/install, which installs bootblocks on floppy discs
2681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2684 # OS/2's system install, which has a completely different semantic
2685 # ./install, which can be erroneously created by make from ./install.sh.
2686 # Reject install programs that cannot install multiple files.
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2688 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2689 if test -z "$INSTALL"; then
2690 if test "${ac_cv_path_install+set}" = set; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 # Account for people who put trailing slashes in PATH elements.
2699 case $as_dir/ in #((
2700 ./ | .// | /[cC]/* | \
2701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2702 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2703 /usr/ucb/* ) ;;
2705 # OSF1 and SCO ODT 3.0 have their own names for install.
2706 # Don't use installbsd from OSF since it installs stuff as root
2707 # by default.
2708 for ac_prog in ginstall scoinst install; do
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2711 if test $ac_prog = install &&
2712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713 # AIX install. It has an incompatible calling convention.
2715 elif test $ac_prog = install &&
2716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717 # program-specific install script used by HP pwplus--don't use.
2719 else
2720 rm -rf conftest.one conftest.two conftest.dir
2721 echo one > conftest.one
2722 echo two > conftest.two
2723 mkdir conftest.dir
2724 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2725 test -s conftest.one && test -s conftest.two &&
2726 test -s conftest.dir/conftest.one &&
2727 test -s conftest.dir/conftest.two
2728 then
2729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2730 break 3
2734 done
2735 done
2737 esac
2739 done
2740 IFS=$as_save_IFS
2742 rm -rf conftest.one conftest.two conftest.dir
2745 if test "${ac_cv_path_install+set}" = set; then
2746 INSTALL=$ac_cv_path_install
2747 else
2748 # As a last resort, use the slow shell script. Don't cache a
2749 # value for INSTALL within a source directory, because that will
2750 # break other packages using the cache if that directory is
2751 # removed, or if the value is a relative name.
2752 INSTALL=$ac_install_sh
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2756 $as_echo "$INSTALL" >&6; }
2758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2759 # It thinks the first close brace ends the variable substitution.
2760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2767 $as_echo_n "checking whether build environment is sane... " >&6; }
2768 # Just in case
2769 sleep 1
2770 echo timestamp > conftest.file
2771 # Reject unsafe characters in $srcdir or the absolute working directory
2772 # name. Accept space and tab only in the latter.
2773 am_lf='
2775 case `pwd` in
2776 *[\\\"\#\$\&\'\`$am_lf]*)
2777 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2778 esac
2779 case $srcdir in
2780 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2781 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2782 esac
2784 # Do `set' in a subshell so we don't clobber the current shell's
2785 # arguments. Must try -L first in case configure is actually a
2786 # symlink; some systems play weird games with the mod time of symlinks
2787 # (eg FreeBSD returns the mod time of the symlink's containing
2788 # directory).
2789 if (
2790 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2791 if test "$*" = "X"; then
2792 # -L didn't work.
2793 set X `ls -t "$srcdir/configure" conftest.file`
2795 rm -f conftest.file
2796 if test "$*" != "X $srcdir/configure conftest.file" \
2797 && test "$*" != "X conftest.file $srcdir/configure"; then
2799 # If neither matched, then we have a broken ls. This can happen
2800 # if, for instance, CONFIG_SHELL is bash and it inherits a
2801 # broken ls alias from the environment. This has actually
2802 # happened. Such a system could not be considered "sane".
2803 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2804 alias in your environment" "$LINENO" 5
2807 test "$2" = conftest.file
2809 then
2810 # Ok.
2812 else
2813 as_fn_error "newly created file is older than distributed files!
2814 Check your system clock" "$LINENO" 5
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817 $as_echo "yes" >&6; }
2818 test "$program_prefix" != NONE &&
2819 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2820 # Use a double $ so make ignores it.
2821 test "$program_suffix" != NONE &&
2822 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2823 # Double any \ or $.
2824 # By default was `s,x,x', remove it if useless.
2825 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2826 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2828 # expand $ac_aux_dir to an absolute path
2829 am_aux_dir=`cd $ac_aux_dir && pwd`
2831 if test x"${MISSING+set}" != xset; then
2832 case $am_aux_dir in
2833 *\ * | *\ *)
2834 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2836 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2837 esac
2839 # Use eval to expand $SHELL
2840 if eval "$MISSING --run true"; then
2841 am_missing_run="$MISSING --run "
2842 else
2843 am_missing_run=
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2845 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2848 if test x"${install_sh}" != xset; then
2849 case $am_aux_dir in
2850 *\ * | *\ *)
2851 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2853 install_sh="\${SHELL} $am_aux_dir/install-sh"
2854 esac
2857 # Installed binaries are usually stripped using `strip' when the user
2858 # run `make install-strip'. However `strip' might not be the right
2859 # tool to use in cross-compilation environments, therefore Automake
2860 # will honor the `STRIP' environment variable to overrule this program.
2861 if test "$cross_compiling" != no; then
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}strip; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if test "${ac_cv_prog_STRIP+set}" = set; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test -n "$STRIP"; then
2871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2884 done
2885 done
2886 IFS=$as_save_IFS
2890 STRIP=$ac_cv_prog_STRIP
2891 if test -n "$STRIP"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2893 $as_echo "$STRIP" >&6; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2901 if test -z "$ac_cv_prog_STRIP"; then
2902 ac_ct_STRIP=$STRIP
2903 # Extract the first word of "strip", so it can be a program name with args.
2904 set dummy strip; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$ac_ct_STRIP"; then
2911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_ac_ct_STRIP="strip"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2924 done
2925 done
2926 IFS=$as_save_IFS
2930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2931 if test -n "$ac_ct_STRIP"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2933 $as_echo "$ac_ct_STRIP" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2939 if test "x$ac_ct_STRIP" = x; then
2940 STRIP=":"
2941 else
2942 case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2947 esac
2948 STRIP=$ac_ct_STRIP
2950 else
2951 STRIP="$ac_cv_prog_STRIP"
2955 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2958 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2959 if test -z "$MKDIR_P"; then
2960 if test "${ac_cv_path_mkdir+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_prog in mkdir gmkdir; do
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2971 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2972 'mkdir (GNU coreutils) '* | \
2973 'mkdir (coreutils) '* | \
2974 'mkdir (fileutils) '4.1*)
2975 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2976 break 3;;
2977 esac
2978 done
2979 done
2980 done
2981 IFS=$as_save_IFS
2985 if test "${ac_cv_path_mkdir+set}" = set; then
2986 MKDIR_P="$ac_cv_path_mkdir -p"
2987 else
2988 # As a last resort, use the slow shell script. Don't cache a
2989 # value for MKDIR_P within a source directory, because that will
2990 # break other packages using the cache if that directory is
2991 # removed, or if the value is a relative name.
2992 test -d ./--version && rmdir ./--version
2993 MKDIR_P="$ac_install_sh -d"
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2997 $as_echo "$MKDIR_P" >&6; }
2999 mkdir_p="$MKDIR_P"
3000 case $mkdir_p in
3001 [\\/$]* | ?:[\\/]*) ;;
3002 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3003 esac
3005 for ac_prog in gawk mawk nawk awk
3007 # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy $ac_prog; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_AWK+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$AWK"; then
3015 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_AWK="$ac_prog"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3030 IFS=$as_save_IFS
3034 AWK=$ac_cv_prog_AWK
3035 if test -n "$AWK"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3037 $as_echo "$AWK" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3044 test -n "$AWK" && break
3045 done
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049 set x ${MAKE-make}
3050 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3051 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 cat >conftest.make <<\_ACEOF
3055 SHELL = /bin/sh
3056 all:
3057 @echo '@@@%%%=$(MAKE)=@@@%%%'
3058 _ACEOF
3059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3060 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3061 *@@@%%%=?*=@@@%%%*)
3062 eval ac_cv_prog_make_${ac_make}_set=yes;;
3064 eval ac_cv_prog_make_${ac_make}_set=no;;
3065 esac
3066 rm -f conftest.make
3068 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070 $as_echo "yes" >&6; }
3071 SET_MAKE=
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 SET_MAKE="MAKE=${MAKE-make}"
3078 rm -rf .tst 2>/dev/null
3079 mkdir .tst 2>/dev/null
3080 if test -d .tst; then
3081 am__leading_dot=.
3082 else
3083 am__leading_dot=_
3085 rmdir .tst 2>/dev/null
3087 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3088 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3089 # is not polluted with repeated "-I."
3090 am__isrc=' -I$(srcdir)'
3091 # test to see if srcdir already configured
3092 if test -f $srcdir/config.status; then
3093 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3097 # test whether we have cygpath
3098 if test -z "$CYGPATH_W"; then
3099 if (cygpath --version) >/dev/null 2>/dev/null; then
3100 CYGPATH_W='cygpath -w'
3101 else
3102 CYGPATH_W=echo
3107 # Define the identity of the package.
3108 PACKAGE='libgo'
3109 VERSION='version-unused'
3112 # Some tools Automake needs.
3114 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3117 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3120 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3123 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3126 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3128 # We need awk for the "check" target. The system "awk" is bad on
3129 # some platforms.
3130 # Always define AMTAR for backward compatibility. Yes, it's still used
3131 # in the wild :-( We should find a proper way to deprecate it ...
3132 AMTAR='$${TAR-tar}'
3134 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3145 ac_ext=c
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if test "${ac_cv_prog_CC+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -n "$CC"; then
3159 ac_cv_prog_CC="$CC" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3172 done
3173 done
3174 IFS=$as_save_IFS
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3189 if test -z "$ac_cv_prog_CC"; then
3190 ac_ct_CC=$CC
3191 # Extract the first word of "gcc", so it can be a program name with args.
3192 set dummy gcc; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 if test -n "$ac_ct_CC"; then
3199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_prog_ac_ct_CC="gcc"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3212 done
3213 done
3214 IFS=$as_save_IFS
3218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219 if test -n "$ac_ct_CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221 $as_echo "$ac_ct_CC" >&6; }
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3227 if test "x$ac_ct_CC" = x; then
3228 CC=""
3229 else
3230 case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3235 esac
3236 CC=$ac_ct_CC
3238 else
3239 CC="$ac_cv_prog_CC"
3242 if test -z "$CC"; then
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}cc; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC="${ac_tool_prefix}cc"
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3265 done
3266 done
3267 IFS=$as_save_IFS
3271 CC=$ac_cv_prog_CC
3272 if test -n "$CC"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3274 $as_echo "$CC" >&6; }
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3283 if test -z "$CC"; then
3284 # Extract the first word of "cc", so it can be a program name with args.
3285 set dummy cc; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_prog_CC+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if test -n "$CC"; then
3292 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 else
3294 ac_prog_rejected=no
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3303 ac_prog_rejected=yes
3304 continue
3306 ac_cv_prog_CC="cc"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3310 done
3311 done
3312 IFS=$as_save_IFS
3314 if test $ac_prog_rejected = yes; then
3315 # We found a bogon in the path, so make sure we never use it.
3316 set dummy $ac_cv_prog_CC
3317 shift
3318 if test $# != 0; then
3319 # We chose a different compiler from the bogus one.
3320 # However, it has the same basename, so the bogon will be chosen
3321 # first if we set CC to just the basename; use the full file name.
3322 shift
3323 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3339 if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 for ac_prog in cl.exe
3343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if test "${ac_cv_prog_CC+set}" = set; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3364 done
3365 done
3366 IFS=$as_save_IFS
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3380 test -n "$CC" && break
3381 done
3383 if test -z "$CC"; then
3384 ac_ct_CC=$CC
3385 for ac_prog in cl.exe
3387 # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy $ac_prog; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test -n "$ac_ct_CC"; then
3395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_ac_ct_CC="$ac_prog"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3408 done
3409 done
3410 IFS=$as_save_IFS
3414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415 if test -n "$ac_ct_CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3417 $as_echo "$ac_ct_CC" >&6; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3424 test -n "$ac_ct_CC" && break
3425 done
3427 if test "x$ac_ct_CC" = x; then
3428 CC=""
3429 else
3430 case $cross_compiling:$ac_tool_warned in
3431 yes:)
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434 ac_tool_warned=yes ;;
3435 esac
3436 CC=$ac_ct_CC
3443 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error "no acceptable C compiler found in \$PATH
3446 See \`config.log' for more details." "$LINENO" 5; }
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3450 set X $ac_compile
3451 ac_compiler=$2
3452 for ac_option in --version -v -V -qversion; do
3453 { { ac_try="$ac_compiler $ac_option >&5"
3454 case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461 ac_status=$?
3462 if test -s conftest.err; then
3463 sed '10a\
3464 ... rest of stderr output deleted ...
3465 10q' conftest.err >conftest.er1
3466 cat conftest.er1 >&5
3467 rm -f conftest.er1 conftest.err
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }
3471 done
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3477 main ()
3481 return 0;
3483 _ACEOF
3484 ac_clean_files_save=$ac_clean_files
3485 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3486 # Try to create an executable without -o first, disregard a.out.
3487 # It will help us diagnose broken compilers, and finding out an intuition
3488 # of exeext.
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490 $as_echo_n "checking for C compiler default output file name... " >&6; }
3491 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3493 # The possible output files:
3494 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3496 ac_rmfiles=
3497 for ac_file in $ac_files
3499 case $ac_file in
3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3502 esac
3503 done
3504 rm -f $ac_rmfiles
3506 if { { ac_try="$ac_link_default"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link_default") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3519 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3520 # so that the user can short-circuit this test for compilers unknown to
3521 # Autoconf.
3522 for ac_file in $ac_files ''
3524 test -f "$ac_file" || continue
3525 case $ac_file in
3526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3528 [ab].out )
3529 # We found the default executable, but exeext='' is most
3530 # certainly right.
3531 break;;
3532 *.* )
3533 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3534 then :; else
3535 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 # We set ac_cv_exeext here because the later test for it is not
3538 # safe: cross compilers may not add the suffix if given an `-o'
3539 # argument, so we may need to know it at that point already.
3540 # Even if this section looks crufty: it has the advantage of
3541 # actually working.
3542 break;;
3544 break;;
3545 esac
3546 done
3547 test "$ac_cv_exeext" = no && ac_cv_exeext=
3549 else
3550 ac_file=''
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3553 $as_echo "$ac_file" >&6; }
3554 if test -z "$ac_file"; then :
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 { as_fn_set_status 77
3561 as_fn_error "C compiler cannot create executables
3562 See \`config.log' for more details." "$LINENO" 5; }; }
3564 ac_exeext=$ac_cv_exeext
3566 # Check that the compiler produces executables we can run. If not, either
3567 # the compiler is broken, or we cross compile.
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3569 $as_echo_n "checking whether the C compiler works... " >&6; }
3570 # If not cross compiling, check that we can run a simple program.
3571 if test "$cross_compiling" != yes; then
3572 if { ac_try='./$ac_file'
3573 { { case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_try") 2>&5
3580 ac_status=$?
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }; }; then
3583 cross_compiling=no
3584 else
3585 if test "$cross_compiling" = maybe; then
3586 cross_compiling=yes
3587 else
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error "cannot run C compiled programs.
3591 If you meant to cross compile, use \`--host'.
3592 See \`config.log' for more details." "$LINENO" 5; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597 $as_echo "yes" >&6; }
3599 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3600 ac_clean_files=$ac_clean_files_save
3601 # Check that the compiler produces executables we can run. If not, either
3602 # the compiler is broken, or we cross compile.
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3604 $as_echo_n "checking whether we are cross compiling... " >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3606 $as_echo "$cross_compiling" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3609 $as_echo_n "checking for suffix of executables... " >&6; }
3610 if { { ac_try="$ac_link"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_link") 2>&5
3618 ac_status=$?
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }; then :
3621 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3622 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3623 # work properly (i.e., refer to `conftest.exe'), while it won't with
3624 # `rm'.
3625 for ac_file in conftest.exe conftest conftest.*; do
3626 test -f "$ac_file" || continue
3627 case $ac_file in
3628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 break;;
3631 * ) break;;
3632 esac
3633 done
3634 else
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error "cannot compute suffix of executables: cannot compile and link
3638 See \`config.log' for more details." "$LINENO" 5; }
3640 rm -f conftest$ac_cv_exeext
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3642 $as_echo "$ac_cv_exeext" >&6; }
3644 rm -f conftest.$ac_ext
3645 EXEEXT=$ac_cv_exeext
3646 ac_exeext=$EXEEXT
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3648 $as_echo_n "checking for suffix of object files... " >&6; }
3649 if test "${ac_cv_objext+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3656 main ()
3660 return 0;
3662 _ACEOF
3663 rm -f conftest.o conftest.obj
3664 if { { ac_try="$ac_compile"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_compile") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 for ac_file in conftest.o conftest.obj conftest.*; do
3676 test -f "$ac_file" || continue;
3677 case $ac_file in
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3679 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3680 break;;
3681 esac
3682 done
3683 else
3684 $as_echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error "cannot compute suffix of object files: cannot compile
3690 See \`config.log' for more details." "$LINENO" 5; }
3692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3695 $as_echo "$ac_cv_objext" >&6; }
3696 OBJEXT=$ac_cv_objext
3697 ac_objext=$OBJEXT
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3700 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3707 main ()
3709 #ifndef __GNUC__
3710 choke me
3711 #endif
3714 return 0;
3716 _ACEOF
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_compiler_gnu=yes
3719 else
3720 ac_compiler_gnu=no
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728 if test $ac_compiler_gnu = yes; then
3729 GCC=yes
3730 else
3731 GCC=
3733 ac_test_CFLAGS=${CFLAGS+set}
3734 ac_save_CFLAGS=$CFLAGS
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3737 if test "${ac_cv_prog_cc_g+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 ac_save_c_werror_flag=$ac_c_werror_flag
3741 ac_c_werror_flag=yes
3742 ac_cv_prog_cc_g=no
3743 CFLAGS="-g"
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3748 main ()
3752 return 0;
3754 _ACEOF
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_cv_prog_cc_g=yes
3757 else
3758 CFLAGS=""
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3763 main ()
3767 return 0;
3769 _ACEOF
3770 if ac_fn_c_try_compile "$LINENO"; then :
3772 else
3773 ac_c_werror_flag=$ac_save_c_werror_flag
3774 CFLAGS="-g"
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3779 main ()
3783 return 0;
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_cv_prog_cc_g=yes
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 ac_c_werror_flag=$ac_save_c_werror_flag
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3797 $as_echo "$ac_cv_prog_cc_g" >&6; }
3798 if test "$ac_test_CFLAGS" = set; then
3799 CFLAGS=$ac_save_CFLAGS
3800 elif test $ac_cv_prog_cc_g = yes; then
3801 if test "$GCC" = yes; then
3802 CFLAGS="-g -O2"
3803 else
3804 CFLAGS="-g"
3806 else
3807 if test "$GCC" = yes; then
3808 CFLAGS="-O2"
3809 else
3810 CFLAGS=
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3814 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3815 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 ac_cv_prog_cc_c89=no
3819 ac_save_CC=$CC
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <stdarg.h>
3823 #include <stdio.h>
3824 #include <sys/types.h>
3825 #include <sys/stat.h>
3826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3827 struct buf { int x; };
3828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829 static char *e (p, i)
3830 char **p;
3831 int i;
3833 return p[i];
3835 static char *f (char * (*g) (char **, int), char **p, ...)
3837 char *s;
3838 va_list v;
3839 va_start (v,p);
3840 s = g (p, va_arg (v,int));
3841 va_end (v);
3842 return s;
3845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3846 function prototypes and stuff, but not '\xHH' hex character constants.
3847 These don't provoke an error unfortunately, instead are silently treated
3848 as 'x'. The following induces an error, until -std is added to get
3849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3850 array size at least. It's necessary to write '\x00'==0 to get something
3851 that's true only with -std. */
3852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3855 inside strings and character constants. */
3856 #define FOO(x) 'x'
3857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3859 int test (int i, double x);
3860 struct s1 {int (*f) (int a);};
3861 struct s2 {int (*f) (double a);};
3862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3863 int argc;
3864 char **argv;
3866 main ()
3868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3870 return 0;
3872 _ACEOF
3873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3876 CC="$ac_save_CC $ac_arg"
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878 ac_cv_prog_cc_c89=$ac_arg
3880 rm -f core conftest.err conftest.$ac_objext
3881 test "x$ac_cv_prog_cc_c89" != "xno" && break
3882 done
3883 rm -f conftest.$ac_ext
3884 CC=$ac_save_CC
3887 # AC_CACHE_VAL
3888 case "x$ac_cv_prog_cc_c89" in
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3891 $as_echo "none needed" >&6; } ;;
3892 xno)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3894 $as_echo "unsupported" >&6; } ;;
3896 CC="$CC $ac_cv_prog_cc_c89"
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3899 esac
3900 if test "x$ac_cv_prog_cc_c89" != xno; then :
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 DEPDIR="${am__leading_dot}deps"
3911 ac_config_commands="$ac_config_commands depfiles"
3914 am_make=${MAKE-make}
3915 cat > confinc << 'END'
3916 am__doit:
3917 @echo this is the am__doit target
3918 .PHONY: am__doit
3920 # If we don't find an include directive, just comment out the code.
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3922 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3923 am__include="#"
3924 am__quote=
3925 _am_result=none
3926 # First try GNU make style include.
3927 echo "include confinc" > confmf
3928 # Ignore all kinds of additional output from `make'.
3929 case `$am_make -s -f confmf 2> /dev/null` in #(
3930 *the\ am__doit\ target*)
3931 am__include=include
3932 am__quote=
3933 _am_result=GNU
3935 esac
3936 # Now try BSD make style include.
3937 if test "$am__include" = "#"; then
3938 echo '.include "confinc"' > confmf
3939 case `$am_make -s -f confmf 2> /dev/null` in #(
3940 *the\ am__doit\ target*)
3941 am__include=.include
3942 am__quote="\""
3943 _am_result=BSD
3945 esac
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3950 $as_echo "$_am_result" >&6; }
3951 rm -f confinc confmf
3953 # Check whether --enable-dependency-tracking was given.
3954 if test "${enable_dependency_tracking+set}" = set; then :
3955 enableval=$enable_dependency_tracking;
3958 if test "x$enable_dependency_tracking" != xno; then
3959 am_depcomp="$ac_aux_dir/depcomp"
3960 AMDEPBACKSLASH='\'
3961 am__nodep='_no'
3963 if test "x$enable_dependency_tracking" != xno; then
3964 AMDEP_TRUE=
3965 AMDEP_FALSE='#'
3966 else
3967 AMDEP_TRUE='#'
3968 AMDEP_FALSE=
3973 depcc="$CC" am_compiler_list=
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3976 $as_echo_n "checking dependency style of $depcc... " >&6; }
3977 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3981 # We make a subdir and do the tests there. Otherwise we can end up
3982 # making bogus files that we don't know about and never remove. For
3983 # instance it was reported that on HP-UX the gcc test will end up
3984 # making a dummy file named `D' -- because `-MD' means `put the output
3985 # in D'.
3986 rm -rf conftest.dir
3987 mkdir conftest.dir
3988 # Copy depcomp to subdir because otherwise we won't find it if we're
3989 # using a relative directory.
3990 cp "$am_depcomp" conftest.dir
3991 cd conftest.dir
3992 # We will build objects and dependencies in a subdirectory because
3993 # it helps to detect inapplicable dependency modes. For instance
3994 # both Tru64's cc and ICC support -MD to output dependencies as a
3995 # side effect of compilation, but ICC will put the dependencies in
3996 # the current directory while Tru64 will put them in the object
3997 # directory.
3998 mkdir sub
4000 am_cv_CC_dependencies_compiler_type=none
4001 if test "$am_compiler_list" = ""; then
4002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4004 am__universal=false
4005 case " $depcc " in #(
4006 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4007 esac
4009 for depmode in $am_compiler_list; do
4010 # Setup a source with many dependencies, because some compilers
4011 # like to wrap large dependency lists on column 80 (with \), and
4012 # we should not choose a depcomp mode which is confused by this.
4014 # We need to recreate these files for each test, as the compiler may
4015 # overwrite some of them when testing with obscure command lines.
4016 # This happens at least with the AIX C compiler.
4017 : > sub/conftest.c
4018 for i in 1 2 3 4 5 6; do
4019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4020 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4021 # Solaris 8's {/usr,}/bin/sh.
4022 touch sub/conftst$i.h
4023 done
4024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4027 # mode. It turns out that the SunPro C++ compiler does not properly
4028 # handle `-M -o', and we need to detect this. Also, some Intel
4029 # versions had trouble with output in subdirs
4030 am__obj=sub/conftest.${OBJEXT-o}
4031 am__minus_obj="-o $am__obj"
4032 case $depmode in
4033 gcc)
4034 # This depmode causes a compiler race in universal mode.
4035 test "$am__universal" = false || continue
4037 nosideeffect)
4038 # after this tag, mechanisms are not by side-effect, so they'll
4039 # only be used when explicitly requested
4040 if test "x$enable_dependency_tracking" = xyes; then
4041 continue
4042 else
4043 break
4046 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4047 # This compiler won't grok `-c -o', but also, the minuso test has
4048 # not run yet. These depmodes are late enough in the game, and
4049 # so weak that their functioning should not be impacted.
4050 am__obj=conftest.${OBJEXT-o}
4051 am__minus_obj=
4053 none) break ;;
4054 esac
4055 if depmode=$depmode \
4056 source=sub/conftest.c object=$am__obj \
4057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4058 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4059 >/dev/null 2>conftest.err &&
4060 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4061 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4062 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4064 # icc doesn't choke on unknown options, it will just issue warnings
4065 # or remarks (even with -Werror). So we grep stderr for any message
4066 # that says an option was ignored or not supported.
4067 # When given -MP, icc 7.0 and 7.1 complain thusly:
4068 # icc: Command line warning: ignoring option '-M'; no argument required
4069 # The diagnosis changed in icc 8.0:
4070 # icc: Command line remark: option '-MP' not supported
4071 if (grep 'ignoring option' conftest.err ||
4072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4073 am_cv_CC_dependencies_compiler_type=$depmode
4074 break
4077 done
4079 cd ..
4080 rm -rf conftest.dir
4081 else
4082 am_cv_CC_dependencies_compiler_type=none
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4087 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4088 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4091 test "x$enable_dependency_tracking" != xno \
4092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4093 am__fastdepCC_TRUE=
4094 am__fastdepCC_FALSE='#'
4095 else
4096 am__fastdepCC_TRUE='#'
4097 am__fastdepCC_FALSE=
4101 ac_ext=go
4102 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4103 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compile_gnu=yes
4105 if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4107 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if test "${ac_cv_prog_GOC+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -n "$GOC"; then
4114 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4127 done
4128 done
4129 IFS=$as_save_IFS
4133 GOC=$ac_cv_prog_GOC
4134 if test -n "$GOC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4136 $as_echo "$GOC" >&6; }
4137 else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4144 if test -z "$ac_cv_prog_GOC"; then
4145 ac_ct_GOC=$GOC
4146 # Extract the first word of "gccgo", so it can be a program name with args.
4147 set dummy gccgo; ac_word=$2
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 $as_echo_n "checking for $ac_word... " >&6; }
4150 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 if test -n "$ac_ct_GOC"; then
4154 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163 ac_cv_prog_ac_ct_GOC="gccgo"
4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4169 IFS=$as_save_IFS
4173 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4174 if test -n "$ac_ct_GOC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4176 $as_echo "$ac_ct_GOC" >&6; }
4177 else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4182 if test "x$ac_ct_GOC" = x; then
4183 GOC=""
4184 else
4185 case $cross_compiling:$ac_tool_warned in
4186 yes:)
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4189 ac_tool_warned=yes ;;
4190 esac
4191 GOC=$ac_ct_GOC
4193 else
4194 GOC="$ac_cv_prog_GOC"
4197 if test -z "$GOC"; then
4198 if test -n "$ac_tool_prefix"; then
4199 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4200 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_GOC+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$GOC"; then
4207 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 GOC=$ac_cv_prog_GOC
4227 if test -n "$GOC"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4229 $as_echo "$GOC" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4238 if test -z "$GOC"; then
4239 # Extract the first word of "gccgo", so it can be a program name with args.
4240 set dummy gccgo; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if test "${ac_cv_prog_GOC+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$GOC"; then
4247 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4248 else
4249 ac_prog_rejected=no
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4258 ac_prog_rejected=yes
4259 continue
4261 ac_cv_prog_GOC="gccgo"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4267 IFS=$as_save_IFS
4269 if test $ac_prog_rejected = yes; then
4270 # We found a bogon in the path, so make sure we never use it.
4271 set dummy $ac_cv_prog_GOC
4272 shift
4273 if test $# != 0; then
4274 # We chose a different compiler from the bogus one.
4275 # However, it has the same basename, so the bogon will be chosen
4276 # first if we set GOC to just the basename; use the full file name.
4277 shift
4278 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4283 GOC=$ac_cv_prog_GOC
4284 if test -n "$GOC"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4286 $as_echo "$GOC" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4296 # Provide some information about the compiler.
4297 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4298 set X $ac_compile
4299 ac_compiler=$2
4300 { { ac_try="$ac_compiler --version >&5"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler --version >&5") 2>conftest.err
4308 ac_status=$?
4309 if test -s conftest.err; then
4310 sed '10a\
4311 ... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318 GOCFLAGS="-g -O2"
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4331 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4332 # Check whether --enable-maintainer-mode was given.
4333 if test "${enable_maintainer_mode+set}" = set; then :
4334 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4335 else
4336 USE_MAINTAINER_MODE=no
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4340 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4341 if test $USE_MAINTAINER_MODE = yes; then
4342 MAINTAINER_MODE_TRUE=
4343 MAINTAINER_MODE_FALSE='#'
4344 else
4345 MAINTAINER_MODE_TRUE='#'
4346 MAINTAINER_MODE_FALSE=
4349 MAINT=$MAINTAINER_MODE_TRUE
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4354 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4355 if test "${ac_cv_path_SED+set}" = set; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4359 for ac_i in 1 2 3 4 5 6 7; do
4360 ac_script="$ac_script$as_nl$ac_script"
4361 done
4362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4363 { ac_script=; unset ac_script;}
4364 if test -z "$SED"; then
4365 ac_path_SED_found=false
4366 # Loop through the user's path and test for each of PROGNAME-LIST
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_prog in sed gsed; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4375 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4376 # Check for GNU ac_path_SED and select it if it is found.
4377 # Check for GNU $ac_path_SED
4378 case `"$ac_path_SED" --version 2>&1` in
4379 *GNU*)
4380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4382 ac_count=0
4383 $as_echo_n 0123456789 >"conftest.in"
4384 while :
4386 cat "conftest.in" "conftest.in" >"conftest.tmp"
4387 mv "conftest.tmp" "conftest.in"
4388 cp "conftest.in" "conftest.nl"
4389 $as_echo '' >> "conftest.nl"
4390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4392 as_fn_arith $ac_count + 1 && ac_count=$as_val
4393 if test $ac_count -gt ${ac_path_SED_max-0}; then
4394 # Best one so far, save it but keep looking for a better one
4395 ac_cv_path_SED="$ac_path_SED"
4396 ac_path_SED_max=$ac_count
4398 # 10*(2^10) chars as input seems more than enough
4399 test $ac_count -gt 10 && break
4400 done
4401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402 esac
4404 $ac_path_SED_found && break 3
4405 done
4406 done
4407 done
4408 IFS=$as_save_IFS
4409 if test -z "$ac_cv_path_SED"; then
4410 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4412 else
4413 ac_cv_path_SED=$SED
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4418 $as_echo "$ac_cv_path_SED" >&6; }
4419 SED="$ac_cv_path_SED"
4420 rm -f conftest.sed
4422 test -z "$SED" && SED=sed
4423 Xsed="$SED -e 1s/^X//"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4436 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4437 if test "${ac_cv_path_GREP+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -z "$GREP"; then
4441 ac_path_GREP_found=false
4442 # Loop through the user's path and test for each of PROGNAME-LIST
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_prog in grep ggrep; do
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4451 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4452 # Check for GNU ac_path_GREP and select it if it is found.
4453 # Check for GNU $ac_path_GREP
4454 case `"$ac_path_GREP" --version 2>&1` in
4455 *GNU*)
4456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4458 ac_count=0
4459 $as_echo_n 0123456789 >"conftest.in"
4460 while :
4462 cat "conftest.in" "conftest.in" >"conftest.tmp"
4463 mv "conftest.tmp" "conftest.in"
4464 cp "conftest.in" "conftest.nl"
4465 $as_echo 'GREP' >> "conftest.nl"
4466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468 as_fn_arith $ac_count + 1 && ac_count=$as_val
4469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4470 # Best one so far, save it but keep looking for a better one
4471 ac_cv_path_GREP="$ac_path_GREP"
4472 ac_path_GREP_max=$ac_count
4474 # 10*(2^10) chars as input seems more than enough
4475 test $ac_count -gt 10 && break
4476 done
4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4478 esac
4480 $ac_path_GREP_found && break 3
4481 done
4482 done
4483 done
4484 IFS=$as_save_IFS
4485 if test -z "$ac_cv_path_GREP"; then
4486 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488 else
4489 ac_cv_path_GREP=$GREP
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4494 $as_echo "$ac_cv_path_GREP" >&6; }
4495 GREP="$ac_cv_path_GREP"
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4499 $as_echo_n "checking for egrep... " >&6; }
4500 if test "${ac_cv_path_EGREP+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504 then ac_cv_path_EGREP="$GREP -E"
4505 else
4506 if test -z "$EGREP"; then
4507 ac_path_EGREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in egrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4518 # Check for GNU ac_path_EGREP and select it if it is found.
4519 # Check for GNU $ac_path_EGREP
4520 case `"$ac_path_EGREP" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'EGREP' >> "conftest.nl"
4532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_EGREP="$ac_path_EGREP"
4538 ac_path_EGREP_max=$ac_count
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4546 $ac_path_EGREP_found && break 3
4547 done
4548 done
4549 done
4550 IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_EGREP"; then
4552 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4554 else
4555 ac_cv_path_EGREP=$EGREP
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4561 $as_echo "$ac_cv_path_EGREP" >&6; }
4562 EGREP="$ac_cv_path_EGREP"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4566 $as_echo_n "checking for fgrep... " >&6; }
4567 if test "${ac_cv_path_FGREP+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4571 then ac_cv_path_FGREP="$GREP -F"
4572 else
4573 if test -z "$FGREP"; then
4574 ac_path_FGREP_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in fgrep; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4584 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4585 # Check for GNU ac_path_FGREP and select it if it is found.
4586 # Check for GNU $ac_path_FGREP
4587 case `"$ac_path_FGREP" --version 2>&1` in
4588 *GNU*)
4589 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4591 ac_count=0
4592 $as_echo_n 0123456789 >"conftest.in"
4593 while :
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo 'FGREP' >> "conftest.nl"
4599 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
4602 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_FGREP="$ac_path_FGREP"
4605 ac_path_FGREP_max=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4609 done
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4613 $ac_path_FGREP_found && break 3
4614 done
4615 done
4616 done
4617 IFS=$as_save_IFS
4618 if test -z "$ac_cv_path_FGREP"; then
4619 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4621 else
4622 ac_cv_path_FGREP=$FGREP
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4628 $as_echo "$ac_cv_path_FGREP" >&6; }
4629 FGREP="$ac_cv_path_FGREP"
4632 test -z "$GREP" && GREP=grep
4650 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4651 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4652 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4655 $as_echo_n "checking how to print strings... " >&6; }
4656 # Test print first, because it will be a builtin if present.
4657 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4658 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4659 ECHO='print -r --'
4660 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4661 ECHO='printf %s\n'
4662 else
4663 # Use this function as a fallback that always works.
4664 func_fallback_echo ()
4666 eval 'cat <<_LTECHO_EOF
4668 _LTECHO_EOF'
4670 ECHO='func_fallback_echo'
4673 # func_echo_all arg...
4674 # Invoke $ECHO with all args, space-separated.
4675 func_echo_all ()
4677 $ECHO ""
4680 case "$ECHO" in
4681 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4682 $as_echo "printf" >&6; } ;;
4683 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4684 $as_echo "print -r" >&6; } ;;
4685 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4686 $as_echo "cat" >&6; } ;;
4687 esac
4704 # Check whether --with-gnu-ld was given.
4705 if test "${with_gnu_ld+set}" = set; then :
4706 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4707 else
4708 with_gnu_ld=no
4711 ac_prog=ld
4712 if test "$GCC" = yes; then
4713 # Check if gcc -print-prog-name=ld gives a path.
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4715 $as_echo_n "checking for ld used by $CC... " >&6; }
4716 case $host in
4717 *-*-mingw*)
4718 # gcc leaves a trailing carriage return which upsets mingw
4719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4722 esac
4723 case $ac_prog in
4724 # Accept absolute paths.
4725 [\\/]* | ?:[\\/]*)
4726 re_direlt='/[^/][^/]*/\.\./'
4727 # Canonicalize the pathname of ld
4728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4730 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4731 done
4732 test -z "$LD" && LD="$ac_prog"
4735 # If it fails, then pretend we aren't using GCC.
4736 ac_prog=ld
4739 # If it is relative, then search for the first ld in PATH.
4740 with_gnu_ld=unknown
4742 esac
4743 elif test "$with_gnu_ld" = yes; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4745 $as_echo_n "checking for GNU ld... " >&6; }
4746 else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4748 $as_echo_n "checking for non-GNU ld... " >&6; }
4750 if test "${lt_cv_path_LD+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if test -z "$LD"; then
4754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4755 for ac_dir in $PATH; do
4756 IFS="$lt_save_ifs"
4757 test -z "$ac_dir" && ac_dir=.
4758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4759 lt_cv_path_LD="$ac_dir/$ac_prog"
4760 # Check to see if the program is GNU ld. I'd rather use --version,
4761 # but apparently some variants of GNU ld only accept -v.
4762 # Break only if it was the GNU/non-GNU ld that we prefer.
4763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4764 *GNU* | *'with BFD'*)
4765 test "$with_gnu_ld" != no && break
4768 test "$with_gnu_ld" != yes && break
4770 esac
4772 done
4773 IFS="$lt_save_ifs"
4774 else
4775 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4779 LD="$lt_cv_path_LD"
4780 if test -n "$LD"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4782 $as_echo "$LD" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4787 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4789 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4790 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4794 case `$LD -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 lt_cv_prog_gnu_ld=yes
4799 lt_cv_prog_gnu_ld=no
4801 esac
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4804 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4805 with_gnu_ld=$lt_cv_prog_gnu_ld
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$RANLIB"; then
4824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4839 IFS=$as_save_IFS
4843 RANLIB=$ac_cv_prog_RANLIB
4844 if test -n "$RANLIB"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4846 $as_echo "$RANLIB" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4854 if test -z "$ac_cv_prog_RANLIB"; then
4855 ac_ct_RANLIB=$RANLIB
4856 # Extract the first word of "ranlib", so it can be a program name with args.
4857 set dummy ranlib; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$ac_ct_RANLIB"; then
4864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_RANLIB="ranlib"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4884 if test -n "$ac_ct_RANLIB"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4886 $as_echo "$ac_ct_RANLIB" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4892 if test "x$ac_ct_RANLIB" = x; then
4893 RANLIB=":"
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901 RANLIB=$ac_ct_RANLIB
4903 else
4904 RANLIB="$ac_cv_prog_RANLIB"
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$OBJCOPY"; then
4916 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4931 IFS=$as_save_IFS
4935 OBJCOPY=$ac_cv_prog_OBJCOPY
4936 if test -n "$OBJCOPY"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4938 $as_echo "$OBJCOPY" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4946 if test -z "$ac_cv_prog_OBJCOPY"; then
4947 ac_ct_OBJCOPY=$OBJCOPY
4948 # Extract the first word of "objcopy", so it can be a program name with args.
4949 set dummy objcopy; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -n "$ac_ct_OBJCOPY"; then
4956 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4969 done
4970 done
4971 IFS=$as_save_IFS
4975 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4976 if test -n "$ac_ct_OBJCOPY"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4978 $as_echo "$ac_ct_OBJCOPY" >&6; }
4979 else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4984 if test "x$ac_ct_OBJCOPY" = x; then
4985 OBJCOPY="missing-objcopy"
4986 else
4987 case $cross_compiling:$ac_tool_warned in
4988 yes:)
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991 ac_tool_warned=yes ;;
4992 esac
4993 OBJCOPY=$ac_ct_OBJCOPY
4995 else
4996 OBJCOPY="$ac_cv_prog_OBJCOPY"
5000 enable_dlopen=yes
5004 case `pwd` in
5005 *\ * | *\ *)
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5007 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5008 esac
5012 macro_version='2.2.7a'
5013 macro_revision='1.3134'
5027 ltmain="$ac_aux_dir/ltmain.sh"
5029 # Backslashify metacharacters that are still active within
5030 # double-quoted strings.
5031 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5033 # Same as above, but do not quote variable references.
5034 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5036 # Sed substitution to delay expansion of an escaped shell variable in a
5037 # double_quote_subst'ed string.
5038 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5040 # Sed substitution to delay expansion of an escaped single quote.
5041 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5043 # Sed substitution to avoid accidental globbing in evaled expressions
5044 no_glob_subst='s/\*/\\\*/g'
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5047 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5048 if test "${lt_cv_path_NM+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$NM"; then
5052 # Let the user override the test.
5053 lt_cv_path_NM="$NM"
5054 else
5055 lt_nm_to_check="${ac_tool_prefix}nm"
5056 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5057 lt_nm_to_check="$lt_nm_to_check nm"
5059 for lt_tmp_nm in $lt_nm_to_check; do
5060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5062 IFS="$lt_save_ifs"
5063 test -z "$ac_dir" && ac_dir=.
5064 tmp_nm="$ac_dir/$lt_tmp_nm"
5065 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5066 # Check to see if the nm accepts a BSD-compat flag.
5067 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5068 # nm: unknown option "B" ignored
5069 # Tru64's nm complains that /dev/null is an invalid object file
5070 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5071 */dev/null* | *'Invalid file or object type'*)
5072 lt_cv_path_NM="$tmp_nm -B"
5073 break
5076 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5077 */dev/null*)
5078 lt_cv_path_NM="$tmp_nm -p"
5079 break
5082 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5083 continue # so that we can try to find one that supports BSD flags
5085 esac
5087 esac
5089 done
5090 IFS="$lt_save_ifs"
5091 done
5092 : ${lt_cv_path_NM=no}
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5096 $as_echo "$lt_cv_path_NM" >&6; }
5097 if test "$lt_cv_path_NM" != "no"; then
5098 NM="$lt_cv_path_NM"
5099 else
5100 # Didn't find any BSD compatible name lister, look for dumpbin.
5101 if test -n "$DUMPBIN"; then :
5102 # Let the user override the test.
5103 else
5104 if test -n "$ac_tool_prefix"; then
5105 for ac_prog in dumpbin "link -dump"
5107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$DUMPBIN"; then
5115 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5128 done
5129 done
5130 IFS=$as_save_IFS
5134 DUMPBIN=$ac_cv_prog_DUMPBIN
5135 if test -n "$DUMPBIN"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5137 $as_echo "$DUMPBIN" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5144 test -n "$DUMPBIN" && break
5145 done
5147 if test -z "$DUMPBIN"; then
5148 ac_ct_DUMPBIN=$DUMPBIN
5149 for ac_prog in dumpbin "link -dump"
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$ac_ct_DUMPBIN"; then
5159 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5178 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5179 if test -n "$ac_ct_DUMPBIN"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5181 $as_echo "$ac_ct_DUMPBIN" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 test -n "$ac_ct_DUMPBIN" && break
5189 done
5191 if test "x$ac_ct_DUMPBIN" = x; then
5192 DUMPBIN=":"
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195 yes:)
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5199 esac
5200 DUMPBIN=$ac_ct_DUMPBIN
5204 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5205 *COFF*)
5206 DUMPBIN="$DUMPBIN -symbols"
5209 DUMPBIN=:
5211 esac
5214 if test "$DUMPBIN" != ":"; then
5215 NM="$DUMPBIN"
5218 test -z "$NM" && NM=nm
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5226 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5227 if test "${lt_cv_nm_interface+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 lt_cv_nm_interface="BSD nm"
5231 echo "int some_variable = 0;" > conftest.$ac_ext
5232 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5233 (eval "$ac_compile" 2>conftest.err)
5234 cat conftest.err >&5
5235 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5236 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5239 cat conftest.out >&5
5240 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5241 lt_cv_nm_interface="MS dumpbin"
5243 rm -f conftest*
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5246 $as_echo "$lt_cv_nm_interface" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5249 $as_echo_n "checking whether ln -s works... " >&6; }
5250 LN_S=$as_ln_s
5251 if test "$LN_S" = "ln -s"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5253 $as_echo "yes" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5256 $as_echo "no, using $LN_S" >&6; }
5259 # find the maximum length of command line arguments
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5261 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5262 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5266 teststring="ABCD"
5268 case $build_os in
5269 msdosdjgpp*)
5270 # On DJGPP, this test can blow up pretty badly due to problems in libc
5271 # (any single argument exceeding 2000 bytes causes a buffer overrun
5272 # during glob expansion). Even if it were fixed, the result of this
5273 # check would be larger than it should be.
5274 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5277 gnu*)
5278 # Under GNU Hurd, this test is not required because there is
5279 # no limit to the length of command line arguments.
5280 # Libtool will interpret -1 as no limit whatsoever
5281 lt_cv_sys_max_cmd_len=-1;
5284 cygwin* | mingw* | cegcc*)
5285 # On Win9x/ME, this test blows up -- it succeeds, but takes
5286 # about 5 minutes as the teststring grows exponentially.
5287 # Worse, since 9x/ME are not pre-emptively multitasking,
5288 # you end up with a "frozen" computer, even though with patience
5289 # the test eventually succeeds (with a max line length of 256k).
5290 # Instead, let's just punt: use the minimum linelength reported by
5291 # all of the supported platforms: 8192 (on NT/2K/XP).
5292 lt_cv_sys_max_cmd_len=8192;
5295 mint*)
5296 # On MiNT this can take a long time and run out of memory.
5297 lt_cv_sys_max_cmd_len=8192;
5300 amigaos*)
5301 # On AmigaOS with pdksh, this test takes hours, literally.
5302 # So we just punt and use a minimum line length of 8192.
5303 lt_cv_sys_max_cmd_len=8192;
5306 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5307 # This has been around since 386BSD, at least. Likely further.
5308 if test -x /sbin/sysctl; then
5309 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5310 elif test -x /usr/sbin/sysctl; then
5311 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5312 else
5313 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5315 # And add a safety zone
5316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5320 interix*)
5321 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5322 lt_cv_sys_max_cmd_len=196608
5325 osf*)
5326 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5327 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5328 # nice to cause kernel panics so lets avoid the loop below.
5329 # First set a reasonable default.
5330 lt_cv_sys_max_cmd_len=16384
5332 if test -x /sbin/sysconfig; then
5333 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5334 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5335 esac
5338 sco3.2v5*)
5339 lt_cv_sys_max_cmd_len=102400
5341 sysv5* | sco5v6* | sysv4.2uw2*)
5342 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5343 if test -n "$kargmax"; then
5344 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5345 else
5346 lt_cv_sys_max_cmd_len=32768
5350 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5351 if test -n "$lt_cv_sys_max_cmd_len"; then
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5354 else
5355 # Make teststring a little bigger before we do anything with it.
5356 # a 1K string should be a reasonable start.
5357 for i in 1 2 3 4 5 6 7 8 ; do
5358 teststring=$teststring$teststring
5359 done
5360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5361 # If test is not a shell built-in, we'll probably end up computing a
5362 # maximum length that is only half of the actual maximum length, but
5363 # we can't tell.
5364 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5365 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5366 test $i != 17 # 1/2 MB should be enough
5368 i=`expr $i + 1`
5369 teststring=$teststring$teststring
5370 done
5371 # Only check the string length outside the loop.
5372 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5373 teststring=
5374 # Add a significant safety factor because C++ compilers can tack on
5375 # massive amounts of additional arguments before passing them to the
5376 # linker. It appears as though 1/2 is a usable value.
5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5380 esac
5384 if test -n $lt_cv_sys_max_cmd_len ; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5386 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5389 $as_echo "none" >&6; }
5391 max_cmd_len=$lt_cv_sys_max_cmd_len
5398 : ${CP="cp -f"}
5399 : ${MV="mv -f"}
5400 : ${RM="rm -f"}
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5403 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5404 # Try some XSI features
5405 xsi_shell=no
5406 ( _lt_dummy="a/b/c"
5407 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5408 = c,a/b,, \
5409 && eval 'test $(( 1 + 1 )) -eq 2 \
5410 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5411 && xsi_shell=yes
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5413 $as_echo "$xsi_shell" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5417 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5418 lt_shell_append=no
5419 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5420 >/dev/null 2>&1 \
5421 && lt_shell_append=yes
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5423 $as_echo "$lt_shell_append" >&6; }
5426 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5427 lt_unset=unset
5428 else
5429 lt_unset=false
5436 # test EBCDIC or ASCII
5437 case `echo X|tr X '\101'` in
5438 A) # ASCII based system
5439 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5440 lt_SP2NL='tr \040 \012'
5441 lt_NL2SP='tr \015\012 \040\040'
5443 *) # EBCDIC based system
5444 lt_SP2NL='tr \100 \n'
5445 lt_NL2SP='tr \r\n \100\100'
5447 esac
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5458 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5459 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 lt_cv_ld_reload_flag='-r'
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5465 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5466 reload_flag=$lt_cv_ld_reload_flag
5467 case $reload_flag in
5468 "" | " "*) ;;
5469 *) reload_flag=" $reload_flag" ;;
5470 esac
5471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472 case $host_os in
5473 darwin*)
5474 if test "$GCC" = yes; then
5475 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5476 else
5477 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5480 esac
5490 if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$OBJDUMP"; then
5499 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5512 done
5513 done
5514 IFS=$as_save_IFS
5518 OBJDUMP=$ac_cv_prog_OBJDUMP
5519 if test -n "$OBJDUMP"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5521 $as_echo "$OBJDUMP" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5529 if test -z "$ac_cv_prog_OBJDUMP"; then
5530 ac_ct_OBJDUMP=$OBJDUMP
5531 # Extract the first word of "objdump", so it can be a program name with args.
5532 set dummy objdump; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$ac_ct_OBJDUMP"; then
5539 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5552 done
5553 done
5554 IFS=$as_save_IFS
5558 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5559 if test -n "$ac_ct_OBJDUMP"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5561 $as_echo "$ac_ct_OBJDUMP" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5567 if test "x$ac_ct_OBJDUMP" = x; then
5568 OBJDUMP="false"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571 yes:)
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574 ac_tool_warned=yes ;;
5575 esac
5576 OBJDUMP=$ac_ct_OBJDUMP
5578 else
5579 OBJDUMP="$ac_cv_prog_OBJDUMP"
5582 test -z "$OBJDUMP" && OBJDUMP=objdump
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5593 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5594 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 lt_cv_file_magic_cmd='$MAGIC_CMD'
5598 lt_cv_file_magic_test_file=
5599 lt_cv_deplibs_check_method='unknown'
5600 # Need to set the preceding variable on all platforms that support
5601 # interlibrary dependencies.
5602 # 'none' -- dependencies not supported.
5603 # `unknown' -- same as none, but documents that we really don't know.
5604 # 'pass_all' -- all dependencies passed with no checks.
5605 # 'test_compile' -- check by making test program.
5606 # 'file_magic [[regex]]' -- check by looking for files in library path
5607 # which responds to the $file_magic_cmd with a given extended regex.
5608 # If you have `file' or equivalent on your system and you're not sure
5609 # whether `pass_all' will *always* work, you probably want this one.
5611 case $host_os in
5612 aix[4-9]*)
5613 lt_cv_deplibs_check_method=pass_all
5616 beos*)
5617 lt_cv_deplibs_check_method=pass_all
5620 bsdi[45]*)
5621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5622 lt_cv_file_magic_cmd='/usr/bin/file -L'
5623 lt_cv_file_magic_test_file=/shlib/libc.so
5626 cygwin*)
5627 # func_win32_libid is a shell function defined in ltmain.sh
5628 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5629 lt_cv_file_magic_cmd='func_win32_libid'
5632 mingw* | pw32*)
5633 # Base MSYS/MinGW do not provide the 'file' command needed by
5634 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5635 # unless we find 'file', for example because we are cross-compiling.
5636 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5637 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5639 lt_cv_file_magic_cmd='func_win32_libid'
5640 else
5641 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5642 lt_cv_file_magic_cmd='$OBJDUMP -f'
5646 cegcc*)
5647 # use the weaker test based on 'objdump'. See mingw*.
5648 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5649 lt_cv_file_magic_cmd='$OBJDUMP -f'
5652 darwin* | rhapsody*)
5653 lt_cv_deplibs_check_method=pass_all
5656 freebsd* | dragonfly*)
5657 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5658 case $host_cpu in
5659 i*86 )
5660 # Not sure whether the presence of OpenBSD here was a mistake.
5661 # Let's accept both of them until this is cleared up.
5662 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5663 lt_cv_file_magic_cmd=/usr/bin/file
5664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5666 esac
5667 else
5668 lt_cv_deplibs_check_method=pass_all
5672 gnu*)
5673 lt_cv_deplibs_check_method=pass_all
5676 haiku*)
5677 lt_cv_deplibs_check_method=pass_all
5680 hpux10.20* | hpux11*)
5681 lt_cv_file_magic_cmd=/usr/bin/file
5682 case $host_cpu in
5683 ia64*)
5684 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5685 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5687 hppa*64*)
5688 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]'
5689 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5693 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5695 esac
5698 interix[3-9]*)
5699 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5703 irix5* | irix6* | nonstopux*)
5704 case $LD in
5705 *-32|*"-32 ") libmagic=32-bit;;
5706 *-n32|*"-n32 ") libmagic=N32;;
5707 *-64|*"-64 ") libmagic=64-bit;;
5708 *) libmagic=never-match;;
5709 esac
5710 lt_cv_deplibs_check_method=pass_all
5713 # This must be Linux ELF.
5714 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5715 lt_cv_deplibs_check_method=pass_all
5718 netbsd*)
5719 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5721 else
5722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5726 newos6*)
5727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5728 lt_cv_file_magic_cmd=/usr/bin/file
5729 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5732 *nto* | *qnx*)
5733 lt_cv_deplibs_check_method=pass_all
5736 openbsd*)
5737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5739 else
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5744 osf3* | osf4* | osf5*)
5745 lt_cv_deplibs_check_method=pass_all
5748 rdos*)
5749 lt_cv_deplibs_check_method=pass_all
5752 solaris*)
5753 lt_cv_deplibs_check_method=pass_all
5756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5757 lt_cv_deplibs_check_method=pass_all
5760 sysv4 | sysv4.3*)
5761 case $host_vendor in
5762 motorola)
5763 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]'
5764 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5766 ncr)
5767 lt_cv_deplibs_check_method=pass_all
5769 sequent)
5770 lt_cv_file_magic_cmd='/bin/file'
5771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5773 sni)
5774 lt_cv_file_magic_cmd='/bin/file'
5775 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5776 lt_cv_file_magic_test_file=/lib/libc.so
5778 siemens)
5779 lt_cv_deplibs_check_method=pass_all
5782 lt_cv_deplibs_check_method=pass_all
5784 esac
5787 tpf*)
5788 lt_cv_deplibs_check_method=pass_all
5790 esac
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5794 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5795 file_magic_cmd=$lt_cv_file_magic_cmd
5796 deplibs_check_method=$lt_cv_deplibs_check_method
5797 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ar; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_AR+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$AR"; then
5819 ac_cv_prog_AR="$AR" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_AR="${ac_tool_prefix}ar"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5832 done
5833 done
5834 IFS=$as_save_IFS
5838 AR=$ac_cv_prog_AR
5839 if test -n "$AR"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5841 $as_echo "$AR" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5849 if test -z "$ac_cv_prog_AR"; then
5850 ac_ct_AR=$AR
5851 # Extract the first word of "ar", so it can be a program name with args.
5852 set dummy ar; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_AR"; then
5859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_AR="ar"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5872 done
5873 done
5874 IFS=$as_save_IFS
5878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5879 if test -n "$ac_ct_AR"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5881 $as_echo "$ac_ct_AR" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5887 if test "x$ac_ct_AR" = x; then
5888 AR="false"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 AR=$ac_ct_AR
5898 else
5899 AR="$ac_cv_prog_AR"
5902 test -z "$AR" && AR=ar
5903 test -z "$AR_FLAGS" && AR_FLAGS=cru
5915 if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5917 set dummy ${ac_tool_prefix}strip; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if test "${ac_cv_prog_STRIP+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$STRIP"; then
5924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5937 done
5938 done
5939 IFS=$as_save_IFS
5943 STRIP=$ac_cv_prog_STRIP
5944 if test -n "$STRIP"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5946 $as_echo "$STRIP" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5954 if test -z "$ac_cv_prog_STRIP"; then
5955 ac_ct_STRIP=$STRIP
5956 # Extract the first word of "strip", so it can be a program name with args.
5957 set dummy strip; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$ac_ct_STRIP"; then
5964 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_ac_ct_STRIP="strip"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5977 done
5978 done
5979 IFS=$as_save_IFS
5983 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5984 if test -n "$ac_ct_STRIP"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5986 $as_echo "$ac_ct_STRIP" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5992 if test "x$ac_ct_STRIP" = x; then
5993 STRIP=":"
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996 yes:)
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999 ac_tool_warned=yes ;;
6000 esac
6001 STRIP=$ac_ct_STRIP
6003 else
6004 STRIP="$ac_cv_prog_STRIP"
6007 test -z "$STRIP" && STRIP=:
6014 if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$RANLIB"; then
6023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6036 done
6037 done
6038 IFS=$as_save_IFS
6042 RANLIB=$ac_cv_prog_RANLIB
6043 if test -n "$RANLIB"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6045 $as_echo "$RANLIB" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6053 if test -z "$ac_cv_prog_RANLIB"; then
6054 ac_ct_RANLIB=$RANLIB
6055 # Extract the first word of "ranlib", so it can be a program name with args.
6056 set dummy ranlib; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$ac_ct_RANLIB"; then
6063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_ac_ct_RANLIB="ranlib"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6076 done
6077 done
6078 IFS=$as_save_IFS
6082 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6083 if test -n "$ac_ct_RANLIB"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6085 $as_echo "$ac_ct_RANLIB" >&6; }
6086 else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6091 if test "x$ac_ct_RANLIB" = x; then
6092 RANLIB=":"
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100 RANLIB=$ac_ct_RANLIB
6102 else
6103 RANLIB="$ac_cv_prog_RANLIB"
6106 test -z "$RANLIB" && RANLIB=:
6113 # Determine commands to create old-style static archives.
6114 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6115 old_postinstall_cmds='chmod 644 $oldlib'
6116 old_postuninstall_cmds=
6118 if test -n "$RANLIB"; then
6119 case $host_os in
6120 openbsd*)
6121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6126 esac
6127 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6130 case $host_os in
6131 darwin*)
6132 lock_old_archive_extraction=yes ;;
6134 lock_old_archive_extraction=no ;;
6135 esac
6175 # If no C compiler was specified, use CC.
6176 LTCC=${LTCC-"$CC"}
6178 # If no C compiler flags were specified, use CFLAGS.
6179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6181 # Allow CC to be a program name with arguments.
6182 compiler=$CC
6185 # Check for command to grab the raw symbol name followed by C symbol from nm.
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6187 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6188 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6192 # These are sane defaults that work on at least a few old systems.
6193 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6195 # Character class describing NM global symbol codes.
6196 symcode='[BCDEGRST]'
6198 # Regexp to match symbols that can be accessed directly from C.
6199 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6201 # Define system-specific variables.
6202 case $host_os in
6203 aix*)
6204 symcode='[BCDT]'
6206 cygwin* | mingw* | pw32* | cegcc*)
6207 symcode='[ABCDGISTW]'
6209 hpux*)
6210 if test "$host_cpu" = ia64; then
6211 symcode='[ABCDEGRST]'
6214 irix* | nonstopux*)
6215 symcode='[BCDEGRST]'
6217 osf*)
6218 symcode='[BCDEGQRST]'
6220 solaris*)
6221 symcode='[BDRT]'
6223 sco3.2v5*)
6224 symcode='[DT]'
6226 sysv4.2uw2*)
6227 symcode='[DT]'
6229 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6230 symcode='[ABDT]'
6232 sysv4)
6233 symcode='[DFNSTU]'
6235 esac
6237 # If we're using GNU nm, then use its standard symbol codes.
6238 case `$NM -V 2>&1` in
6239 *GNU* | *'with BFD'*)
6240 symcode='[ABCDGIRSTW]' ;;
6241 esac
6243 # Transform an extracted symbol line into a proper C declaration.
6244 # Some systems (esp. on ia64) link data and code symbols differently,
6245 # so use this general approach.
6246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6248 # Transform an extracted symbol line into symbol name and symbol address
6249 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6250 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'"
6252 # Handle CRLF in mingw tool chain
6253 opt_cr=
6254 case $build_os in
6255 mingw*)
6256 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6258 esac
6260 # Try without a prefix underscore, then with it.
6261 for ac_symprfx in "" "_"; do
6263 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6264 symxfrm="\\1 $ac_symprfx\\2 \\2"
6266 # Write the raw and C identifiers.
6267 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6268 # Fake it for dumpbin and say T for any non-static function
6269 # and D for any global variable.
6270 # Also find C++ and __fastcall symbols from MSVC++,
6271 # which start with @ or ?.
6272 lt_cv_sys_global_symbol_pipe="$AWK '"\
6273 " {last_section=section; section=\$ 3};"\
6274 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6275 " \$ 0!~/External *\|/{next};"\
6276 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6277 " {if(hide[section]) next};"\
6278 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6279 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6280 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6281 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6282 " ' prfx=^$ac_symprfx"
6283 else
6284 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6287 # Check to see that the pipe works correctly.
6288 pipe_works=no
6290 rm -f conftest*
6291 cat > conftest.$ac_ext <<_LT_EOF
6292 #ifdef __cplusplus
6293 extern "C" {
6294 #endif
6295 char nm_test_var;
6296 void nm_test_func(void);
6297 void nm_test_func(void){}
6298 #ifdef __cplusplus
6300 #endif
6301 int main(){nm_test_var='a';nm_test_func();return(0);}
6302 _LT_EOF
6304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6305 (eval $ac_compile) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }; then
6309 # Now try to grab the symbols.
6310 nlist=conftest.nm
6311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6312 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6313 ac_status=$?
6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; } && test -s "$nlist"; then
6316 # Try sorting and uniquifying the output.
6317 if sort "$nlist" | uniq > "$nlist"T; then
6318 mv -f "$nlist"T "$nlist"
6319 else
6320 rm -f "$nlist"T
6323 # Make sure that we snagged all the symbols we need.
6324 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6325 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6326 cat <<_LT_EOF > conftest.$ac_ext
6327 #ifdef __cplusplus
6328 extern "C" {
6329 #endif
6331 _LT_EOF
6332 # Now generate the symbol file.
6333 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6335 cat <<_LT_EOF >> conftest.$ac_ext
6337 /* The mapping between symbol names and symbols. */
6338 const struct {
6339 const char *name;
6340 void *address;
6342 lt__PROGRAM__LTX_preloaded_symbols[] =
6344 { "@PROGRAM@", (void *) 0 },
6345 _LT_EOF
6346 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6347 cat <<\_LT_EOF >> conftest.$ac_ext
6348 {0, (void *) 0}
6351 /* This works around a problem in FreeBSD linker */
6352 #ifdef FREEBSD_WORKAROUND
6353 static const void *lt_preloaded_setup() {
6354 return lt__PROGRAM__LTX_preloaded_symbols;
6356 #endif
6358 #ifdef __cplusplus
6360 #endif
6361 _LT_EOF
6362 # Now try linking the two files.
6363 mv conftest.$ac_objext conftstm.$ac_objext
6364 lt_save_LIBS="$LIBS"
6365 lt_save_CFLAGS="$CFLAGS"
6366 LIBS="conftstm.$ac_objext"
6367 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6369 (eval $ac_link) 2>&5
6370 ac_status=$?
6371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6373 pipe_works=yes
6375 LIBS="$lt_save_LIBS"
6376 CFLAGS="$lt_save_CFLAGS"
6377 else
6378 echo "cannot find nm_test_func in $nlist" >&5
6380 else
6381 echo "cannot find nm_test_var in $nlist" >&5
6383 else
6384 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6386 else
6387 echo "$progname: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6390 rm -rf conftest* conftst*
6392 # Do not use the global_symbol_pipe unless it works.
6393 if test "$pipe_works" = yes; then
6394 break
6395 else
6396 lt_cv_sys_global_symbol_pipe=
6398 done
6402 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6403 lt_cv_sys_global_symbol_to_cdecl=
6405 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6407 $as_echo "failed" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6410 $as_echo "ok" >&6; }
6435 # Check whether --enable-libtool-lock was given.
6436 if test "${enable_libtool_lock+set}" = set; then :
6437 enableval=$enable_libtool_lock;
6440 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6442 # Some flags need to be propagated to the compiler or linker for good
6443 # libtool support.
6444 case $host in
6445 ia64-*-hpux*)
6446 # Find out which ABI we are using.
6447 echo 'int i;' > conftest.$ac_ext
6448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6449 (eval $ac_compile) 2>&5
6450 ac_status=$?
6451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452 test $ac_status = 0; }; then
6453 case `/usr/bin/file conftest.$ac_objext` in
6454 *ELF-32*)
6455 HPUX_IA64_MODE="32"
6457 *ELF-64*)
6458 HPUX_IA64_MODE="64"
6460 esac
6462 rm -rf conftest*
6464 *-*-irix6*)
6465 # Find out which ABI we are using.
6466 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468 (eval $ac_compile) 2>&5
6469 ac_status=$?
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; }; then
6472 if test "$lt_cv_prog_gnu_ld" = yes; then
6473 case `/usr/bin/file conftest.$ac_objext` in
6474 *32-bit*)
6475 LD="${LD-ld} -melf32bsmip"
6477 *N32*)
6478 LD="${LD-ld} -melf32bmipn32"
6480 *64-bit*)
6481 LD="${LD-ld} -melf64bmip"
6483 esac
6484 else
6485 case `/usr/bin/file conftest.$ac_objext` in
6486 *32-bit*)
6487 LD="${LD-ld} -32"
6489 *N32*)
6490 LD="${LD-ld} -n32"
6492 *64-bit*)
6493 LD="${LD-ld} -64"
6495 esac
6498 rm -rf conftest*
6501 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6502 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6503 # Find out which ABI we are using.
6504 echo 'int i;' > conftest.$ac_ext
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506 (eval $ac_compile) 2>&5
6507 ac_status=$?
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 case `/usr/bin/file conftest.o` in
6511 *32-bit*)
6512 case $host in
6513 x86_64-*kfreebsd*-gnu)
6514 LD="${LD-ld} -m elf_i386_fbsd"
6516 x86_64-*linux*)
6517 case `/usr/bin/file conftest.o` in
6518 *x86-64*)
6519 LD="${LD-ld} -m elf32_x86_64"
6522 LD="${LD-ld} -m elf_i386"
6524 esac
6526 powerpc64le-*linux*)
6527 LD="${LD-ld} -m elf32lppclinux"
6529 powerpc64-*linux*)
6530 LD="${LD-ld} -m elf32ppclinux"
6532 s390x-*linux*)
6533 LD="${LD-ld} -m elf_s390"
6535 sparc64-*linux*)
6536 LD="${LD-ld} -m elf32_sparc"
6538 esac
6540 *64-bit*)
6541 case $host in
6542 x86_64-*kfreebsd*-gnu)
6543 LD="${LD-ld} -m elf_x86_64_fbsd"
6545 x86_64-*linux*)
6546 LD="${LD-ld} -m elf_x86_64"
6548 powerpcle-*linux*)
6549 LD="${LD-ld} -m elf64lppc"
6551 powerpc-*linux*)
6552 LD="${LD-ld} -m elf64ppc"
6554 s390*-*linux*|s390*-*tpf*)
6555 LD="${LD-ld} -m elf64_s390"
6557 sparc*-*linux*)
6558 LD="${LD-ld} -m elf64_sparc"
6560 esac
6562 esac
6564 rm -rf conftest*
6567 *-*-sco3.2v5*)
6568 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6569 SAVE_CFLAGS="$CFLAGS"
6570 CFLAGS="$CFLAGS -belf"
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6572 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6573 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 ac_ext=c
6577 ac_cpp='$CPP $CPPFLAGS'
6578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6586 main ()
6590 return 0;
6592 _ACEOF
6593 if ac_fn_c_try_link "$LINENO"; then :
6594 lt_cv_cc_needs_belf=yes
6595 else
6596 lt_cv_cc_needs_belf=no
6598 rm -f core conftest.err conftest.$ac_objext \
6599 conftest$ac_exeext conftest.$ac_ext
6600 ac_ext=c
6601 ac_cpp='$CPP $CPPFLAGS'
6602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6608 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6609 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6610 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6611 CFLAGS="$SAVE_CFLAGS"
6614 sparc*-*solaris*)
6615 # Find out which ABI we are using.
6616 echo 'int i;' > conftest.$ac_ext
6617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618 (eval $ac_compile) 2>&5
6619 ac_status=$?
6620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621 test $ac_status = 0; }; then
6622 case `/usr/bin/file conftest.o` in
6623 *64-bit*)
6624 case $lt_cv_prog_gnu_ld in
6625 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6627 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6628 LD="${LD-ld} -64"
6631 esac
6633 esac
6635 rm -rf conftest*
6637 esac
6639 need_locks="$enable_libtool_lock"
6642 case $host_os in
6643 rhapsody* | darwin*)
6644 if test -n "$ac_tool_prefix"; then
6645 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6646 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 if test -n "$DSYMUTIL"; then
6653 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6666 done
6667 done
6668 IFS=$as_save_IFS
6672 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6673 if test -n "$DSYMUTIL"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6675 $as_echo "$DSYMUTIL" >&6; }
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6683 if test -z "$ac_cv_prog_DSYMUTIL"; then
6684 ac_ct_DSYMUTIL=$DSYMUTIL
6685 # Extract the first word of "dsymutil", so it can be a program name with args.
6686 set dummy dsymutil; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$ac_ct_DSYMUTIL"; then
6693 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6706 done
6707 done
6708 IFS=$as_save_IFS
6712 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6713 if test -n "$ac_ct_DSYMUTIL"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6715 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6721 if test "x$ac_ct_DSYMUTIL" = x; then
6722 DSYMUTIL=":"
6723 else
6724 case $cross_compiling:$ac_tool_warned in
6725 yes:)
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728 ac_tool_warned=yes ;;
6729 esac
6730 DSYMUTIL=$ac_ct_DSYMUTIL
6732 else
6733 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6736 if test -n "$ac_tool_prefix"; then
6737 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6738 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 if test -n "$NMEDIT"; then
6745 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6758 done
6759 done
6760 IFS=$as_save_IFS
6764 NMEDIT=$ac_cv_prog_NMEDIT
6765 if test -n "$NMEDIT"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6767 $as_echo "$NMEDIT" >&6; }
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6775 if test -z "$ac_cv_prog_NMEDIT"; then
6776 ac_ct_NMEDIT=$NMEDIT
6777 # Extract the first word of "nmedit", so it can be a program name with args.
6778 set dummy nmedit; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if test -n "$ac_ct_NMEDIT"; then
6785 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6804 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6805 if test -n "$ac_ct_NMEDIT"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6807 $as_echo "$ac_ct_NMEDIT" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6813 if test "x$ac_ct_NMEDIT" = x; then
6814 NMEDIT=":"
6815 else
6816 case $cross_compiling:$ac_tool_warned in
6817 yes:)
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820 ac_tool_warned=yes ;;
6821 esac
6822 NMEDIT=$ac_ct_NMEDIT
6824 else
6825 NMEDIT="$ac_cv_prog_NMEDIT"
6828 if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6830 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if test "${ac_cv_prog_LIPO+set}" = set; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 if test -n "$LIPO"; then
6837 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6850 done
6851 done
6852 IFS=$as_save_IFS
6856 LIPO=$ac_cv_prog_LIPO
6857 if test -n "$LIPO"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6859 $as_echo "$LIPO" >&6; }
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6867 if test -z "$ac_cv_prog_LIPO"; then
6868 ac_ct_LIPO=$LIPO
6869 # Extract the first word of "lipo", so it can be a program name with args.
6870 set dummy lipo; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$ac_ct_LIPO"; then
6877 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_ac_ct_LIPO="lipo"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6890 done
6891 done
6892 IFS=$as_save_IFS
6896 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6897 if test -n "$ac_ct_LIPO"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6899 $as_echo "$ac_ct_LIPO" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6905 if test "x$ac_ct_LIPO" = x; then
6906 LIPO=":"
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909 yes:)
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912 ac_tool_warned=yes ;;
6913 esac
6914 LIPO=$ac_ct_LIPO
6916 else
6917 LIPO="$ac_cv_prog_LIPO"
6920 if test -n "$ac_tool_prefix"; then
6921 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6922 set dummy ${ac_tool_prefix}otool; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 if test -n "$OTOOL"; then
6929 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6942 done
6943 done
6944 IFS=$as_save_IFS
6948 OTOOL=$ac_cv_prog_OTOOL
6949 if test -n "$OTOOL"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6951 $as_echo "$OTOOL" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6959 if test -z "$ac_cv_prog_OTOOL"; then
6960 ac_ct_OTOOL=$OTOOL
6961 # Extract the first word of "otool", so it can be a program name with args.
6962 set dummy otool; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$ac_ct_OTOOL"; then
6969 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_ac_ct_OTOOL="otool"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6982 done
6983 done
6984 IFS=$as_save_IFS
6988 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6989 if test -n "$ac_ct_OTOOL"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6991 $as_echo "$ac_ct_OTOOL" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6997 if test "x$ac_ct_OTOOL" = x; then
6998 OTOOL=":"
6999 else
7000 case $cross_compiling:$ac_tool_warned in
7001 yes:)
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004 ac_tool_warned=yes ;;
7005 esac
7006 OTOOL=$ac_ct_OTOOL
7008 else
7009 OTOOL="$ac_cv_prog_OTOOL"
7012 if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7014 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 if test -n "$OTOOL64"; then
7021 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7034 done
7035 done
7036 IFS=$as_save_IFS
7040 OTOOL64=$ac_cv_prog_OTOOL64
7041 if test -n "$OTOOL64"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7043 $as_echo "$OTOOL64" >&6; }
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7051 if test -z "$ac_cv_prog_OTOOL64"; then
7052 ac_ct_OTOOL64=$OTOOL64
7053 # Extract the first word of "otool64", so it can be a program name with args.
7054 set dummy otool64; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 if test -n "$ac_ct_OTOOL64"; then
7061 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_ac_ct_OTOOL64="otool64"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7074 done
7075 done
7076 IFS=$as_save_IFS
7080 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7081 if test -n "$ac_ct_OTOOL64"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7083 $as_echo "$ac_ct_OTOOL64" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7089 if test "x$ac_ct_OTOOL64" = x; then
7090 OTOOL64=":"
7091 else
7092 case $cross_compiling:$ac_tool_warned in
7093 yes:)
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096 ac_tool_warned=yes ;;
7097 esac
7098 OTOOL64=$ac_ct_OTOOL64
7100 else
7101 OTOOL64="$ac_cv_prog_OTOOL64"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7131 $as_echo_n "checking for -single_module linker flag... " >&6; }
7132 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 lt_cv_apple_cc_single_mod=no
7136 if test -z "${LT_MULTI_MODULE}"; then
7137 # By default we will add the -single_module flag. You can override
7138 # by either setting the environment variable LT_MULTI_MODULE
7139 # non-empty at configure time, or by adding -multi_module to the
7140 # link flags.
7141 rm -rf libconftest.dylib*
7142 echo "int foo(void){return 1;}" > conftest.c
7143 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7144 -dynamiclib -Wl,-single_module conftest.c" >&5
7145 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7146 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7147 _lt_result=$?
7148 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7149 lt_cv_apple_cc_single_mod=yes
7150 else
7151 cat conftest.err >&5
7153 rm -rf libconftest.dylib*
7154 rm -f conftest.*
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7158 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7160 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7161 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 lt_cv_ld_exported_symbols_list=no
7165 save_LDFLAGS=$LDFLAGS
7166 echo "_main" > conftest.sym
7167 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7172 main ()
7176 return 0;
7178 _ACEOF
7179 if ac_fn_c_try_link "$LINENO"; then :
7180 lt_cv_ld_exported_symbols_list=yes
7181 else
7182 lt_cv_ld_exported_symbols_list=no
7184 rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 LDFLAGS="$save_LDFLAGS"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7190 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7192 $as_echo_n "checking for -force_load linker flag... " >&6; }
7193 if test "${lt_cv_ld_force_load+set}" = set; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 lt_cv_ld_force_load=no
7197 cat > conftest.c << _LT_EOF
7198 int forced_loaded() { return 2;}
7199 _LT_EOF
7200 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7201 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7202 echo "$AR cru libconftest.a conftest.o" >&5
7203 $AR cru libconftest.a conftest.o 2>&5
7204 cat > conftest.c << _LT_EOF
7205 int main() { return 0;}
7206 _LT_EOF
7207 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7208 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7209 _lt_result=$?
7210 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7211 lt_cv_ld_force_load=yes
7212 else
7213 cat conftest.err >&5
7215 rm -f conftest.err libconftest.a conftest conftest.c
7216 rm -rf conftest.dSYM
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7220 $as_echo "$lt_cv_ld_force_load" >&6; }
7221 case $host_os in
7222 rhapsody* | darwin1.[012])
7223 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7224 darwin1.*)
7225 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7226 darwin*) # darwin 5.x on
7227 # if running on 10.5 or later, the deployment target defaults
7228 # to the OS version, if on x86, and 10.4, the deployment
7229 # target defaults to 10.4. Don't you love it?
7230 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7231 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7232 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7233 10.[012][,.]*)
7234 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7235 10.*)
7236 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7237 esac
7239 esac
7240 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7241 _lt_dar_single_mod='$single_module'
7243 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7244 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7245 else
7246 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7248 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7249 _lt_dsymutil='~$DSYMUTIL $lib || :'
7250 else
7251 _lt_dsymutil=
7254 esac
7256 ac_ext=c
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7262 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7263 # On Suns, sometimes $CPP names a directory.
7264 if test -n "$CPP" && test -d "$CPP"; then
7265 CPP=
7267 if test -z "$CPP"; then
7268 if test "${ac_cv_prog_CPP+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 # Double quotes because CPP needs to be expanded
7272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7274 ac_preproc_ok=false
7275 for ac_c_preproc_warn_flag in '' yes
7277 # Use a header file that comes with gcc, so configuring glibc
7278 # with a fresh cross-compiler works.
7279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7280 # <limits.h> exists even on freestanding compilers.
7281 # On the NeXT, cc -E runs the code through the compiler's parser,
7282 # not just through cpp. "Syntax error" is here to catch this case.
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #ifdef __STDC__
7286 # include <limits.h>
7287 #else
7288 # include <assert.h>
7289 #endif
7290 Syntax error
7291 _ACEOF
7292 if ac_fn_c_try_cpp "$LINENO"; then :
7294 else
7295 # Broken: fails on valid input.
7296 continue
7298 rm -f conftest.err conftest.$ac_ext
7300 # OK, works on sane cases. Now check whether nonexistent headers
7301 # can be detected and how.
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <ac_nonexistent.h>
7305 _ACEOF
7306 if ac_fn_c_try_cpp "$LINENO"; then :
7307 # Broken: success on invalid input.
7308 continue
7309 else
7310 # Passes both tests.
7311 ac_preproc_ok=:
7312 break
7314 rm -f conftest.err conftest.$ac_ext
7316 done
7317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7318 rm -f conftest.err conftest.$ac_ext
7319 if $ac_preproc_ok; then :
7320 break
7323 done
7324 ac_cv_prog_CPP=$CPP
7327 CPP=$ac_cv_prog_CPP
7328 else
7329 ac_cv_prog_CPP=$CPP
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7332 $as_echo "$CPP" >&6; }
7333 ac_preproc_ok=false
7334 for ac_c_preproc_warn_flag in '' yes
7336 # Use a header file that comes with gcc, so configuring glibc
7337 # with a fresh cross-compiler works.
7338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7339 # <limits.h> exists even on freestanding compilers.
7340 # On the NeXT, cc -E runs the code through the compiler's parser,
7341 # not just through cpp. "Syntax error" is here to catch this case.
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #ifdef __STDC__
7345 # include <limits.h>
7346 #else
7347 # include <assert.h>
7348 #endif
7349 Syntax error
7350 _ACEOF
7351 if ac_fn_c_try_cpp "$LINENO"; then :
7353 else
7354 # Broken: fails on valid input.
7355 continue
7357 rm -f conftest.err conftest.$ac_ext
7359 # OK, works on sane cases. Now check whether nonexistent headers
7360 # can be detected and how.
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 #include <ac_nonexistent.h>
7364 _ACEOF
7365 if ac_fn_c_try_cpp "$LINENO"; then :
7366 # Broken: success on invalid input.
7367 continue
7368 else
7369 # Passes both tests.
7370 ac_preproc_ok=:
7371 break
7373 rm -f conftest.err conftest.$ac_ext
7375 done
7376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7377 rm -f conftest.err conftest.$ac_ext
7378 if $ac_preproc_ok; then :
7380 else
7381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7383 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7384 See \`config.log' for more details." "$LINENO" 5; }
7387 ac_ext=c
7388 ac_cpp='$CPP $CPPFLAGS'
7389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7395 $as_echo_n "checking for ANSI C header files... " >&6; }
7396 if test "${ac_cv_header_stdc+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 #include <stdlib.h>
7402 #include <stdarg.h>
7403 #include <string.h>
7404 #include <float.h>
7407 main ()
7411 return 0;
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415 ac_cv_header_stdc=yes
7416 else
7417 ac_cv_header_stdc=no
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 if test $ac_cv_header_stdc = yes; then
7422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #include <string.h>
7427 _ACEOF
7428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429 $EGREP "memchr" >/dev/null 2>&1; then :
7431 else
7432 ac_cv_header_stdc=no
7434 rm -f conftest*
7438 if test $ac_cv_header_stdc = yes; then
7439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <stdlib.h>
7444 _ACEOF
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446 $EGREP "free" >/dev/null 2>&1; then :
7448 else
7449 ac_cv_header_stdc=no
7451 rm -f conftest*
7455 if test $ac_cv_header_stdc = yes; then
7456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7457 if test "$cross_compiling" = yes; then :
7459 else
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <ctype.h>
7463 #include <stdlib.h>
7464 #if ((' ' & 0x0FF) == 0x020)
7465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7467 #else
7468 # define ISLOWER(c) \
7469 (('a' <= (c) && (c) <= 'i') \
7470 || ('j' <= (c) && (c) <= 'r') \
7471 || ('s' <= (c) && (c) <= 'z'))
7472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7473 #endif
7475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7477 main ()
7479 int i;
7480 for (i = 0; i < 256; i++)
7481 if (XOR (islower (i), ISLOWER (i))
7482 || toupper (i) != TOUPPER (i))
7483 return 2;
7484 return 0;
7486 _ACEOF
7487 if ac_fn_c_try_run "$LINENO"; then :
7489 else
7490 ac_cv_header_stdc=no
7492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7493 conftest.$ac_objext conftest.beam conftest.$ac_ext
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7499 $as_echo "$ac_cv_header_stdc" >&6; }
7500 if test $ac_cv_header_stdc = yes; then
7502 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7506 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7508 inttypes.h stdint.h unistd.h
7509 do :
7510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7511 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7513 eval as_val=\$$as_ac_Header
7514 if test "x$as_val" = x""yes; then :
7515 cat >>confdefs.h <<_ACEOF
7516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7517 _ACEOF
7521 done
7524 for ac_header in dlfcn.h
7525 do :
7526 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7528 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7529 cat >>confdefs.h <<_ACEOF
7530 #define HAVE_DLFCN_H 1
7531 _ACEOF
7535 done
7537 if test -n "$ac_tool_prefix"; then
7538 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_GOC+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 if test -n "$GOC"; then
7546 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7559 done
7560 done
7561 IFS=$as_save_IFS
7565 GOC=$ac_cv_prog_GOC
7566 if test -n "$GOC"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7568 $as_echo "$GOC" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7576 if test -z "$ac_cv_prog_GOC"; then
7577 ac_ct_GOC=$GOC
7578 # Extract the first word of "gccgo", so it can be a program name with args.
7579 set dummy gccgo; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 if test -n "$ac_ct_GOC"; then
7586 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_ac_ct_GOC="gccgo"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7599 done
7600 done
7601 IFS=$as_save_IFS
7605 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7606 if test -n "$ac_ct_GOC"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7608 $as_echo "$ac_ct_GOC" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7614 if test "x$ac_ct_GOC" = x; then
7615 GOC=""
7616 else
7617 case $cross_compiling:$ac_tool_warned in
7618 yes:)
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7622 esac
7623 GOC=$ac_ct_GOC
7625 else
7626 GOC="$ac_cv_prog_GOC"
7634 # Set options
7639 enable_win32_dll=no
7642 # Check whether --enable-shared was given.
7643 if test "${enable_shared+set}" = set; then :
7644 enableval=$enable_shared; p=${PACKAGE-default}
7645 case $enableval in
7646 yes) enable_shared=yes ;;
7647 no) enable_shared=no ;;
7649 enable_shared=no
7650 # Look at the argument we got. We use all the common list separators.
7651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652 for pkg in $enableval; do
7653 IFS="$lt_save_ifs"
7654 if test "X$pkg" = "X$p"; then
7655 enable_shared=yes
7657 done
7658 IFS="$lt_save_ifs"
7660 esac
7661 else
7662 enable_shared=yes
7673 # Check whether --enable-static was given.
7674 if test "${enable_static+set}" = set; then :
7675 enableval=$enable_static; p=${PACKAGE-default}
7676 case $enableval in
7677 yes) enable_static=yes ;;
7678 no) enable_static=no ;;
7680 enable_static=no
7681 # Look at the argument we got. We use all the common list separators.
7682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683 for pkg in $enableval; do
7684 IFS="$lt_save_ifs"
7685 if test "X$pkg" = "X$p"; then
7686 enable_static=yes
7688 done
7689 IFS="$lt_save_ifs"
7691 esac
7692 else
7693 enable_static=yes
7705 # Check whether --with-pic was given.
7706 if test "${with_pic+set}" = set; then :
7707 withval=$with_pic; pic_mode="$withval"
7708 else
7709 pic_mode=default
7713 test -z "$pic_mode" && pic_mode=default
7721 # Check whether --enable-fast-install was given.
7722 if test "${enable_fast_install+set}" = set; then :
7723 enableval=$enable_fast_install; p=${PACKAGE-default}
7724 case $enableval in
7725 yes) enable_fast_install=yes ;;
7726 no) enable_fast_install=no ;;
7728 enable_fast_install=no
7729 # Look at the argument we got. We use all the common list separators.
7730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7731 for pkg in $enableval; do
7732 IFS="$lt_save_ifs"
7733 if test "X$pkg" = "X$p"; then
7734 enable_fast_install=yes
7736 done
7737 IFS="$lt_save_ifs"
7739 esac
7740 else
7741 enable_fast_install=yes
7754 # This can be used to rebuild libtool when needed
7755 LIBTOOL_DEPS="$ltmain"
7757 # Always use our own libtool.
7758 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7785 test -z "$LN_S" && LN_S="ln -s"
7800 if test -n "${ZSH_VERSION+set}" ; then
7801 setopt NO_GLOB_SUBST
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7805 $as_echo_n "checking for objdir... " >&6; }
7806 if test "${lt_cv_objdir+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 rm -f .libs 2>/dev/null
7810 mkdir .libs 2>/dev/null
7811 if test -d .libs; then
7812 lt_cv_objdir=.libs
7813 else
7814 # MS-DOS does not allow filenames that begin with a dot.
7815 lt_cv_objdir=_libs
7817 rmdir .libs 2>/dev/null
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7820 $as_echo "$lt_cv_objdir" >&6; }
7821 objdir=$lt_cv_objdir
7827 cat >>confdefs.h <<_ACEOF
7828 #define LT_OBJDIR "$lt_cv_objdir/"
7829 _ACEOF
7834 case $host_os in
7835 aix3*)
7836 # AIX sometimes has problems with the GCC collect2 program. For some
7837 # reason, if we set the COLLECT_NAMES environment variable, the problems
7838 # vanish in a puff of smoke.
7839 if test "X${COLLECT_NAMES+set}" != Xset; then
7840 COLLECT_NAMES=
7841 export COLLECT_NAMES
7844 esac
7846 # Global variables:
7847 ofile=libtool
7848 can_build_shared=yes
7850 # All known linkers require a `.a' archive for static linking (except MSVC,
7851 # which needs '.lib').
7852 libext=a
7854 with_gnu_ld="$lt_cv_prog_gnu_ld"
7856 old_CC="$CC"
7857 old_CFLAGS="$CFLAGS"
7859 # Set sane defaults for various variables
7860 test -z "$CC" && CC=cc
7861 test -z "$LTCC" && LTCC=$CC
7862 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7863 test -z "$LD" && LD=ld
7864 test -z "$ac_objext" && ac_objext=o
7866 for cc_temp in $compiler""; do
7867 case $cc_temp in
7868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7870 \-*) ;;
7871 *) break;;
7872 esac
7873 done
7874 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7877 # Only perform the check for file, if the check method requires it
7878 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7879 case $deplibs_check_method in
7880 file_magic*)
7881 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7883 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7884 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 case $MAGIC_CMD in
7888 [\\/*] | ?:[\\/]*)
7889 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7892 lt_save_MAGIC_CMD="$MAGIC_CMD"
7893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7894 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7895 for ac_dir in $ac_dummy; do
7896 IFS="$lt_save_ifs"
7897 test -z "$ac_dir" && ac_dir=.
7898 if test -f $ac_dir/${ac_tool_prefix}file; then
7899 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7900 if test -n "$file_magic_test_file"; then
7901 case $deplibs_check_method in
7902 "file_magic "*)
7903 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7905 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7906 $EGREP "$file_magic_regex" > /dev/null; then
7908 else
7909 cat <<_LT_EOF 1>&2
7911 *** Warning: the command libtool uses to detect shared libraries,
7912 *** $file_magic_cmd, produces output that libtool cannot recognize.
7913 *** The result is that libtool may fail to recognize shared libraries
7914 *** as such. This will affect the creation of libtool libraries that
7915 *** depend on shared libraries, but programs linked with such libtool
7916 *** libraries will work regardless of this problem. Nevertheless, you
7917 *** may want to report the problem to your system manager and/or to
7918 *** bug-libtool@gnu.org
7920 _LT_EOF
7921 fi ;;
7922 esac
7924 break
7926 done
7927 IFS="$lt_save_ifs"
7928 MAGIC_CMD="$lt_save_MAGIC_CMD"
7930 esac
7933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7934 if test -n "$MAGIC_CMD"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7936 $as_echo "$MAGIC_CMD" >&6; }
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7946 if test -z "$lt_cv_path_MAGIC_CMD"; then
7947 if test -n "$ac_tool_prefix"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7949 $as_echo_n "checking for file... " >&6; }
7950 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 case $MAGIC_CMD in
7954 [\\/*] | ?:[\\/]*)
7955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7958 lt_save_MAGIC_CMD="$MAGIC_CMD"
7959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7960 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7961 for ac_dir in $ac_dummy; do
7962 IFS="$lt_save_ifs"
7963 test -z "$ac_dir" && ac_dir=.
7964 if test -f $ac_dir/file; then
7965 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7966 if test -n "$file_magic_test_file"; then
7967 case $deplibs_check_method in
7968 "file_magic "*)
7969 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7971 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7972 $EGREP "$file_magic_regex" > /dev/null; then
7974 else
7975 cat <<_LT_EOF 1>&2
7977 *** Warning: the command libtool uses to detect shared libraries,
7978 *** $file_magic_cmd, produces output that libtool cannot recognize.
7979 *** The result is that libtool may fail to recognize shared libraries
7980 *** as such. This will affect the creation of libtool libraries that
7981 *** depend on shared libraries, but programs linked with such libtool
7982 *** libraries will work regardless of this problem. Nevertheless, you
7983 *** may want to report the problem to your system manager and/or to
7984 *** bug-libtool@gnu.org
7986 _LT_EOF
7987 fi ;;
7988 esac
7990 break
7992 done
7993 IFS="$lt_save_ifs"
7994 MAGIC_CMD="$lt_save_MAGIC_CMD"
7996 esac
7999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8000 if test -n "$MAGIC_CMD"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8002 $as_echo "$MAGIC_CMD" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8009 else
8010 MAGIC_CMD=:
8016 esac
8018 # Use C for the default configuration in the libtool script
8020 lt_save_CC="$CC"
8021 ac_ext=c
8022 ac_cpp='$CPP $CPPFLAGS'
8023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028 # Source file extension for C test sources.
8029 ac_ext=c
8031 # Object file extension for compiled C test sources.
8032 objext=o
8033 objext=$objext
8035 # Code to be used in simple compile tests
8036 lt_simple_compile_test_code="int some_variable = 0;"
8038 # Code to be used in simple link tests
8039 lt_simple_link_test_code='int main(){return(0);}'
8047 # If no C compiler was specified, use CC.
8048 LTCC=${LTCC-"$CC"}
8050 # If no C compiler flags were specified, use CFLAGS.
8051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8053 # Allow CC to be a program name with arguments.
8054 compiler=$CC
8056 # Save the default compiler, since it gets overwritten when the other
8057 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8058 compiler_DEFAULT=$CC
8060 # save warnings/boilerplate of simple test code
8061 ac_outfile=conftest.$ac_objext
8062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8064 _lt_compiler_boilerplate=`cat conftest.err`
8065 $RM conftest*
8067 ac_outfile=conftest.$ac_objext
8068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8070 _lt_linker_boilerplate=`cat conftest.err`
8071 $RM -r conftest*
8074 ## CAVEAT EMPTOR:
8075 ## There is no encapsulation within the following macros, do not change
8076 ## the running order or otherwise move them around unless you know exactly
8077 ## what you are doing...
8078 if test -n "$compiler"; then
8080 lt_prog_compiler_no_builtin_flag=
8082 if test "$GCC" = yes; then
8083 case $cc_basename in
8084 nvcc*)
8085 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8087 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8088 esac
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8091 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8092 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 lt_cv_prog_compiler_rtti_exceptions=no
8096 ac_outfile=conftest.$ac_objext
8097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8098 lt_compiler_flag="-fno-rtti -fno-exceptions"
8099 # Insert the option either (1) after the last *FLAGS variable, or
8100 # (2) before a word containing "conftest.", or (3) at the end.
8101 # Note that $ac_compile itself does not contain backslashes and begins
8102 # with a dollar sign (not a hyphen), so the echo should work correctly.
8103 # The option is referenced via a variable to avoid confusing sed.
8104 lt_compile=`echo "$ac_compile" | $SED \
8105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107 -e 's:$: $lt_compiler_flag:'`
8108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8109 (eval "$lt_compile" 2>conftest.err)
8110 ac_status=$?
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 if (exit $ac_status) && test -s "$ac_outfile"; then
8114 # The compiler can only warn and ignore the option if not recognized
8115 # So say no if there are warnings other than the usual output.
8116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8119 lt_cv_prog_compiler_rtti_exceptions=yes
8122 $RM conftest*
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8126 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8128 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8129 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8130 else
8141 lt_prog_compiler_wl=
8142 lt_prog_compiler_pic=
8143 lt_prog_compiler_static=
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8146 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8148 if test "$GCC" = yes; then
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_static='-static'
8152 case $host_os in
8153 aix*)
8154 # All AIX code is PIC.
8155 if test "$host_cpu" = ia64; then
8156 # AIX 5 now supports IA64 processor
8157 lt_prog_compiler_static='-Bstatic'
8159 lt_prog_compiler_pic='-fPIC'
8162 amigaos*)
8163 case $host_cpu in
8164 powerpc)
8165 # see comment about AmigaOS4 .so support
8166 lt_prog_compiler_pic='-fPIC'
8168 m68k)
8169 # FIXME: we need at least 68020 code to build shared libraries, but
8170 # adding the `-m68020' flag to GCC prevents building anything better,
8171 # like `-m68040'.
8172 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8174 esac
8177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8178 # PIC is the default for these OSes.
8181 mingw* | cygwin* | pw32* | os2* | cegcc*)
8182 # This hack is so that the source file can tell whether it is being
8183 # built for inclusion in a dll (and should export symbols for example).
8184 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8185 # (--disable-auto-import) libraries
8186 lt_prog_compiler_pic='-DDLL_EXPORT'
8189 darwin* | rhapsody*)
8190 # PIC is the default on this platform
8191 # Common symbols not allowed in MH_DYLIB files
8192 lt_prog_compiler_pic='-fno-common'
8195 haiku*)
8196 # PIC is the default for Haiku.
8197 # The "-static" flag exists, but is broken.
8198 lt_prog_compiler_static=
8201 hpux*)
8202 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8203 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8204 # sets the default TLS model and affects inlining.
8205 case $host_cpu in
8206 hppa*64*)
8207 # +Z the default
8210 lt_prog_compiler_pic='-fPIC'
8212 esac
8215 interix[3-9]*)
8216 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8217 # Instead, we relocate shared libraries at runtime.
8220 msdosdjgpp*)
8221 # Just because we use GCC doesn't mean we suddenly get shared libraries
8222 # on systems that don't support them.
8223 lt_prog_compiler_can_build_shared=no
8224 enable_shared=no
8227 *nto* | *qnx*)
8228 # QNX uses GNU C++, but need to define -shared option too, otherwise
8229 # it will coredump.
8230 lt_prog_compiler_pic='-fPIC -shared'
8233 sysv4*MP*)
8234 if test -d /usr/nec; then
8235 lt_prog_compiler_pic=-Kconform_pic
8240 lt_prog_compiler_pic='-fPIC'
8242 esac
8244 case $cc_basename in
8245 nvcc*) # Cuda Compiler Driver 2.2
8246 lt_prog_compiler_wl='-Xlinker '
8247 lt_prog_compiler_pic='-Xcompiler -fPIC'
8249 esac
8250 else
8251 # PORTME Check for flag to pass linker flags through the system compiler.
8252 case $host_os in
8253 aix*)
8254 lt_prog_compiler_wl='-Wl,'
8255 if test "$host_cpu" = ia64; then
8256 # AIX 5 now supports IA64 processor
8257 lt_prog_compiler_static='-Bstatic'
8258 else
8259 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8263 mingw* | cygwin* | pw32* | os2* | cegcc*)
8264 # This hack is so that the source file can tell whether it is being
8265 # built for inclusion in a dll (and should export symbols for example).
8266 lt_prog_compiler_pic='-DDLL_EXPORT'
8269 hpux9* | hpux10* | hpux11*)
8270 lt_prog_compiler_wl='-Wl,'
8271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8272 # not for PA HP-UX.
8273 case $host_cpu in
8274 hppa*64*|ia64*)
8275 # +Z the default
8278 lt_prog_compiler_pic='+Z'
8280 esac
8281 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8282 lt_prog_compiler_static='${wl}-a ${wl}archive'
8285 irix5* | irix6* | nonstopux*)
8286 lt_prog_compiler_wl='-Wl,'
8287 # PIC (with -KPIC) is the default.
8288 lt_prog_compiler_static='-non_shared'
8291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8292 case $cc_basename in
8293 # old Intel for x86_64 which still supported -KPIC.
8294 ecc*)
8295 lt_prog_compiler_wl='-Wl,'
8296 lt_prog_compiler_pic='-KPIC'
8297 lt_prog_compiler_static='-static'
8299 # icc used to be incompatible with GCC.
8300 # ICC 10 doesn't accept -KPIC any more.
8301 icc* | ifort*)
8302 lt_prog_compiler_wl='-Wl,'
8303 lt_prog_compiler_pic='-fPIC'
8304 lt_prog_compiler_static='-static'
8306 # Lahey Fortran 8.1.
8307 lf95*)
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_pic='--shared'
8310 lt_prog_compiler_static='--static'
8312 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8313 # Portland Group compilers (*not* the Pentium gcc compiler,
8314 # which looks to be a dead project)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_pic='-fpic'
8317 lt_prog_compiler_static='-Bstatic'
8319 ccc*)
8320 lt_prog_compiler_wl='-Wl,'
8321 # All Alpha code is PIC.
8322 lt_prog_compiler_static='-non_shared'
8324 xl* | bgxl* | bgf* | mpixl*)
8325 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8326 lt_prog_compiler_wl='-Wl,'
8327 lt_prog_compiler_pic='-qpic'
8328 lt_prog_compiler_static='-qstaticlink'
8331 case `$CC -V 2>&1 | sed 5q` in
8332 *Sun\ F* | *Sun*Fortran*)
8333 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8334 lt_prog_compiler_pic='-KPIC'
8335 lt_prog_compiler_static='-Bstatic'
8336 lt_prog_compiler_wl=''
8338 *Sun\ C*)
8339 # Sun C 5.9
8340 lt_prog_compiler_pic='-KPIC'
8341 lt_prog_compiler_static='-Bstatic'
8342 lt_prog_compiler_wl='-Wl,'
8344 esac
8346 esac
8349 newsos6)
8350 lt_prog_compiler_pic='-KPIC'
8351 lt_prog_compiler_static='-Bstatic'
8354 *nto* | *qnx*)
8355 # QNX uses GNU C++, but need to define -shared option too, otherwise
8356 # it will coredump.
8357 lt_prog_compiler_pic='-fPIC -shared'
8360 osf3* | osf4* | osf5*)
8361 lt_prog_compiler_wl='-Wl,'
8362 # All OSF/1 code is PIC.
8363 lt_prog_compiler_static='-non_shared'
8366 rdos*)
8367 lt_prog_compiler_static='-non_shared'
8370 solaris*)
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8373 case $cc_basename in
8374 f77* | f90* | f95*)
8375 lt_prog_compiler_wl='-Qoption ld ';;
8377 lt_prog_compiler_wl='-Wl,';;
8378 esac
8381 sunos4*)
8382 lt_prog_compiler_wl='-Qoption ld '
8383 lt_prog_compiler_pic='-PIC'
8384 lt_prog_compiler_static='-Bstatic'
8387 sysv4 | sysv4.2uw2* | sysv4.3*)
8388 lt_prog_compiler_wl='-Wl,'
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8393 sysv4*MP*)
8394 if test -d /usr/nec ;then
8395 lt_prog_compiler_pic='-Kconform_pic'
8396 lt_prog_compiler_static='-Bstatic'
8400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_pic='-KPIC'
8403 lt_prog_compiler_static='-Bstatic'
8406 unicos*)
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_can_build_shared=no
8411 uts4*)
8412 lt_prog_compiler_pic='-pic'
8413 lt_prog_compiler_static='-Bstatic'
8417 lt_prog_compiler_can_build_shared=no
8419 esac
8422 case $host_os in
8423 # For platforms which do not support PIC, -DPIC is meaningless:
8424 *djgpp*)
8425 lt_prog_compiler_pic=
8428 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8430 esac
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8432 $as_echo "$lt_prog_compiler_pic" >&6; }
8440 # Check to make sure the PIC flag actually works.
8442 if test -n "$lt_prog_compiler_pic"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8444 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8445 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 lt_cv_prog_compiler_pic_works=no
8449 ac_outfile=conftest.$ac_objext
8450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8451 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8452 # Insert the option either (1) after the last *FLAGS variable, or
8453 # (2) before a word containing "conftest.", or (3) at the end.
8454 # Note that $ac_compile itself does not contain backslashes and begins
8455 # with a dollar sign (not a hyphen), so the echo should work correctly.
8456 # The option is referenced via a variable to avoid confusing sed.
8457 lt_compile=`echo "$ac_compile" | $SED \
8458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8460 -e 's:$: $lt_compiler_flag:'`
8461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8462 (eval "$lt_compile" 2>conftest.err)
8463 ac_status=$?
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 if (exit $ac_status) && test -s "$ac_outfile"; then
8467 # The compiler can only warn and ignore the option if not recognized
8468 # So say no if there are warnings other than the usual output.
8469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8471 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8472 lt_cv_prog_compiler_pic_works=yes
8475 $RM conftest*
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8479 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8481 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8482 case $lt_prog_compiler_pic in
8483 "" | " "*) ;;
8484 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8485 esac
8486 else
8487 lt_prog_compiler_pic=
8488 lt_prog_compiler_can_build_shared=no
8499 # Check to make sure the static flag actually works.
8501 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8503 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8504 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 lt_cv_prog_compiler_static_works=no
8508 save_LDFLAGS="$LDFLAGS"
8509 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8510 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8512 # The linker can only warn and ignore the option if not recognized
8513 # So say no if there are warnings
8514 if test -s conftest.err; then
8515 # Append any errors to the config.log.
8516 cat conftest.err 1>&5
8517 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8519 if diff conftest.exp conftest.er2 >/dev/null; then
8520 lt_cv_prog_compiler_static_works=yes
8522 else
8523 lt_cv_prog_compiler_static_works=yes
8526 $RM -r conftest*
8527 LDFLAGS="$save_LDFLAGS"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8531 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8533 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8535 else
8536 lt_prog_compiler_static=
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8546 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8547 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 lt_cv_prog_compiler_c_o=no
8551 $RM -r conftest 2>/dev/null
8552 mkdir conftest
8553 cd conftest
8554 mkdir out
8555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8557 lt_compiler_flag="-o out/conftest2.$ac_objext"
8558 # Insert the option either (1) after the last *FLAGS variable, or
8559 # (2) before a word containing "conftest.", or (3) at the end.
8560 # Note that $ac_compile itself does not contain backslashes and begins
8561 # with a dollar sign (not a hyphen), so the echo should work correctly.
8562 lt_compile=`echo "$ac_compile" | $SED \
8563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565 -e 's:$: $lt_compiler_flag:'`
8566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8567 (eval "$lt_compile" 2>out/conftest.err)
8568 ac_status=$?
8569 cat out/conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8572 then
8573 # The compiler can only warn and ignore the option if not recognized
8574 # So say no if there are warnings
8575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8578 lt_cv_prog_compiler_c_o=yes
8581 chmod u+w . 2>&5
8582 $RM conftest*
8583 # SGI C++ compiler will create directory out/ii_files/ for
8584 # template instantiation
8585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8586 $RM out/* && rmdir out
8587 cd ..
8588 $RM -r conftest
8589 $RM conftest*
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8593 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8601 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8602 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 lt_cv_prog_compiler_c_o=no
8606 $RM -r conftest 2>/dev/null
8607 mkdir conftest
8608 cd conftest
8609 mkdir out
8610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612 lt_compiler_flag="-o out/conftest2.$ac_objext"
8613 # Insert the option either (1) after the last *FLAGS variable, or
8614 # (2) before a word containing "conftest.", or (3) at the end.
8615 # Note that $ac_compile itself does not contain backslashes and begins
8616 # with a dollar sign (not a hyphen), so the echo should work correctly.
8617 lt_compile=`echo "$ac_compile" | $SED \
8618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620 -e 's:$: $lt_compiler_flag:'`
8621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8622 (eval "$lt_compile" 2>out/conftest.err)
8623 ac_status=$?
8624 cat out/conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8627 then
8628 # The compiler can only warn and ignore the option if not recognized
8629 # So say no if there are warnings
8630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8633 lt_cv_prog_compiler_c_o=yes
8636 chmod u+w . 2>&5
8637 $RM conftest*
8638 # SGI C++ compiler will create directory out/ii_files/ for
8639 # template instantiation
8640 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8641 $RM out/* && rmdir out
8642 cd ..
8643 $RM -r conftest
8644 $RM conftest*
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8648 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8653 hard_links="nottested"
8654 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8655 # do not overwrite the value of need_locks provided by the user
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8657 $as_echo_n "checking if we can lock with hard links... " >&6; }
8658 hard_links=yes
8659 $RM conftest*
8660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8661 touch conftest.a
8662 ln conftest.a conftest.b 2>&5 || hard_links=no
8663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8665 $as_echo "$hard_links" >&6; }
8666 if test "$hard_links" = no; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8668 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8669 need_locks=warn
8671 else
8672 need_locks=no
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8681 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8683 runpath_var=
8684 allow_undefined_flag=
8685 always_export_symbols=no
8686 archive_cmds=
8687 archive_expsym_cmds=
8688 compiler_needs_object=no
8689 enable_shared_with_static_runtimes=no
8690 export_dynamic_flag_spec=
8691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8692 hardcode_automatic=no
8693 hardcode_direct=no
8694 hardcode_direct_absolute=no
8695 hardcode_libdir_flag_spec=
8696 hardcode_libdir_flag_spec_ld=
8697 hardcode_libdir_separator=
8698 hardcode_minus_L=no
8699 hardcode_shlibpath_var=unsupported
8700 inherit_rpath=no
8701 link_all_deplibs=unknown
8702 module_cmds=
8703 module_expsym_cmds=
8704 old_archive_from_new_cmds=
8705 old_archive_from_expsyms_cmds=
8706 thread_safe_flag_spec=
8707 whole_archive_flag_spec=
8708 # include_expsyms should be a list of space-separated symbols to be *always*
8709 # included in the symbol list
8710 include_expsyms=
8711 # exclude_expsyms can be an extended regexp of symbols to exclude
8712 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8713 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8714 # as well as any symbol that contains `d'.
8715 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8716 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8717 # platforms (ab)use it in PIC code, but their linkers get confused if
8718 # the symbol is explicitly referenced. Since portable code cannot
8719 # rely on this symbol name, it's probably fine to never include it in
8720 # preloaded symbol tables.
8721 # Exclude shared library initialization/finalization symbols.
8722 extract_expsyms_cmds=
8724 case $host_os in
8725 cygwin* | mingw* | pw32* | cegcc*)
8726 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8727 # When not using gcc, we currently assume that we are using
8728 # Microsoft Visual C++.
8729 if test "$GCC" != yes; then
8730 with_gnu_ld=no
8733 interix*)
8734 # we just hope/assume this is gcc and not c89 (= MSVC++)
8735 with_gnu_ld=yes
8737 openbsd*)
8738 with_gnu_ld=no
8740 esac
8742 ld_shlibs=yes
8744 # On some targets, GNU ld is compatible enough with the native linker
8745 # that we're better off using the native interface for both.
8746 lt_use_gnu_ld_interface=no
8747 if test "$with_gnu_ld" = yes; then
8748 case $host_os in
8749 aix*)
8750 # The AIX port of GNU ld has always aspired to compatibility
8751 # with the native linker. However, as the warning in the GNU ld
8752 # block says, versions before 2.19.5* couldn't really create working
8753 # shared libraries, regardless of the interface used.
8754 case `$LD -v 2>&1` in
8755 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8756 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8757 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8759 lt_use_gnu_ld_interface=yes
8761 esac
8764 lt_use_gnu_ld_interface=yes
8766 esac
8769 if test "$lt_use_gnu_ld_interface" = yes; then
8770 # If archive_cmds runs LD, not CC, wlarc should be empty
8771 wlarc='${wl}'
8773 # Set some defaults for GNU ld with shared library support. These
8774 # are reset later if shared libraries are not supported. Putting them
8775 # here allows them to be overridden if necessary.
8776 runpath_var=LD_RUN_PATH
8777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778 export_dynamic_flag_spec='${wl}--export-dynamic'
8779 # ancient GNU ld didn't support --whole-archive et. al.
8780 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8781 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8782 else
8783 whole_archive_flag_spec=
8785 supports_anon_versioning=no
8786 case `$LD -v 2>&1` in
8787 *GNU\ gold*) supports_anon_versioning=yes ;;
8788 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8789 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8790 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8791 *\ 2.11.*) ;; # other 2.11 versions
8792 *) supports_anon_versioning=yes ;;
8793 esac
8795 # See if GNU ld supports shared libraries.
8796 case $host_os in
8797 aix[3-9]*)
8798 # On AIX/PPC, the GNU linker is very broken
8799 if test "$host_cpu" != ia64; then
8800 ld_shlibs=no
8801 cat <<_LT_EOF 1>&2
8803 *** Warning: the GNU linker, at least up to release 2.19, is reported
8804 *** to be unable to reliably create shared libraries on AIX.
8805 *** Therefore, libtool is disabling shared libraries support. If you
8806 *** really care for shared libraries, you may want to install binutils
8807 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8808 *** You will then need to restart the configuration process.
8810 _LT_EOF
8814 amigaos*)
8815 case $host_cpu in
8816 powerpc)
8817 # see comment about AmigaOS4 .so support
8818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819 archive_expsym_cmds=''
8821 m68k)
8822 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)'
8823 hardcode_libdir_flag_spec='-L$libdir'
8824 hardcode_minus_L=yes
8826 esac
8829 beos*)
8830 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8831 allow_undefined_flag=unsupported
8832 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8833 # support --undefined. This deserves some investigation. FIXME
8834 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835 else
8836 ld_shlibs=no
8840 cygwin* | mingw* | pw32* | cegcc*)
8841 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8842 # as there is no search path for DLLs.
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 export_dynamic_flag_spec='${wl}--export-all-symbols'
8845 allow_undefined_flag=unsupported
8846 always_export_symbols=no
8847 enable_shared_with_static_runtimes=yes
8848 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8850 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8852 # If the export-symbols file already is a .def file (1st line
8853 # is EXPORTS), use it as is; otherwise, prepend...
8854 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8855 cp $export_symbols $output_objdir/$soname.def;
8856 else
8857 echo EXPORTS > $output_objdir/$soname.def;
8858 cat $export_symbols >> $output_objdir/$soname.def;
8860 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8861 else
8862 ld_shlibs=no
8866 haiku*)
8867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 link_all_deplibs=yes
8871 interix[3-9]*)
8872 hardcode_direct=no
8873 hardcode_shlibpath_var=no
8874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8875 export_dynamic_flag_spec='${wl}-E'
8876 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8877 # Instead, shared libraries are loaded at an image base (0x10000000 by
8878 # default) and relocated if they conflict, which is a slow very memory
8879 # consuming and fragmenting process. To avoid this, we pick a random,
8880 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8881 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8882 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8883 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'
8886 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8887 tmp_diet=no
8888 if test "$host_os" = linux-dietlibc; then
8889 case $cc_basename in
8890 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8891 esac
8893 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8894 && test "$tmp_diet" = no
8895 then
8896 tmp_addflag=
8897 tmp_sharedflag='-shared'
8898 case $cc_basename,$host_cpu in
8899 pgcc*) # Portland Group C compiler
8900 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'
8901 tmp_addflag=' $pic_flag'
8903 pgf77* | pgf90* | pgf95* | pgfortran*)
8904 # Portland Group f77 and f90 compilers
8905 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'
8906 tmp_addflag=' $pic_flag -Mnomain' ;;
8907 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8908 tmp_addflag=' -i_dynamic' ;;
8909 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8910 tmp_addflag=' -i_dynamic -nofor_main' ;;
8911 ifc* | ifort*) # Intel Fortran compiler
8912 tmp_addflag=' -nofor_main' ;;
8913 lf95*) # Lahey Fortran 8.1
8914 whole_archive_flag_spec=
8915 tmp_sharedflag='--shared' ;;
8916 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8917 tmp_sharedflag='-qmkshrobj'
8918 tmp_addflag= ;;
8919 nvcc*) # Cuda Compiler Driver 2.2
8920 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'
8921 compiler_needs_object=yes
8923 esac
8924 case `$CC -V 2>&1 | sed 5q` in
8925 *Sun\ C*) # Sun C 5.9
8926 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'
8927 compiler_needs_object=yes
8928 tmp_sharedflag='-G' ;;
8929 *Sun\ F*) # Sun Fortran 8.3
8930 tmp_sharedflag='-G' ;;
8931 esac
8932 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934 if test "x$supports_anon_versioning" = xyes; then
8935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937 echo "local: *; };" >> $output_objdir/$libname.ver~
8938 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8941 case $cc_basename in
8942 xlf* | bgf* | bgxlf* | mpixlf*)
8943 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8944 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8945 hardcode_libdir_flag_spec=
8946 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8947 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8948 if test "x$supports_anon_versioning" = xyes; then
8949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8951 echo "local: *; };" >> $output_objdir/$libname.ver~
8952 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8955 esac
8956 else
8957 ld_shlibs=no
8961 netbsd*)
8962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8963 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8964 wlarc=
8965 else
8966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8971 solaris*)
8972 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8973 ld_shlibs=no
8974 cat <<_LT_EOF 1>&2
8976 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8977 *** create shared libraries on Solaris systems. Therefore, libtool
8978 *** is disabling shared libraries support. We urge you to upgrade GNU
8979 *** binutils to release 2.9.1 or newer. Another option is to modify
8980 *** your PATH or compiler configuration so that the native linker is
8981 *** used, and then restart.
8983 _LT_EOF
8984 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987 else
8988 ld_shlibs=no
8992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8993 case `$LD -v 2>&1` in
8994 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8995 ld_shlibs=no
8996 cat <<_LT_EOF 1>&2
8998 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8999 *** reliably create shared libraries on SCO systems. Therefore, libtool
9000 *** is disabling shared libraries support. We urge you to upgrade GNU
9001 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9002 *** your PATH or compiler configuration so that the native linker is
9003 *** used, and then restart.
9005 _LT_EOF
9008 # For security reasons, it is highly recommended that you always
9009 # use absolute paths for naming shared libraries, and exclude the
9010 # DT_RUNPATH tag from executables and libraries. But doing so
9011 # requires that you compile everything twice, which is a pain.
9012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016 else
9017 ld_shlibs=no
9020 esac
9023 sunos4*)
9024 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9025 wlarc=
9026 hardcode_direct=yes
9027 hardcode_shlibpath_var=no
9031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 else
9035 ld_shlibs=no
9038 esac
9040 if test "$ld_shlibs" = no; then
9041 runpath_var=
9042 hardcode_libdir_flag_spec=
9043 export_dynamic_flag_spec=
9044 whole_archive_flag_spec=
9046 else
9047 # PORTME fill in a description of your system's linker (not GNU ld)
9048 case $host_os in
9049 aix3*)
9050 allow_undefined_flag=unsupported
9051 always_export_symbols=yes
9052 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'
9053 # Note: this linker hardcodes the directories in LIBPATH if there
9054 # are no directories specified by -L.
9055 hardcode_minus_L=yes
9056 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9057 # Neither direct hardcoding nor static linking is supported with a
9058 # broken collect2.
9059 hardcode_direct=unsupported
9063 aix[4-9]*)
9064 if test "$host_cpu" = ia64; then
9065 # On IA64, the linker does run time linking by default, so we don't
9066 # have to do anything special.
9067 aix_use_runtimelinking=no
9068 exp_sym_flag='-Bexport'
9069 no_entry_flag=""
9070 else
9071 # If we're using GNU nm, then we don't want the "-C" option.
9072 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9073 # Also, AIX nm treats weak defined symbols like other global
9074 # defined symbols, whereas GNU nm marks them as "W".
9075 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9076 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'
9077 else
9078 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'
9080 aix_use_runtimelinking=no
9082 # Test if we are trying to use run time linking or normal
9083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9084 # need to do runtime linking.
9085 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9086 for ld_flag in $LDFLAGS; do
9087 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9088 aix_use_runtimelinking=yes
9089 break
9091 done
9093 esac
9095 exp_sym_flag='-bexport'
9096 no_entry_flag='-bnoentry'
9099 # When large executables or shared objects are built, AIX ld can
9100 # have problems creating the table of contents. If linking a library
9101 # or program results in "error TOC overflow" add -mminimal-toc to
9102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9105 archive_cmds=''
9106 hardcode_direct=yes
9107 hardcode_direct_absolute=yes
9108 hardcode_libdir_separator=':'
9109 link_all_deplibs=yes
9110 file_list_spec='${wl}-f,'
9112 if test "$GCC" = yes; then
9113 case $host_os in aix4.[012]|aix4.[012].*)
9114 # We only want to do this on AIX 4.2 and lower, the check
9115 # below for broken collect2 doesn't work under 4.3+
9116 collect2name=`${CC} -print-prog-name=collect2`
9117 if test -f "$collect2name" &&
9118 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9119 then
9120 # We have reworked collect2
9122 else
9123 # We have old collect2
9124 hardcode_direct=unsupported
9125 # It fails to find uninstalled libraries when the uninstalled
9126 # path is not listed in the libpath. Setting hardcode_minus_L
9127 # to unsupported forces relinking
9128 hardcode_minus_L=yes
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_libdir_separator=
9133 esac
9134 shared_flag='-shared'
9135 if test "$aix_use_runtimelinking" = yes; then
9136 shared_flag="$shared_flag "'${wl}-G'
9138 else
9139 # not using gcc
9140 if test "$host_cpu" = ia64; then
9141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9142 # chokes on -Wl,-G. The following line is correct:
9143 shared_flag='-G'
9144 else
9145 if test "$aix_use_runtimelinking" = yes; then
9146 shared_flag='${wl}-G'
9147 else
9148 shared_flag='${wl}-bM:SRE'
9153 export_dynamic_flag_spec='${wl}-bexpall'
9154 # It seems that -bexpall does not export symbols beginning with
9155 # underscore (_), so it is better to generate a list of symbols to export.
9156 always_export_symbols=yes
9157 if test "$aix_use_runtimelinking" = yes; then
9158 # Warning - without using the other runtime loading flags (-brtl),
9159 # -berok will link without error, but may produce a broken library.
9160 allow_undefined_flag='-berok'
9161 # Determine the default libpath from the value encoded in an
9162 # empty executable.
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9167 main ()
9171 return 0;
9173 _ACEOF
9174 if ac_fn_c_try_link "$LINENO"; then :
9176 lt_aix_libpath_sed='
9177 /Import File Strings/,/^$/ {
9178 /^0/ {
9179 s/^0 *\(.*\)$/\1/
9183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184 # Check for a 64-bit object if we didn't find anything.
9185 if test -z "$aix_libpath"; then
9186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9193 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9194 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"
9195 else
9196 if test "$host_cpu" = ia64; then
9197 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9198 allow_undefined_flag="-z nodefs"
9199 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"
9200 else
9201 # Determine the default libpath from the value encoded in an
9202 # empty executable.
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9207 main ()
9211 return 0;
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"; then :
9216 lt_aix_libpath_sed='
9217 /Import File Strings/,/^$/ {
9218 /^0/ {
9219 s/^0 *\(.*\)$/\1/
9223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224 # Check for a 64-bit object if we didn't find anything.
9225 if test -z "$aix_libpath"; then
9226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229 rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
9231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9234 # Warning - without using the other run time loading flags,
9235 # -berok will link without error, but may produce a broken library.
9236 no_undefined_flag=' ${wl}-bernotok'
9237 allow_undefined_flag=' ${wl}-berok'
9238 if test "$with_gnu_ld" = yes; then
9239 # We only use this code for GNU lds that support --whole-archive.
9240 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9241 else
9242 # Exported symbols can be pulled into shared objects from archives
9243 whole_archive_flag_spec='$convenience'
9245 archive_cmds_need_lc=yes
9246 # This is similar to how AIX traditionally builds its shared libraries.
9247 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'
9252 amigaos*)
9253 case $host_cpu in
9254 powerpc)
9255 # see comment about AmigaOS4 .so support
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 archive_expsym_cmds=''
9259 m68k)
9260 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)'
9261 hardcode_libdir_flag_spec='-L$libdir'
9262 hardcode_minus_L=yes
9264 esac
9267 bsdi[45]*)
9268 export_dynamic_flag_spec=-rdynamic
9271 cygwin* | mingw* | pw32* | cegcc*)
9272 # When not using gcc, we currently assume that we are using
9273 # Microsoft Visual C++.
9274 # hardcode_libdir_flag_spec is actually meaningless, as there is
9275 # no search path for DLLs.
9276 hardcode_libdir_flag_spec=' '
9277 allow_undefined_flag=unsupported
9278 # Tell ltmain to make .lib files, not .a files.
9279 libext=lib
9280 # Tell ltmain to make .dll files, not .so files.
9281 shrext_cmds=".dll"
9282 # FIXME: Setting linknames here is a bad hack.
9283 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9284 # The linker will automatically build a .lib file if we build a DLL.
9285 old_archive_from_new_cmds='true'
9286 # FIXME: Should let the user specify the lib program.
9287 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9288 fix_srcfile_path='`cygpath -w "$srcfile"`'
9289 enable_shared_with_static_runtimes=yes
9292 darwin* | rhapsody*)
9295 archive_cmds_need_lc=no
9296 hardcode_direct=no
9297 hardcode_automatic=yes
9298 hardcode_shlibpath_var=unsupported
9299 if test "$lt_cv_ld_force_load" = "yes"; then
9300 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\"`'
9301 else
9302 whole_archive_flag_spec=''
9304 link_all_deplibs=yes
9305 allow_undefined_flag="$_lt_dar_allow_undefined"
9306 case $cc_basename in
9307 ifort*) _lt_dar_can_shared=yes ;;
9308 *) _lt_dar_can_shared=$GCC ;;
9309 esac
9310 if test "$_lt_dar_can_shared" = "yes"; then
9311 output_verbose_link_cmd=func_echo_all
9312 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9313 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9314 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}"
9315 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}"
9317 else
9318 ld_shlibs=no
9323 dgux*)
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_libdir_flag_spec='-L$libdir'
9326 hardcode_shlibpath_var=no
9329 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9330 # support. Future versions do this automatically, but an explicit c++rt0.o
9331 # does not break anything, and helps significantly (at the cost of a little
9332 # extra space).
9333 freebsd2.2*)
9334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9335 hardcode_libdir_flag_spec='-R$libdir'
9336 hardcode_direct=yes
9337 hardcode_shlibpath_var=no
9340 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9341 freebsd2.*)
9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_direct=yes
9344 hardcode_minus_L=yes
9345 hardcode_shlibpath_var=no
9348 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9349 freebsd* | dragonfly*)
9350 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9351 hardcode_libdir_flag_spec='-R$libdir'
9352 hardcode_direct=yes
9353 hardcode_shlibpath_var=no
9356 hpux9*)
9357 if test "$GCC" = yes; then
9358 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'
9359 else
9360 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'
9362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9363 hardcode_libdir_separator=:
9364 hardcode_direct=yes
9366 # hardcode_minus_L: Not really in the search PATH,
9367 # but as the default location of the library.
9368 hardcode_minus_L=yes
9369 export_dynamic_flag_spec='${wl}-E'
9372 hpux10*)
9373 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9375 else
9376 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9378 if test "$with_gnu_ld" = no; then
9379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9380 hardcode_libdir_flag_spec_ld='+b $libdir'
9381 hardcode_libdir_separator=:
9382 hardcode_direct=yes
9383 hardcode_direct_absolute=yes
9384 export_dynamic_flag_spec='${wl}-E'
9385 # hardcode_minus_L: Not really in the search PATH,
9386 # but as the default location of the library.
9387 hardcode_minus_L=yes
9391 hpux11*)
9392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9393 case $host_cpu in
9394 hppa*64*)
9395 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 ia64*)
9398 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9403 esac
9404 else
9405 case $host_cpu in
9406 hppa*64*)
9407 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 ia64*)
9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9414 # Older versions of the 11.00 compiler do not understand -b yet
9415 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9417 $as_echo_n "checking if $CC understands -b... " >&6; }
9418 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 lt_cv_prog_compiler__b=no
9422 save_LDFLAGS="$LDFLAGS"
9423 LDFLAGS="$LDFLAGS -b"
9424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9426 # The linker can only warn and ignore the option if not recognized
9427 # So say no if there are warnings
9428 if test -s conftest.err; then
9429 # Append any errors to the config.log.
9430 cat conftest.err 1>&5
9431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9433 if diff conftest.exp conftest.er2 >/dev/null; then
9434 lt_cv_prog_compiler__b=yes
9436 else
9437 lt_cv_prog_compiler__b=yes
9440 $RM -r conftest*
9441 LDFLAGS="$save_LDFLAGS"
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9445 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9447 if test x"$lt_cv_prog_compiler__b" = xyes; then
9448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9449 else
9450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9454 esac
9456 if test "$with_gnu_ld" = no; then
9457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458 hardcode_libdir_separator=:
9460 case $host_cpu in
9461 hppa*64*|ia64*)
9462 hardcode_direct=no
9463 hardcode_shlibpath_var=no
9466 hardcode_direct=yes
9467 hardcode_direct_absolute=yes
9468 export_dynamic_flag_spec='${wl}-E'
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9474 esac
9478 irix5* | irix6* | nonstopux*)
9479 if test "$GCC" = yes; then
9480 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'
9481 # Try to use the -exported_symbol ld option, if it does not
9482 # work, assume that -exports_file does not work either and
9483 # implicitly export all symbols.
9484 save_LDFLAGS="$LDFLAGS"
9485 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9488 int foo(void) {}
9489 _ACEOF
9490 if ac_fn_c_try_link "$LINENO"; then :
9491 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'
9494 rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 LDFLAGS="$save_LDFLAGS"
9497 else
9498 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'
9499 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'
9501 archive_cmds_need_lc='no'
9502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9503 hardcode_libdir_separator=:
9504 inherit_rpath=yes
9505 link_all_deplibs=yes
9508 netbsd*)
9509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9511 else
9512 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9514 hardcode_libdir_flag_spec='-R$libdir'
9515 hardcode_direct=yes
9516 hardcode_shlibpath_var=no
9519 newsos6)
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_direct=yes
9522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523 hardcode_libdir_separator=:
9524 hardcode_shlibpath_var=no
9527 *nto* | *qnx*)
9530 openbsd*)
9531 if test -f /usr/libexec/ld.so; then
9532 hardcode_direct=yes
9533 hardcode_shlibpath_var=no
9534 hardcode_direct_absolute=yes
9535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9537 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9538 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9539 export_dynamic_flag_spec='${wl}-E'
9540 else
9541 case $host_os in
9542 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_libdir_flag_spec='-R$libdir'
9547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9550 esac
9552 else
9553 ld_shlibs=no
9557 os2*)
9558 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_minus_L=yes
9560 allow_undefined_flag=unsupported
9561 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'
9562 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9565 osf3*)
9566 if test "$GCC" = yes; then
9567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9568 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'
9569 else
9570 allow_undefined_flag=' -expect_unresolved \*'
9571 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'
9573 archive_cmds_need_lc='no'
9574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575 hardcode_libdir_separator=:
9578 osf4* | osf5*) # as osf3* with the addition of -msym flag
9579 if test "$GCC" = yes; then
9580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9581 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'
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 else
9584 allow_undefined_flag=' -expect_unresolved \*'
9585 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'
9586 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~
9587 $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'
9589 # Both c and cxx compiler support -rpath directly
9590 hardcode_libdir_flag_spec='-rpath $libdir'
9592 archive_cmds_need_lc='no'
9593 hardcode_libdir_separator=:
9596 solaris*)
9597 no_undefined_flag=' -z defs'
9598 if test "$GCC" = yes; then
9599 wlarc='${wl}'
9600 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9602 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9603 else
9604 case `$CC -V 2>&1` in
9605 *"Compilers 5.0"*)
9606 wlarc=''
9607 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9612 wlarc='${wl}'
9613 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9615 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9617 esac
9619 hardcode_libdir_flag_spec='-R$libdir'
9620 hardcode_shlibpath_var=no
9621 case $host_os in
9622 solaris2.[0-5] | solaris2.[0-5].*) ;;
9624 # The compiler driver will combine and reorder linker options,
9625 # but understands `-z linker_flag'. GCC discards it without `$wl',
9626 # but is careful enough not to reorder.
9627 # Supported since Solaris 2.6 (maybe 2.5.1?)
9628 if test "$GCC" = yes; then
9629 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9630 else
9631 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9634 esac
9635 link_all_deplibs=yes
9638 sunos4*)
9639 if test "x$host_vendor" = xsequent; then
9640 # Use $CC to link under sequent, because it throws in some extra .o
9641 # files that make .init and .fini sections work.
9642 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9643 else
9644 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_direct=yes
9648 hardcode_minus_L=yes
9649 hardcode_shlibpath_var=no
9652 sysv4)
9653 case $host_vendor in
9654 sni)
9655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656 hardcode_direct=yes # is this really true???
9658 siemens)
9659 ## LD is ld it makes a PLAMLIB
9660 ## CC just makes a GrossModule.
9661 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9662 reload_cmds='$CC -r -o $output$reload_objs'
9663 hardcode_direct=no
9665 motorola)
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9669 esac
9670 runpath_var='LD_RUN_PATH'
9671 hardcode_shlibpath_var=no
9674 sysv4.3*)
9675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676 hardcode_shlibpath_var=no
9677 export_dynamic_flag_spec='-Bexport'
9680 sysv4*MP*)
9681 if test -d /usr/nec; then
9682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_shlibpath_var=no
9684 runpath_var=LD_RUN_PATH
9685 hardcode_runpath_var=yes
9686 ld_shlibs=yes
9690 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9691 no_undefined_flag='${wl}-z,text'
9692 archive_cmds_need_lc=no
9693 hardcode_shlibpath_var=no
9694 runpath_var='LD_RUN_PATH'
9696 if test "$GCC" = yes; then
9697 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 else
9700 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 sysv5* | sco3.2v5* | sco5v6*)
9706 # Note: We can NOT use -z defs as we might desire, because we do not
9707 # link with -lc, and that would cause any symbols used from libc to
9708 # always be unresolved, which means just about no library would
9709 # ever link correctly. If we're not using GNU ld we use -z text
9710 # though, which does catch some bad symbols but isn't as heavy-handed
9711 # as -z defs.
9712 no_undefined_flag='${wl}-z,text'
9713 allow_undefined_flag='${wl}-z,nodefs'
9714 archive_cmds_need_lc=no
9715 hardcode_shlibpath_var=no
9716 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9717 hardcode_libdir_separator=':'
9718 link_all_deplibs=yes
9719 export_dynamic_flag_spec='${wl}-Bexport'
9720 runpath_var='LD_RUN_PATH'
9722 if test "$GCC" = yes; then
9723 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 else
9726 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 uts4*)
9732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_libdir_flag_spec='-L$libdir'
9734 hardcode_shlibpath_var=no
9738 ld_shlibs=no
9740 esac
9742 if test x$host_vendor = xsni; then
9743 case $host in
9744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9745 export_dynamic_flag_spec='${wl}-Blargedynsym'
9747 esac
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9752 $as_echo "$ld_shlibs" >&6; }
9753 test "$ld_shlibs" = no && can_build_shared=no
9755 with_gnu_ld=$with_gnu_ld
9772 # Do we need to explicitly link libc?
9774 case "x$archive_cmds_need_lc" in
9775 x|xyes)
9776 # Assume -lc should be added
9777 archive_cmds_need_lc=yes
9779 if test "$enable_shared" = yes && test "$GCC" = yes; then
9780 case $archive_cmds in
9781 *'~'*)
9782 # FIXME: we may have to deal with multi-command sequences.
9784 '$CC '*)
9785 # Test whether the compiler implicitly links with -lc since on some
9786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9787 # to ld, don't add -lc before -lgcc.
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9789 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9790 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 $RM conftest*
9794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9797 (eval $ac_compile) 2>&5
9798 ac_status=$?
9799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9800 test $ac_status = 0; } 2>conftest.err; then
9801 soname=conftest
9802 lib=conftest
9803 libobjs=conftest.$ac_objext
9804 deplibs=
9805 wl=$lt_prog_compiler_wl
9806 pic_flag=$lt_prog_compiler_pic
9807 compiler_flags=-v
9808 linker_flags=-v
9809 verstring=
9810 output_objdir=.
9811 libname=conftest
9812 lt_save_allow_undefined_flag=$allow_undefined_flag
9813 allow_undefined_flag=
9814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9815 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9816 ac_status=$?
9817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9818 test $ac_status = 0; }
9819 then
9820 lt_cv_archive_cmds_need_lc=no
9821 else
9822 lt_cv_archive_cmds_need_lc=yes
9824 allow_undefined_flag=$lt_save_allow_undefined_flag
9825 else
9826 cat conftest.err 1>&5
9828 $RM conftest*
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9832 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9833 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9835 esac
9838 esac
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9997 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9999 if test "$GCC" = yes; then
10000 case $host_os in
10001 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10002 *) lt_awk_arg="/^libraries:/" ;;
10003 esac
10004 case $host_os in
10005 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10006 *) lt_sed_strip_eq="s,=/,/,g" ;;
10007 esac
10008 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10009 case $lt_search_path_spec in
10010 *\;*)
10011 # if the path contains ";" then we assume it to be the separator
10012 # otherwise default to the standard path separator (i.e. ":") - it is
10013 # assumed that no part of a normal pathname contains ";" but that should
10014 # okay in the real world where ";" in dirpaths is itself problematic.
10015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10020 esac
10021 # Ok, now we have the path, separated by spaces, we can step through it
10022 # and add multilib dir if necessary.
10023 lt_tmp_lt_search_path_spec=
10024 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10025 for lt_sys_path in $lt_search_path_spec; do
10026 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10027 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10028 else
10029 test -d "$lt_sys_path" && \
10030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10032 done
10033 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10034 BEGIN {RS=" "; FS="/|\n";} {
10035 lt_foo="";
10036 lt_count=0;
10037 for (lt_i = NF; lt_i > 0; lt_i--) {
10038 if ($lt_i != "" && $lt_i != ".") {
10039 if ($lt_i == "..") {
10040 lt_count++;
10041 } else {
10042 if (lt_count == 0) {
10043 lt_foo="/" $lt_i lt_foo;
10044 } else {
10045 lt_count--;
10050 if (lt_foo != "") { lt_freq[lt_foo]++; }
10051 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10053 # AWK program above erroneously prepends '/' to C:/dos/paths
10054 # for these hosts.
10055 case $host_os in
10056 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10057 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10058 esac
10059 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10060 else
10061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10063 library_names_spec=
10064 libname_spec='lib$name'
10065 soname_spec=
10066 shrext_cmds=".so"
10067 postinstall_cmds=
10068 postuninstall_cmds=
10069 finish_cmds=
10070 finish_eval=
10071 shlibpath_var=
10072 shlibpath_overrides_runpath=unknown
10073 version_type=none
10074 dynamic_linker="$host_os ld.so"
10075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10076 need_lib_prefix=unknown
10077 hardcode_into_libs=no
10079 # when you set need_version to no, make sure it does not cause -set_version
10080 # flags to be left without arguments
10081 need_version=unknown
10083 case $host_os in
10084 aix3*)
10085 version_type=linux
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10087 shlibpath_var=LIBPATH
10089 # AIX 3 has no versioning support, so we append a major version to the name.
10090 soname_spec='${libname}${release}${shared_ext}$major'
10093 aix[4-9]*)
10094 version_type=linux
10095 need_lib_prefix=no
10096 need_version=no
10097 hardcode_into_libs=yes
10098 if test "$host_cpu" = ia64; then
10099 # AIX 5 supports IA64
10100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 else
10103 # With GCC up to 2.95.x, collect2 would create an import file
10104 # for dependence libraries. The import file would start with
10105 # the line `#! .'. This would cause the generated library to
10106 # depend on `.', always an invalid library. This was fixed in
10107 # development snapshots of GCC prior to 3.0.
10108 case $host_os in
10109 aix4 | aix4.[01] | aix4.[01].*)
10110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10111 echo ' yes '
10112 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10114 else
10115 can_build_shared=no
10118 esac
10119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10120 # soname into executable. Probably we can add versioning support to
10121 # collect2, so additional links can be useful in future.
10122 if test "$aix_use_runtimelinking" = yes; then
10123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10124 # instead of lib<name>.a to let people know that these are not
10125 # typical AIX shared libraries.
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 else
10128 # We preserve .a as extension for shared libraries through AIX4.2
10129 # and later when we are not doing run time linking.
10130 library_names_spec='${libname}${release}.a $libname.a'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10133 shlibpath_var=LIBPATH
10137 amigaos*)
10138 case $host_cpu in
10139 powerpc)
10140 # Since July 2007 AmigaOS4 officially supports .so libraries.
10141 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 m68k)
10145 library_names_spec='$libname.ixlibrary $libname.a'
10146 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10147 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'
10149 esac
10152 beos*)
10153 library_names_spec='${libname}${shared_ext}'
10154 dynamic_linker="$host_os ld.so"
10155 shlibpath_var=LIBRARY_PATH
10158 bsdi[45]*)
10159 version_type=linux
10160 need_version=no
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10167 # the default ld.so.conf also contains /usr/contrib/lib and
10168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10169 # libtool to hard-code these into programs
10172 cygwin* | mingw* | pw32* | cegcc*)
10173 version_type=windows
10174 shrext_cmds=".dll"
10175 need_version=no
10176 need_lib_prefix=no
10178 case $GCC,$host_os in
10179 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10180 library_names_spec='$libname.dll.a'
10181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10182 postinstall_cmds='base_file=`basename \${file}`~
10183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10184 dldir=$destdir/`dirname \$dlpath`~
10185 test -d \$dldir || mkdir -p \$dldir~
10186 $install_prog $dir/$dlname \$dldir/$dlname~
10187 chmod a+x \$dldir/$dlname~
10188 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10189 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10191 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10192 dlpath=$dir/\$dldll~
10193 $RM \$dlpath'
10194 shlibpath_overrides_runpath=yes
10196 case $host_os in
10197 cygwin*)
10198 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10199 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10203 mingw* | cegcc*)
10204 # MinGW DLLs use traditional 'lib' prefix
10205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207 pw32*)
10208 # pw32 DLLs use 'pw' prefix rather than 'lib'
10209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10211 esac
10215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10217 esac
10218 dynamic_linker='Win32 ld.exe'
10219 # FIXME: first we should search . and the directory the executable is in
10220 shlibpath_var=PATH
10223 darwin* | rhapsody*)
10224 dynamic_linker="$host_os dyld"
10225 version_type=darwin
10226 need_lib_prefix=no
10227 need_version=no
10228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10229 soname_spec='${libname}${release}${major}$shared_ext'
10230 shlibpath_overrides_runpath=yes
10231 shlibpath_var=DYLD_LIBRARY_PATH
10232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10238 dgux*)
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10247 freebsd* | dragonfly*)
10248 # DragonFly does not have aout. When/if they implement a new
10249 # versioning mechanism, adjust this.
10250 if test -x /usr/bin/objformat; then
10251 objformat=`/usr/bin/objformat`
10252 else
10253 case $host_os in
10254 freebsd[23].*) objformat=aout ;;
10255 *) objformat=elf ;;
10256 esac
10258 version_type=freebsd-$objformat
10259 case $version_type in
10260 freebsd-elf*)
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10262 need_version=no
10263 need_lib_prefix=no
10265 freebsd-*)
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10267 need_version=yes
10269 esac
10270 shlibpath_var=LD_LIBRARY_PATH
10271 case $host_os in
10272 freebsd2.*)
10273 shlibpath_overrides_runpath=yes
10275 freebsd3.[01]* | freebsdelf3.[01]*)
10276 shlibpath_overrides_runpath=yes
10277 hardcode_into_libs=yes
10279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10281 shlibpath_overrides_runpath=no
10282 hardcode_into_libs=yes
10284 *) # from 4.6 on, and DragonFly
10285 shlibpath_overrides_runpath=yes
10286 hardcode_into_libs=yes
10288 esac
10291 gnu*)
10292 version_type=linux
10293 need_lib_prefix=no
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 hardcode_into_libs=yes
10301 haiku*)
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 dynamic_linker="$host_os runtime_loader"
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LIBRARY_PATH
10309 shlibpath_overrides_runpath=yes
10310 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10311 hardcode_into_libs=yes
10314 hpux9* | hpux10* | hpux11*)
10315 # Give a soname corresponding to the major version so that dld.sl refuses to
10316 # link against other versions.
10317 version_type=sunos
10318 need_lib_prefix=no
10319 need_version=no
10320 case $host_cpu in
10321 ia64*)
10322 shrext_cmds='.so'
10323 hardcode_into_libs=yes
10324 dynamic_linker="$host_os dld.so"
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 if test "X$HPUX_IA64_MODE" = X32; then
10330 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10331 else
10332 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10336 hppa*64*)
10337 shrext_cmds='.sl'
10338 hardcode_into_libs=yes
10339 dynamic_linker="$host_os dld.sl"
10340 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10348 shrext_cmds='.sl'
10349 dynamic_linker="$host_os dld.sl"
10350 shlibpath_var=SHLIB_PATH
10351 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10355 esac
10356 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10357 postinstall_cmds='chmod 555 $lib'
10358 # or fails outright, so override atomically:
10359 install_override_mode=555
10362 interix[3-9]*)
10363 version_type=linux
10364 need_lib_prefix=no
10365 need_version=no
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=no
10371 hardcode_into_libs=yes
10374 irix5* | irix6* | nonstopux*)
10375 case $host_os in
10376 nonstopux*) version_type=nonstopux ;;
10378 if test "$lt_cv_prog_gnu_ld" = yes; then
10379 version_type=linux
10380 else
10381 version_type=irix
10382 fi ;;
10383 esac
10384 need_lib_prefix=no
10385 need_version=no
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10388 case $host_os in
10389 irix5* | nonstopux*)
10390 libsuff= shlibsuff=
10393 case $LD in # libtool.m4 will add one of these switches to LD
10394 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10395 libsuff= shlibsuff= libmagic=32-bit;;
10396 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10397 libsuff=32 shlibsuff=N32 libmagic=N32;;
10398 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10399 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10400 *) libsuff= shlibsuff= libmagic=never-match;;
10401 esac
10403 esac
10404 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10407 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10408 hardcode_into_libs=yes
10411 # No shared lib support for Linux oldld, aout, or coff.
10412 linux*oldld* | linux*aout* | linux*coff*)
10413 dynamic_linker=no
10416 # This must be Linux ELF.
10417 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10418 version_type=linux
10419 need_lib_prefix=no
10420 need_version=no
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 shlibpath_overrides_runpath=no
10427 # Some binutils ld are patched to set DT_RUNPATH
10428 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10430 else
10431 lt_cv_shlibpath_overrides_runpath=no
10432 save_LDFLAGS=$LDFLAGS
10433 save_libdir=$libdir
10434 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10435 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10440 main ()
10444 return 0;
10446 _ACEOF
10447 if ac_fn_c_try_link "$LINENO"; then :
10448 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10449 lt_cv_shlibpath_overrides_runpath=yes
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LDFLAGS=$save_LDFLAGS
10455 libdir=$save_libdir
10459 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10461 # This implies no fast_install, which is unacceptable.
10462 # Some rework will be needed to allow for fast_install
10463 # before this can be enabled.
10464 hardcode_into_libs=yes
10466 # Append ld.so.conf contents to the search path
10467 if test -f /etc/ld.so.conf; then
10468 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' ' '`
10469 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10472 # We used to test for /lib/ld.so.1 and disable shared libraries on
10473 # powerpc, because MkLinux only supported shared libraries with the
10474 # GNU dynamic linker. Since this was broken with cross compilers,
10475 # most powerpc-linux boxes support dynamic linking these days and
10476 # people can always --disable-shared, the test was removed, and we
10477 # assume the GNU/Linux dynamic linker is in use.
10478 dynamic_linker='GNU/Linux ld.so'
10481 netbsd*)
10482 version_type=sunos
10483 need_lib_prefix=no
10484 need_version=no
10485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10488 dynamic_linker='NetBSD (a.out) ld.so'
10489 else
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10492 dynamic_linker='NetBSD ld.elf_so'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath=yes
10496 hardcode_into_libs=yes
10499 newsos6)
10500 version_type=linux
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=yes
10506 *nto* | *qnx*)
10507 version_type=qnx
10508 need_lib_prefix=no
10509 need_version=no
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=no
10514 hardcode_into_libs=yes
10515 dynamic_linker='ldqnx.so'
10518 openbsd*)
10519 version_type=sunos
10520 sys_lib_dlsearch_path_spec="/usr/lib"
10521 need_lib_prefix=no
10522 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10523 case $host_os in
10524 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10525 *) need_version=no ;;
10526 esac
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10531 case $host_os in
10532 openbsd2.[89] | openbsd2.[89].*)
10533 shlibpath_overrides_runpath=no
10536 shlibpath_overrides_runpath=yes
10538 esac
10539 else
10540 shlibpath_overrides_runpath=yes
10544 os2*)
10545 libname_spec='$name'
10546 shrext_cmds=".dll"
10547 need_lib_prefix=no
10548 library_names_spec='$libname${shared_ext} $libname.a'
10549 dynamic_linker='OS/2 ld.exe'
10550 shlibpath_var=LIBPATH
10553 osf3* | osf4* | osf5*)
10554 version_type=osf
10555 need_lib_prefix=no
10556 need_version=no
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10561 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10564 rdos*)
10565 dynamic_linker=no
10568 solaris*)
10569 version_type=linux
10570 need_lib_prefix=no
10571 need_version=no
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 shlibpath_overrides_runpath=yes
10576 hardcode_into_libs=yes
10577 # ldd complains unless libraries are executable
10578 postinstall_cmds='chmod +x $lib'
10581 sunos4*)
10582 version_type=sunos
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=yes
10587 if test "$with_gnu_ld" = yes; then
10588 need_lib_prefix=no
10590 need_version=yes
10593 sysv4 | sysv4.3*)
10594 version_type=linux
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 case $host_vendor in
10599 sni)
10600 shlibpath_overrides_runpath=no
10601 need_lib_prefix=no
10602 runpath_var=LD_RUN_PATH
10604 siemens)
10605 need_lib_prefix=no
10607 motorola)
10608 need_lib_prefix=no
10609 need_version=no
10610 shlibpath_overrides_runpath=no
10611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10613 esac
10616 sysv4*MP*)
10617 if test -d /usr/nec ;then
10618 version_type=linux
10619 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10620 soname_spec='$libname${shared_ext}.$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10625 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10626 version_type=freebsd-elf
10627 need_lib_prefix=no
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=yes
10633 hardcode_into_libs=yes
10634 if test "$with_gnu_ld" = yes; then
10635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10636 else
10637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10638 case $host_os in
10639 sco3.2v5*)
10640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10642 esac
10644 sys_lib_dlsearch_path_spec='/usr/lib'
10647 tpf*)
10648 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10649 version_type=linux
10650 need_lib_prefix=no
10651 need_version=no
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 shlibpath_overrides_runpath=no
10655 hardcode_into_libs=yes
10658 uts4*)
10659 version_type=linux
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 shlibpath_var=LD_LIBRARY_PATH
10666 dynamic_linker=no
10668 esac
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10670 $as_echo "$dynamic_linker" >&6; }
10671 test "$dynamic_linker" = no && can_build_shared=no
10673 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10674 if test "$GCC" = yes; then
10675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10678 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10679 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10681 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10682 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10777 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10778 hardcode_action=
10779 if test -n "$hardcode_libdir_flag_spec" ||
10780 test -n "$runpath_var" ||
10781 test "X$hardcode_automatic" = "Xyes" ; then
10783 # We can hardcode non-existent directories.
10784 if test "$hardcode_direct" != no &&
10785 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10786 # have to relink, otherwise we might link with an installed library
10787 # when we should be linking with a yet-to-be-installed one
10788 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10789 test "$hardcode_minus_L" != no; then
10790 # Linking always hardcodes the temporary library directory.
10791 hardcode_action=relink
10792 else
10793 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10794 hardcode_action=immediate
10796 else
10797 # We cannot hardcode anything, or else we can only hardcode existing
10798 # directories.
10799 hardcode_action=unsupported
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10802 $as_echo "$hardcode_action" >&6; }
10804 if test "$hardcode_action" = relink ||
10805 test "$inherit_rpath" = yes; then
10806 # Fast installation is not supported
10807 enable_fast_install=no
10808 elif test "$shlibpath_overrides_runpath" = yes ||
10809 test "$enable_shared" = no; then
10810 # Fast installation is not necessary
10811 enable_fast_install=needless
10819 if test "x$enable_dlopen" != xyes; then
10820 enable_dlopen=unknown
10821 enable_dlopen_self=unknown
10822 enable_dlopen_self_static=unknown
10823 else
10824 lt_cv_dlopen=no
10825 lt_cv_dlopen_libs=
10827 case $host_os in
10828 beos*)
10829 lt_cv_dlopen="load_add_on"
10830 lt_cv_dlopen_libs=
10831 lt_cv_dlopen_self=yes
10834 mingw* | pw32* | cegcc*)
10835 lt_cv_dlopen="LoadLibrary"
10836 lt_cv_dlopen_libs=
10839 cygwin*)
10840 lt_cv_dlopen="dlopen"
10841 lt_cv_dlopen_libs=
10844 darwin*)
10845 # if libdl is installed we need to link against it
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10847 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10848 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 ac_check_lib_save_LIBS=$LIBS
10852 LIBS="-ldl $LIBS"
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 char dlopen ();
10864 main ()
10866 return dlopen ();
10868 return 0;
10870 _ACEOF
10871 if ac_fn_c_try_link "$LINENO"; then :
10872 ac_cv_lib_dl_dlopen=yes
10873 else
10874 ac_cv_lib_dl_dlopen=no
10876 rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10881 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10882 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10884 else
10886 lt_cv_dlopen="dyld"
10887 lt_cv_dlopen_libs=
10888 lt_cv_dlopen_self=yes
10895 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10896 if test "x$ac_cv_func_shl_load" = x""yes; then :
10897 lt_cv_dlopen="shl_load"
10898 else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10900 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 ac_check_lib_save_LIBS=$LIBS
10905 LIBS="-ldld $LIBS"
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10909 /* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 char shl_load ();
10917 main ()
10919 return shl_load ();
10921 return 0;
10923 _ACEOF
10924 if ac_fn_c_try_link "$LINENO"; then :
10925 ac_cv_lib_dld_shl_load=yes
10926 else
10927 ac_cv_lib_dld_shl_load=no
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_lib_save_LIBS
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10934 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10935 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10936 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10937 else
10938 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10939 if test "x$ac_cv_func_dlopen" = x""yes; then :
10940 lt_cv_dlopen="dlopen"
10941 else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10943 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 ac_check_lib_save_LIBS=$LIBS
10948 LIBS="-ldl $LIBS"
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955 #ifdef __cplusplus
10956 extern "C"
10957 #endif
10958 char dlopen ();
10960 main ()
10962 return dlopen ();
10964 return 0;
10966 _ACEOF
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 ac_cv_lib_dl_dlopen=yes
10969 else
10970 ac_cv_lib_dl_dlopen=no
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10977 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10978 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10980 else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10982 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 ac_check_lib_save_LIBS=$LIBS
10987 LIBS="-lsvld $LIBS"
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10991 /* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 char dlopen ();
10999 main ()
11001 return dlopen ();
11003 return 0;
11005 _ACEOF
11006 if ac_fn_c_try_link "$LINENO"; then :
11007 ac_cv_lib_svld_dlopen=yes
11008 else
11009 ac_cv_lib_svld_dlopen=no
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11013 LIBS=$ac_check_lib_save_LIBS
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11016 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11017 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11021 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11022 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 ac_check_lib_save_LIBS=$LIBS
11026 LIBS="-ldld $LIBS"
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11030 /* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11033 #ifdef __cplusplus
11034 extern "C"
11035 #endif
11036 char dld_link ();
11038 main ()
11040 return dld_link ();
11042 return 0;
11044 _ACEOF
11045 if ac_fn_c_try_link "$LINENO"; then :
11046 ac_cv_lib_dld_dld_link=yes
11047 else
11048 ac_cv_lib_dld_dld_link=no
11050 rm -f core conftest.err conftest.$ac_objext \
11051 conftest$ac_exeext conftest.$ac_ext
11052 LIBS=$ac_check_lib_save_LIBS
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11055 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11056 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11057 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11076 esac
11078 if test "x$lt_cv_dlopen" != xno; then
11079 enable_dlopen=yes
11080 else
11081 enable_dlopen=no
11084 case $lt_cv_dlopen in
11085 dlopen)
11086 save_CPPFLAGS="$CPPFLAGS"
11087 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11089 save_LDFLAGS="$LDFLAGS"
11090 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11092 save_LIBS="$LIBS"
11093 LIBS="$lt_cv_dlopen_libs $LIBS"
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11096 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11097 if test "${lt_cv_dlopen_self+set}" = set; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 if test "$cross_compiling" = yes; then :
11101 lt_cv_dlopen_self=cross
11102 else
11103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11104 lt_status=$lt_dlunknown
11105 cat > conftest.$ac_ext <<_LT_EOF
11106 #line 11106 "configure"
11107 #include "confdefs.h"
11109 #if HAVE_DLFCN_H
11110 #include <dlfcn.h>
11111 #endif
11113 #include <stdio.h>
11115 #ifdef RTLD_GLOBAL
11116 # define LT_DLGLOBAL RTLD_GLOBAL
11117 #else
11118 # ifdef DL_GLOBAL
11119 # define LT_DLGLOBAL DL_GLOBAL
11120 # else
11121 # define LT_DLGLOBAL 0
11122 # endif
11123 #endif
11125 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11126 find out it does not work in some platform. */
11127 #ifndef LT_DLLAZY_OR_NOW
11128 # ifdef RTLD_LAZY
11129 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11130 # else
11131 # ifdef DL_LAZY
11132 # define LT_DLLAZY_OR_NOW DL_LAZY
11133 # else
11134 # ifdef RTLD_NOW
11135 # define LT_DLLAZY_OR_NOW RTLD_NOW
11136 # else
11137 # ifdef DL_NOW
11138 # define LT_DLLAZY_OR_NOW DL_NOW
11139 # else
11140 # define LT_DLLAZY_OR_NOW 0
11141 # endif
11142 # endif
11143 # endif
11144 # endif
11145 #endif
11147 /* When -fvisbility=hidden is used, assume the code has been annotated
11148 correspondingly for the symbols needed. */
11149 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11150 void fnord () __attribute__((visibility("default")));
11151 #endif
11153 void fnord () { int i=42; }
11154 int main ()
11156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11157 int status = $lt_dlunknown;
11159 if (self)
11161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11162 else
11164 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11165 else puts (dlerror ());
11167 /* dlclose (self); */
11169 else
11170 puts (dlerror ());
11172 return status;
11174 _LT_EOF
11175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11179 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11180 (./conftest; exit; ) >&5 2>/dev/null
11181 lt_status=$?
11182 case x$lt_status in
11183 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11184 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11185 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11186 esac
11187 else :
11188 # compilation failed
11189 lt_cv_dlopen_self=no
11192 rm -fr conftest*
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11197 $as_echo "$lt_cv_dlopen_self" >&6; }
11199 if test "x$lt_cv_dlopen_self" = xyes; then
11200 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11202 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11203 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 if test "$cross_compiling" = yes; then :
11207 lt_cv_dlopen_self_static=cross
11208 else
11209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11210 lt_status=$lt_dlunknown
11211 cat > conftest.$ac_ext <<_LT_EOF
11212 #line 11212 "configure"
11213 #include "confdefs.h"
11215 #if HAVE_DLFCN_H
11216 #include <dlfcn.h>
11217 #endif
11219 #include <stdio.h>
11221 #ifdef RTLD_GLOBAL
11222 # define LT_DLGLOBAL RTLD_GLOBAL
11223 #else
11224 # ifdef DL_GLOBAL
11225 # define LT_DLGLOBAL DL_GLOBAL
11226 # else
11227 # define LT_DLGLOBAL 0
11228 # endif
11229 #endif
11231 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11232 find out it does not work in some platform. */
11233 #ifndef LT_DLLAZY_OR_NOW
11234 # ifdef RTLD_LAZY
11235 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11236 # else
11237 # ifdef DL_LAZY
11238 # define LT_DLLAZY_OR_NOW DL_LAZY
11239 # else
11240 # ifdef RTLD_NOW
11241 # define LT_DLLAZY_OR_NOW RTLD_NOW
11242 # else
11243 # ifdef DL_NOW
11244 # define LT_DLLAZY_OR_NOW DL_NOW
11245 # else
11246 # define LT_DLLAZY_OR_NOW 0
11247 # endif
11248 # endif
11249 # endif
11250 # endif
11251 #endif
11253 /* When -fvisbility=hidden is used, assume the code has been annotated
11254 correspondingly for the symbols needed. */
11255 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11256 void fnord () __attribute__((visibility("default")));
11257 #endif
11259 void fnord () { int i=42; }
11260 int main ()
11262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11263 int status = $lt_dlunknown;
11265 if (self)
11267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11268 else
11270 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11271 else puts (dlerror ());
11273 /* dlclose (self); */
11275 else
11276 puts (dlerror ());
11278 return status;
11280 _LT_EOF
11281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11282 (eval $ac_link) 2>&5
11283 ac_status=$?
11284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11285 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11286 (./conftest; exit; ) >&5 2>/dev/null
11287 lt_status=$?
11288 case x$lt_status in
11289 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11290 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11291 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11292 esac
11293 else :
11294 # compilation failed
11295 lt_cv_dlopen_self_static=no
11298 rm -fr conftest*
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11303 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11306 CPPFLAGS="$save_CPPFLAGS"
11307 LDFLAGS="$save_LDFLAGS"
11308 LIBS="$save_LIBS"
11310 esac
11312 case $lt_cv_dlopen_self in
11313 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11314 *) enable_dlopen_self=unknown ;;
11315 esac
11317 case $lt_cv_dlopen_self_static in
11318 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11319 *) enable_dlopen_self_static=unknown ;;
11320 esac
11339 striplib=
11340 old_striplib=
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11342 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11343 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11344 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11345 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11347 $as_echo "yes" >&6; }
11348 else
11349 # FIXME - insert some real tests, host_os isn't really good enough
11350 case $host_os in
11351 darwin*)
11352 if test -n "$STRIP" ; then
11353 striplib="$STRIP -x"
11354 old_striplib="$STRIP -S"
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11356 $as_echo "yes" >&6; }
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11366 esac
11380 # Report which library types will actually be built
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11382 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11384 $as_echo "$can_build_shared" >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11387 $as_echo_n "checking whether to build shared libraries... " >&6; }
11388 test "$can_build_shared" = "no" && enable_shared=no
11390 # On AIX, shared libraries and static libraries use the same namespace, and
11391 # are all built from PIC.
11392 case $host_os in
11393 aix3*)
11394 test "$enable_shared" = yes && enable_static=no
11395 if test -n "$RANLIB"; then
11396 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11397 postinstall_cmds='$RANLIB $lib'
11401 aix[4-9]*)
11402 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11403 test "$enable_shared" = yes && enable_static=no
11406 esac
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11408 $as_echo "$enable_shared" >&6; }
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11411 $as_echo_n "checking whether to build static libraries... " >&6; }
11412 # Make sure either enable_shared or enable_static is yes.
11413 test "$enable_shared" = yes || enable_static=yes
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11415 $as_echo "$enable_static" >&6; }
11421 ac_ext=c
11422 ac_cpp='$CPP $CPPFLAGS'
11423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11427 CC="$lt_save_CC"
11441 # Source file extension for Go test sources.
11442 ac_ext=go
11444 # Object file extension for compiled Go test sources.
11445 objext=o
11446 objext_GO=$objext
11448 # Code to be used in simple compile tests
11449 lt_simple_compile_test_code="package main; func main() { }"
11451 # Code to be used in simple link tests
11452 lt_simple_link_test_code='package main; func main() { }'
11454 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11461 # If no C compiler was specified, use CC.
11462 LTCC=${LTCC-"$CC"}
11464 # If no C compiler flags were specified, use CFLAGS.
11465 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11467 # Allow CC to be a program name with arguments.
11468 compiler=$CC
11471 # save warnings/boilerplate of simple test code
11472 ac_outfile=conftest.$ac_objext
11473 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11474 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11475 _lt_compiler_boilerplate=`cat conftest.err`
11476 $RM conftest*
11478 ac_outfile=conftest.$ac_objext
11479 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11480 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11481 _lt_linker_boilerplate=`cat conftest.err`
11482 $RM -r conftest*
11485 # Allow CC to be a program name with arguments.
11486 lt_save_CC="$CC"
11487 lt_save_GCC="$GCC"
11488 GCC=yes
11489 CC=${GOC-"gccgo"}
11490 compiler=$CC
11491 compiler_GO=$CC
11492 LD_GO="$LD"
11493 for cc_temp in $compiler""; do
11494 case $cc_temp in
11495 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11496 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11497 \-*) ;;
11498 *) break;;
11499 esac
11500 done
11501 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11504 # Go did not exist at the time GCC didn't implicitly link libc in.
11505 archive_cmds_need_lc_GO=no
11507 old_archive_cmds_GO=$old_archive_cmds
11509 ## CAVEAT EMPTOR:
11510 ## There is no encapsulation within the following macros, do not change
11511 ## the running order or otherwise move them around unless you know exactly
11512 ## what you are doing...
11513 if test -n "$compiler"; then
11515 lt_prog_compiler_no_builtin_flag_GO=
11517 if test "$GCC" = yes; then
11518 case $cc_basename in
11519 nvcc*)
11520 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11522 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11523 esac
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11526 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11527 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 lt_cv_prog_compiler_rtti_exceptions=no
11531 ac_outfile=conftest.$ac_objext
11532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11533 lt_compiler_flag="-fno-rtti -fno-exceptions"
11534 # Insert the option either (1) after the last *FLAGS variable, or
11535 # (2) before a word containing "conftest.", or (3) at the end.
11536 # Note that $ac_compile itself does not contain backslashes and begins
11537 # with a dollar sign (not a hyphen), so the echo should work correctly.
11538 # The option is referenced via a variable to avoid confusing sed.
11539 lt_compile=`echo "$ac_compile" | $SED \
11540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11542 -e 's:$: $lt_compiler_flag:'`
11543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11544 (eval "$lt_compile" 2>conftest.err)
11545 ac_status=$?
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 if (exit $ac_status) && test -s "$ac_outfile"; then
11549 # The compiler can only warn and ignore the option if not recognized
11550 # So say no if there are warnings other than the usual output.
11551 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11553 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11554 lt_cv_prog_compiler_rtti_exceptions=yes
11557 $RM conftest*
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11561 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11563 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11564 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11565 else
11573 lt_prog_compiler_wl_GO=
11574 lt_prog_compiler_pic_GO=
11575 lt_prog_compiler_static_GO=
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11578 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11580 if test "$GCC" = yes; then
11581 lt_prog_compiler_wl_GO='-Wl,'
11582 lt_prog_compiler_static_GO='-static'
11584 case $host_os in
11585 aix*)
11586 # All AIX code is PIC.
11587 if test "$host_cpu" = ia64; then
11588 # AIX 5 now supports IA64 processor
11589 lt_prog_compiler_static_GO='-Bstatic'
11591 lt_prog_compiler_pic_GO='-fPIC'
11594 amigaos*)
11595 case $host_cpu in
11596 powerpc)
11597 # see comment about AmigaOS4 .so support
11598 lt_prog_compiler_pic_GO='-fPIC'
11600 m68k)
11601 # FIXME: we need at least 68020 code to build shared libraries, but
11602 # adding the `-m68020' flag to GCC prevents building anything better,
11603 # like `-m68040'.
11604 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11606 esac
11609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11610 # PIC is the default for these OSes.
11613 mingw* | cygwin* | pw32* | os2* | cegcc*)
11614 # This hack is so that the source file can tell whether it is being
11615 # built for inclusion in a dll (and should export symbols for example).
11616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11617 # (--disable-auto-import) libraries
11618 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11621 darwin* | rhapsody*)
11622 # PIC is the default on this platform
11623 # Common symbols not allowed in MH_DYLIB files
11624 lt_prog_compiler_pic_GO='-fno-common'
11627 haiku*)
11628 # PIC is the default for Haiku.
11629 # The "-static" flag exists, but is broken.
11630 lt_prog_compiler_static_GO=
11633 hpux*)
11634 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11635 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11636 # sets the default TLS model and affects inlining.
11637 case $host_cpu in
11638 hppa*64*)
11639 # +Z the default
11642 lt_prog_compiler_pic_GO='-fPIC'
11644 esac
11647 interix[3-9]*)
11648 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11649 # Instead, we relocate shared libraries at runtime.
11652 msdosdjgpp*)
11653 # Just because we use GCC doesn't mean we suddenly get shared libraries
11654 # on systems that don't support them.
11655 lt_prog_compiler_can_build_shared_GO=no
11656 enable_shared=no
11659 *nto* | *qnx*)
11660 # QNX uses GNU C++, but need to define -shared option too, otherwise
11661 # it will coredump.
11662 lt_prog_compiler_pic_GO='-fPIC -shared'
11665 sysv4*MP*)
11666 if test -d /usr/nec; then
11667 lt_prog_compiler_pic_GO=-Kconform_pic
11672 lt_prog_compiler_pic_GO='-fPIC'
11674 esac
11676 case $cc_basename in
11677 nvcc*) # Cuda Compiler Driver 2.2
11678 lt_prog_compiler_wl_GO='-Xlinker '
11679 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11681 esac
11682 else
11683 # PORTME Check for flag to pass linker flags through the system compiler.
11684 case $host_os in
11685 aix*)
11686 lt_prog_compiler_wl_GO='-Wl,'
11687 if test "$host_cpu" = ia64; then
11688 # AIX 5 now supports IA64 processor
11689 lt_prog_compiler_static_GO='-Bstatic'
11690 else
11691 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11695 mingw* | cygwin* | pw32* | os2* | cegcc*)
11696 # This hack is so that the source file can tell whether it is being
11697 # built for inclusion in a dll (and should export symbols for example).
11698 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11701 hpux9* | hpux10* | hpux11*)
11702 lt_prog_compiler_wl_GO='-Wl,'
11703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11704 # not for PA HP-UX.
11705 case $host_cpu in
11706 hppa*64*|ia64*)
11707 # +Z the default
11710 lt_prog_compiler_pic_GO='+Z'
11712 esac
11713 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11714 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11717 irix5* | irix6* | nonstopux*)
11718 lt_prog_compiler_wl_GO='-Wl,'
11719 # PIC (with -KPIC) is the default.
11720 lt_prog_compiler_static_GO='-non_shared'
11723 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11724 case $cc_basename in
11725 # old Intel for x86_64 which still supported -KPIC.
11726 ecc*)
11727 lt_prog_compiler_wl_GO='-Wl,'
11728 lt_prog_compiler_pic_GO='-KPIC'
11729 lt_prog_compiler_static_GO='-static'
11731 # icc used to be incompatible with GCC.
11732 # ICC 10 doesn't accept -KPIC any more.
11733 icc* | ifort*)
11734 lt_prog_compiler_wl_GO='-Wl,'
11735 lt_prog_compiler_pic_GO='-fPIC'
11736 lt_prog_compiler_static_GO='-static'
11738 # Lahey Fortran 8.1.
11739 lf95*)
11740 lt_prog_compiler_wl_GO='-Wl,'
11741 lt_prog_compiler_pic_GO='--shared'
11742 lt_prog_compiler_static_GO='--static'
11744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11745 # Portland Group compilers (*not* the Pentium gcc compiler,
11746 # which looks to be a dead project)
11747 lt_prog_compiler_wl_GO='-Wl,'
11748 lt_prog_compiler_pic_GO='-fpic'
11749 lt_prog_compiler_static_GO='-Bstatic'
11751 ccc*)
11752 lt_prog_compiler_wl_GO='-Wl,'
11753 # All Alpha code is PIC.
11754 lt_prog_compiler_static_GO='-non_shared'
11756 xl* | bgxl* | bgf* | mpixl*)
11757 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11758 lt_prog_compiler_wl_GO='-Wl,'
11759 lt_prog_compiler_pic_GO='-qpic'
11760 lt_prog_compiler_static_GO='-qstaticlink'
11763 case `$CC -V 2>&1 | sed 5q` in
11764 *Sun\ F* | *Sun*Fortran*)
11765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11766 lt_prog_compiler_pic_GO='-KPIC'
11767 lt_prog_compiler_static_GO='-Bstatic'
11768 lt_prog_compiler_wl_GO=''
11770 *Sun\ C*)
11771 # Sun C 5.9
11772 lt_prog_compiler_pic_GO='-KPIC'
11773 lt_prog_compiler_static_GO='-Bstatic'
11774 lt_prog_compiler_wl_GO='-Wl,'
11776 esac
11778 esac
11781 newsos6)
11782 lt_prog_compiler_pic_GO='-KPIC'
11783 lt_prog_compiler_static_GO='-Bstatic'
11786 *nto* | *qnx*)
11787 # QNX uses GNU C++, but need to define -shared option too, otherwise
11788 # it will coredump.
11789 lt_prog_compiler_pic_GO='-fPIC -shared'
11792 osf3* | osf4* | osf5*)
11793 lt_prog_compiler_wl_GO='-Wl,'
11794 # All OSF/1 code is PIC.
11795 lt_prog_compiler_static_GO='-non_shared'
11798 rdos*)
11799 lt_prog_compiler_static_GO='-non_shared'
11802 solaris*)
11803 lt_prog_compiler_pic_GO='-KPIC'
11804 lt_prog_compiler_static_GO='-Bstatic'
11805 case $cc_basename in
11806 f77* | f90* | f95*)
11807 lt_prog_compiler_wl_GO='-Qoption ld ';;
11809 lt_prog_compiler_wl_GO='-Wl,';;
11810 esac
11813 sunos4*)
11814 lt_prog_compiler_wl_GO='-Qoption ld '
11815 lt_prog_compiler_pic_GO='-PIC'
11816 lt_prog_compiler_static_GO='-Bstatic'
11819 sysv4 | sysv4.2uw2* | sysv4.3*)
11820 lt_prog_compiler_wl_GO='-Wl,'
11821 lt_prog_compiler_pic_GO='-KPIC'
11822 lt_prog_compiler_static_GO='-Bstatic'
11825 sysv4*MP*)
11826 if test -d /usr/nec ;then
11827 lt_prog_compiler_pic_GO='-Kconform_pic'
11828 lt_prog_compiler_static_GO='-Bstatic'
11832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11833 lt_prog_compiler_wl_GO='-Wl,'
11834 lt_prog_compiler_pic_GO='-KPIC'
11835 lt_prog_compiler_static_GO='-Bstatic'
11838 unicos*)
11839 lt_prog_compiler_wl_GO='-Wl,'
11840 lt_prog_compiler_can_build_shared_GO=no
11843 uts4*)
11844 lt_prog_compiler_pic_GO='-pic'
11845 lt_prog_compiler_static_GO='-Bstatic'
11849 lt_prog_compiler_can_build_shared_GO=no
11851 esac
11854 case $host_os in
11855 # For platforms which do not support PIC, -DPIC is meaningless:
11856 *djgpp*)
11857 lt_prog_compiler_pic_GO=
11860 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11862 esac
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11864 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11869 # Check to make sure the PIC flag actually works.
11871 if test -n "$lt_prog_compiler_pic_GO"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11873 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11874 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 lt_cv_prog_compiler_pic_works_GO=no
11878 ac_outfile=conftest.$ac_objext
11879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11880 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11881 # Insert the option either (1) after the last *FLAGS variable, or
11882 # (2) before a word containing "conftest.", or (3) at the end.
11883 # Note that $ac_compile itself does not contain backslashes and begins
11884 # with a dollar sign (not a hyphen), so the echo should work correctly.
11885 # The option is referenced via a variable to avoid confusing sed.
11886 lt_compile=`echo "$ac_compile" | $SED \
11887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11889 -e 's:$: $lt_compiler_flag:'`
11890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11891 (eval "$lt_compile" 2>conftest.err)
11892 ac_status=$?
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 if (exit $ac_status) && test -s "$ac_outfile"; then
11896 # The compiler can only warn and ignore the option if not recognized
11897 # So say no if there are warnings other than the usual output.
11898 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11901 lt_cv_prog_compiler_pic_works_GO=yes
11904 $RM conftest*
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11908 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11910 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11911 case $lt_prog_compiler_pic_GO in
11912 "" | " "*) ;;
11913 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11914 esac
11915 else
11916 lt_prog_compiler_pic_GO=
11917 lt_prog_compiler_can_build_shared_GO=no
11925 # Check to make sure the static flag actually works.
11927 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11929 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11930 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 lt_cv_prog_compiler_static_works_GO=no
11934 save_LDFLAGS="$LDFLAGS"
11935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11938 # The linker can only warn and ignore the option if not recognized
11939 # So say no if there are warnings
11940 if test -s conftest.err; then
11941 # Append any errors to the config.log.
11942 cat conftest.err 1>&5
11943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11945 if diff conftest.exp conftest.er2 >/dev/null; then
11946 lt_cv_prog_compiler_static_works_GO=yes
11948 else
11949 lt_cv_prog_compiler_static_works_GO=yes
11952 $RM -r conftest*
11953 LDFLAGS="$save_LDFLAGS"
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11957 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11959 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11961 else
11962 lt_prog_compiler_static_GO=
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11969 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11970 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 lt_cv_prog_compiler_c_o_GO=no
11974 $RM -r conftest 2>/dev/null
11975 mkdir conftest
11976 cd conftest
11977 mkdir out
11978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11980 lt_compiler_flag="-o out/conftest2.$ac_objext"
11981 # Insert the option either (1) after the last *FLAGS variable, or
11982 # (2) before a word containing "conftest.", or (3) at the end.
11983 # Note that $ac_compile itself does not contain backslashes and begins
11984 # with a dollar sign (not a hyphen), so the echo should work correctly.
11985 lt_compile=`echo "$ac_compile" | $SED \
11986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11988 -e 's:$: $lt_compiler_flag:'`
11989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11990 (eval "$lt_compile" 2>out/conftest.err)
11991 ac_status=$?
11992 cat out/conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11995 then
11996 # The compiler can only warn and ignore the option if not recognized
11997 # So say no if there are warnings
11998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12001 lt_cv_prog_compiler_c_o_GO=yes
12004 chmod u+w . 2>&5
12005 $RM conftest*
12006 # SGI C++ compiler will create directory out/ii_files/ for
12007 # template instantiation
12008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12009 $RM out/* && rmdir out
12010 cd ..
12011 $RM -r conftest
12012 $RM conftest*
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12016 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12022 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 lt_cv_prog_compiler_c_o_GO=no
12026 $RM -r conftest 2>/dev/null
12027 mkdir conftest
12028 cd conftest
12029 mkdir out
12030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12032 lt_compiler_flag="-o out/conftest2.$ac_objext"
12033 # Insert the option either (1) after the last *FLAGS variable, or
12034 # (2) before a word containing "conftest.", or (3) at the end.
12035 # Note that $ac_compile itself does not contain backslashes and begins
12036 # with a dollar sign (not a hyphen), so the echo should work correctly.
12037 lt_compile=`echo "$ac_compile" | $SED \
12038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12040 -e 's:$: $lt_compiler_flag:'`
12041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12042 (eval "$lt_compile" 2>out/conftest.err)
12043 ac_status=$?
12044 cat out/conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12047 then
12048 # The compiler can only warn and ignore the option if not recognized
12049 # So say no if there are warnings
12050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12053 lt_cv_prog_compiler_c_o_GO=yes
12056 chmod u+w . 2>&5
12057 $RM conftest*
12058 # SGI C++ compiler will create directory out/ii_files/ for
12059 # template instantiation
12060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12061 $RM out/* && rmdir out
12062 cd ..
12063 $RM -r conftest
12064 $RM conftest*
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12068 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12073 hard_links="nottested"
12074 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12075 # do not overwrite the value of need_locks provided by the user
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12077 $as_echo_n "checking if we can lock with hard links... " >&6; }
12078 hard_links=yes
12079 $RM conftest*
12080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12081 touch conftest.a
12082 ln conftest.a conftest.b 2>&5 || hard_links=no
12083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12085 $as_echo "$hard_links" >&6; }
12086 if test "$hard_links" = no; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12089 need_locks=warn
12091 else
12092 need_locks=no
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12100 runpath_var=
12101 allow_undefined_flag_GO=
12102 always_export_symbols_GO=no
12103 archive_cmds_GO=
12104 archive_expsym_cmds_GO=
12105 compiler_needs_object_GO=no
12106 enable_shared_with_static_runtimes_GO=no
12107 export_dynamic_flag_spec_GO=
12108 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12109 hardcode_automatic_GO=no
12110 hardcode_direct_GO=no
12111 hardcode_direct_absolute_GO=no
12112 hardcode_libdir_flag_spec_GO=
12113 hardcode_libdir_flag_spec_ld_GO=
12114 hardcode_libdir_separator_GO=
12115 hardcode_minus_L_GO=no
12116 hardcode_shlibpath_var_GO=unsupported
12117 inherit_rpath_GO=no
12118 link_all_deplibs_GO=unknown
12119 module_cmds_GO=
12120 module_expsym_cmds_GO=
12121 old_archive_from_new_cmds_GO=
12122 old_archive_from_expsyms_cmds_GO=
12123 thread_safe_flag_spec_GO=
12124 whole_archive_flag_spec_GO=
12125 # include_expsyms should be a list of space-separated symbols to be *always*
12126 # included in the symbol list
12127 include_expsyms_GO=
12128 # exclude_expsyms can be an extended regexp of symbols to exclude
12129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12131 # as well as any symbol that contains `d'.
12132 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12134 # platforms (ab)use it in PIC code, but their linkers get confused if
12135 # the symbol is explicitly referenced. Since portable code cannot
12136 # rely on this symbol name, it's probably fine to never include it in
12137 # preloaded symbol tables.
12138 # Exclude shared library initialization/finalization symbols.
12139 extract_expsyms_cmds=
12141 case $host_os in
12142 cygwin* | mingw* | pw32* | cegcc*)
12143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12144 # When not using gcc, we currently assume that we are using
12145 # Microsoft Visual C++.
12146 if test "$GCC" != yes; then
12147 with_gnu_ld=no
12150 interix*)
12151 # we just hope/assume this is gcc and not c89 (= MSVC++)
12152 with_gnu_ld=yes
12154 openbsd*)
12155 with_gnu_ld=no
12157 esac
12159 ld_shlibs_GO=yes
12161 # On some targets, GNU ld is compatible enough with the native linker
12162 # that we're better off using the native interface for both.
12163 lt_use_gnu_ld_interface=no
12164 if test "$with_gnu_ld" = yes; then
12165 case $host_os in
12166 aix*)
12167 # The AIX port of GNU ld has always aspired to compatibility
12168 # with the native linker. However, as the warning in the GNU ld
12169 # block says, versions before 2.19.5* couldn't really create working
12170 # shared libraries, regardless of the interface used.
12171 case `$LD -v 2>&1` in
12172 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12173 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12174 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12176 lt_use_gnu_ld_interface=yes
12178 esac
12181 lt_use_gnu_ld_interface=yes
12183 esac
12186 if test "$lt_use_gnu_ld_interface" = yes; then
12187 # If archive_cmds runs LD, not CC, wlarc should be empty
12188 wlarc='${wl}'
12190 # Set some defaults for GNU ld with shared library support. These
12191 # are reset later if shared libraries are not supported. Putting them
12192 # here allows them to be overridden if necessary.
12193 runpath_var=LD_RUN_PATH
12194 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12195 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12196 # ancient GNU ld didn't support --whole-archive et. al.
12197 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12198 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12199 else
12200 whole_archive_flag_spec_GO=
12202 supports_anon_versioning=no
12203 case `$LD -v 2>&1` in
12204 *GNU\ gold*) supports_anon_versioning=yes ;;
12205 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12208 *\ 2.11.*) ;; # other 2.11 versions
12209 *) supports_anon_versioning=yes ;;
12210 esac
12212 # See if GNU ld supports shared libraries.
12213 case $host_os in
12214 aix[3-9]*)
12215 # On AIX/PPC, the GNU linker is very broken
12216 if test "$host_cpu" != ia64; then
12217 ld_shlibs_GO=no
12218 cat <<_LT_EOF 1>&2
12220 *** Warning: the GNU linker, at least up to release 2.19, is reported
12221 *** to be unable to reliably create shared libraries on AIX.
12222 *** Therefore, libtool is disabling shared libraries support. If you
12223 *** really care for shared libraries, you may want to install binutils
12224 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12225 *** You will then need to restart the configuration process.
12227 _LT_EOF
12231 amigaos*)
12232 case $host_cpu in
12233 powerpc)
12234 # see comment about AmigaOS4 .so support
12235 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12236 archive_expsym_cmds_GO=''
12238 m68k)
12239 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)'
12240 hardcode_libdir_flag_spec_GO='-L$libdir'
12241 hardcode_minus_L_GO=yes
12243 esac
12246 beos*)
12247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12248 allow_undefined_flag_GO=unsupported
12249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12250 # support --undefined. This deserves some investigation. FIXME
12251 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252 else
12253 ld_shlibs_GO=no
12257 cygwin* | mingw* | pw32* | cegcc*)
12258 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12259 # as there is no search path for DLLs.
12260 hardcode_libdir_flag_spec_GO='-L$libdir'
12261 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12262 allow_undefined_flag_GO=unsupported
12263 always_export_symbols_GO=no
12264 enable_shared_with_static_runtimes_GO=yes
12265 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12268 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12269 # If the export-symbols file already is a .def file (1st line
12270 # is EXPORTS), use it as is; otherwise, prepend...
12271 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12272 cp $export_symbols $output_objdir/$soname.def;
12273 else
12274 echo EXPORTS > $output_objdir/$soname.def;
12275 cat $export_symbols >> $output_objdir/$soname.def;
12277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12278 else
12279 ld_shlibs_GO=no
12283 haiku*)
12284 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12285 link_all_deplibs_GO=yes
12288 interix[3-9]*)
12289 hardcode_direct_GO=no
12290 hardcode_shlibpath_var_GO=no
12291 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12292 export_dynamic_flag_spec_GO='${wl}-E'
12293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12294 # Instead, shared libraries are loaded at an image base (0x10000000 by
12295 # default) and relocated if they conflict, which is a slow very memory
12296 # consuming and fragmenting process. To avoid this, we pick a random,
12297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12299 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'
12300 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'
12303 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12304 tmp_diet=no
12305 if test "$host_os" = linux-dietlibc; then
12306 case $cc_basename in
12307 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12308 esac
12310 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12311 && test "$tmp_diet" = no
12312 then
12313 tmp_addflag=
12314 tmp_sharedflag='-shared'
12315 case $cc_basename,$host_cpu in
12316 pgcc*) # Portland Group C compiler
12317 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'
12318 tmp_addflag=' $pic_flag'
12320 pgf77* | pgf90* | pgf95* | pgfortran*)
12321 # Portland Group f77 and f90 compilers
12322 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'
12323 tmp_addflag=' $pic_flag -Mnomain' ;;
12324 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12325 tmp_addflag=' -i_dynamic' ;;
12326 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12327 tmp_addflag=' -i_dynamic -nofor_main' ;;
12328 ifc* | ifort*) # Intel Fortran compiler
12329 tmp_addflag=' -nofor_main' ;;
12330 lf95*) # Lahey Fortran 8.1
12331 whole_archive_flag_spec_GO=
12332 tmp_sharedflag='--shared' ;;
12333 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12334 tmp_sharedflag='-qmkshrobj'
12335 tmp_addflag= ;;
12336 nvcc*) # Cuda Compiler Driver 2.2
12337 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'
12338 compiler_needs_object_GO=yes
12340 esac
12341 case `$CC -V 2>&1 | sed 5q` in
12342 *Sun\ C*) # Sun C 5.9
12343 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'
12344 compiler_needs_object_GO=yes
12345 tmp_sharedflag='-G' ;;
12346 *Sun\ F*) # Sun Fortran 8.3
12347 tmp_sharedflag='-G' ;;
12348 esac
12349 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12351 if test "x$supports_anon_versioning" = xyes; then
12352 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12354 echo "local: *; };" >> $output_objdir/$libname.ver~
12355 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12358 case $cc_basename in
12359 xlf* | bgf* | bgxlf* | mpixlf*)
12360 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12361 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12362 hardcode_libdir_flag_spec_GO=
12363 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12364 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12365 if test "x$supports_anon_versioning" = xyes; then
12366 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12368 echo "local: *; };" >> $output_objdir/$libname.ver~
12369 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12372 esac
12373 else
12374 ld_shlibs_GO=no
12378 netbsd*)
12379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12380 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12381 wlarc=
12382 else
12383 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12384 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12388 solaris*)
12389 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12390 ld_shlibs_GO=no
12391 cat <<_LT_EOF 1>&2
12393 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12394 *** create shared libraries on Solaris systems. Therefore, libtool
12395 *** is disabling shared libraries support. We urge you to upgrade GNU
12396 *** binutils to release 2.9.1 or newer. Another option is to modify
12397 *** your PATH or compiler configuration so that the native linker is
12398 *** used, and then restart.
12400 _LT_EOF
12401 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12402 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12404 else
12405 ld_shlibs_GO=no
12409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12410 case `$LD -v 2>&1` in
12411 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12412 ld_shlibs_GO=no
12413 cat <<_LT_EOF 1>&2
12415 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12416 *** reliably create shared libraries on SCO systems. Therefore, libtool
12417 *** is disabling shared libraries support. We urge you to upgrade GNU
12418 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12419 *** your PATH or compiler configuration so that the native linker is
12420 *** used, and then restart.
12422 _LT_EOF
12425 # For security reasons, it is highly recommended that you always
12426 # use absolute paths for naming shared libraries, and exclude the
12427 # DT_RUNPATH tag from executables and libraries. But doing so
12428 # requires that you compile everything twice, which is a pain.
12429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12430 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12431 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12432 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12433 else
12434 ld_shlibs_GO=no
12437 esac
12440 sunos4*)
12441 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12442 wlarc=
12443 hardcode_direct_GO=yes
12444 hardcode_shlibpath_var_GO=no
12448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12449 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12450 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12451 else
12452 ld_shlibs_GO=no
12455 esac
12457 if test "$ld_shlibs_GO" = no; then
12458 runpath_var=
12459 hardcode_libdir_flag_spec_GO=
12460 export_dynamic_flag_spec_GO=
12461 whole_archive_flag_spec_GO=
12463 else
12464 # PORTME fill in a description of your system's linker (not GNU ld)
12465 case $host_os in
12466 aix3*)
12467 allow_undefined_flag_GO=unsupported
12468 always_export_symbols_GO=yes
12469 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'
12470 # Note: this linker hardcodes the directories in LIBPATH if there
12471 # are no directories specified by -L.
12472 hardcode_minus_L_GO=yes
12473 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12474 # Neither direct hardcoding nor static linking is supported with a
12475 # broken collect2.
12476 hardcode_direct_GO=unsupported
12480 aix[4-9]*)
12481 if test "$host_cpu" = ia64; then
12482 # On IA64, the linker does run time linking by default, so we don't
12483 # have to do anything special.
12484 aix_use_runtimelinking=no
12485 exp_sym_flag='-Bexport'
12486 no_entry_flag=""
12487 else
12488 # If we're using GNU nm, then we don't want the "-C" option.
12489 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12490 # Also, AIX nm treats weak defined symbols like other global
12491 # defined symbols, whereas GNU nm marks them as "W".
12492 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12493 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'
12494 else
12495 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'
12497 aix_use_runtimelinking=no
12499 # Test if we are trying to use run time linking or normal
12500 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12501 # need to do runtime linking.
12502 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12503 for ld_flag in $LDFLAGS; do
12504 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12505 aix_use_runtimelinking=yes
12506 break
12508 done
12510 esac
12512 exp_sym_flag='-bexport'
12513 no_entry_flag='-bnoentry'
12516 # When large executables or shared objects are built, AIX ld can
12517 # have problems creating the table of contents. If linking a library
12518 # or program results in "error TOC overflow" add -mminimal-toc to
12519 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12520 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12522 archive_cmds_GO=''
12523 hardcode_direct_GO=yes
12524 hardcode_direct_absolute_GO=yes
12525 hardcode_libdir_separator_GO=':'
12526 link_all_deplibs_GO=yes
12527 file_list_spec_GO='${wl}-f,'
12529 if test "$GCC" = yes; then
12530 case $host_os in aix4.[012]|aix4.[012].*)
12531 # We only want to do this on AIX 4.2 and lower, the check
12532 # below for broken collect2 doesn't work under 4.3+
12533 collect2name=`${CC} -print-prog-name=collect2`
12534 if test -f "$collect2name" &&
12535 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12536 then
12537 # We have reworked collect2
12539 else
12540 # We have old collect2
12541 hardcode_direct_GO=unsupported
12542 # It fails to find uninstalled libraries when the uninstalled
12543 # path is not listed in the libpath. Setting hardcode_minus_L
12544 # to unsupported forces relinking
12545 hardcode_minus_L_GO=yes
12546 hardcode_libdir_flag_spec_GO='-L$libdir'
12547 hardcode_libdir_separator_GO=
12550 esac
12551 shared_flag='-shared'
12552 if test "$aix_use_runtimelinking" = yes; then
12553 shared_flag="$shared_flag "'${wl}-G'
12555 else
12556 # not using gcc
12557 if test "$host_cpu" = ia64; then
12558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12559 # chokes on -Wl,-G. The following line is correct:
12560 shared_flag='-G'
12561 else
12562 if test "$aix_use_runtimelinking" = yes; then
12563 shared_flag='${wl}-G'
12564 else
12565 shared_flag='${wl}-bM:SRE'
12570 export_dynamic_flag_spec_GO='${wl}-bexpall'
12571 # It seems that -bexpall does not export symbols beginning with
12572 # underscore (_), so it is better to generate a list of symbols to export.
12573 always_export_symbols_GO=yes
12574 if test "$aix_use_runtimelinking" = yes; then
12575 # Warning - without using the other runtime loading flags (-brtl),
12576 # -berok will link without error, but may produce a broken library.
12577 allow_undefined_flag_GO='-berok'
12578 # Determine the default libpath from the value encoded in an
12579 # empty executable.
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12584 main ()
12588 return 0;
12590 _ACEOF
12591 if ac_fn_c_try_link "$LINENO"; then :
12593 lt_aix_libpath_sed='
12594 /Import File Strings/,/^$/ {
12595 /^0/ {
12596 s/^0 *\(.*\)$/\1/
12600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12601 # Check for a 64-bit object if we didn't find anything.
12602 if test -z "$aix_libpath"; then
12603 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12606 rm -f core conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12608 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12610 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12611 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"
12612 else
12613 if test "$host_cpu" = ia64; then
12614 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12615 allow_undefined_flag_GO="-z nodefs"
12616 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"
12617 else
12618 # Determine the default libpath from the value encoded in an
12619 # empty executable.
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12624 main ()
12628 return 0;
12630 _ACEOF
12631 if ac_fn_c_try_link "$LINENO"; then :
12633 lt_aix_libpath_sed='
12634 /Import File Strings/,/^$/ {
12635 /^0/ {
12636 s/^0 *\(.*\)$/\1/
12640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641 # Check for a 64-bit object if we didn't find anything.
12642 if test -z "$aix_libpath"; then
12643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12646 rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12650 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12651 # Warning - without using the other run time loading flags,
12652 # -berok will link without error, but may produce a broken library.
12653 no_undefined_flag_GO=' ${wl}-bernotok'
12654 allow_undefined_flag_GO=' ${wl}-berok'
12655 if test "$with_gnu_ld" = yes; then
12656 # We only use this code for GNU lds that support --whole-archive.
12657 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12658 else
12659 # Exported symbols can be pulled into shared objects from archives
12660 whole_archive_flag_spec_GO='$convenience'
12662 archive_cmds_need_lc_GO=yes
12663 # This is similar to how AIX traditionally builds its shared libraries.
12664 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'
12669 amigaos*)
12670 case $host_cpu in
12671 powerpc)
12672 # see comment about AmigaOS4 .so support
12673 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 archive_expsym_cmds_GO=''
12676 m68k)
12677 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)'
12678 hardcode_libdir_flag_spec_GO='-L$libdir'
12679 hardcode_minus_L_GO=yes
12681 esac
12684 bsdi[45]*)
12685 export_dynamic_flag_spec_GO=-rdynamic
12688 cygwin* | mingw* | pw32* | cegcc*)
12689 # When not using gcc, we currently assume that we are using
12690 # Microsoft Visual C++.
12691 # hardcode_libdir_flag_spec is actually meaningless, as there is
12692 # no search path for DLLs.
12693 hardcode_libdir_flag_spec_GO=' '
12694 allow_undefined_flag_GO=unsupported
12695 # Tell ltmain to make .lib files, not .a files.
12696 libext=lib
12697 # Tell ltmain to make .dll files, not .so files.
12698 shrext_cmds=".dll"
12699 # FIXME: Setting linknames here is a bad hack.
12700 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12701 # The linker will automatically build a .lib file if we build a DLL.
12702 old_archive_from_new_cmds_GO='true'
12703 # FIXME: Should let the user specify the lib program.
12704 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12705 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12706 enable_shared_with_static_runtimes_GO=yes
12709 darwin* | rhapsody*)
12712 archive_cmds_need_lc_GO=no
12713 hardcode_direct_GO=no
12714 hardcode_automatic_GO=yes
12715 hardcode_shlibpath_var_GO=unsupported
12716 if test "$lt_cv_ld_force_load" = "yes"; then
12717 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\"`'
12718 else
12719 whole_archive_flag_spec_GO=''
12721 link_all_deplibs_GO=yes
12722 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12723 case $cc_basename in
12724 ifort*) _lt_dar_can_shared=yes ;;
12725 *) _lt_dar_can_shared=$GCC ;;
12726 esac
12727 if test "$_lt_dar_can_shared" = "yes"; then
12728 output_verbose_link_cmd=func_echo_all
12729 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}"
12730 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12731 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}"
12732 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}"
12734 else
12735 ld_shlibs_GO=no
12740 dgux*)
12741 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12742 hardcode_libdir_flag_spec_GO='-L$libdir'
12743 hardcode_shlibpath_var_GO=no
12746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12747 # support. Future versions do this automatically, but an explicit c++rt0.o
12748 # does not break anything, and helps significantly (at the cost of a little
12749 # extra space).
12750 freebsd2.2*)
12751 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12752 hardcode_libdir_flag_spec_GO='-R$libdir'
12753 hardcode_direct_GO=yes
12754 hardcode_shlibpath_var_GO=no
12757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12758 freebsd2.*)
12759 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_direct_GO=yes
12761 hardcode_minus_L_GO=yes
12762 hardcode_shlibpath_var_GO=no
12765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12766 freebsd* | dragonfly*)
12767 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12768 hardcode_libdir_flag_spec_GO='-R$libdir'
12769 hardcode_direct_GO=yes
12770 hardcode_shlibpath_var_GO=no
12773 hpux9*)
12774 if test "$GCC" = yes; then
12775 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'
12776 else
12777 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'
12779 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12780 hardcode_libdir_separator_GO=:
12781 hardcode_direct_GO=yes
12783 # hardcode_minus_L: Not really in the search PATH,
12784 # but as the default location of the library.
12785 hardcode_minus_L_GO=yes
12786 export_dynamic_flag_spec_GO='${wl}-E'
12789 hpux10*)
12790 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12791 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12792 else
12793 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12795 if test "$with_gnu_ld" = no; then
12796 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12797 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12798 hardcode_libdir_separator_GO=:
12799 hardcode_direct_GO=yes
12800 hardcode_direct_absolute_GO=yes
12801 export_dynamic_flag_spec_GO='${wl}-E'
12802 # hardcode_minus_L: Not really in the search PATH,
12803 # but as the default location of the library.
12804 hardcode_minus_L_GO=yes
12808 hpux11*)
12809 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12810 case $host_cpu in
12811 hppa*64*)
12812 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12814 ia64*)
12815 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12818 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12820 esac
12821 else
12822 case $host_cpu in
12823 hppa*64*)
12824 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12826 ia64*)
12827 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12830 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12832 esac
12834 if test "$with_gnu_ld" = no; then
12835 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12836 hardcode_libdir_separator_GO=:
12838 case $host_cpu in
12839 hppa*64*|ia64*)
12840 hardcode_direct_GO=no
12841 hardcode_shlibpath_var_GO=no
12844 hardcode_direct_GO=yes
12845 hardcode_direct_absolute_GO=yes
12846 export_dynamic_flag_spec_GO='${wl}-E'
12848 # hardcode_minus_L: Not really in the search PATH,
12849 # but as the default location of the library.
12850 hardcode_minus_L_GO=yes
12852 esac
12856 irix5* | irix6* | nonstopux*)
12857 if test "$GCC" = yes; then
12858 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'
12859 # Try to use the -exported_symbol ld option, if it does not
12860 # work, assume that -exports_file does not work either and
12861 # implicitly export all symbols.
12862 save_LDFLAGS="$LDFLAGS"
12863 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12866 int foo(void) {}
12867 _ACEOF
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 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'
12872 rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext conftest.$ac_ext
12874 LDFLAGS="$save_LDFLAGS"
12875 else
12876 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'
12877 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'
12879 archive_cmds_need_lc_GO='no'
12880 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12881 hardcode_libdir_separator_GO=:
12882 inherit_rpath_GO=yes
12883 link_all_deplibs_GO=yes
12886 netbsd*)
12887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12888 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12889 else
12890 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12892 hardcode_libdir_flag_spec_GO='-R$libdir'
12893 hardcode_direct_GO=yes
12894 hardcode_shlibpath_var_GO=no
12897 newsos6)
12898 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12899 hardcode_direct_GO=yes
12900 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12901 hardcode_libdir_separator_GO=:
12902 hardcode_shlibpath_var_GO=no
12905 *nto* | *qnx*)
12908 openbsd*)
12909 if test -f /usr/libexec/ld.so; then
12910 hardcode_direct_GO=yes
12911 hardcode_shlibpath_var_GO=no
12912 hardcode_direct_absolute_GO=yes
12913 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12915 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12916 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12917 export_dynamic_flag_spec_GO='${wl}-E'
12918 else
12919 case $host_os in
12920 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12921 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_libdir_flag_spec_GO='-R$libdir'
12925 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12926 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12928 esac
12930 else
12931 ld_shlibs_GO=no
12935 os2*)
12936 hardcode_libdir_flag_spec_GO='-L$libdir'
12937 hardcode_minus_L_GO=yes
12938 allow_undefined_flag_GO=unsupported
12939 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'
12940 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12943 osf3*)
12944 if test "$GCC" = yes; then
12945 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12946 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'
12947 else
12948 allow_undefined_flag_GO=' -expect_unresolved \*'
12949 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'
12951 archive_cmds_need_lc_GO='no'
12952 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12953 hardcode_libdir_separator_GO=:
12956 osf4* | osf5*) # as osf3* with the addition of -msym flag
12957 if test "$GCC" = yes; then
12958 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12959 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'
12960 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12961 else
12962 allow_undefined_flag_GO=' -expect_unresolved \*'
12963 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'
12964 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~
12965 $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'
12967 # Both c and cxx compiler support -rpath directly
12968 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12970 archive_cmds_need_lc_GO='no'
12971 hardcode_libdir_separator_GO=:
12974 solaris*)
12975 no_undefined_flag_GO=' -z defs'
12976 if test "$GCC" = yes; then
12977 wlarc='${wl}'
12978 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12979 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12980 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12981 else
12982 case `$CC -V 2>&1` in
12983 *"Compilers 5.0"*)
12984 wlarc=''
12985 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12986 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12987 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12990 wlarc='${wl}'
12991 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12992 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12993 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12995 esac
12997 hardcode_libdir_flag_spec_GO='-R$libdir'
12998 hardcode_shlibpath_var_GO=no
12999 case $host_os in
13000 solaris2.[0-5] | solaris2.[0-5].*) ;;
13002 # The compiler driver will combine and reorder linker options,
13003 # but understands `-z linker_flag'. GCC discards it without `$wl',
13004 # but is careful enough not to reorder.
13005 # Supported since Solaris 2.6 (maybe 2.5.1?)
13006 if test "$GCC" = yes; then
13007 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13008 else
13009 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13012 esac
13013 link_all_deplibs_GO=yes
13016 sunos4*)
13017 if test "x$host_vendor" = xsequent; then
13018 # Use $CC to link under sequent, because it throws in some extra .o
13019 # files that make .init and .fini sections work.
13020 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13021 else
13022 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13024 hardcode_libdir_flag_spec_GO='-L$libdir'
13025 hardcode_direct_GO=yes
13026 hardcode_minus_L_GO=yes
13027 hardcode_shlibpath_var_GO=no
13030 sysv4)
13031 case $host_vendor in
13032 sni)
13033 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13034 hardcode_direct_GO=yes # is this really true???
13036 siemens)
13037 ## LD is ld it makes a PLAMLIB
13038 ## CC just makes a GrossModule.
13039 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13040 reload_cmds_GO='$CC -r -o $output$reload_objs'
13041 hardcode_direct_GO=no
13043 motorola)
13044 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13045 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13047 esac
13048 runpath_var='LD_RUN_PATH'
13049 hardcode_shlibpath_var_GO=no
13052 sysv4.3*)
13053 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_shlibpath_var_GO=no
13055 export_dynamic_flag_spec_GO='-Bexport'
13058 sysv4*MP*)
13059 if test -d /usr/nec; then
13060 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13061 hardcode_shlibpath_var_GO=no
13062 runpath_var=LD_RUN_PATH
13063 hardcode_runpath_var=yes
13064 ld_shlibs_GO=yes
13068 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13069 no_undefined_flag_GO='${wl}-z,text'
13070 archive_cmds_need_lc_GO=no
13071 hardcode_shlibpath_var_GO=no
13072 runpath_var='LD_RUN_PATH'
13074 if test "$GCC" = yes; then
13075 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 else
13078 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13083 sysv5* | sco3.2v5* | sco5v6*)
13084 # Note: We can NOT use -z defs as we might desire, because we do not
13085 # link with -lc, and that would cause any symbols used from libc to
13086 # always be unresolved, which means just about no library would
13087 # ever link correctly. If we're not using GNU ld we use -z text
13088 # though, which does catch some bad symbols but isn't as heavy-handed
13089 # as -z defs.
13090 no_undefined_flag_GO='${wl}-z,text'
13091 allow_undefined_flag_GO='${wl}-z,nodefs'
13092 archive_cmds_need_lc_GO=no
13093 hardcode_shlibpath_var_GO=no
13094 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13095 hardcode_libdir_separator_GO=':'
13096 link_all_deplibs_GO=yes
13097 export_dynamic_flag_spec_GO='${wl}-Bexport'
13098 runpath_var='LD_RUN_PATH'
13100 if test "$GCC" = yes; then
13101 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 else
13104 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13109 uts4*)
13110 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13111 hardcode_libdir_flag_spec_GO='-L$libdir'
13112 hardcode_shlibpath_var_GO=no
13116 ld_shlibs_GO=no
13118 esac
13120 if test x$host_vendor = xsni; then
13121 case $host in
13122 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13123 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13125 esac
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13130 $as_echo "$ld_shlibs_GO" >&6; }
13131 test "$ld_shlibs_GO" = no && can_build_shared=no
13133 with_gnu_ld_GO=$with_gnu_ld
13141 # Do we need to explicitly link libc?
13143 case "x$archive_cmds_need_lc_GO" in
13144 x|xyes)
13145 # Assume -lc should be added
13146 archive_cmds_need_lc_GO=yes
13148 if test "$enable_shared" = yes && test "$GCC" = yes; then
13149 case $archive_cmds_GO in
13150 *'~'*)
13151 # FIXME: we may have to deal with multi-command sequences.
13153 '$CC '*)
13154 # Test whether the compiler implicitly links with -lc since on some
13155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13156 # to ld, don't add -lc before -lgcc.
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13158 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13159 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 $RM conftest*
13163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13166 (eval $ac_compile) 2>&5
13167 ac_status=$?
13168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13169 test $ac_status = 0; } 2>conftest.err; then
13170 soname=conftest
13171 lib=conftest
13172 libobjs=conftest.$ac_objext
13173 deplibs=
13174 wl=$lt_prog_compiler_wl_GO
13175 pic_flag=$lt_prog_compiler_pic_GO
13176 compiler_flags=-v
13177 linker_flags=-v
13178 verstring=
13179 output_objdir=.
13180 libname=conftest
13181 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13182 allow_undefined_flag_GO=
13183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13184 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13185 ac_status=$?
13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13187 test $ac_status = 0; }
13188 then
13189 lt_cv_archive_cmds_need_lc_GO=no
13190 else
13191 lt_cv_archive_cmds_need_lc_GO=yes
13193 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13194 else
13195 cat conftest.err 1>&5
13197 $RM conftest*
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13201 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13202 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13204 esac
13207 esac
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13273 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13274 hardcode_action_GO=
13275 if test -n "$hardcode_libdir_flag_spec_GO" ||
13276 test -n "$runpath_var_GO" ||
13277 test "X$hardcode_automatic_GO" = "Xyes" ; then
13279 # We can hardcode non-existent directories.
13280 if test "$hardcode_direct_GO" != no &&
13281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13282 # have to relink, otherwise we might link with an installed library
13283 # when we should be linking with a yet-to-be-installed one
13284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13285 test "$hardcode_minus_L_GO" != no; then
13286 # Linking always hardcodes the temporary library directory.
13287 hardcode_action_GO=relink
13288 else
13289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13290 hardcode_action_GO=immediate
13292 else
13293 # We cannot hardcode anything, or else we can only hardcode existing
13294 # directories.
13295 hardcode_action_GO=unsupported
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13298 $as_echo "$hardcode_action_GO" >&6; }
13300 if test "$hardcode_action_GO" = relink ||
13301 test "$inherit_rpath_GO" = yes; then
13302 # Fast installation is not supported
13303 enable_fast_install=no
13304 elif test "$shlibpath_overrides_runpath" = yes ||
13305 test "$enable_shared" = no; then
13306 # Fast installation is not necessary
13307 enable_fast_install=needless
13318 ac_ext=c
13319 ac_cpp='$CPP $CPPFLAGS'
13320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13325 GCC=$lt_save_GCC
13326 CC="$lt_save_CC"
13331 ac_config_commands="$ac_config_commands libtool"
13336 # Only expand once:
13342 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13345 for ac_prog in gawk mawk nawk awk
13347 # Extract the first word of "$ac_prog", so it can be a program name with args.
13348 set dummy $ac_prog; ac_word=$2
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350 $as_echo_n "checking for $ac_word... " >&6; }
13351 if test "${ac_cv_prog_AWK+set}" = set; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 if test -n "$AWK"; then
13355 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13356 else
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13360 IFS=$as_save_IFS
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13364 ac_cv_prog_AWK="$ac_prog"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366 break 2
13368 done
13369 done
13370 IFS=$as_save_IFS
13374 AWK=$ac_cv_prog_AWK
13375 if test -n "$AWK"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13377 $as_echo "$AWK" >&6; }
13378 else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 $as_echo "no" >&6; }
13384 test -n "$AWK" && break
13385 done
13388 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13391 # Check whether --enable-werror was given.
13392 if test "${enable_werror+set}" = set; then :
13393 enableval=$enable_werror;
13396 if test "x$enable_werror" != "xno"; then
13397 WERROR="-Werror"
13401 glibgo_toolexecdir=no
13402 glibgo_toolexeclibdir=no
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13405 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13406 # Check whether --enable-version-specific-runtime-libs was given.
13407 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13408 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13409 yes) version_specific_libs=yes ;;
13410 no) version_specific_libs=no ;;
13411 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13412 esac
13413 else
13414 version_specific_libs=no
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13418 $as_echo "$version_specific_libs" >&6; }
13420 # Version-specific runtime libs processing.
13421 if test $version_specific_libs = yes; then
13422 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13423 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13426 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13427 # Install a library built with a cross compiler in tooldir, not libdir.
13428 if test -n "$with_cross_host" &&
13429 test x"$with_cross_host" != x"no"; then
13430 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13431 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13432 else
13433 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13434 nover_glibgo_toolexeclibdir='${libdir}'
13436 multi_os_directory=`$GOC -print-multi-os-directory`
13437 case $multi_os_directory in
13438 .) ;; # Avoid trailing /.
13439 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13440 esac
13442 if test x"$glibgo_toolexecdir" = x"no"; then
13443 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13444 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13451 # See if the user wants to configure without libffi. Some
13452 # architectures don't support it. FIXME: We should set a default
13453 # based on the host.
13455 # Check whether --with-libffi was given.
13456 if test "${with_libffi+set}" = set; then :
13457 withval=$with_libffi; :
13458 else
13459 with_libffi=${with_libffi_default-yes}
13463 LIBFFI=
13464 LIBFFIINCS=
13465 if test "$with_libffi" != no; then
13467 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13469 LIBFFI=../libffi/libffi_convenience.la
13470 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13474 if test "$with_liffi" != "no"; then
13475 USE_LIBFFI_TRUE=
13476 USE_LIBFFI_FALSE='#'
13477 else
13478 USE_LIBFFI_TRUE='#'
13479 USE_LIBFFI_FALSE=
13483 # See if the user wants to configure without libatomic. This is useful if we are
13484 # on an architecture for which libgo does not need an atomic support library and
13485 # libatomic does not support our C compiler.
13487 # Check whether --with-libatomic was given.
13488 if test "${with_libatomic+set}" = set; then :
13489 withval=$with_libatomic; :
13490 else
13491 with_libatomic=${with_libatomic_default-yes}
13495 LIBATOMIC=
13496 if test "$with_libatomic" != no; then
13497 LIBATOMIC=../libatomic/libatomic_convenience.la
13501 # Used to tell GNU make to include a file without telling automake to
13502 # include it.
13503 go_include="-include"
13506 # All known GOOS values. This is the union of all operating systems
13507 # supported by the gofrontend and all operating systems supported by
13508 # the gc toolchain.
13509 ALLGOOS="android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
13511 is_darwin=no
13512 is_freebsd=no
13513 is_irix=no
13514 is_linux=no
13515 is_netbsd=no
13516 is_openbsd=no
13517 is_dragonfly=no
13518 is_rtems=no
13519 is_solaris=no
13520 GOOS=unknown
13521 case ${host} in
13522 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13523 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13524 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13525 *-*-linux*) is_linux=yes; GOOS=linux ;;
13526 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13527 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13528 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13529 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13530 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13531 esac
13532 if test $is_darwin = yes; then
13533 LIBGO_IS_DARWIN_TRUE=
13534 LIBGO_IS_DARWIN_FALSE='#'
13535 else
13536 LIBGO_IS_DARWIN_TRUE='#'
13537 LIBGO_IS_DARWIN_FALSE=
13540 if test $is_freebsd = yes; then
13541 LIBGO_IS_FREEBSD_TRUE=
13542 LIBGO_IS_FREEBSD_FALSE='#'
13543 else
13544 LIBGO_IS_FREEBSD_TRUE='#'
13545 LIBGO_IS_FREEBSD_FALSE=
13548 if test $is_irix = yes; then
13549 LIBGO_IS_IRIX_TRUE=
13550 LIBGO_IS_IRIX_FALSE='#'
13551 else
13552 LIBGO_IS_IRIX_TRUE='#'
13553 LIBGO_IS_IRIX_FALSE=
13556 if test $is_linux = yes; then
13557 LIBGO_IS_LINUX_TRUE=
13558 LIBGO_IS_LINUX_FALSE='#'
13559 else
13560 LIBGO_IS_LINUX_TRUE='#'
13561 LIBGO_IS_LINUX_FALSE=
13564 if test $is_netbsd = yes; then
13565 LIBGO_IS_NETBSD_TRUE=
13566 LIBGO_IS_NETBSD_FALSE='#'
13567 else
13568 LIBGO_IS_NETBSD_TRUE='#'
13569 LIBGO_IS_NETBSD_FALSE=
13572 if test $is_openbsd = yes; then
13573 LIBGO_IS_OPENBSD_TRUE=
13574 LIBGO_IS_OPENBSD_FALSE='#'
13575 else
13576 LIBGO_IS_OPENBSD_TRUE='#'
13577 LIBGO_IS_OPENBSD_FALSE=
13580 if test $is_dragonfly = yes; then
13581 LIBGO_IS_DRAGONFLY_TRUE=
13582 LIBGO_IS_DRAGONFLY_FALSE='#'
13583 else
13584 LIBGO_IS_DRAGONFLY_TRUE='#'
13585 LIBGO_IS_DRAGONFLY_FALSE=
13588 if test $is_rtems = yes; then
13589 LIBGO_IS_RTEMS_TRUE=
13590 LIBGO_IS_RTEMS_FALSE='#'
13591 else
13592 LIBGO_IS_RTEMS_TRUE='#'
13593 LIBGO_IS_RTEMS_FALSE=
13596 if test $is_solaris = yes; then
13597 LIBGO_IS_SOLARIS_TRUE=
13598 LIBGO_IS_SOLARIS_FALSE='#'
13599 else
13600 LIBGO_IS_SOLARIS_TRUE='#'
13601 LIBGO_IS_SOLARIS_FALSE=
13604 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13605 LIBGO_IS_BSD_TRUE=
13606 LIBGO_IS_BSD_FALSE='#'
13607 else
13608 LIBGO_IS_BSD_TRUE='#'
13609 LIBGO_IS_BSD_FALSE=
13615 USE_DEJAGNU=no
13616 case ${host} in
13617 *-*-rtems*) USE_DEJAGNU=yes ;;
13618 ${build}) ;;
13619 *) USE_DEJAGNU=yes ;;
13620 esac
13623 # All known GOARCH values. This is the union of all architectures
13624 # supported by the gofrontend and all architectures supported by the
13625 # gc toolchain.
13626 # N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
13627 ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mipso32 mipsn32 mipso64 mipsn64 mips mipsle mips64 mips64le mips64p32 mips64pe32le ppc ppc64 ppc64le s390 s390x sparc sparc64"
13629 # All known GOARCH_FAMILY values.
13630 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64"
13632 GOARCH=unknown
13633 GOARCH_FAMILY=unknown
13634 GOARCH_BIGENDIAN=0
13635 GOARCH_CACHELINESIZE=64
13636 GOARCH_PHYSPAGESIZE=4096
13637 GOARCH_PCQUANTUM=1
13638 GOARCH_INT64ALIGN=8
13639 GOARCH_HUGEPAGESIZE=0
13640 GOARCH_MINFRAMESIZE=0
13641 case ${host} in
13642 alpha*-*-*)
13643 GOARCH=alpha
13644 GOARCH_FAMILY=ALPHA
13645 GOARCH_PHYSPAGESIZE=8192
13646 GOARCH_PCQUANTUM=4
13648 aarch64-*-*)
13649 GOARCH=arm64
13650 GOARCH_FAMILY=ARM64
13651 GOARCH_CACHELINESIZE=32
13652 GOARCH_PHYSPAGESIZE=65536
13653 GOARCH_PCQUANTUM=4
13654 GOARCH_MINFRAMESIZE=8
13656 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13657 GOARCH=arm
13658 GOARCH_FAMILY=ARM
13659 GOARCH_CACHELINESIZE=32
13660 GOARCH_PCQUANTUM=4
13661 GOARCH_MINFRAMESIZE=4
13663 i[34567]86-*-* | x86_64-*-*)
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13667 #ifdef __x86_64__
13668 #error 64-bit
13669 #endif
13670 _ACEOF
13671 if ac_fn_c_try_compile "$LINENO"; then :
13672 GOARCH=386
13673 GOARCH_FAMILY=I386
13674 GOARCH_INT64ALIGN=4
13675 GOARCH_HUGEPAGESIZE="1 << 21"
13677 else
13678 GOARCH=amd64
13679 GOARCH_FAMILY=AMD64
13680 GOARCH_HUGEPAGESIZE="1 << 21"
13683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 ia64-*-*)
13686 GOARCH=ia64
13687 GOARCH_FAMILY=IA64
13688 GOARCH_CACHELINESIZE=16384
13689 GOARCH_PHYSPAGESIZE=65536
13691 m68k*-*-*)
13692 GOARCH=m68k
13693 GOARCH_FAMILY=M68K
13694 GOARCH_BIGENDIAN=1
13695 GOARCH_CACHELINESIZE=16
13696 GOARCH_PCQUANTUM=4
13697 GOARCH_INT64ALIGN=2
13699 mips*-*-*)
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13703 #if _MIPS_SIM != _ABIO32
13704 #error not o32
13705 #endif
13706 _ACEOF
13707 if ac_fn_c_try_compile "$LINENO"; then :
13708 mips_abi="o32"
13709 else
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13713 #if _MIPS_SIM != _ABIN32
13714 #error not n32
13715 #endif
13716 _ACEOF
13717 if ac_fn_c_try_compile "$LINENO"; then :
13718 mips_abi="n32"
13719 else
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 #if _MIPS_SIM != _ABI64
13724 #error not n64
13725 #endif
13726 _ACEOF
13727 if ac_fn_c_try_compile "$LINENO"; then :
13728 mips_abi="n64"
13729 else
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13733 #if _MIPS_SIM != _ABIO64
13734 #error not o64
13735 #endif
13736 _ACEOF
13737 if ac_fn_c_try_compile "$LINENO"; then :
13738 mips_abi="o64"
13739 else
13740 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13741 mips_abi="n32"
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 case "$mips_abi" in
13751 "o32") GOARCH=mipso32 ;;
13752 "n32") GOARCH=mipsn32 ;;
13753 "n64") GOARCH=mipsn64 ;;
13754 "o64") GOARCH=mipso64 ;;
13755 esac
13756 case "$mips_abi" in
13757 "o32" | "n32")
13758 GOARCH_FAMILY=MIPS
13759 GOARCH_MINFRAMESIZE=4
13761 "n64" | "o64")
13762 GOARCH_FAMILY=MIPS64
13763 GOARCH_MINFRAMESIZE=8
13765 esac
13766 case "${host}" in
13767 mips*el)
13770 GOARCH_BIGENDIAN=1
13772 esac
13773 GOARCH_CACHELINESIZE=32
13774 GOARCH_PHYSPAGESIZE=16384
13775 GOARCH_PCQUANTUM=4
13777 rs6000*-*-* | powerpc*-*-*)
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13781 #ifdef _ARCH_PPC64
13782 #error 64-bit
13783 #endif
13784 _ACEOF
13785 if ac_fn_c_try_compile "$LINENO"; then :
13786 GOARCH=ppc
13787 GOARCH_FAMILY=PPC
13788 GOARCH_BIGENDIAN=1
13790 else
13792 GOARCH_FAMILY=PPC64
13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794 /* end confdefs.h. */
13796 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13797 #error 64be
13798 #endif
13799 _ACEOF
13800 if ac_fn_c_try_compile "$LINENO"; then :
13801 GOARCH=ppc64le
13803 else
13804 GOARCH=ppc64
13805 GOARCH_BIGENDIAN=1
13808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 GOARCH_PHYSPAGESIZE=65536
13812 GOARCH_PCQUANTUM=4
13813 GOARCH_MINFRAMESIZE=32
13815 s390*-*-*)
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13819 #if defined(__s390x__)
13820 #error 64-bit
13821 #endif
13822 _ACEOF
13823 if ac_fn_c_try_compile "$LINENO"; then :
13824 GOARCH=s390
13825 GOARCH_FAMILY=S390
13826 GOARCH_MINFRAMESIZE=4
13828 else
13829 GOARCH=s390x
13830 GOARCH_FAMILY=S390X
13831 GOARCH_MINFRAMESIZE=8
13834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835 GOARCH_BIGENDIAN=1
13836 GOARCH_CACHELINESIZE=256
13837 GOARCH_PCQUANTUM=2
13839 sparc*-*-*)
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13843 #if defined(__sparcv9) || defined(__arch64__)
13844 #error 64-bit
13845 #endif
13846 _ACEOF
13847 if ac_fn_c_try_compile "$LINENO"; then :
13848 GOARCH=sparc
13849 GOARCH_FAMILY=SPARC
13851 else
13852 GOARCH=sparc64
13853 GOARCH_FAMILY=SPARC64
13856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857 GOARCH_BIGENDIAN=1
13858 GOARCH_PHYSPAGESIZE=8192
13859 GOARCH_PCQUANTUM=4
13861 esac
13874 GO_LIBCALL_OS_FILE=
13875 GO_LIBCALL_OS_ARCH_FILE=
13876 GO_SYSCALL_OS_FILE=
13877 GO_SYSCALL_OS_ARCH_FILE=
13878 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13879 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13881 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13882 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13884 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13885 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13887 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13888 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13895 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13896 case "$target" in
13897 mips-sgi-irix6.5*)
13898 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13899 # msghdr in <sys/socket.h>.
13900 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13902 *-*-solaris2.1[01])
13903 # Solaris 10+ needs this so struct msghdr gets the msg_control
13904 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13905 # above doesn't work with C99.
13906 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13908 esac
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13912 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13913 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 CFLAGS_hold=$CFLAGS
13917 CFLAGS="$CFLAGS -fsplit-stack"
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920 int i;
13921 _ACEOF
13922 if ac_fn_c_try_compile "$LINENO"; then :
13923 libgo_cv_c_split_stack_supported=yes
13924 else
13925 libgo_cv_c_split_stack_supported=no
13927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 CFLAGS=$CFLAGS_hold
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13931 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
13934 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
13935 if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 cat > conftest1.c << EOF
13939 extern void f();
13940 int main() { f(); return 0; }
13942 cat > conftest2.c << EOF
13943 void f() {}
13945 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
13946 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
13947 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
13948 libgo_cv_c_linker_split_non_split=yes
13949 else
13950 libgo_cv_c_linker_split_non_split=no
13952 rm -f conftest1.* conftest2.* conftest
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
13955 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
13957 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
13958 SPLIT_STACK=-fsplit-stack
13960 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13962 else
13963 SPLIT_STACK=
13966 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
13967 USING_SPLIT_STACK_TRUE=
13968 USING_SPLIT_STACK_FALSE='#'
13969 else
13970 USING_SPLIT_STACK_TRUE='#'
13971 USING_SPLIT_STACK_FALSE=
13975 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
13976 GO_SPLIT_STACK=-fno-split-stack
13977 else
13978 GO_SPLIT_STACK=
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13983 $as_echo_n "checking whether linker supports split stack... " >&6; }
13984 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 libgo_cv_c_linker_supports_split_stack=no
13988 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13989 libgo_cv_c_linker_supports_split_stack=yes
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13993 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13994 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13996 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14001 $as_echo_n "checking whether compiler is llgo... " >&6; }
14002 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 libgo_cv_c_goc_is_llgo=no
14006 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14007 libgo_cv_c_goc_is_llgo=yes
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14011 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14012 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14013 GOC_IS_LLGO_TRUE=
14014 GOC_IS_LLGO_FALSE='#'
14015 else
14016 GOC_IS_LLGO_TRUE='#'
14017 GOC_IS_LLGO_FALSE=
14021 MATH_LIBS=
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14023 $as_echo_n "checking for sqrt in -lm... " >&6; }
14024 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 ac_check_lib_save_LIBS=$LIBS
14028 LIBS="-lm $LIBS"
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14032 /* Override any GCC internal prototype to avoid an error.
14033 Use char because int might match the return type of a GCC
14034 builtin and then its argument prototype would still apply. */
14035 #ifdef __cplusplus
14036 extern "C"
14037 #endif
14038 char sqrt ();
14040 main ()
14042 return sqrt ();
14044 return 0;
14046 _ACEOF
14047 if ac_fn_c_try_link "$LINENO"; then :
14048 ac_cv_lib_m_sqrt=yes
14049 else
14050 ac_cv_lib_m_sqrt=no
14052 rm -f core conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 LIBS=$ac_check_lib_save_LIBS
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14057 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14058 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14059 MATH_LIBS=-lm
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14065 $as_echo_n "checking for socket libraries... " >&6; }
14066 if test "${libgo_cv_lib_sockets+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 libgo_cv_lib_sockets=
14070 libgo_check_both=no
14071 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14072 if test "x$ac_cv_func_connect" = x""yes; then :
14073 libgo_check_socket=no
14074 else
14075 libgo_check_socket=yes
14078 if test "$libgo_check_socket" = "yes"; then
14079 unset ac_cv_func_connect
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14081 $as_echo_n "checking for main in -lsocket... " >&6; }
14082 if test "${ac_cv_lib_socket_main+set}" = set; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 ac_check_lib_save_LIBS=$LIBS
14086 LIBS="-lsocket $LIBS"
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14092 main ()
14094 return main ();
14096 return 0;
14098 _ACEOF
14099 if ac_fn_c_try_link "$LINENO"; then :
14100 ac_cv_lib_socket_main=yes
14101 else
14102 ac_cv_lib_socket_main=no
14104 rm -f core conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14109 $as_echo "$ac_cv_lib_socket_main" >&6; }
14110 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14111 libgo_cv_lib_sockets="-lsocket"
14112 else
14113 libgo_check_both=yes
14117 if test "$libgo_check_both" = "yes"; then
14118 libgo_old_libs=$LIBS
14119 LIBS="$LIBS -lsocket -lnsl"
14120 unset ac_cv_func_accept
14121 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14122 if test "x$ac_cv_func_accept" = x""yes; then :
14123 libgo_check_nsl=no
14124 libgo_cv_lib_sockets="-lsocket -lnsl"
14127 unset ac_cv_func_accept
14128 LIBS=$libgo_old_libs
14130 unset ac_cv_func_gethostbyname
14131 libgo_old_libs="$LIBS"
14132 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14133 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14135 else
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14137 $as_echo_n "checking for main in -lnsl... " >&6; }
14138 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 ac_check_lib_save_LIBS=$LIBS
14142 LIBS="-lnsl $LIBS"
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14148 main ()
14150 return main ();
14152 return 0;
14154 _ACEOF
14155 if ac_fn_c_try_link "$LINENO"; then :
14156 ac_cv_lib_nsl_main=yes
14157 else
14158 ac_cv_lib_nsl_main=no
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14162 LIBS=$ac_check_lib_save_LIBS
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14165 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14166 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14167 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14172 unset ac_cv_func_gethostbyname
14173 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14174 if test "x$ac_cv_func_sendfile" = x""yes; then :
14176 else
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14178 $as_echo_n "checking for main in -lsendfile... " >&6; }
14179 if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14180 $as_echo_n "(cached) " >&6
14181 else
14182 ac_check_lib_save_LIBS=$LIBS
14183 LIBS="-lsendfile $LIBS"
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14189 main ()
14191 return main ();
14193 return 0;
14195 _ACEOF
14196 if ac_fn_c_try_link "$LINENO"; then :
14197 ac_cv_lib_sendfile_main=yes
14198 else
14199 ac_cv_lib_sendfile_main=no
14201 rm -f core conftest.err conftest.$ac_objext \
14202 conftest$ac_exeext conftest.$ac_ext
14203 LIBS=$ac_check_lib_save_LIBS
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14206 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14207 if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14208 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14213 LIBS=$libgo_old_libs
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14217 $as_echo "$libgo_cv_lib_sockets" >&6; }
14218 NET_LIBS="$libgo_cv_lib_sockets"
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14222 $as_echo_n "checking whether -pthread is supported... " >&6; }
14223 if test "${libgo_cv_lib_pthread+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 CFLAGS_hold=$CFLAGS
14227 CFLAGS="$CFLAGS -pthread"
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230 int i;
14231 _ACEOF
14232 if ac_fn_c_try_compile "$LINENO"; then :
14233 libgo_cv_lib_pthread=yes
14234 else
14235 libgo_cv_lib_pthread=no
14237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14238 CFLAGS=$CFLAGS_hold
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14241 $as_echo "$libgo_cv_lib_pthread" >&6; }
14242 PTHREAD_CFLAGS=
14243 if test "$libgo_cv_lib_pthread" = yes; then
14244 PTHREAD_CFLAGS=-pthread
14248 PTHREAD_LIBS=
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14250 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14251 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 ac_check_lib_save_LIBS=$LIBS
14255 LIBS="-lpthread $LIBS"
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14259 /* Override any GCC internal prototype to avoid an error.
14260 Use char because int might match the return type of a GCC
14261 builtin and then its argument prototype would still apply. */
14262 #ifdef __cplusplus
14263 extern "C"
14264 #endif
14265 char pthread_create ();
14267 main ()
14269 return pthread_create ();
14271 return 0;
14273 _ACEOF
14274 if ac_fn_c_try_link "$LINENO"; then :
14275 ac_cv_lib_pthread_pthread_create=yes
14276 else
14277 ac_cv_lib_pthread_pthread_create=no
14279 rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
14281 LIBS=$ac_check_lib_save_LIBS
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14284 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14285 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14286 PTHREAD_LIBS=-lpthread
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14292 $as_echo_n "checking for library containing sched_yield... " >&6; }
14293 if test "${ac_cv_search_sched_yield+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 ac_func_search_save_LIBS=$LIBS
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14300 /* Override any GCC internal prototype to avoid an error.
14301 Use char because int might match the return type of a GCC
14302 builtin and then its argument prototype would still apply. */
14303 #ifdef __cplusplus
14304 extern "C"
14305 #endif
14306 char sched_yield ();
14308 main ()
14310 return sched_yield ();
14312 return 0;
14314 _ACEOF
14315 for ac_lib in '' rt; do
14316 if test -z "$ac_lib"; then
14317 ac_res="none required"
14318 else
14319 ac_res=-l$ac_lib
14320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14322 if ac_fn_c_try_link "$LINENO"; then :
14323 ac_cv_search_sched_yield=$ac_res
14325 rm -f core conftest.err conftest.$ac_objext \
14326 conftest$ac_exeext
14327 if test "${ac_cv_search_sched_yield+set}" = set; then :
14328 break
14330 done
14331 if test "${ac_cv_search_sched_yield+set}" = set; then :
14333 else
14334 ac_cv_search_sched_yield=no
14336 rm conftest.$ac_ext
14337 LIBS=$ac_func_search_save_LIBS
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14340 $as_echo "$ac_cv_search_sched_yield" >&6; }
14341 ac_res=$ac_cv_search_sched_yield
14342 if test "$ac_res" != no; then :
14343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14348 $as_echo_n "checking for library containing nanosleep... " >&6; }
14349 if test "${ac_cv_search_nanosleep+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 ac_func_search_save_LIBS=$LIBS
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14359 #ifdef __cplusplus
14360 extern "C"
14361 #endif
14362 char nanosleep ();
14364 main ()
14366 return nanosleep ();
14368 return 0;
14370 _ACEOF
14371 for ac_lib in '' rt; do
14372 if test -z "$ac_lib"; then
14373 ac_res="none required"
14374 else
14375 ac_res=-l$ac_lib
14376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14378 if ac_fn_c_try_link "$LINENO"; then :
14379 ac_cv_search_nanosleep=$ac_res
14381 rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext
14383 if test "${ac_cv_search_nanosleep+set}" = set; then :
14384 break
14386 done
14387 if test "${ac_cv_search_nanosleep+set}" = set; then :
14389 else
14390 ac_cv_search_nanosleep=no
14392 rm conftest.$ac_ext
14393 LIBS=$ac_func_search_save_LIBS
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14396 $as_echo "$ac_cv_search_nanosleep" >&6; }
14397 ac_res=$ac_cv_search_nanosleep
14398 if test "$ac_res" != no; then :
14399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14404 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14405 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 ac_func_search_save_LIBS=$LIBS
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14412 /* Override any GCC internal prototype to avoid an error.
14413 Use char because int might match the return type of a GCC
14414 builtin and then its argument prototype would still apply. */
14415 #ifdef __cplusplus
14416 extern "C"
14417 #endif
14418 char clock_gettime ();
14420 main ()
14422 return clock_gettime ();
14424 return 0;
14426 _ACEOF
14427 for ac_lib in '' rt; do
14428 if test -z "$ac_lib"; then
14429 ac_res="none required"
14430 else
14431 ac_res=-l$ac_lib
14432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14434 if ac_fn_c_try_link "$LINENO"; then :
14435 ac_cv_search_clock_gettime=$ac_res
14437 rm -f core conftest.err conftest.$ac_objext \
14438 conftest$ac_exeext
14439 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14440 break
14442 done
14443 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14445 else
14446 ac_cv_search_clock_gettime=no
14448 rm conftest.$ac_ext
14449 LIBS=$ac_func_search_save_LIBS
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14452 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14453 ac_res=$ac_cv_search_clock_gettime
14454 if test "$ac_res" != no; then :
14455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14461 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14462 if test "${ac_cv_c_bigendian+set}" = set; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465 ac_cv_c_bigendian=unknown
14466 # See if we're dealing with a universal compiler.
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14469 #ifndef __APPLE_CC__
14470 not a universal capable compiler
14471 #endif
14472 typedef int dummy;
14474 _ACEOF
14475 if ac_fn_c_try_compile "$LINENO"; then :
14477 # Check for potential -arch flags. It is not universal unless
14478 # there are at least two -arch flags with different values.
14479 ac_arch=
14480 ac_prev=
14481 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14482 if test -n "$ac_prev"; then
14483 case $ac_word in
14484 i?86 | x86_64 | ppc | ppc64)
14485 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14486 ac_arch=$ac_word
14487 else
14488 ac_cv_c_bigendian=universal
14489 break
14492 esac
14493 ac_prev=
14494 elif test "x$ac_word" = "x-arch"; then
14495 ac_prev=arch
14497 done
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 if test $ac_cv_c_bigendian = unknown; then
14501 # See if sys/param.h defines the BYTE_ORDER macro.
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14504 #include <sys/types.h>
14505 #include <sys/param.h>
14508 main ()
14510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14512 && LITTLE_ENDIAN)
14513 bogus endian macros
14514 #endif
14517 return 0;
14519 _ACEOF
14520 if ac_fn_c_try_compile "$LINENO"; then :
14521 # It does; now see whether it defined to BIG_ENDIAN or not.
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524 #include <sys/types.h>
14525 #include <sys/param.h>
14528 main ()
14530 #if BYTE_ORDER != BIG_ENDIAN
14531 not big endian
14532 #endif
14535 return 0;
14537 _ACEOF
14538 if ac_fn_c_try_compile "$LINENO"; then :
14539 ac_cv_c_bigendian=yes
14540 else
14541 ac_cv_c_bigendian=no
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547 if test $ac_cv_c_bigendian = unknown; then
14548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 #include <limits.h>
14554 main ()
14556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14557 bogus endian macros
14558 #endif
14561 return 0;
14563 _ACEOF
14564 if ac_fn_c_try_compile "$LINENO"; then :
14565 # It does; now see whether it defined to _BIG_ENDIAN or not.
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #include <limits.h>
14571 main ()
14573 #ifndef _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 # Compile a test program.
14592 if test "$cross_compiling" = yes; then :
14593 # Try to guess by grepping values from an object file.
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14596 short int ascii_mm[] =
14597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14598 short int ascii_ii[] =
14599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14600 int use_ascii (int i) {
14601 return ascii_mm[i] + ascii_ii[i];
14603 short int ebcdic_ii[] =
14604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14605 short int ebcdic_mm[] =
14606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14607 int use_ebcdic (int i) {
14608 return ebcdic_mm[i] + ebcdic_ii[i];
14610 extern int foo;
14613 main ()
14615 return use_ascii (foo) == use_ebcdic (foo);
14617 return 0;
14619 _ACEOF
14620 if ac_fn_c_try_compile "$LINENO"; then :
14621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14622 ac_cv_c_bigendian=yes
14624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14625 if test "$ac_cv_c_bigendian" = unknown; then
14626 ac_cv_c_bigendian=no
14627 else
14628 # finding both strings is unlikely to happen, but who knows?
14629 ac_cv_c_bigendian=unknown
14633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634 else
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637 $ac_includes_default
14639 main ()
14642 /* Are we little or big endian? From Harbison&Steele. */
14643 union
14645 long int l;
14646 char c[sizeof (long int)];
14647 } u;
14648 u.l = 1;
14649 return u.c[sizeof (long int) - 1] == 1;
14652 return 0;
14654 _ACEOF
14655 if ac_fn_c_try_run "$LINENO"; then :
14656 ac_cv_c_bigendian=no
14657 else
14658 ac_cv_c_bigendian=yes
14660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14661 conftest.$ac_objext conftest.beam conftest.$ac_ext
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14667 $as_echo "$ac_cv_c_bigendian" >&6; }
14668 case $ac_cv_c_bigendian in #(
14669 yes)
14670 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14671 ;; #(
14673 ;; #(
14674 universal)
14676 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14678 ;; #(
14680 as_fn_error "unknown endianness
14681 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14682 esac
14687 # Check whether --with-system-libunwind was given.
14688 if test "${with_system_libunwind+set}" = set; then :
14689 withval=$with_system_libunwind;
14692 # If system-libunwind was not specifically set, pick a default setting.
14693 if test x$with_system_libunwind = x; then
14694 case ${target} in
14695 ia64-*-hpux*) with_system_libunwind=yes ;;
14696 *) with_system_libunwind=no ;;
14697 esac
14699 # Based on system-libunwind and target, do we have ipinfo?
14700 if test x$with_system_libunwind = xyes; then
14701 case ${target} in
14702 ia64-*-*) have_unwind_getipinfo=no ;;
14703 *) have_unwind_getipinfo=yes ;;
14704 esac
14705 else
14706 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14708 case ${target} in
14709 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14710 *) have_unwind_getipinfo=yes ;;
14711 esac
14715 if test x$have_unwind_getipinfo = xyes; then
14717 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14722 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
14723 do :
14724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14725 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14726 eval as_val=\$$as_ac_Header
14727 if test "x$as_val" = x""yes; then :
14728 cat >>confdefs.h <<_ACEOF
14729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14730 _ACEOF
14734 done
14737 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
14738 do :
14739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14740 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14741 #include <sys/socket.h>
14742 #endif
14745 eval as_val=\$$as_ac_Header
14746 if test "x$as_val" = x""yes; then :
14747 cat >>confdefs.h <<_ACEOF
14748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14749 _ACEOF
14753 done
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14757 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14758 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14759 $as_echo_n "(cached) " >&6
14760 else
14761 CFLAGS_hold=$CFLAGS
14762 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14766 #include <sys/types.h>
14767 #ifdef HAVE_LINUX_FILTER_H
14768 #include <linux/filter.h>
14769 #endif
14770 #include <ustat.h>
14772 _ACEOF
14773 if ac_fn_c_try_compile "$LINENO"; then :
14774 libgo_cv_c_ustat_h=yes
14775 else
14776 libgo_cv_c_ustat_h=no
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779 CFLAGS=$CFLAGS_hold
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14782 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14783 if test $libgo_cv_c_ustat_h = yes; then
14785 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14789 if test "$ac_cv_header_sys_mman_h" = yes; then
14790 HAVE_SYS_MMAN_H_TRUE=
14791 HAVE_SYS_MMAN_H_FALSE='#'
14792 else
14793 HAVE_SYS_MMAN_H_TRUE='#'
14794 HAVE_SYS_MMAN_H_FALSE=
14798 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14799 do :
14800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14801 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14802 eval as_val=\$$as_ac_var
14803 if test "x$as_val" = x""yes; then :
14804 cat >>confdefs.h <<_ACEOF
14805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14806 _ACEOF
14809 done
14811 if test "$ac_cv_func_strerror_r" = yes; then
14812 HAVE_STRERROR_R_TRUE=
14813 HAVE_STRERROR_R_FALSE='#'
14814 else
14815 HAVE_STRERROR_R_TRUE='#'
14816 HAVE_STRERROR_R_FALSE=
14819 if test "$ac_cv_func_wait4" = yes; then
14820 HAVE_WAIT4_TRUE=
14821 HAVE_WAIT4_FALSE='#'
14822 else
14823 HAVE_WAIT4_TRUE='#'
14824 HAVE_WAIT4_FALSE=
14828 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
14829 do :
14830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14832 eval as_val=\$$as_ac_var
14833 if test "x$as_val" = x""yes; then :
14834 cat >>confdefs.h <<_ACEOF
14835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14836 _ACEOF
14839 done
14841 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14842 if test "x$ac_cv_type_off_t" = x""yes; then :
14844 else
14846 cat >>confdefs.h <<_ACEOF
14847 #define off_t long int
14848 _ACEOF
14852 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14853 if test "x$ac_cv_type_loff_t" = x""yes; then :
14855 cat >>confdefs.h <<_ACEOF
14856 #define HAVE_LOFF_T 1
14857 _ACEOF
14863 LIBS_hold="$LIBS"
14864 LIBS="$LIBS -lm"
14865 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14866 do :
14867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14868 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14869 eval as_val=\$$as_ac_var
14870 if test "x$as_val" = x""yes; then :
14871 cat >>confdefs.h <<_ACEOF
14872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14873 _ACEOF
14876 done
14878 LIBS="$LIBS_hold"
14880 CFLAGS_hold="$CFLAGS"
14881 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14882 LIBS_hold="$LIBS"
14883 LIBS="$LIBS $PTHREAD_LIBS"
14884 for ac_func in sem_timedwait
14885 do :
14886 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14887 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14888 cat >>confdefs.h <<_ACEOF
14889 #define HAVE_SEM_TIMEDWAIT 1
14890 _ACEOF
14893 done
14895 CFLAGS="$CFLAGS_hold"
14896 LIBS="$LIBS_hold"
14898 LIBS_hold="$LIBS"
14899 LIBS="$LIBS $MATH_LIBS"
14900 for ac_func in matherr
14901 do :
14902 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14903 if test "x$ac_cv_func_matherr" = x""yes; then :
14904 cat >>confdefs.h <<_ACEOF
14905 #define HAVE_MATHERR 1
14906 _ACEOF
14909 done
14911 LIBS="$LIBS_hold"
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14914 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14915 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14921 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14922 uint32 i;
14923 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14925 _ACEOF
14926 if ac_fn_c_try_link "$LINENO"; then :
14927 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14928 else
14929 libgo_cv_func___sync_bool_compare_and_swap_4=no
14931 rm -f core conftest.err conftest.$ac_objext \
14932 conftest$ac_exeext conftest.$ac_ext
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14935 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14936 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14938 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14943 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14944 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14950 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14951 uint64 i;
14952 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14954 _ACEOF
14955 if ac_fn_c_try_link "$LINENO"; then :
14956 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14957 else
14958 libgo_cv_func___sync_bool_compare_and_swap_8=no
14960 rm -f core conftest.err conftest.$ac_objext \
14961 conftest$ac_exeext conftest.$ac_ext
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14964 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14965 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14967 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14972 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14973 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14979 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14980 uint32 i;
14981 int main() { return __sync_fetch_and_add (&i, 1); }
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 libgo_cv_func___sync_fetch_and_add_4=yes
14986 else
14987 libgo_cv_func___sync_fetch_and_add_4=no
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14993 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14994 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14996 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15001 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15002 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15003 $as_echo_n "(cached) " >&6
15004 else
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15008 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15009 uint64 i;
15010 int main() { return __sync_add_and_fetch (&i, 1); }
15012 _ACEOF
15013 if ac_fn_c_try_link "$LINENO"; then :
15014 libgo_cv_func___sync_add_and_fetch_8=yes
15015 else
15016 libgo_cv_func___sync_add_and_fetch_8=no
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15022 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15023 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15025 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15030 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15031 if test "${libgo_cv_c_stringops+set}" = set; then :
15032 $as_echo_n "(cached) " >&6
15033 else
15034 CFLAGS_hold=$CFLAGS
15035 CFLAGS="$CFLAGS -minline-all-stringops"
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 int i;
15039 _ACEOF
15040 if ac_fn_c_try_compile "$LINENO"; then :
15041 libgo_cv_c_stringops=yes
15042 else
15043 libgo_cv_c_stringops=no
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 CFLAGS=$CFLAGS_hold
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15049 $as_echo "$libgo_cv_c_stringops" >&6; }
15050 STRINGOPS_FLAG=
15051 if test "$libgo_cv_c_stringops" = yes; then
15052 STRINGOPS_FLAG=-minline-all-stringops
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15057 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15058 if test "${libgo_cv_c_fancymath+set}" = set; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 CFLAGS_hold=$CFLAGS
15062 CFLAGS="$CFLAGS -mfancy-math-387"
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15065 int i;
15066 _ACEOF
15067 if ac_fn_c_try_compile "$LINENO"; then :
15068 libgo_cv_c_fancymath=yes
15069 else
15070 libgo_cv_c_fancymath=no
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 CFLAGS=$CFLAGS_hold
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15076 $as_echo "$libgo_cv_c_fancymath" >&6; }
15077 MATH_FLAG=
15078 if test "$libgo_cv_c_fancymath" = yes; then
15079 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15080 else
15081 MATH_FLAG="-ffp-contract=off"
15085 CFLAGS_hold=$CFLAGS
15086 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15087 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15088 if test "x$ac_cv_type_off64_t" = x""yes; then :
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_OFF64_T 1
15092 _ACEOF
15097 CFLAGS=$CFLAGS_hold
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15100 $as_echo_n "checking epoll_event size... " >&6; }
15101 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15102 $as_echo_n "(cached) " >&6
15103 else
15104 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15106 else
15107 libgo_cv_c_epoll_event_size=0
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15112 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15113 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15117 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15118 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15119 $as_echo_n "(cached) " >&6
15120 else
15121 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15122 #include <sys/epoll.h>"; then :
15124 else
15125 libgo_cv_c_epoll_event_fd_offset=0
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15130 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15131 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15136 #include <sys/stat.h>
15138 _ACEOF
15139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15140 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15141 have_stat_timespec=yes
15142 else
15143 have_stat_timespec=no
15145 rm -f conftest*
15147 if test $have_stat_timespec = yes; then
15148 HAVE_STAT_TIMESPEC_TRUE=
15149 HAVE_STAT_TIMESPEC_FALSE='#'
15150 else
15151 HAVE_STAT_TIMESPEC_TRUE='#'
15152 HAVE_STAT_TIMESPEC_FALSE=
15156 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15158 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15159 libgo_has_struct_exception=yes
15160 else
15161 libgo_has_struct_exception=no
15164 if test "$libgo_has_struct_exception" = "yes"; then
15166 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15171 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15172 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15175 CFLAGS_hold="$CFLAGS"
15176 CFLAGS="$PTHREAD_CFLAGS"
15177 LIBS_hold="$LIBS"
15178 LIBS="$LIBS $PTHREAD_LIBS"
15179 # The cast to long int works around a bug in the HP C Compiler
15180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15182 # This bug is HP SR number 8606223364.
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15184 $as_echo_n "checking size of void *... " >&6; }
15185 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15186 $as_echo_n "(cached) " >&6
15187 else
15188 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15190 else
15191 if test "$ac_cv_type_void_p" = yes; then
15192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15194 { as_fn_set_status 77
15195 as_fn_error "cannot compute sizeof (void *)
15196 See \`config.log' for more details." "$LINENO" 5; }; }
15197 else
15198 ac_cv_sizeof_void_p=0
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15204 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15208 cat >>confdefs.h <<_ACEOF
15209 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15210 _ACEOF
15213 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15214 if test "$cross_compiling" = yes; then :
15215 case "$target:$ptr_type_size" in
15216 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15217 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15219 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15220 esac
15222 else
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15226 #include <pthread.h>
15227 #include <stdlib.h>
15228 #include <ucontext.h>
15229 #include <unistd.h>
15231 __thread int tls;
15233 static char stack[10 * 1024 * 1024];
15234 static ucontext_t c;
15236 /* Called via makecontext/setcontext. */
15238 static void
15239 cfn (void)
15241 exit (tls);
15244 /* Called via pthread_create. */
15246 static void *
15247 tfn (void *dummy)
15249 /* The thread should still see this value after calling
15250 setcontext. */
15251 tls = 0;
15253 setcontext (&c);
15255 /* The call to setcontext should not return. */
15256 abort ();
15260 main ()
15262 pthread_t tid;
15264 /* The thread should not see this value. */
15265 tls = 1;
15267 if (getcontext (&c) < 0)
15268 abort ();
15270 c.uc_stack.ss_sp = stack;
15271 #ifdef MAKECONTEXT_STACK_TOP
15272 c.uc_stack.ss_sp += sizeof stack;
15273 #endif
15274 c.uc_stack.ss_flags = 0;
15275 c.uc_stack.ss_size = sizeof stack;
15276 c.uc_link = NULL;
15277 makecontext (&c, cfn, 0);
15279 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15280 abort ();
15282 if (pthread_join (tid, NULL) != 0)
15283 abort ();
15285 /* The thread should have called exit. */
15286 abort ();
15289 _ACEOF
15290 if ac_fn_c_try_run "$LINENO"; then :
15291 libgo_cv_lib_setcontext_clobbers_tls=no
15292 else
15293 libgo_cv_lib_setcontext_clobbers_tls=yes
15295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15296 conftest.$ac_objext conftest.beam conftest.$ac_ext
15299 CFLAGS="$CFLAGS_hold"
15300 LIBS="$LIBS_hold"
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15304 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15305 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15307 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15312 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15313 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15314 $as_echo_n "(cached) " >&6
15315 else
15317 libgo_cv_ro_eh_frame=no
15318 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15319 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15320 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15321 libgo_cv_ro_eh_frame=yes
15322 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15323 | grep -v '#write' > /dev/null; then
15324 libgo_cv_ro_eh_frame=yes
15327 rm -f conftest.*
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15331 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15332 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15334 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15336 else
15338 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15343 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15344 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15347 CFLAGS_hold=$CFLAGS
15348 CFLAGS="$CFLAGS -Qunused-arguments"
15349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350 /* end confdefs.h. */
15351 int i;
15352 _ACEOF
15353 if ac_fn_c_try_compile "$LINENO"; then :
15354 libgo_cv_c_unused_arguments=yes
15355 else
15356 libgo_cv_c_unused_arguments=no
15358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 CFLAGS=$CFLAGS_hold
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15362 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15365 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15366 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15367 $as_echo_n "(cached) " >&6
15368 else
15370 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15371 CFLAGS_hold=$CFLAGS
15372 if test "$libgo_cv_c_unused_arguments" = yes; then
15373 CFLAGS="$CFLAGS -Qunused-arguments"
15375 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15376 libgo_cv_as_comdat_gnu=yes
15377 else
15378 libgo_cv_as_comdat_gnu=no
15380 CFLAGS=$CFLAGS_hold
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15384 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15385 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15387 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15392 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15393 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15397 libgo_cv_as_x86_pcrel=yes
15398 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15399 CFLAGS_hold=$CFLAGS
15400 if test "$libgo_cv_c_unused_arguments" = yes; then
15401 CFLAGS="$CFLAGS -Qunused-arguments"
15403 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15404 libgo_cv_as_x86_pcrel=no
15406 CFLAGS=$CFLAGS_hold
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15410 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15411 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15413 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15418 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15419 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15423 libgo_cv_as_x86_64_unwind_section_type=yes
15424 echo '.section .eh_frame,"a",@unwind' > conftest.s
15425 CFLAGS_hold=$CFLAGS
15426 if test "$libgo_cv_c_unused_arguments" = yes; then
15427 CFLAGS="$CFLAGS -Qunused-arguments"
15429 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15430 libgo_cv_as_x86_64_unwind_section_type=no
15432 CFLAGS=$CFLAGS_hold
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15436 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15437 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15439 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15443 cat >confcache <<\_ACEOF
15444 # This file is a shell script that caches the results of configure
15445 # tests run on this system so they can be shared between configure
15446 # scripts and configure runs, see configure's option --config-cache.
15447 # It is not useful on other systems. If it contains results you don't
15448 # want to keep, you may remove or edit it.
15450 # config.status only pays attention to the cache file if you give it
15451 # the --recheck option to rerun configure.
15453 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15454 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15455 # following values.
15457 _ACEOF
15459 # The following way of writing the cache mishandles newlines in values,
15460 # but we know of no workaround that is simple, portable, and efficient.
15461 # So, we kill variables containing newlines.
15462 # Ultrix sh set writes to stderr and can't be redirected directly,
15463 # and sets the high bit in the cache file unless we assign to the vars.
15465 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15466 eval ac_val=\$$ac_var
15467 case $ac_val in #(
15468 *${as_nl}*)
15469 case $ac_var in #(
15470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15472 esac
15473 case $ac_var in #(
15474 _ | IFS | as_nl) ;; #(
15475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15476 *) { eval $ac_var=; unset $ac_var;} ;;
15477 esac ;;
15478 esac
15479 done
15481 (set) 2>&1 |
15482 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15483 *${as_nl}ac_space=\ *)
15484 # `set' does not quote correctly, so add quotes: double-quote
15485 # substitution turns \\\\ into \\, and sed turns \\ into \.
15486 sed -n \
15487 "s/'/'\\\\''/g;
15488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15489 ;; #(
15491 # `set' quotes correctly as required by POSIX, so do not add quotes.
15492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15494 esac |
15495 sort
15497 sed '
15498 /^ac_cv_env_/b end
15499 t clear
15500 :clear
15501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15502 t end
15503 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15504 :end' >>confcache
15505 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15506 if test -w "$cache_file"; then
15507 test "x$cache_file" != "x/dev/null" &&
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15509 $as_echo "$as_me: updating cache $cache_file" >&6;}
15510 cat confcache >$cache_file
15511 else
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15513 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15516 rm -f confcache
15518 if test ${multilib} = yes; then
15519 multilib_arg="--enable-multilib"
15520 else
15521 multilib_arg=
15524 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15527 ac_config_commands="$ac_config_commands default"
15530 cat >confcache <<\_ACEOF
15531 # This file is a shell script that caches the results of configure
15532 # tests run on this system so they can be shared between configure
15533 # scripts and configure runs, see configure's option --config-cache.
15534 # It is not useful on other systems. If it contains results you don't
15535 # want to keep, you may remove or edit it.
15537 # config.status only pays attention to the cache file if you give it
15538 # the --recheck option to rerun configure.
15540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15542 # following values.
15544 _ACEOF
15546 # The following way of writing the cache mishandles newlines in values,
15547 # but we know of no workaround that is simple, portable, and efficient.
15548 # So, we kill variables containing newlines.
15549 # Ultrix sh set writes to stderr and can't be redirected directly,
15550 # and sets the high bit in the cache file unless we assign to the vars.
15552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15553 eval ac_val=\$$ac_var
15554 case $ac_val in #(
15555 *${as_nl}*)
15556 case $ac_var in #(
15557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15559 esac
15560 case $ac_var in #(
15561 _ | IFS | as_nl) ;; #(
15562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15563 *) { eval $ac_var=; unset $ac_var;} ;;
15564 esac ;;
15565 esac
15566 done
15568 (set) 2>&1 |
15569 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15570 *${as_nl}ac_space=\ *)
15571 # `set' does not quote correctly, so add quotes: double-quote
15572 # substitution turns \\\\ into \\, and sed turns \\ into \.
15573 sed -n \
15574 "s/'/'\\\\''/g;
15575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15576 ;; #(
15578 # `set' quotes correctly as required by POSIX, so do not add quotes.
15579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15581 esac |
15582 sort
15584 sed '
15585 /^ac_cv_env_/b end
15586 t clear
15587 :clear
15588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15589 t end
15590 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15591 :end' >>confcache
15592 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15593 if test -w "$cache_file"; then
15594 test "x$cache_file" != "x/dev/null" &&
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15596 $as_echo "$as_me: updating cache $cache_file" >&6;}
15597 cat confcache >$cache_file
15598 else
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15600 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15603 rm -f confcache
15605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15606 # Let make expand exec_prefix.
15607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15609 DEFS=-DHAVE_CONFIG_H
15611 ac_libobjs=
15612 ac_ltlibobjs=
15613 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15614 # 1. Remove the extension, and $U if already installed.
15615 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15616 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15617 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15618 # will be set to the directory where LIBOBJS objects are built.
15619 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15620 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15621 done
15622 LIBOBJS=$ac_libobjs
15624 LTLIBOBJS=$ac_ltlibobjs
15627 if test -n "$EXEEXT"; then
15628 am__EXEEXT_TRUE=
15629 am__EXEEXT_FALSE='#'
15630 else
15631 am__EXEEXT_TRUE='#'
15632 am__EXEEXT_FALSE=
15635 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15636 as_fn_error "conditional \"AMDEP\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15639 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15640 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15644 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
15648 as_fn_error "conditional \"USE_LIBFFI\" was never defined.
15649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15651 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15652 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15655 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15656 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15659 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15660 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15664 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15667 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15668 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15671 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15672 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15675 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15676 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15679 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15680 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15684 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15688 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15692 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15695 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15696 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15700 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15701 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15704 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15705 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15708 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15709 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15712 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15713 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15717 : ${CONFIG_STATUS=./config.status}
15718 ac_write_fail=0
15719 ac_clean_files_save=$ac_clean_files
15720 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15722 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15723 as_write_fail=0
15724 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15725 #! $SHELL
15726 # Generated by $as_me.
15727 # Run this file to recreate the current configuration.
15728 # Compiler output produced by configure, useful for debugging
15729 # configure, is in config.log if it exists.
15731 debug=false
15732 ac_cs_recheck=false
15733 ac_cs_silent=false
15735 SHELL=\${CONFIG_SHELL-$SHELL}
15736 export SHELL
15737 _ASEOF
15738 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15739 ## -------------------- ##
15740 ## M4sh Initialization. ##
15741 ## -------------------- ##
15743 # Be more Bourne compatible
15744 DUALCASE=1; export DUALCASE # for MKS sh
15745 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15746 emulate sh
15747 NULLCMD=:
15748 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15749 # is contrary to our usage. Disable this feature.
15750 alias -g '${1+"$@"}'='"$@"'
15751 setopt NO_GLOB_SUBST
15752 else
15753 case `(set -o) 2>/dev/null` in #(
15754 *posix*) :
15755 set -o posix ;; #(
15756 *) :
15758 esac
15762 as_nl='
15764 export as_nl
15765 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15766 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15767 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15768 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15769 # Prefer a ksh shell builtin over an external printf program on Solaris,
15770 # but without wasting forks for bash or zsh.
15771 if test -z "$BASH_VERSION$ZSH_VERSION" \
15772 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15773 as_echo='print -r --'
15774 as_echo_n='print -rn --'
15775 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15776 as_echo='printf %s\n'
15777 as_echo_n='printf %s'
15778 else
15779 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15780 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15781 as_echo_n='/usr/ucb/echo -n'
15782 else
15783 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15784 as_echo_n_body='eval
15785 arg=$1;
15786 case $arg in #(
15787 *"$as_nl"*)
15788 expr "X$arg" : "X\\(.*\\)$as_nl";
15789 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15790 esac;
15791 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15793 export as_echo_n_body
15794 as_echo_n='sh -c $as_echo_n_body as_echo'
15796 export as_echo_body
15797 as_echo='sh -c $as_echo_body as_echo'
15800 # The user is always right.
15801 if test "${PATH_SEPARATOR+set}" != set; then
15802 PATH_SEPARATOR=:
15803 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15804 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15805 PATH_SEPARATOR=';'
15810 # IFS
15811 # We need space, tab and new line, in precisely that order. Quoting is
15812 # there to prevent editors from complaining about space-tab.
15813 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15814 # splitting by setting IFS to empty value.)
15815 IFS=" "" $as_nl"
15817 # Find who we are. Look in the path if we contain no directory separator.
15818 case $0 in #((
15819 *[\\/]* ) as_myself=$0 ;;
15820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 for as_dir in $PATH
15823 IFS=$as_save_IFS
15824 test -z "$as_dir" && as_dir=.
15825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15826 done
15827 IFS=$as_save_IFS
15830 esac
15831 # We did not find ourselves, most probably we were run as `sh COMMAND'
15832 # in which case we are not to be found in the path.
15833 if test "x$as_myself" = x; then
15834 as_myself=$0
15836 if test ! -f "$as_myself"; then
15837 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15838 exit 1
15841 # Unset variables that we do not need and which cause bugs (e.g. in
15842 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15843 # suppresses any "Segmentation fault" message there. '((' could
15844 # trigger a bug in pdksh 5.2.14.
15845 for as_var in BASH_ENV ENV MAIL MAILPATH
15846 do eval test x\${$as_var+set} = xset \
15847 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15848 done
15849 PS1='$ '
15850 PS2='> '
15851 PS4='+ '
15853 # NLS nuisances.
15854 LC_ALL=C
15855 export LC_ALL
15856 LANGUAGE=C
15857 export LANGUAGE
15859 # CDPATH.
15860 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15863 # as_fn_error ERROR [LINENO LOG_FD]
15864 # ---------------------------------
15865 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15866 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15867 # script with status $?, using 1 if that was 0.
15868 as_fn_error ()
15870 as_status=$?; test $as_status -eq 0 && as_status=1
15871 if test "$3"; then
15872 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15873 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15875 $as_echo "$as_me: error: $1" >&2
15876 as_fn_exit $as_status
15877 } # as_fn_error
15880 # as_fn_set_status STATUS
15881 # -----------------------
15882 # Set $? to STATUS, without forking.
15883 as_fn_set_status ()
15885 return $1
15886 } # as_fn_set_status
15888 # as_fn_exit STATUS
15889 # -----------------
15890 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15891 as_fn_exit ()
15893 set +e
15894 as_fn_set_status $1
15895 exit $1
15896 } # as_fn_exit
15898 # as_fn_unset VAR
15899 # ---------------
15900 # Portably unset VAR.
15901 as_fn_unset ()
15903 { eval $1=; unset $1;}
15905 as_unset=as_fn_unset
15906 # as_fn_append VAR VALUE
15907 # ----------------------
15908 # Append the text in VALUE to the end of the definition contained in VAR. Take
15909 # advantage of any shell optimizations that allow amortized linear growth over
15910 # repeated appends, instead of the typical quadratic growth present in naive
15911 # implementations.
15912 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15913 eval 'as_fn_append ()
15915 eval $1+=\$2
15917 else
15918 as_fn_append ()
15920 eval $1=\$$1\$2
15922 fi # as_fn_append
15924 # as_fn_arith ARG...
15925 # ------------------
15926 # Perform arithmetic evaluation on the ARGs, and store the result in the
15927 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15928 # must be portable across $(()) and expr.
15929 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15930 eval 'as_fn_arith ()
15932 as_val=$(( $* ))
15934 else
15935 as_fn_arith ()
15937 as_val=`expr "$@" || test $? -eq 1`
15939 fi # as_fn_arith
15942 if expr a : '\(a\)' >/dev/null 2>&1 &&
15943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15944 as_expr=expr
15945 else
15946 as_expr=false
15949 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15950 as_basename=basename
15951 else
15952 as_basename=false
15955 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15956 as_dirname=dirname
15957 else
15958 as_dirname=false
15961 as_me=`$as_basename -- "$0" ||
15962 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15963 X"$0" : 'X\(//\)$' \| \
15964 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15965 $as_echo X/"$0" |
15966 sed '/^.*\/\([^/][^/]*\)\/*$/{
15967 s//\1/
15970 /^X\/\(\/\/\)$/{
15971 s//\1/
15974 /^X\/\(\/\).*/{
15975 s//\1/
15978 s/.*/./; q'`
15980 # Avoid depending upon Character Ranges.
15981 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15984 as_cr_digits='0123456789'
15985 as_cr_alnum=$as_cr_Letters$as_cr_digits
15987 ECHO_C= ECHO_N= ECHO_T=
15988 case `echo -n x` in #(((((
15989 -n*)
15990 case `echo 'xy\c'` in
15991 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15992 xy) ECHO_C='\c';;
15993 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15994 ECHO_T=' ';;
15995 esac;;
15997 ECHO_N='-n';;
15998 esac
16000 rm -f conf$$ conf$$.exe conf$$.file
16001 if test -d conf$$.dir; then
16002 rm -f conf$$.dir/conf$$.file
16003 else
16004 rm -f conf$$.dir
16005 mkdir conf$$.dir 2>/dev/null
16007 if (echo >conf$$.file) 2>/dev/null; then
16008 if ln -s conf$$.file conf$$ 2>/dev/null; then
16009 as_ln_s='ln -s'
16010 # ... but there are two gotchas:
16011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16013 # In both cases, we have to default to `cp -p'.
16014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16015 as_ln_s='cp -p'
16016 elif ln conf$$.file conf$$ 2>/dev/null; then
16017 as_ln_s=ln
16018 else
16019 as_ln_s='cp -p'
16021 else
16022 as_ln_s='cp -p'
16024 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16025 rmdir conf$$.dir 2>/dev/null
16028 # as_fn_mkdir_p
16029 # -------------
16030 # Create "$as_dir" as a directory, including parents if necessary.
16031 as_fn_mkdir_p ()
16034 case $as_dir in #(
16035 -*) as_dir=./$as_dir;;
16036 esac
16037 test -d "$as_dir" || eval $as_mkdir_p || {
16038 as_dirs=
16039 while :; do
16040 case $as_dir in #(
16041 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16042 *) as_qdir=$as_dir;;
16043 esac
16044 as_dirs="'$as_qdir' $as_dirs"
16045 as_dir=`$as_dirname -- "$as_dir" ||
16046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16047 X"$as_dir" : 'X\(//\)[^/]' \| \
16048 X"$as_dir" : 'X\(//\)$' \| \
16049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16050 $as_echo X"$as_dir" |
16051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16052 s//\1/
16055 /^X\(\/\/\)[^/].*/{
16056 s//\1/
16059 /^X\(\/\/\)$/{
16060 s//\1/
16063 /^X\(\/\).*/{
16064 s//\1/
16067 s/.*/./; q'`
16068 test -d "$as_dir" && break
16069 done
16070 test -z "$as_dirs" || eval "mkdir $as_dirs"
16071 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16074 } # as_fn_mkdir_p
16075 if mkdir -p . 2>/dev/null; then
16076 as_mkdir_p='mkdir -p "$as_dir"'
16077 else
16078 test -d ./-p && rmdir ./-p
16079 as_mkdir_p=false
16082 if test -x / >/dev/null 2>&1; then
16083 as_test_x='test -x'
16084 else
16085 if ls -dL / >/dev/null 2>&1; then
16086 as_ls_L_option=L
16087 else
16088 as_ls_L_option=
16090 as_test_x='
16091 eval sh -c '\''
16092 if test -d "$1"; then
16093 test -d "$1/.";
16094 else
16095 case $1 in #(
16096 -*)set "./$1";;
16097 esac;
16098 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16099 ???[sx]*):;;*)false;;esac;fi
16100 '\'' sh
16103 as_executable_p=$as_test_x
16105 # Sed expression to map a string onto a valid CPP name.
16106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16108 # Sed expression to map a string onto a valid variable name.
16109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16112 exec 6>&1
16113 ## ----------------------------------- ##
16114 ## Main body of $CONFIG_STATUS script. ##
16115 ## ----------------------------------- ##
16116 _ASEOF
16117 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16120 # Save the log message, to keep $0 and so on meaningful, and to
16121 # report actual input values of CONFIG_FILES etc. instead of their
16122 # values after options handling.
16123 ac_log="
16124 This file was extended by package-unused $as_me version-unused, which was
16125 generated by GNU Autoconf 2.64. Invocation command line was
16127 CONFIG_FILES = $CONFIG_FILES
16128 CONFIG_HEADERS = $CONFIG_HEADERS
16129 CONFIG_LINKS = $CONFIG_LINKS
16130 CONFIG_COMMANDS = $CONFIG_COMMANDS
16131 $ $0 $@
16133 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16136 _ACEOF
16138 case $ac_config_files in *"
16139 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16140 esac
16142 case $ac_config_headers in *"
16143 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16144 esac
16147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16148 # Files that config.status was made for.
16149 config_files="$ac_config_files"
16150 config_headers="$ac_config_headers"
16151 config_commands="$ac_config_commands"
16153 _ACEOF
16155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16156 ac_cs_usage="\
16157 \`$as_me' instantiates files and other configuration actions
16158 from templates according to the current configuration. Unless the files
16159 and actions are specified as TAGs, all are instantiated by default.
16161 Usage: $0 [OPTION]... [TAG]...
16163 -h, --help print this help, then exit
16164 -V, --version print version number and configuration settings, then exit
16165 -q, --quiet, --silent
16166 do not print progress messages
16167 -d, --debug don't remove temporary files
16168 --recheck update $as_me by reconfiguring in the same conditions
16169 --file=FILE[:TEMPLATE]
16170 instantiate the configuration file FILE
16171 --header=FILE[:TEMPLATE]
16172 instantiate the configuration header FILE
16174 Configuration files:
16175 $config_files
16177 Configuration headers:
16178 $config_headers
16180 Configuration commands:
16181 $config_commands
16183 Report bugs to the package provider."
16185 _ACEOF
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 ac_cs_version="\\
16188 package-unused config.status version-unused
16189 configured by $0, generated by GNU Autoconf 2.64,
16190 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16192 Copyright (C) 2009 Free Software Foundation, Inc.
16193 This config.status script is free software; the Free Software Foundation
16194 gives unlimited permission to copy, distribute and modify it."
16196 ac_pwd='$ac_pwd'
16197 srcdir='$srcdir'
16198 INSTALL='$INSTALL'
16199 MKDIR_P='$MKDIR_P'
16200 AWK='$AWK'
16201 test -n "\$AWK" || AWK=awk
16202 _ACEOF
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 # The default lists apply if the user does not specify any file.
16206 ac_need_defaults=:
16207 while test $# != 0
16209 case $1 in
16210 --*=*)
16211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16213 ac_shift=:
16216 ac_option=$1
16217 ac_optarg=$2
16218 ac_shift=shift
16220 esac
16222 case $ac_option in
16223 # Handling of the options.
16224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16225 ac_cs_recheck=: ;;
16226 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16227 $as_echo "$ac_cs_version"; exit ;;
16228 --debug | --debu | --deb | --de | --d | -d )
16229 debug=: ;;
16230 --file | --fil | --fi | --f )
16231 $ac_shift
16232 case $ac_optarg in
16233 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16234 esac
16235 as_fn_append CONFIG_FILES " '$ac_optarg'"
16236 ac_need_defaults=false;;
16237 --header | --heade | --head | --hea )
16238 $ac_shift
16239 case $ac_optarg in
16240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16241 esac
16242 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16243 ac_need_defaults=false;;
16244 --he | --h)
16245 # Conflict between --help and --header
16246 as_fn_error "ambiguous option: \`$1'
16247 Try \`$0 --help' for more information.";;
16248 --help | --hel | -h )
16249 $as_echo "$ac_cs_usage"; exit ;;
16250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16251 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16252 ac_cs_silent=: ;;
16254 # This is an error.
16255 -*) as_fn_error "unrecognized option: \`$1'
16256 Try \`$0 --help' for more information." ;;
16258 *) as_fn_append ac_config_targets " $1"
16259 ac_need_defaults=false ;;
16261 esac
16262 shift
16263 done
16265 ac_configure_extra_args=
16267 if $ac_cs_silent; then
16268 exec 6>/dev/null
16269 ac_configure_extra_args="$ac_configure_extra_args --silent"
16272 _ACEOF
16273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274 if \$ac_cs_recheck; then
16275 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16276 shift
16277 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16278 CONFIG_SHELL='$SHELL'
16279 export CONFIG_SHELL
16280 exec "\$@"
16283 _ACEOF
16284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16285 exec 5>>config.log
16287 echo
16288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16289 ## Running $as_me. ##
16290 _ASBOX
16291 $as_echo "$ac_log"
16292 } >&5
16294 _ACEOF
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16297 # INIT-COMMANDS
16300 srcdir="$srcdir"
16301 host="$host"
16302 target="$target"
16303 with_multisubdir="$with_multisubdir"
16304 with_multisrctop="$with_multisrctop"
16305 with_target_subdir="$with_target_subdir"
16306 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16307 multi_basedir="$multi_basedir"
16308 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16309 CC="$CC"
16310 CXX="$CXX"
16311 GFORTRAN="$GFORTRAN"
16312 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16315 # The HP-UX ksh and POSIX shell print the target directory to stdout
16316 # if CDPATH is set.
16317 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16319 sed_quote_subst='$sed_quote_subst'
16320 double_quote_subst='$double_quote_subst'
16321 delay_variable_subst='$delay_variable_subst'
16322 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16323 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16324 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16325 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16326 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16327 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16328 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16329 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16330 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16331 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16332 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16333 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16334 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16335 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16336 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16337 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16338 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16339 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16340 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16341 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16342 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16343 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16344 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16345 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16346 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16347 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16348 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16349 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16350 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16351 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16352 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16353 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16354 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16355 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16356 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16357 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16358 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16359 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16360 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16361 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16362 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16363 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16364 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16365 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16366 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16367 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16368 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16369 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16370 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"`'
16371 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16372 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16373 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16374 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16375 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16376 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16377 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16378 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16379 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16380 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16381 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16382 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16383 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16384 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16385 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16386 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16387 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16388 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16389 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16390 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16391 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16392 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16393 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16394 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16395 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16396 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16397 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16398 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16399 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16400 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16401 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16402 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16403 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16404 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16405 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16406 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16407 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16408 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16409 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16410 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16411 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16412 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16413 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16414 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16415 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16416 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16417 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16418 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16419 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16420 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16421 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16422 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16423 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16424 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16425 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16426 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16427 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16428 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16429 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16430 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16431 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16432 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16433 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16434 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16435 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16436 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16437 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16438 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16439 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16440 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16441 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16442 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16443 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16444 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16445 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16446 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16447 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16448 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16449 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16450 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16451 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16452 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16453 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16454 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16455 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16456 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16457 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16458 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16459 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16460 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16461 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16462 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16463 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16464 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16465 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16466 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16467 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16468 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16469 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16470 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16471 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16472 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16473 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16474 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16475 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16476 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16477 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16478 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16479 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16480 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16481 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16482 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16483 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16484 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16486 LTCC='$LTCC'
16487 LTCFLAGS='$LTCFLAGS'
16488 compiler='$compiler_DEFAULT'
16490 # A function that is used when there is no print builtin or printf.
16491 func_fallback_echo ()
16493 eval 'cat <<_LTECHO_EOF
16495 _LTECHO_EOF'
16498 # Quote evaled strings.
16499 for var in SED \
16500 GREP \
16501 EGREP \
16502 FGREP \
16503 SHELL \
16504 ECHO \
16505 LD \
16506 NM \
16507 LN_S \
16508 lt_SP2NL \
16509 lt_NL2SP \
16510 reload_flag \
16511 OBJDUMP \
16512 deplibs_check_method \
16513 file_magic_cmd \
16514 AR \
16515 AR_FLAGS \
16516 STRIP \
16517 RANLIB \
16518 CC \
16519 CFLAGS \
16520 compiler \
16521 lt_cv_sys_global_symbol_pipe \
16522 lt_cv_sys_global_symbol_to_cdecl \
16523 lt_cv_sys_global_symbol_to_c_name_address \
16524 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16525 lt_prog_compiler_no_builtin_flag \
16526 lt_prog_compiler_wl \
16527 lt_prog_compiler_pic \
16528 lt_prog_compiler_static \
16529 lt_cv_prog_compiler_c_o \
16530 need_locks \
16531 DSYMUTIL \
16532 NMEDIT \
16533 LIPO \
16534 OTOOL \
16535 OTOOL64 \
16536 shrext_cmds \
16537 export_dynamic_flag_spec \
16538 whole_archive_flag_spec \
16539 compiler_needs_object \
16540 with_gnu_ld \
16541 allow_undefined_flag \
16542 no_undefined_flag \
16543 hardcode_libdir_flag_spec \
16544 hardcode_libdir_flag_spec_ld \
16545 hardcode_libdir_separator \
16546 fix_srcfile_path \
16547 exclude_expsyms \
16548 include_expsyms \
16549 file_list_spec \
16550 variables_saved_for_relink \
16551 libname_spec \
16552 library_names_spec \
16553 soname_spec \
16554 install_override_mode \
16555 finish_eval \
16556 old_striplib \
16557 striplib \
16558 LD_GO \
16559 reload_flag_GO \
16560 compiler_GO \
16561 lt_prog_compiler_no_builtin_flag_GO \
16562 lt_prog_compiler_wl_GO \
16563 lt_prog_compiler_pic_GO \
16564 lt_prog_compiler_static_GO \
16565 lt_cv_prog_compiler_c_o_GO \
16566 export_dynamic_flag_spec_GO \
16567 whole_archive_flag_spec_GO \
16568 compiler_needs_object_GO \
16569 with_gnu_ld_GO \
16570 allow_undefined_flag_GO \
16571 no_undefined_flag_GO \
16572 hardcode_libdir_flag_spec_GO \
16573 hardcode_libdir_flag_spec_ld_GO \
16574 hardcode_libdir_separator_GO \
16575 fix_srcfile_path_GO \
16576 exclude_expsyms_GO \
16577 include_expsyms_GO \
16578 file_list_spec_GO; do
16579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16580 *[\\\\\\\`\\"\\\$]*)
16581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16586 esac
16587 done
16589 # Double-quote double-evaled strings.
16590 for var in reload_cmds \
16591 old_postinstall_cmds \
16592 old_postuninstall_cmds \
16593 old_archive_cmds \
16594 extract_expsyms_cmds \
16595 old_archive_from_new_cmds \
16596 old_archive_from_expsyms_cmds \
16597 archive_cmds \
16598 archive_expsym_cmds \
16599 module_cmds \
16600 module_expsym_cmds \
16601 export_symbols_cmds \
16602 prelink_cmds \
16603 postinstall_cmds \
16604 postuninstall_cmds \
16605 finish_cmds \
16606 sys_lib_search_path_spec \
16607 sys_lib_dlsearch_path_spec \
16608 reload_cmds_GO \
16609 old_archive_cmds_GO \
16610 old_archive_from_new_cmds_GO \
16611 old_archive_from_expsyms_cmds_GO \
16612 archive_cmds_GO \
16613 archive_expsym_cmds_GO \
16614 module_cmds_GO \
16615 module_expsym_cmds_GO \
16616 export_symbols_cmds_GO \
16617 prelink_cmds_GO; do
16618 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16619 *[\\\\\\\`\\"\\\$]*)
16620 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16623 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16625 esac
16626 done
16628 ac_aux_dir='$ac_aux_dir'
16629 xsi_shell='$xsi_shell'
16630 lt_shell_append='$lt_shell_append'
16632 # See if we are running on zsh, and set the options which allow our
16633 # commands through without removal of \ escapes INIT.
16634 if test -n "\${ZSH_VERSION+set}" ; then
16635 setopt NO_GLOB_SUBST
16639 PACKAGE='$PACKAGE'
16640 VERSION='$VERSION'
16641 TIMESTAMP='$TIMESTAMP'
16642 RM='$RM'
16643 ofile='$ofile'
16650 # Variables needed in config.status (file generation) which aren't already
16651 # passed by autoconf.
16652 SUBDIRS="$SUBDIRS"
16655 _ACEOF
16657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16659 # Handling of arguments.
16660 for ac_config_target in $ac_config_targets
16662 case $ac_config_target in
16663 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16664 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16665 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16666 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16667 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16668 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16669 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16671 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16672 esac
16673 done
16676 # If the user did not use the arguments to specify the items to instantiate,
16677 # then the envvar interface is used. Set only those that are not.
16678 # We use the long form for the default assignment because of an extremely
16679 # bizarre bug on SunOS 4.1.3.
16680 if $ac_need_defaults; then
16681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16686 # Have a temporary directory for convenience. Make it in the build tree
16687 # simply because there is no reason against having it here, and in addition,
16688 # creating and moving files from /tmp can sometimes cause problems.
16689 # Hook for its removal unless debugging.
16690 # Note that there is a small window in which the directory will not be cleaned:
16691 # after its creation but before its name has been assigned to `$tmp'.
16692 $debug ||
16694 tmp=
16695 trap 'exit_status=$?
16696 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16698 trap 'as_fn_exit 1' 1 2 13 15
16700 # Create a (secure) tmp directory for tmp files.
16703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16704 test -n "$tmp" && test -d "$tmp"
16705 } ||
16707 tmp=./conf$$-$RANDOM
16708 (umask 077 && mkdir "$tmp")
16709 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16711 # Set up the scripts for CONFIG_FILES section.
16712 # No need to generate them if there are no CONFIG_FILES.
16713 # This happens for instance with `./config.status config.h'.
16714 if test -n "$CONFIG_FILES"; then
16717 ac_cr=`echo X | tr X '\015'`
16718 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16719 # But we know of no other shell where ac_cr would be empty at this
16720 # point, so we can use a bashism as a fallback.
16721 if test "x$ac_cr" = x; then
16722 eval ac_cr=\$\'\\r\'
16724 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16725 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16726 ac_cs_awk_cr='\r'
16727 else
16728 ac_cs_awk_cr=$ac_cr
16731 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16732 _ACEOF
16736 echo "cat >conf$$subs.awk <<_ACEOF" &&
16737 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16738 echo "_ACEOF"
16739 } >conf$$subs.sh ||
16740 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16741 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16742 ac_delim='%!_!# '
16743 for ac_last_try in false false false false false :; do
16744 . ./conf$$subs.sh ||
16745 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16747 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16748 if test $ac_delim_n = $ac_delim_num; then
16749 break
16750 elif $ac_last_try; then
16751 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16752 else
16753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16755 done
16756 rm -f conf$$subs.sh
16758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16759 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16760 _ACEOF
16761 sed -n '
16763 s/^/S["/; s/!.*/"]=/
16766 s/^[^!]*!//
16767 :repl
16768 t repl
16769 s/'"$ac_delim"'$//
16770 t delim
16773 s/\(.\{148\}\).*/\1/
16774 t more1
16775 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16778 b repl
16779 :more1
16780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16783 s/.\{148\}//
16784 t nl
16785 :delim
16787 s/\(.\{148\}\).*/\1/
16788 t more2
16789 s/["\\]/\\&/g; s/^/"/; s/$/"/
16792 :more2
16793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16796 s/.\{148\}//
16797 t delim
16798 ' <conf$$subs.awk | sed '
16799 /^[^""]/{
16801 s/\n//
16803 ' >>$CONFIG_STATUS || ac_write_fail=1
16804 rm -f conf$$subs.awk
16805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16806 _ACAWK
16807 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16808 for (key in S) S_is_set[key] = 1
16809 FS = "\a"
16813 line = $ 0
16814 nfields = split(line, field, "@")
16815 substed = 0
16816 len = length(field[1])
16817 for (i = 2; i < nfields; i++) {
16818 key = field[i]
16819 keylen = length(key)
16820 if (S_is_set[key]) {
16821 value = S[key]
16822 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16823 len += length(value) + length(field[++i])
16824 substed = 1
16825 } else
16826 len += 1 + keylen
16829 print line
16832 _ACAWK
16833 _ACEOF
16834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16835 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16837 else
16839 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16840 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16841 _ACEOF
16843 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16844 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16845 # trailing colons and then remove the whole line if VPATH becomes empty
16846 # (actually we leave an empty line to preserve line numbers).
16847 if test "x$srcdir" = x.; then
16848 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16849 s/:*\$(srcdir):*/:/
16850 s/:*\${srcdir}:*/:/
16851 s/:*@srcdir@:*/:/
16852 s/^\([^=]*=[ ]*\):*/\1/
16853 s/:*$//
16854 s/^[^=]*=[ ]*$//
16858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16859 fi # test -n "$CONFIG_FILES"
16861 # Set up the scripts for CONFIG_HEADERS section.
16862 # No need to generate them if there are no CONFIG_HEADERS.
16863 # This happens for instance with `./config.status Makefile'.
16864 if test -n "$CONFIG_HEADERS"; then
16865 cat >"$tmp/defines.awk" <<\_ACAWK ||
16866 BEGIN {
16867 _ACEOF
16869 # Transform confdefs.h into an awk script `defines.awk', embedded as
16870 # here-document in config.status, that substitutes the proper values into
16871 # config.h.in to produce config.h.
16873 # Create a delimiter string that does not exist in confdefs.h, to ease
16874 # handling of long lines.
16875 ac_delim='%!_!# '
16876 for ac_last_try in false false :; do
16877 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16878 if test -z "$ac_t"; then
16879 break
16880 elif $ac_last_try; then
16881 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16882 else
16883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16885 done
16887 # For the awk script, D is an array of macro values keyed by name,
16888 # likewise P contains macro parameters if any. Preserve backslash
16889 # newline sequences.
16891 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16892 sed -n '
16893 s/.\{148\}/&'"$ac_delim"'/g
16894 t rset
16895 :rset
16896 s/^[ ]*#[ ]*define[ ][ ]*/ /
16897 t def
16899 :def
16900 s/\\$//
16901 t bsnl
16902 s/["\\]/\\&/g
16903 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16904 D["\1"]=" \3"/p
16905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16907 :bsnl
16908 s/["\\]/\\&/g
16909 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16910 D["\1"]=" \3\\\\\\n"\\/p
16911 t cont
16912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16913 t cont
16915 :cont
16917 s/.\{148\}/&'"$ac_delim"'/g
16918 t clear
16919 :clear
16920 s/\\$//
16921 t bsnlc
16922 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16924 :bsnlc
16925 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16926 b cont
16927 ' <confdefs.h | sed '
16928 s/'"$ac_delim"'/"\\\
16929 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16932 for (key in D) D_is_set[key] = 1
16933 FS = "\a"
16935 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16936 line = \$ 0
16937 split(line, arg, " ")
16938 if (arg[1] == "#") {
16939 defundef = arg[2]
16940 mac1 = arg[3]
16941 } else {
16942 defundef = substr(arg[1], 2)
16943 mac1 = arg[2]
16945 split(mac1, mac2, "(") #)
16946 macro = mac2[1]
16947 prefix = substr(line, 1, index(line, defundef) - 1)
16948 if (D_is_set[macro]) {
16949 # Preserve the white space surrounding the "#".
16950 print prefix "define", macro P[macro] D[macro]
16951 next
16952 } else {
16953 # Replace #undef with comments. This is necessary, for example,
16954 # in the case of _POSIX_SOURCE, which is predefined and required
16955 # on some systems where configure will not decide to define it.
16956 if (defundef == "undef") {
16957 print "/*", prefix defundef, macro, "*/"
16958 next
16962 { print }
16963 _ACAWK
16964 _ACEOF
16965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16966 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16967 fi # test -n "$CONFIG_HEADERS"
16970 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16971 shift
16972 for ac_tag
16974 case $ac_tag in
16975 :[FHLC]) ac_mode=$ac_tag; continue;;
16976 esac
16977 case $ac_mode$ac_tag in
16978 :[FHL]*:*);;
16979 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16980 :[FH]-) ac_tag=-:-;;
16981 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16982 esac
16983 ac_save_IFS=$IFS
16984 IFS=:
16985 set x $ac_tag
16986 IFS=$ac_save_IFS
16987 shift
16988 ac_file=$1
16989 shift
16991 case $ac_mode in
16992 :L) ac_source=$1;;
16993 :[FH])
16994 ac_file_inputs=
16995 for ac_f
16997 case $ac_f in
16998 -) ac_f="$tmp/stdin";;
16999 *) # Look for the file first in the build tree, then in the source tree
17000 # (if the path is not absolute). The absolute path cannot be DOS-style,
17001 # because $ac_f cannot contain `:'.
17002 test -f "$ac_f" ||
17003 case $ac_f in
17004 [\\/$]*) false;;
17005 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17006 esac ||
17007 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17008 esac
17009 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17010 as_fn_append ac_file_inputs " '$ac_f'"
17011 done
17013 # Let's still pretend it is `configure' which instantiates (i.e., don't
17014 # use $as_me), people would be surprised to read:
17015 # /* config.h. Generated by config.status. */
17016 configure_input='Generated from '`
17017 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17018 `' by configure.'
17019 if test x"$ac_file" != x-; then
17020 configure_input="$ac_file. $configure_input"
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17022 $as_echo "$as_me: creating $ac_file" >&6;}
17024 # Neutralize special characters interpreted by sed in replacement strings.
17025 case $configure_input in #(
17026 *\&* | *\|* | *\\* )
17027 ac_sed_conf_input=`$as_echo "$configure_input" |
17028 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17029 *) ac_sed_conf_input=$configure_input;;
17030 esac
17032 case $ac_tag in
17033 *:-:* | *:-) cat >"$tmp/stdin" \
17034 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17035 esac
17037 esac
17039 ac_dir=`$as_dirname -- "$ac_file" ||
17040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17041 X"$ac_file" : 'X\(//\)[^/]' \| \
17042 X"$ac_file" : 'X\(//\)$' \| \
17043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17044 $as_echo X"$ac_file" |
17045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17046 s//\1/
17049 /^X\(\/\/\)[^/].*/{
17050 s//\1/
17053 /^X\(\/\/\)$/{
17054 s//\1/
17057 /^X\(\/\).*/{
17058 s//\1/
17061 s/.*/./; q'`
17062 as_dir="$ac_dir"; as_fn_mkdir_p
17063 ac_builddir=.
17065 case "$ac_dir" in
17066 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17068 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17069 # A ".." for each directory in $ac_dir_suffix.
17070 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17071 case $ac_top_builddir_sub in
17072 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17073 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17074 esac ;;
17075 esac
17076 ac_abs_top_builddir=$ac_pwd
17077 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17078 # for backward compatibility:
17079 ac_top_builddir=$ac_top_build_prefix
17081 case $srcdir in
17082 .) # We are building in place.
17083 ac_srcdir=.
17084 ac_top_srcdir=$ac_top_builddir_sub
17085 ac_abs_top_srcdir=$ac_pwd ;;
17086 [\\/]* | ?:[\\/]* ) # Absolute name.
17087 ac_srcdir=$srcdir$ac_dir_suffix;
17088 ac_top_srcdir=$srcdir
17089 ac_abs_top_srcdir=$srcdir ;;
17090 *) # Relative name.
17091 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17092 ac_top_srcdir=$ac_top_build_prefix$srcdir
17093 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17094 esac
17095 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17098 case $ac_mode in
17101 # CONFIG_FILE
17104 case $INSTALL in
17105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17106 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17107 esac
17108 ac_MKDIR_P=$MKDIR_P
17109 case $MKDIR_P in
17110 [\\/$]* | ?:[\\/]* ) ;;
17111 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17112 esac
17113 _ACEOF
17115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17116 # If the template does not know about datarootdir, expand it.
17117 # FIXME: This hack should be removed a few years after 2.60.
17118 ac_datarootdir_hack=; ac_datarootdir_seen=
17119 ac_sed_dataroot='
17120 /datarootdir/ {
17124 /@datadir@/p
17125 /@docdir@/p
17126 /@infodir@/p
17127 /@localedir@/p
17128 /@mandir@/p'
17129 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17130 *datarootdir*) ac_datarootdir_seen=yes;;
17131 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17133 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17134 _ACEOF
17135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17136 ac_datarootdir_hack='
17137 s&@datadir@&$datadir&g
17138 s&@docdir@&$docdir&g
17139 s&@infodir@&$infodir&g
17140 s&@localedir@&$localedir&g
17141 s&@mandir@&$mandir&g
17142 s&\\\${datarootdir}&$datarootdir&g' ;;
17143 esac
17144 _ACEOF
17146 # Neutralize VPATH when `$srcdir' = `.'.
17147 # Shell code in configure.ac might set extrasub.
17148 # FIXME: do we really want to maintain this feature?
17149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17150 ac_sed_extra="$ac_vpsub
17151 $extrasub
17152 _ACEOF
17153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17156 s|@configure_input@|$ac_sed_conf_input|;t t
17157 s&@top_builddir@&$ac_top_builddir_sub&;t t
17158 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17159 s&@srcdir@&$ac_srcdir&;t t
17160 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17161 s&@top_srcdir@&$ac_top_srcdir&;t t
17162 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17163 s&@builddir@&$ac_builddir&;t t
17164 s&@abs_builddir@&$ac_abs_builddir&;t t
17165 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17166 s&@INSTALL@&$ac_INSTALL&;t t
17167 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17168 $ac_datarootdir_hack
17170 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17171 || as_fn_error "could not create $ac_file" "$LINENO" 5
17173 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17174 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17177 which seems to be undefined. Please make sure it is defined." >&5
17178 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17179 which seems to be undefined. Please make sure it is defined." >&2;}
17181 rm -f "$tmp/stdin"
17182 case $ac_file in
17183 -) cat "$tmp/out" && rm -f "$tmp/out";;
17184 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17185 esac \
17186 || as_fn_error "could not create $ac_file" "$LINENO" 5
17190 # CONFIG_HEADER
17192 if test x"$ac_file" != x-; then
17194 $as_echo "/* $configure_input */" \
17195 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17196 } >"$tmp/config.h" \
17197 || as_fn_error "could not create $ac_file" "$LINENO" 5
17198 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17200 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17201 else
17202 rm -f "$ac_file"
17203 mv "$tmp/config.h" "$ac_file" \
17204 || as_fn_error "could not create $ac_file" "$LINENO" 5
17206 else
17207 $as_echo "/* $configure_input */" \
17208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17209 || as_fn_error "could not create -" "$LINENO" 5
17211 # Compute "$ac_file"'s index in $config_headers.
17212 _am_arg="$ac_file"
17213 _am_stamp_count=1
17214 for _am_header in $config_headers :; do
17215 case $_am_header in
17216 $_am_arg | $_am_arg:* )
17217 break ;;
17219 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17220 esac
17221 done
17222 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17223 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17224 X"$_am_arg" : 'X\(//\)[^/]' \| \
17225 X"$_am_arg" : 'X\(//\)$' \| \
17226 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17227 $as_echo X"$_am_arg" |
17228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17229 s//\1/
17232 /^X\(\/\/\)[^/].*/{
17233 s//\1/
17236 /^X\(\/\/\)$/{
17237 s//\1/
17240 /^X\(\/\).*/{
17241 s//\1/
17244 s/.*/./; q'`/stamp-h$_am_stamp_count
17247 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17248 $as_echo "$as_me: executing $ac_file commands" >&6;}
17250 esac
17253 case $ac_file$ac_mode in
17254 "default-1":C)
17255 # Only add multilib support code if we just rebuilt the top-level
17256 # Makefile.
17257 case " $CONFIG_FILES " in
17258 *" Makefile "*)
17259 ac_file=Makefile . ${multi_basedir}/config-ml.in
17261 esac ;;
17262 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17263 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17264 # are listed without --file. Let's play safe and only enable the eval
17265 # if we detect the quoting.
17266 case $CONFIG_FILES in
17267 *\'*) eval set x "$CONFIG_FILES" ;;
17268 *) set x $CONFIG_FILES ;;
17269 esac
17270 shift
17271 for mf
17273 # Strip MF so we end up with the name of the file.
17274 mf=`echo "$mf" | sed -e 's/:.*$//'`
17275 # Check whether this is an Automake generated Makefile or not.
17276 # We used to match only the files named `Makefile.in', but
17277 # some people rename them; so instead we look at the file content.
17278 # Grep'ing the first line is not enough: some people post-process
17279 # each Makefile.in and add a new line on top of each file to say so.
17280 # Grep'ing the whole file is not good either: AIX grep has a line
17281 # limit of 2048, but all sed's we know have understand at least 4000.
17282 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17283 dirpart=`$as_dirname -- "$mf" ||
17284 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17285 X"$mf" : 'X\(//\)[^/]' \| \
17286 X"$mf" : 'X\(//\)$' \| \
17287 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17288 $as_echo X"$mf" |
17289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17290 s//\1/
17293 /^X\(\/\/\)[^/].*/{
17294 s//\1/
17297 /^X\(\/\/\)$/{
17298 s//\1/
17301 /^X\(\/\).*/{
17302 s//\1/
17305 s/.*/./; q'`
17306 else
17307 continue
17309 # Extract the definition of DEPDIR, am__include, and am__quote
17310 # from the Makefile without running `make'.
17311 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17312 test -z "$DEPDIR" && continue
17313 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17314 test -z "am__include" && continue
17315 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17316 # When using ansi2knr, U may be empty or an underscore; expand it
17317 U=`sed -n 's/^U = //p' < "$mf"`
17318 # Find all dependency output files, they are included files with
17319 # $(DEPDIR) in their names. We invoke sed twice because it is the
17320 # simplest approach to changing $(DEPDIR) to its actual value in the
17321 # expansion.
17322 for file in `sed -n "
17323 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17324 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17325 # Make sure the directory exists.
17326 test -f "$dirpart/$file" && continue
17327 fdir=`$as_dirname -- "$file" ||
17328 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17329 X"$file" : 'X\(//\)[^/]' \| \
17330 X"$file" : 'X\(//\)$' \| \
17331 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17332 $as_echo X"$file" |
17333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17334 s//\1/
17337 /^X\(\/\/\)[^/].*/{
17338 s//\1/
17341 /^X\(\/\/\)$/{
17342 s//\1/
17345 /^X\(\/\).*/{
17346 s//\1/
17349 s/.*/./; q'`
17350 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17351 # echo "creating $dirpart/$file"
17352 echo '# dummy' > "$dirpart/$file"
17353 done
17354 done
17357 "libtool":C)
17359 # See if we are running on zsh, and set the options which allow our
17360 # commands through without removal of \ escapes.
17361 if test -n "${ZSH_VERSION+set}" ; then
17362 setopt NO_GLOB_SUBST
17365 cfgfile="${ofile}T"
17366 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17367 $RM "$cfgfile"
17369 cat <<_LT_EOF >> "$cfgfile"
17370 #! $SHELL
17372 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17373 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17375 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17377 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17378 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17379 # Written by Gordon Matzigkeit, 1996
17381 # This file is part of GNU Libtool.
17383 # GNU Libtool is free software; you can redistribute it and/or
17384 # modify it under the terms of the GNU General Public License as
17385 # published by the Free Software Foundation; either version 2 of
17386 # the License, or (at your option) any later version.
17388 # As a special exception to the GNU General Public License,
17389 # if you distribute this file as part of a program or library that
17390 # is built using GNU Libtool, you may include this file under the
17391 # same distribution terms that you use for the rest of that program.
17393 # GNU Libtool is distributed in the hope that it will be useful,
17394 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17395 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17396 # GNU General Public License for more details.
17398 # You should have received a copy of the GNU General Public License
17399 # along with GNU Libtool; see the file COPYING. If not, a copy
17400 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17401 # obtained by writing to the Free Software Foundation, Inc.,
17402 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17405 # The names of the tagged configurations supported by this script.
17406 available_tags="GO "
17408 # ### BEGIN LIBTOOL CONFIG
17410 # A sed program that does not truncate output.
17411 SED=$lt_SED
17413 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17414 Xsed="\$SED -e 1s/^X//"
17416 # A grep program that handles long lines.
17417 GREP=$lt_GREP
17419 # An ERE matcher.
17420 EGREP=$lt_EGREP
17422 # A literal string matcher.
17423 FGREP=$lt_FGREP
17425 # Shell to use when invoking shell scripts.
17426 SHELL=$lt_SHELL
17428 # An echo program that protects backslashes.
17429 ECHO=$lt_ECHO
17431 # Which release of libtool.m4 was used?
17432 macro_version=$macro_version
17433 macro_revision=$macro_revision
17435 # Whether or not to build shared libraries.
17436 build_libtool_libs=$enable_shared
17438 # Whether or not to build static libraries.
17439 build_old_libs=$enable_static
17441 # What type of objects to build.
17442 pic_mode=$pic_mode
17444 # Whether or not to optimize for fast installation.
17445 fast_install=$enable_fast_install
17447 # The host system.
17448 host_alias=$host_alias
17449 host=$host
17450 host_os=$host_os
17452 # The build system.
17453 build_alias=$build_alias
17454 build=$build
17455 build_os=$build_os
17457 # A BSD- or MS-compatible name lister.
17458 NM=$lt_NM
17460 # Whether we need soft or hard links.
17461 LN_S=$lt_LN_S
17463 # What is the maximum length of a command?
17464 max_cmd_len=$max_cmd_len
17466 # Object file suffix (normally "o").
17467 objext=$ac_objext
17469 # Executable file suffix (normally "").
17470 exeext=$exeext
17472 # whether the shell understands "unset".
17473 lt_unset=$lt_unset
17475 # turn spaces into newlines.
17476 SP2NL=$lt_lt_SP2NL
17478 # turn newlines into spaces.
17479 NL2SP=$lt_lt_NL2SP
17481 # An object symbol dumper.
17482 OBJDUMP=$lt_OBJDUMP
17484 # Method to check whether dependent libraries are shared objects.
17485 deplibs_check_method=$lt_deplibs_check_method
17487 # Command to use when deplibs_check_method == "file_magic".
17488 file_magic_cmd=$lt_file_magic_cmd
17490 # The archiver.
17491 AR=$lt_AR
17492 AR_FLAGS=$lt_AR_FLAGS
17494 # A symbol stripping program.
17495 STRIP=$lt_STRIP
17497 # Commands used to install an old-style archive.
17498 RANLIB=$lt_RANLIB
17499 old_postinstall_cmds=$lt_old_postinstall_cmds
17500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17502 # Whether to use a lock for old archive extraction.
17503 lock_old_archive_extraction=$lock_old_archive_extraction
17505 # A C compiler.
17506 LTCC=$lt_CC
17508 # LTCC compiler flags.
17509 LTCFLAGS=$lt_CFLAGS
17511 # Take the output of nm and produce a listing of raw symbols and C names.
17512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17514 # Transform the output of nm in a proper C declaration.
17515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17517 # Transform the output of nm in a C name address pair.
17518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17520 # Transform the output of nm in a C name address pair when lib prefix is needed.
17521 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17523 # The name of the directory that contains temporary libtool files.
17524 objdir=$objdir
17526 # Used to examine libraries when file_magic_cmd begins with "file".
17527 MAGIC_CMD=$MAGIC_CMD
17529 # Must we lock files when doing compilation?
17530 need_locks=$lt_need_locks
17532 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17533 DSYMUTIL=$lt_DSYMUTIL
17535 # Tool to change global to local symbols on Mac OS X.
17536 NMEDIT=$lt_NMEDIT
17538 # Tool to manipulate fat objects and archives on Mac OS X.
17539 LIPO=$lt_LIPO
17541 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17542 OTOOL=$lt_OTOOL
17544 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17545 OTOOL64=$lt_OTOOL64
17547 # Old archive suffix (normally "a").
17548 libext=$libext
17550 # Shared library suffix (normally ".so").
17551 shrext_cmds=$lt_shrext_cmds
17553 # The commands to extract the exported symbol list from a shared archive.
17554 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17556 # Variables whose values should be saved in libtool wrapper scripts and
17557 # restored at link time.
17558 variables_saved_for_relink=$lt_variables_saved_for_relink
17560 # Do we need the "lib" prefix for modules?
17561 need_lib_prefix=$need_lib_prefix
17563 # Do we need a version for libraries?
17564 need_version=$need_version
17566 # Library versioning type.
17567 version_type=$version_type
17569 # Shared library runtime path variable.
17570 runpath_var=$runpath_var
17572 # Shared library path variable.
17573 shlibpath_var=$shlibpath_var
17575 # Is shlibpath searched before the hard-coded library search path?
17576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17578 # Format of library name prefix.
17579 libname_spec=$lt_libname_spec
17581 # List of archive names. First name is the real one, the rest are links.
17582 # The last name is the one that the linker finds with -lNAME
17583 library_names_spec=$lt_library_names_spec
17585 # The coded name of the library, if different from the real name.
17586 soname_spec=$lt_soname_spec
17588 # Permission mode override for installation of shared libraries.
17589 install_override_mode=$lt_install_override_mode
17591 # Command to use after installation of a shared archive.
17592 postinstall_cmds=$lt_postinstall_cmds
17594 # Command to use after uninstallation of a shared archive.
17595 postuninstall_cmds=$lt_postuninstall_cmds
17597 # Commands used to finish a libtool library installation in a directory.
17598 finish_cmds=$lt_finish_cmds
17600 # As "finish_cmds", except a single script fragment to be evaled but
17601 # not shown.
17602 finish_eval=$lt_finish_eval
17604 # Whether we should hardcode library paths into libraries.
17605 hardcode_into_libs=$hardcode_into_libs
17607 # Compile-time system search path for libraries.
17608 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17610 # Run-time system search path for libraries.
17611 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17613 # Whether dlopen is supported.
17614 dlopen_support=$enable_dlopen
17616 # Whether dlopen of programs is supported.
17617 dlopen_self=$enable_dlopen_self
17619 # Whether dlopen of statically linked programs is supported.
17620 dlopen_self_static=$enable_dlopen_self_static
17622 # Commands to strip libraries.
17623 old_striplib=$lt_old_striplib
17624 striplib=$lt_striplib
17627 # The linker used to build libraries.
17628 LD=$lt_LD
17630 # How to create reloadable object files.
17631 reload_flag=$lt_reload_flag
17632 reload_cmds=$lt_reload_cmds
17634 # Commands used to build an old-style archive.
17635 old_archive_cmds=$lt_old_archive_cmds
17637 # A language specific compiler.
17638 CC=$lt_compiler
17640 # Is the compiler the GNU compiler?
17641 with_gcc=$GCC
17643 # Compiler flag to turn off builtin functions.
17644 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17646 # How to pass a linker flag through the compiler.
17647 wl=$lt_lt_prog_compiler_wl
17649 # Additional compiler flags for building library objects.
17650 pic_flag=$lt_lt_prog_compiler_pic
17652 # Compiler flag to prevent dynamic linking.
17653 link_static_flag=$lt_lt_prog_compiler_static
17655 # Does compiler simultaneously support -c and -o options?
17656 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17658 # Whether or not to add -lc for building shared libraries.
17659 build_libtool_need_lc=$archive_cmds_need_lc
17661 # Whether or not to disallow shared libs when runtime libs are static.
17662 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17664 # Compiler flag to allow reflexive dlopens.
17665 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17667 # Compiler flag to generate shared objects directly from archives.
17668 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17670 # Whether the compiler copes with passing no objects directly.
17671 compiler_needs_object=$lt_compiler_needs_object
17673 # Create an old-style archive from a shared archive.
17674 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17676 # Create a temporary old-style archive to link instead of a shared archive.
17677 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17679 # Commands used to build a shared archive.
17680 archive_cmds=$lt_archive_cmds
17681 archive_expsym_cmds=$lt_archive_expsym_cmds
17683 # Commands used to build a loadable module if different from building
17684 # a shared archive.
17685 module_cmds=$lt_module_cmds
17686 module_expsym_cmds=$lt_module_expsym_cmds
17688 # Whether we are building with GNU ld or not.
17689 with_gnu_ld=$lt_with_gnu_ld
17691 # Flag that allows shared libraries with undefined symbols to be built.
17692 allow_undefined_flag=$lt_allow_undefined_flag
17694 # Flag that enforces no undefined symbols.
17695 no_undefined_flag=$lt_no_undefined_flag
17697 # Flag to hardcode \$libdir into a binary during linking.
17698 # This must work even if \$libdir does not exist
17699 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17701 # If ld is used when linking, flag to hardcode \$libdir into a binary
17702 # during linking. This must work even if \$libdir does not exist.
17703 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17705 # Whether we need a single "-rpath" flag with a separated argument.
17706 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17708 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17709 # DIR into the resulting binary.
17710 hardcode_direct=$hardcode_direct
17712 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17713 # DIR into the resulting binary and the resulting library dependency is
17714 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17715 # library is relocated.
17716 hardcode_direct_absolute=$hardcode_direct_absolute
17718 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17719 # into the resulting binary.
17720 hardcode_minus_L=$hardcode_minus_L
17722 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17723 # into the resulting binary.
17724 hardcode_shlibpath_var=$hardcode_shlibpath_var
17726 # Set to "yes" if building a shared library automatically hardcodes DIR
17727 # into the library and all subsequent libraries and executables linked
17728 # against it.
17729 hardcode_automatic=$hardcode_automatic
17731 # Set to yes if linker adds runtime paths of dependent libraries
17732 # to runtime path list.
17733 inherit_rpath=$inherit_rpath
17735 # Whether libtool must link a program against all its dependency libraries.
17736 link_all_deplibs=$link_all_deplibs
17738 # Fix the shell variable \$srcfile for the compiler.
17739 fix_srcfile_path=$lt_fix_srcfile_path
17741 # Set to "yes" if exported symbols are required.
17742 always_export_symbols=$always_export_symbols
17744 # The commands to list exported symbols.
17745 export_symbols_cmds=$lt_export_symbols_cmds
17747 # Symbols that should not be listed in the preloaded symbols.
17748 exclude_expsyms=$lt_exclude_expsyms
17750 # Symbols that must always be exported.
17751 include_expsyms=$lt_include_expsyms
17753 # Commands necessary for linking programs (against libraries) with templates.
17754 prelink_cmds=$lt_prelink_cmds
17756 # Specify filename containing input files.
17757 file_list_spec=$lt_file_list_spec
17759 # How to hardcode a shared library path into an executable.
17760 hardcode_action=$hardcode_action
17762 # ### END LIBTOOL CONFIG
17764 _LT_EOF
17766 case $host_os in
17767 aix3*)
17768 cat <<\_LT_EOF >> "$cfgfile"
17769 # AIX sometimes has problems with the GCC collect2 program. For some
17770 # reason, if we set the COLLECT_NAMES environment variable, the problems
17771 # vanish in a puff of smoke.
17772 if test "X${COLLECT_NAMES+set}" != Xset; then
17773 COLLECT_NAMES=
17774 export COLLECT_NAMES
17776 _LT_EOF
17778 esac
17781 ltmain="$ac_aux_dir/ltmain.sh"
17784 # We use sed instead of cat because bash on DJGPP gets confused if
17785 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17786 # text mode, it properly converts lines to CR/LF. This bash problem
17787 # is reportedly fixed, but why not run on old versions too?
17788 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17789 || (rm -f "$cfgfile"; exit 1)
17791 case $xsi_shell in
17792 yes)
17793 cat << \_LT_EOF >> "$cfgfile"
17795 # func_dirname file append nondir_replacement
17796 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17797 # otherwise set result to NONDIR_REPLACEMENT.
17798 func_dirname ()
17800 case ${1} in
17801 */*) func_dirname_result="${1%/*}${2}" ;;
17802 * ) func_dirname_result="${3}" ;;
17803 esac
17806 # func_basename file
17807 func_basename ()
17809 func_basename_result="${1##*/}"
17812 # func_dirname_and_basename file append nondir_replacement
17813 # perform func_basename and func_dirname in a single function
17814 # call:
17815 # dirname: Compute the dirname of FILE. If nonempty,
17816 # add APPEND to the result, otherwise set result
17817 # to NONDIR_REPLACEMENT.
17818 # value returned in "$func_dirname_result"
17819 # basename: Compute filename of FILE.
17820 # value retuned in "$func_basename_result"
17821 # Implementation must be kept synchronized with func_dirname
17822 # and func_basename. For efficiency, we do not delegate to
17823 # those functions but instead duplicate the functionality here.
17824 func_dirname_and_basename ()
17826 case ${1} in
17827 */*) func_dirname_result="${1%/*}${2}" ;;
17828 * ) func_dirname_result="${3}" ;;
17829 esac
17830 func_basename_result="${1##*/}"
17833 # func_stripname prefix suffix name
17834 # strip PREFIX and SUFFIX off of NAME.
17835 # PREFIX and SUFFIX must not contain globbing or regex special
17836 # characters, hashes, percent signs, but SUFFIX may contain a leading
17837 # dot (in which case that matches only a dot).
17838 func_stripname ()
17840 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17841 # positional parameters, so assign one to ordinary parameter first.
17842 func_stripname_result=${3}
17843 func_stripname_result=${func_stripname_result#"${1}"}
17844 func_stripname_result=${func_stripname_result%"${2}"}
17847 # func_opt_split
17848 func_opt_split ()
17850 func_opt_split_opt=${1%%=*}
17851 func_opt_split_arg=${1#*=}
17854 # func_lo2o object
17855 func_lo2o ()
17857 case ${1} in
17858 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17859 *) func_lo2o_result=${1} ;;
17860 esac
17863 # func_xform libobj-or-source
17864 func_xform ()
17866 func_xform_result=${1%.*}.lo
17869 # func_arith arithmetic-term...
17870 func_arith ()
17872 func_arith_result=$(( $* ))
17875 # func_len string
17876 # STRING may not start with a hyphen.
17877 func_len ()
17879 func_len_result=${#1}
17882 _LT_EOF
17884 *) # Bourne compatible functions.
17885 cat << \_LT_EOF >> "$cfgfile"
17887 # func_dirname file append nondir_replacement
17888 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17889 # otherwise set result to NONDIR_REPLACEMENT.
17890 func_dirname ()
17892 # Extract subdirectory from the argument.
17893 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17894 if test "X$func_dirname_result" = "X${1}"; then
17895 func_dirname_result="${3}"
17896 else
17897 func_dirname_result="$func_dirname_result${2}"
17901 # func_basename file
17902 func_basename ()
17904 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17908 # func_stripname prefix suffix name
17909 # strip PREFIX and SUFFIX off of NAME.
17910 # PREFIX and SUFFIX must not contain globbing or regex special
17911 # characters, hashes, percent signs, but SUFFIX may contain a leading
17912 # dot (in which case that matches only a dot).
17913 # func_strip_suffix prefix name
17914 func_stripname ()
17916 case ${2} in
17917 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17918 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17919 esac
17922 # sed scripts:
17923 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17924 my_sed_long_arg='1s/^-[^=]*=//'
17926 # func_opt_split
17927 func_opt_split ()
17929 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17930 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17933 # func_lo2o object
17934 func_lo2o ()
17936 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17939 # func_xform libobj-or-source
17940 func_xform ()
17942 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17945 # func_arith arithmetic-term...
17946 func_arith ()
17948 func_arith_result=`expr "$@"`
17951 # func_len string
17952 # STRING may not start with a hyphen.
17953 func_len ()
17955 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17958 _LT_EOF
17959 esac
17961 case $lt_shell_append in
17962 yes)
17963 cat << \_LT_EOF >> "$cfgfile"
17965 # func_append var value
17966 # Append VALUE to the end of shell variable VAR.
17967 func_append ()
17969 eval "$1+=\$2"
17971 _LT_EOF
17974 cat << \_LT_EOF >> "$cfgfile"
17976 # func_append var value
17977 # Append VALUE to the end of shell variable VAR.
17978 func_append ()
17980 eval "$1=\$$1\$2"
17983 _LT_EOF
17985 esac
17988 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17989 || (rm -f "$cfgfile"; exit 1)
17991 mv -f "$cfgfile" "$ofile" ||
17992 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17993 chmod +x "$ofile"
17996 cat <<_LT_EOF >> "$ofile"
17998 # ### BEGIN LIBTOOL TAG CONFIG: GO
18000 # The linker used to build libraries.
18001 LD=$lt_LD_GO
18003 # How to create reloadable object files.
18004 reload_flag=$lt_reload_flag_GO
18005 reload_cmds=$lt_reload_cmds_GO
18007 # Commands used to build an old-style archive.
18008 old_archive_cmds=$lt_old_archive_cmds_GO
18010 # A language specific compiler.
18011 CC=$lt_compiler_GO
18013 # Is the compiler the GNU compiler?
18014 with_gcc=$GCC_GO
18016 # Compiler flag to turn off builtin functions.
18017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18019 # How to pass a linker flag through the compiler.
18020 wl=$lt_lt_prog_compiler_wl_GO
18022 # Additional compiler flags for building library objects.
18023 pic_flag=$lt_lt_prog_compiler_pic_GO
18025 # Compiler flag to prevent dynamic linking.
18026 link_static_flag=$lt_lt_prog_compiler_static_GO
18028 # Does compiler simultaneously support -c and -o options?
18029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18031 # Whether or not to add -lc for building shared libraries.
18032 build_libtool_need_lc=$archive_cmds_need_lc_GO
18034 # Whether or not to disallow shared libs when runtime libs are static.
18035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18037 # Compiler flag to allow reflexive dlopens.
18038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18040 # Compiler flag to generate shared objects directly from archives.
18041 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18043 # Whether the compiler copes with passing no objects directly.
18044 compiler_needs_object=$lt_compiler_needs_object_GO
18046 # Create an old-style archive from a shared archive.
18047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18049 # Create a temporary old-style archive to link instead of a shared archive.
18050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18052 # Commands used to build a shared archive.
18053 archive_cmds=$lt_archive_cmds_GO
18054 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18056 # Commands used to build a loadable module if different from building
18057 # a shared archive.
18058 module_cmds=$lt_module_cmds_GO
18059 module_expsym_cmds=$lt_module_expsym_cmds_GO
18061 # Whether we are building with GNU ld or not.
18062 with_gnu_ld=$lt_with_gnu_ld_GO
18064 # Flag that allows shared libraries with undefined symbols to be built.
18065 allow_undefined_flag=$lt_allow_undefined_flag_GO
18067 # Flag that enforces no undefined symbols.
18068 no_undefined_flag=$lt_no_undefined_flag_GO
18070 # Flag to hardcode \$libdir into a binary during linking.
18071 # This must work even if \$libdir does not exist
18072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18074 # If ld is used when linking, flag to hardcode \$libdir into a binary
18075 # during linking. This must work even if \$libdir does not exist.
18076 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18078 # Whether we need a single "-rpath" flag with a separated argument.
18079 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18081 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18082 # DIR into the resulting binary.
18083 hardcode_direct=$hardcode_direct_GO
18085 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18086 # DIR into the resulting binary and the resulting library dependency is
18087 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18088 # library is relocated.
18089 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18091 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18092 # into the resulting binary.
18093 hardcode_minus_L=$hardcode_minus_L_GO
18095 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18096 # into the resulting binary.
18097 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18099 # Set to "yes" if building a shared library automatically hardcodes DIR
18100 # into the library and all subsequent libraries and executables linked
18101 # against it.
18102 hardcode_automatic=$hardcode_automatic_GO
18104 # Set to yes if linker adds runtime paths of dependent libraries
18105 # to runtime path list.
18106 inherit_rpath=$inherit_rpath_GO
18108 # Whether libtool must link a program against all its dependency libraries.
18109 link_all_deplibs=$link_all_deplibs_GO
18111 # Fix the shell variable \$srcfile for the compiler.
18112 fix_srcfile_path=$lt_fix_srcfile_path_GO
18114 # Set to "yes" if exported symbols are required.
18115 always_export_symbols=$always_export_symbols_GO
18117 # The commands to list exported symbols.
18118 export_symbols_cmds=$lt_export_symbols_cmds_GO
18120 # Symbols that should not be listed in the preloaded symbols.
18121 exclude_expsyms=$lt_exclude_expsyms_GO
18123 # Symbols that must always be exported.
18124 include_expsyms=$lt_include_expsyms_GO
18126 # Commands necessary for linking programs (against libraries) with templates.
18127 prelink_cmds=$lt_prelink_cmds_GO
18129 # Specify filename containing input files.
18130 file_list_spec=$lt_file_list_spec_GO
18132 # How to hardcode a shared library path into an executable.
18133 hardcode_action=$hardcode_action_GO
18135 # ### END LIBTOOL TAG CONFIG: GO
18136 _LT_EOF
18139 "default":C) if test -n "$CONFIG_FILES"; then
18140 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18141 # that multilib installs will end up installed in the correct place.
18142 # The testsuite needs it for multilib-aware ABI baseline files.
18143 # To work around this not being passed down from config-ml.in ->
18144 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18145 # append it here. Only modify Makefiles that have just been created.
18147 # Also, get rid of this simulated-VPATH thing that automake does.
18148 cat > vpsed << \_EOF
18149 s!`test -f '$<' || echo '$(srcdir)/'`!!
18150 _EOF
18151 for i in $SUBDIRS; do
18152 case $CONFIG_FILES in
18153 *${i}/Makefile*)
18154 #echo "Adding MULTISUBDIR to $i/Makefile"
18155 sed -f vpsed $i/Makefile > tmp
18156 grep '^MULTISUBDIR =' Makefile >> tmp
18157 mv tmp $i/Makefile
18159 esac
18160 done
18161 rm vpsed
18165 esac
18166 done # for ac_tag
18169 as_fn_exit 0
18170 _ACEOF
18171 ac_clean_files=$ac_clean_files_save
18173 test $ac_write_fail = 0 ||
18174 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18177 # configure is writing to config.log, and then calls config.status.
18178 # config.status does its own redirection, appending to config.log.
18179 # Unfortunately, on DOS this fails, as config.log is still kept open
18180 # by configure, so config.status won't be able to write to it; its
18181 # output is simply discarded. So we exec the FD to /dev/null,
18182 # effectively closing config.log, so it can be properly (re)opened and
18183 # appended to by config.status. When coming back to configure, we
18184 # need to make the FD available again.
18185 if test "$no_create" != yes; then
18186 ac_cs_success=:
18187 ac_config_status_args=
18188 test "$silent" = yes &&
18189 ac_config_status_args="$ac_config_status_args --quiet"
18190 exec 5>/dev/null
18191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18192 exec 5>>config.log
18193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18194 # would make configure fail if this is the last instruction.
18195 $ac_cs_success || as_fn_exit $?
18197 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18199 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}