Better error message for malloc() failure
[official-gcc.git] / libgo / configure
blobcef86b2a1ee29837330746dcb7f7a1773d7b9392
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 STRINGOPS_FLAG
606 HAVE_SYS_MMAN_H_FALSE
607 HAVE_SYS_MMAN_H_TRUE
608 PTHREAD_LIBS
609 PTHREAD_CFLAGS
610 MATH_LIBS
611 USING_SPLIT_STACK_FALSE
612 USING_SPLIT_STACK_TRUE
613 SPLIT_STACK
614 LIBGO_IS_ARM_FALSE
615 LIBGO_IS_ARM_TRUE
616 LIBGO_IS_X86_64_FALSE
617 LIBGO_IS_X86_64_TRUE
618 LIBGO_IS_386_FALSE
619 LIBGO_IS_386_TRUE
620 LIBGO_IS_RTEMS_FALSE
621 LIBGO_IS_RTEMS_TRUE
622 LIBGO_IS_LINUX_FALSE
623 LIBGO_IS_LINUX_TRUE
624 LIBGO_IS_FREEBSD_FALSE
625 LIBGO_IS_FREEBSD_TRUE
626 LIBGO_IS_DARWIN_FALSE
627 LIBGO_IS_DARWIN_TRUE
628 LIBFFIINCS
629 LIBFFI
630 glibgo_toolexeclibdir
631 glibgo_toolexecdir
632 glibgo_prefixdir
633 WERROR
634 WARN_FLAGS
635 enable_static
636 enable_shared
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
644 OBJDUMP
645 LN_S
647 ac_ct_DUMPBIN
648 DUMPBIN
649 LIBTOOL
650 OBJCOPY
651 RANLIB
653 FGREP
654 EGREP
655 GREP
657 MAINT
658 MAINTAINER_MODE_FALSE
659 MAINTAINER_MODE_TRUE
660 GOCFLAGS
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 AMDEPBACKSLASH
666 AMDEP_FALSE
667 AMDEP_TRUE
668 am__quote
669 am__include
670 DEPDIR
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
678 am__untar
679 am__tar
680 AMTAR
681 am__leading_dot
682 SET_MAKE
684 mkdir_p
685 MKDIR_P
686 INSTALL_STRIP_PROGRAM
687 STRIP
688 install_sh
689 MAKEINFO
690 AUTOHEADER
691 AUTOMAKE
692 AUTOCONF
693 ACLOCAL
694 VERSION
695 PACKAGE
696 CYGPATH_W
697 am__isrc
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 target_os
702 target_vendor
703 target_cpu
704 target
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 multi_basedir
714 libtool_VERSION
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_multilib
757 enable_dependency_tracking
758 enable_maintainer_mode
759 with_gnu_ld
760 enable_shared
761 enable_static
762 with_pic
763 enable_fast_install
764 enable_libtool_lock
765 enable_version_specific_runtime_libs
766 with_libffi
767 with_system_libunwind
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
773 CPPFLAGS'
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
824 ac_prev=
825 ac_dashdash=
826 for ac_option
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
831 ac_prev=
832 continue
835 case $ac_option in
836 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *) ac_optarg=yes ;;
838 esac
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
844 ac_dashdash=yes ;;
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 bindir=$ac_optarg ;;
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
863 --config-cache | -C)
864 cache_file=config.cache ;;
866 -datadir | --datadir | --datadi | --datad)
867 ac_prev=datadir ;;
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
904 -enable-* | --enable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 libdir=$ac_optarg ;;
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 mandir=$ac_optarg ;;
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
998 no_create=yes ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
1083 site=$ac_optarg ;;
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1108 -with-* | --with-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=\$ac_optarg ;;
1124 -without-* | --without-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=no ;;
1140 --x)
1141 # Obsolete; use --with-x.
1142 with_x=yes ;;
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149 x_includes=$ac_optarg ;;
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156 x_libraries=$ac_optarg ;;
1158 -*) as_fn_error "unrecognized option: \`$ac_option'
1159 Try \`$0 --help' for more information."
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1168 esac
1169 eval $ac_envvar=\$ac_optarg
1170 export $ac_envvar ;;
1173 # FIXME: should be removed in autoconf 3.0.
1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180 esac
1181 done
1183 if test -n "$ac_prev"; then
1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185 as_fn_error "missing argument to $ac_option"
1188 if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 esac
1196 # Check all directory arguments for consistency.
1197 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1204 case $ac_val in
1205 */ )
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1208 esac
1209 # Be sure to have absolute directory names.
1210 case $ac_val in
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 esac
1214 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1215 done
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error "pwd does not report name of working directory"
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1267 /^X\(\/\/\)$/{
1268 s//\1/
1271 /^X\(\/\).*/{
1272 s//\1/
1275 s/.*/./; q'`
1276 srcdir=$ac_confdir
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 srcdir=..
1280 else
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1290 pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1309 # Report the --help message.
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1322 Defaults for the options are specified in brackets.
1324 Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 [PREFIX]
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1346 For better control, use the options below.
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1368 _ACEOF
1370 cat <<\_ACEOF
1372 Program names:
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377 System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381 _ACEOF
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of package-unused version-unused:";;
1387 esac
1388 cat <<\_ACEOF
1390 Optional Features:
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-multilib build many library versions (default)
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1397 --enable-maintainer-mode enable make rules and dependencies not useful
1398 (and sometimes confusing) to the casual installer
1399 --enable-shared[=PKGS] build shared libraries [default=yes]
1400 --enable-static[=PKGS] build static libraries [default=yes]
1401 --enable-fast-install[=PKGS]
1402 optimize for fast installation [default=yes]
1403 --disable-libtool-lock avoid locking (might break parallel builds)
1404 --enable-version-specific-runtime-libs
1405 Specify that runtime libraries should be installed
1406 in a compiler-specific directory
1408 Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1412 --with-pic try to use only PIC/non-PIC objects [default=use
1413 both]
1414 --without-libffi don't use libffi
1415 --with-system-libunwind use installed libunwind
1417 Some influential environment variables:
1418 CC C compiler command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421 nonstandard directory <lib dir>
1422 LIBS libraries to pass to the linker, e.g. -l<library>
1423 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 GOC Go compiler command
1426 GOCFLAGS Go compiler flags
1427 CPP C preprocessor
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1432 Report bugs to the package provider.
1433 _ACEOF
1434 ac_status=$?
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 continue
1443 ac_builddir=.
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1461 case $srcdir in
1462 .) # We are building in place.
1463 ac_srcdir=.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1470 *) # Relative name.
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1485 else
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 fi || ac_status=$?
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1489 done
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494 cat <<\_ACEOF
1495 package-unused configure version-unused
1496 generated by GNU Autoconf 2.64
1498 Copyright (C) 2009 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502 exit
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1535 ac_retval=0
1536 else
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1540 ac_retval=1
1542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1543 return $ac_retval
1545 } # ac_fn_c_try_compile
1547 # ac_fn_c_try_link LINENO
1548 # -----------------------
1549 # Try to link conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_link ()
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext conftest$ac_exeext
1554 if { { ac_try="$ac_link"
1555 case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_link") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest$ac_exeext && {
1573 test "$cross_compiling" = yes ||
1574 $as_test_x conftest$ac_exeext
1575 }; then :
1576 ac_retval=0
1577 else
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1581 ac_retval=1
1583 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1584 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1585 # interfere with the next link command; also delete a directory that is
1586 # left behind by Apple's compiler. We do this before executing the actions.
1587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 return $ac_retval
1591 } # ac_fn_c_try_link
1593 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1594 # -------------------------------------------------------
1595 # Tests whether HEADER exists and can be compiled using the include files in
1596 # INCLUDES, setting the cache variable VAR accordingly.
1597 ac_fn_c_check_header_compile ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1603 $as_echo_n "(cached) " >&6
1604 else
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1608 #include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611 eval "$3=yes"
1612 else
1613 eval "$3=no"
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 eval ac_res=\$$3
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1620 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1622 } # ac_fn_c_check_header_compile
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } >/dev/null && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1654 ac_retval=1
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 return $ac_retval
1659 } # ac_fn_c_try_cpp
1661 # ac_fn_c_try_run LINENO
1662 # ----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664 # that executables *can* be run.
1665 ac_fn_c_try_run ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1695 ac_retval=$ac_status
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 return $ac_retval
1701 } # ac_fn_c_try_run
1703 # ac_fn_c_check_func LINENO FUNC VAR
1704 # ----------------------------------
1705 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1706 ac_fn_c_check_func ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1712 $as_echo_n "(cached) " >&6
1713 else
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1716 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1718 #define $2 innocuous_$2
1720 /* System header to define __stub macros and hopefully few prototypes,
1721 which can conflict with char $2 (); below.
1722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1723 <limits.h> exists even on freestanding compilers. */
1725 #ifdef __STDC__
1726 # include <limits.h>
1727 #else
1728 # include <assert.h>
1729 #endif
1731 #undef $2
1733 /* Override any GCC internal prototype to avoid an error.
1734 Use char because int might match the return type of a GCC
1735 builtin and then its argument prototype would still apply. */
1736 #ifdef __cplusplus
1737 extern "C"
1738 #endif
1739 char $2 ();
1740 /* The GNU C library defines this for functions which it implements
1741 to always fail with ENOSYS. Some functions are actually named
1742 something starting with __ and the normal name is an alias. */
1743 #if defined __stub_$2 || defined __stub___$2
1744 choke me
1745 #endif
1748 main ()
1750 return $2 ();
1752 return 0;
1754 _ACEOF
1755 if ac_fn_c_try_link "$LINENO"; then :
1756 eval "$3=yes"
1757 else
1758 eval "$3=no"
1760 rm -f core conftest.err conftest.$ac_objext \
1761 conftest$ac_exeext conftest.$ac_ext
1763 eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 } # ac_fn_c_check_func
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788 # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1798 else
1799 ac_header_compiler=no
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1814 else
1815 ac_header_preproc=no
1817 rm -f conftest.err conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1821 # So? What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823 yes:no: )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 no:yes:* )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 esac
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 eval "$3=\$ac_header_compiler"
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855 } # ac_fn_c_check_header_mongrel
1857 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1858 # -------------------------------------------
1859 # Tests whether TYPE exists after having included INCLUDES, setting cache
1860 # variable VAR accordingly.
1861 ac_fn_c_check_type ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 eval "$3=no"
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1874 main ()
1876 if (sizeof ($2))
1877 return 0;
1879 return 0;
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1887 main ()
1889 if (sizeof (($2)))
1890 return 0;
1892 return 0;
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1897 else
1898 eval "$3=yes"
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 } # ac_fn_c_check_type
1910 cat >config.log <<_ACEOF
1911 This file contains any messages produced by compilers while
1912 running configure, to aid debugging if configure makes a mistake.
1914 It was created by package-unused $as_me version-unused, which was
1915 generated by GNU Autoconf 2.64. Invocation command line was
1917 $ $0 $@
1919 _ACEOF
1920 exec 5>>config.log
1922 cat <<_ASUNAME
1923 ## --------- ##
1924 ## Platform. ##
1925 ## --------- ##
1927 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1928 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1929 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1930 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1931 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1933 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1934 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1936 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1937 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1938 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1939 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1940 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1941 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1942 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1944 _ASUNAME
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1949 IFS=$as_save_IFS
1950 test -z "$as_dir" && as_dir=.
1951 $as_echo "PATH: $as_dir"
1952 done
1953 IFS=$as_save_IFS
1955 } >&5
1957 cat >&5 <<_ACEOF
1960 ## ----------- ##
1961 ## Core tests. ##
1962 ## ----------- ##
1964 _ACEOF
1967 # Keep a trace of the command line.
1968 # Strip out --no-create and --no-recursion so they do not pile up.
1969 # Strip out --silent because we don't want to record it for future runs.
1970 # Also quote any args containing shell meta-characters.
1971 # Make two passes to allow for proper duplicate-argument suppression.
1972 ac_configure_args=
1973 ac_configure_args0=
1974 ac_configure_args1=
1975 ac_must_keep_next=false
1976 for ac_pass in 1 2
1978 for ac_arg
1980 case $ac_arg in
1981 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1983 | -silent | --silent | --silen | --sile | --sil)
1984 continue ;;
1985 *\'*)
1986 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 esac
1988 case $ac_pass in
1989 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1991 as_fn_append ac_configure_args1 " '$ac_arg'"
1992 if test $ac_must_keep_next = true; then
1993 ac_must_keep_next=false # Got value, back to normal.
1994 else
1995 case $ac_arg in
1996 *=* | --config-cache | -C | -disable-* | --disable-* \
1997 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1998 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1999 | -with-* | --with-* | -without-* | --without-* | --x)
2000 case "$ac_configure_args0 " in
2001 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2002 esac
2004 -* ) ac_must_keep_next=true ;;
2005 esac
2007 as_fn_append ac_configure_args " '$ac_arg'"
2009 esac
2010 done
2011 done
2012 { ac_configure_args0=; unset ac_configure_args0;}
2013 { ac_configure_args1=; unset ac_configure_args1;}
2015 # When interrupted or exit'd, cleanup temporary files, and complete
2016 # config.log. We remove comments because anyway the quotes in there
2017 # would cause problems or look ugly.
2018 # WARNING: Use '\'' to represent an apostrophe within the trap.
2019 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2020 trap 'exit_status=$?
2021 # Save into config.log some information that might help in debugging.
2023 echo
2025 cat <<\_ASBOX
2026 ## ---------------- ##
2027 ## Cache variables. ##
2028 ## ---------------- ##
2029 _ASBOX
2030 echo
2031 # The following way of writing the cache mishandles newlines in values,
2033 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in #(
2036 *${as_nl}*)
2037 case $ac_var in #(
2038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2039 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2040 esac
2041 case $ac_var in #(
2042 _ | IFS | as_nl) ;; #(
2043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2044 *) { eval $ac_var=; unset $ac_var;} ;;
2045 esac ;;
2046 esac
2047 done
2048 (set) 2>&1 |
2049 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2050 *${as_nl}ac_space=\ *)
2051 sed -n \
2052 "s/'\''/'\''\\\\'\'''\''/g;
2053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2054 ;; #(
2056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2058 esac |
2059 sort
2061 echo
2063 cat <<\_ASBOX
2064 ## ----------------- ##
2065 ## Output variables. ##
2066 ## ----------------- ##
2067 _ASBOX
2068 echo
2069 for ac_var in $ac_subst_vars
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2079 if test -n "$ac_subst_files"; then
2080 cat <<\_ASBOX
2081 ## ------------------- ##
2082 ## File substitutions. ##
2083 ## ------------------- ##
2084 _ASBOX
2085 echo
2086 for ac_var in $ac_subst_files
2088 eval ac_val=\$$ac_var
2089 case $ac_val in
2090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091 esac
2092 $as_echo "$ac_var='\''$ac_val'\''"
2093 done | sort
2094 echo
2097 if test -s confdefs.h; then
2098 cat <<\_ASBOX
2099 ## ----------- ##
2100 ## confdefs.h. ##
2101 ## ----------- ##
2102 _ASBOX
2103 echo
2104 cat confdefs.h
2105 echo
2107 test "$ac_signal" != 0 &&
2108 $as_echo "$as_me: caught signal $ac_signal"
2109 $as_echo "$as_me: exit $exit_status"
2110 } >&5
2111 rm -f core *.core core.conftest.* &&
2112 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2113 exit $exit_status
2115 for ac_signal in 1 2 13 15; do
2116 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2117 done
2118 ac_signal=0
2120 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2121 rm -f -r conftest* confdefs.h
2123 $as_echo "/* confdefs.h */" > confdefs.h
2125 # Predefined preprocessor variables.
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_NAME "$PACKAGE_NAME"
2129 _ACEOF
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2133 _ACEOF
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2137 _ACEOF
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_STRING "$PACKAGE_STRING"
2141 _ACEOF
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2145 _ACEOF
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_URL "$PACKAGE_URL"
2149 _ACEOF
2152 # Let the site file select an alternate cache file if it wants to.
2153 # Prefer an explicitly selected file to automatically selected ones.
2154 ac_site_file1=NONE
2155 ac_site_file2=NONE
2156 if test -n "$CONFIG_SITE"; then
2157 ac_site_file1=$CONFIG_SITE
2158 elif test "x$prefix" != xNONE; then
2159 ac_site_file1=$prefix/share/config.site
2160 ac_site_file2=$prefix/etc/config.site
2161 else
2162 ac_site_file1=$ac_default_prefix/share/config.site
2163 ac_site_file2=$ac_default_prefix/etc/config.site
2165 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2167 test "x$ac_site_file" = xNONE && continue
2168 if test -r "$ac_site_file"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2170 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2171 sed 's/^/| /' "$ac_site_file" >&5
2172 . "$ac_site_file"
2174 done
2176 if test -r "$cache_file"; then
2177 # Some versions of bash will fail to source /dev/null (special
2178 # files actually), so we avoid doing that.
2179 if test -f "$cache_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181 $as_echo "$as_me: loading cache $cache_file" >&6;}
2182 case $cache_file in
2183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184 *) . "./$cache_file";;
2185 esac
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189 $as_echo "$as_me: creating cache $cache_file" >&6;}
2190 >$cache_file
2193 # Check that the precious variables saved in the cache have kept the same
2194 # value.
2195 ac_cache_corrupted=false
2196 for ac_var in $ac_precious_vars; do
2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198 eval ac_new_set=\$ac_env_${ac_var}_set
2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200 eval ac_new_val=\$ac_env_${ac_var}_value
2201 case $ac_old_set,$ac_new_set in
2202 set,)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,set)
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209 ac_cache_corrupted=: ;;
2210 ,);;
2212 if test "x$ac_old_val" != "x$ac_new_val"; then
2213 # differences in whitespace do not lead to failure.
2214 ac_old_val_w=`echo x $ac_old_val`
2215 ac_new_val_w=`echo x $ac_new_val`
2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219 ac_cache_corrupted=:
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223 eval $ac_var=\$ac_old_val
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2226 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2228 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2229 fi;;
2230 esac
2231 # Pass precious variables to config.status.
2232 if test "$ac_new_set" = set; then
2233 case $ac_new_val in
2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 *) ac_arg=$ac_var=$ac_new_val ;;
2236 esac
2237 case " $ac_configure_args " in
2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2240 esac
2242 done
2243 if $ac_cache_corrupted; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2250 ## -------------------- ##
2251 ## Main body of script. ##
2252 ## -------------------- ##
2254 ac_ext=c
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265 ac_config_headers="$ac_config_headers config.h"
2268 libtool_VERSION=1:0:0
2271 # Default to --enable-multilib
2272 # Check whether --enable-multilib was given.
2273 if test "${enable_multilib+set}" = set; then :
2274 enableval=$enable_multilib; case "$enableval" in
2275 yes) multilib=yes ;;
2276 no) multilib=no ;;
2277 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2278 esac
2279 else
2280 multilib=yes
2284 # We may get other options which we leave undocumented:
2285 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2286 # See config-ml.in if you want the gory details.
2288 if test "$srcdir" = "."; then
2289 if test "$with_target_subdir" != "."; then
2290 multi_basedir="$srcdir/$with_multisrctop../.."
2291 else
2292 multi_basedir="$srcdir/$with_multisrctop.."
2294 else
2295 multi_basedir="$srcdir/.."
2299 # Even if the default multilib is not a cross compilation,
2300 # it may be that some of the other multilibs are.
2301 if test $cross_compiling = no && test $multilib = yes \
2302 && test "x${with_multisubdir}" != x ; then
2303 cross_compiling=maybe
2306 ac_config_commands="$ac_config_commands default-1"
2309 ac_aux_dir=
2310 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2311 for ac_t in install-sh install.sh shtool; do
2312 if test -f "$ac_dir/$ac_t"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/$ac_t -c"
2315 break 2
2317 done
2318 done
2319 if test -z "$ac_aux_dir"; then
2320 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2323 # These three variables are undocumented and unsupported,
2324 # and are intended to be withdrawn in a future Autoconf release.
2325 # They can cause serious problems if a builder's source tree is in a directory
2326 # whose full name contains unusual characters.
2327 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2328 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2329 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2332 # Make sure we can run config.sub.
2333 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2334 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2337 $as_echo_n "checking build system type... " >&6; }
2338 if test "${ac_cv_build+set}" = set; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 ac_build_alias=$build_alias
2342 test "x$ac_build_alias" = x &&
2343 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2344 test "x$ac_build_alias" = x &&
2345 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2346 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2347 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2351 $as_echo "$ac_cv_build" >&6; }
2352 case $ac_cv_build in
2353 *-*-*) ;;
2354 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2355 esac
2356 build=$ac_cv_build
2357 ac_save_IFS=$IFS; IFS='-'
2358 set x $ac_cv_build
2359 shift
2360 build_cpu=$1
2361 build_vendor=$2
2362 shift; shift
2363 # Remember, the first character of IFS is used to create $*,
2364 # except with old shells:
2365 build_os=$*
2366 IFS=$ac_save_IFS
2367 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2371 $as_echo_n "checking host system type... " >&6; }
2372 if test "${ac_cv_host+set}" = set; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 if test "x$host_alias" = x; then
2376 ac_cv_host=$ac_cv_build
2377 else
2378 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2379 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2384 $as_echo "$ac_cv_host" >&6; }
2385 case $ac_cv_host in
2386 *-*-*) ;;
2387 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2388 esac
2389 host=$ac_cv_host
2390 ac_save_IFS=$IFS; IFS='-'
2391 set x $ac_cv_host
2392 shift
2393 host_cpu=$1
2394 host_vendor=$2
2395 shift; shift
2396 # Remember, the first character of IFS is used to create $*,
2397 # except with old shells:
2398 host_os=$*
2399 IFS=$ac_save_IFS
2400 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2404 $as_echo_n "checking target system type... " >&6; }
2405 if test "${ac_cv_target+set}" = set; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 if test "x$target_alias" = x; then
2409 ac_cv_target=$ac_cv_host
2410 else
2411 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2412 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2417 $as_echo "$ac_cv_target" >&6; }
2418 case $ac_cv_target in
2419 *-*-*) ;;
2420 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2421 esac
2422 target=$ac_cv_target
2423 ac_save_IFS=$IFS; IFS='-'
2424 set x $ac_cv_target
2425 shift
2426 target_cpu=$1
2427 target_vendor=$2
2428 shift; shift
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2431 target_os=$*
2432 IFS=$ac_save_IFS
2433 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2436 # The aliases save the names the user supplied, while $host etc.
2437 # will get canonicalized.
2438 test -n "$target_alias" &&
2439 test "$program_prefix$program_suffix$program_transform_name" = \
2440 NONENONEs,x,x, &&
2441 program_prefix=${target_alias}-
2443 target_alias=${target_alias-$host_alias}
2445 am__api_version='1.11'
2447 # Find a good install program. We prefer a C program (faster),
2448 # so one script is as good as another. But avoid the broken or
2449 # incompatible versions:
2450 # SysV /etc/install, /usr/sbin/install
2451 # SunOS /usr/etc/install
2452 # IRIX /sbin/install
2453 # AIX /bin/install
2454 # AmigaOS /C/install, which installs bootblocks on floppy discs
2455 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2458 # OS/2's system install, which has a completely different semantic
2459 # ./install, which can be erroneously created by make from ./install.sh.
2460 # Reject install programs that cannot install multiple files.
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2462 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2463 if test -z "$INSTALL"; then
2464 if test "${ac_cv_path_install+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 # Account for people who put trailing slashes in PATH elements.
2473 case $as_dir/ in #((
2474 ./ | .// | /[cC]/* | \
2475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2476 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2477 /usr/ucb/* ) ;;
2479 # OSF1 and SCO ODT 3.0 have their own names for install.
2480 # Don't use installbsd from OSF since it installs stuff as root
2481 # by default.
2482 for ac_prog in ginstall scoinst install; do
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2485 if test $ac_prog = install &&
2486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # AIX install. It has an incompatible calling convention.
2489 elif test $ac_prog = install &&
2490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # program-specific install script used by HP pwplus--don't use.
2493 else
2494 rm -rf conftest.one conftest.two conftest.dir
2495 echo one > conftest.one
2496 echo two > conftest.two
2497 mkdir conftest.dir
2498 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2499 test -s conftest.one && test -s conftest.two &&
2500 test -s conftest.dir/conftest.one &&
2501 test -s conftest.dir/conftest.two
2502 then
2503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2504 break 3
2508 done
2509 done
2511 esac
2513 done
2514 IFS=$as_save_IFS
2516 rm -rf conftest.one conftest.two conftest.dir
2519 if test "${ac_cv_path_install+set}" = set; then
2520 INSTALL=$ac_cv_path_install
2521 else
2522 # As a last resort, use the slow shell script. Don't cache a
2523 # value for INSTALL within a source directory, because that will
2524 # break other packages using the cache if that directory is
2525 # removed, or if the value is a relative name.
2526 INSTALL=$ac_install_sh
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2530 $as_echo "$INSTALL" >&6; }
2532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2533 # It thinks the first close brace ends the variable substitution.
2534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2541 $as_echo_n "checking whether build environment is sane... " >&6; }
2542 # Just in case
2543 sleep 1
2544 echo timestamp > conftest.file
2545 # Reject unsafe characters in $srcdir or the absolute working directory
2546 # name. Accept space and tab only in the latter.
2547 am_lf='
2549 case `pwd` in
2550 *[\\\"\#\$\&\'\`$am_lf]*)
2551 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2552 esac
2553 case $srcdir in
2554 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2555 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2556 esac
2558 # Do `set' in a subshell so we don't clobber the current shell's
2559 # arguments. Must try -L first in case configure is actually a
2560 # symlink; some systems play weird games with the mod time of symlinks
2561 # (eg FreeBSD returns the mod time of the symlink's containing
2562 # directory).
2563 if (
2564 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2565 if test "$*" = "X"; then
2566 # -L didn't work.
2567 set X `ls -t "$srcdir/configure" conftest.file`
2569 rm -f conftest.file
2570 if test "$*" != "X $srcdir/configure conftest.file" \
2571 && test "$*" != "X conftest.file $srcdir/configure"; then
2573 # If neither matched, then we have a broken ls. This can happen
2574 # if, for instance, CONFIG_SHELL is bash and it inherits a
2575 # broken ls alias from the environment. This has actually
2576 # happened. Such a system could not be considered "sane".
2577 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2578 alias in your environment" "$LINENO" 5
2581 test "$2" = conftest.file
2583 then
2584 # Ok.
2586 else
2587 as_fn_error "newly created file is older than distributed files!
2588 Check your system clock" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591 $as_echo "yes" >&6; }
2592 test "$program_prefix" != NONE &&
2593 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2594 # Use a double $ so make ignores it.
2595 test "$program_suffix" != NONE &&
2596 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2597 # Double any \ or $.
2598 # By default was `s,x,x', remove it if useless.
2599 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2600 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2602 # expand $ac_aux_dir to an absolute path
2603 am_aux_dir=`cd $ac_aux_dir && pwd`
2605 if test x"${MISSING+set}" != xset; then
2606 case $am_aux_dir in
2607 *\ * | *\ *)
2608 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2610 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2611 esac
2613 # Use eval to expand $SHELL
2614 if eval "$MISSING --run true"; then
2615 am_missing_run="$MISSING --run "
2616 else
2617 am_missing_run=
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2619 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2622 if test x"${install_sh}" != xset; then
2623 case $am_aux_dir in
2624 *\ * | *\ *)
2625 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2627 install_sh="\${SHELL} $am_aux_dir/install-sh"
2628 esac
2631 # Installed binaries are usually stripped using `strip' when the user
2632 # run `make install-strip'. However `strip' might not be the right
2633 # tool to use in cross-compilation environments, therefore Automake
2634 # will honor the `STRIP' environment variable to overrule this program.
2635 if test "$cross_compiling" != no; then
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}strip; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_prog_STRIP+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$STRIP"; then
2645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2658 done
2659 done
2660 IFS=$as_save_IFS
2664 STRIP=$ac_cv_prog_STRIP
2665 if test -n "$STRIP"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2667 $as_echo "$STRIP" >&6; }
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2675 if test -z "$ac_cv_prog_STRIP"; then
2676 ac_ct_STRIP=$STRIP
2677 # Extract the first word of "strip", so it can be a program name with args.
2678 set dummy strip; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$ac_ct_STRIP"; then
2685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_ac_ct_STRIP="strip"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2698 done
2699 done
2700 IFS=$as_save_IFS
2704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2705 if test -n "$ac_ct_STRIP"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2707 $as_echo "$ac_ct_STRIP" >&6; }
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2713 if test "x$ac_ct_STRIP" = x; then
2714 STRIP=":"
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720 ac_tool_warned=yes ;;
2721 esac
2722 STRIP=$ac_ct_STRIP
2724 else
2725 STRIP="$ac_cv_prog_STRIP"
2729 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2732 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2733 if test -z "$MKDIR_P"; then
2734 if test "${ac_cv_path_mkdir+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_prog in mkdir gmkdir; do
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2745 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2746 'mkdir (GNU coreutils) '* | \
2747 'mkdir (coreutils) '* | \
2748 'mkdir (fileutils) '4.1*)
2749 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2750 break 3;;
2751 esac
2752 done
2753 done
2754 done
2755 IFS=$as_save_IFS
2759 if test "${ac_cv_path_mkdir+set}" = set; then
2760 MKDIR_P="$ac_cv_path_mkdir -p"
2761 else
2762 # As a last resort, use the slow shell script. Don't cache a
2763 # value for MKDIR_P within a source directory, because that will
2764 # break other packages using the cache if that directory is
2765 # removed, or if the value is a relative name.
2766 test -d ./--version && rmdir ./--version
2767 MKDIR_P="$ac_install_sh -d"
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2771 $as_echo "$MKDIR_P" >&6; }
2773 mkdir_p="$MKDIR_P"
2774 case $mkdir_p in
2775 [\\/$]* | ?:[\\/]*) ;;
2776 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2777 esac
2779 for ac_prog in gawk mawk nawk awk
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_AWK+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$AWK"; then
2789 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_AWK="$ac_prog"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2802 done
2803 done
2804 IFS=$as_save_IFS
2808 AWK=$ac_cv_prog_AWK
2809 if test -n "$AWK"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2811 $as_echo "$AWK" >&6; }
2812 else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2818 test -n "$AWK" && break
2819 done
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2822 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2823 set x ${MAKE-make}
2824 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2825 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 cat >conftest.make <<\_ACEOF
2829 SHELL = /bin/sh
2830 all:
2831 @echo '@@@%%%=$(MAKE)=@@@%%%'
2832 _ACEOF
2833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2834 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2835 *@@@%%%=?*=@@@%%%*)
2836 eval ac_cv_prog_make_${ac_make}_set=yes;;
2838 eval ac_cv_prog_make_${ac_make}_set=no;;
2839 esac
2840 rm -f conftest.make
2842 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2844 $as_echo "yes" >&6; }
2845 SET_MAKE=
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 SET_MAKE="MAKE=${MAKE-make}"
2852 rm -rf .tst 2>/dev/null
2853 mkdir .tst 2>/dev/null
2854 if test -d .tst; then
2855 am__leading_dot=.
2856 else
2857 am__leading_dot=_
2859 rmdir .tst 2>/dev/null
2861 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2862 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2863 # is not polluted with repeated "-I."
2864 am__isrc=' -I$(srcdir)'
2865 # test to see if srcdir already configured
2866 if test -f $srcdir/config.status; then
2867 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2871 # test whether we have cygpath
2872 if test -z "$CYGPATH_W"; then
2873 if (cygpath --version) >/dev/null 2>/dev/null; then
2874 CYGPATH_W='cygpath -w'
2875 else
2876 CYGPATH_W=echo
2881 # Define the identity of the package.
2882 PACKAGE='libgo'
2883 VERSION='version-unused'
2886 # Some tools Automake needs.
2888 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2891 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2894 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2897 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2900 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2902 # We need awk for the "check" target. The system "awk" is bad on
2903 # some platforms.
2904 # Always define AMTAR for backward compatibility.
2906 AMTAR=${AMTAR-"${am_missing_run}tar"}
2908 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_CC+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 $as_echo "$CC" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2963 if test -z "$ac_cv_prog_CC"; then
2964 ac_ct_CC=$CC
2965 # Extract the first word of "gcc", so it can be a program name with args.
2966 set dummy gcc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_ac_ct_CC="gcc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2986 done
2987 done
2988 IFS=$as_save_IFS
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3001 if test "x$ac_ct_CC" = x; then
3002 CC=""
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 CC=$ac_ct_CC
3012 else
3013 CC="$ac_cv_prog_CC"
3016 if test -z "$CC"; then
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3019 set dummy ${ac_tool_prefix}cc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_CC="${ac_tool_prefix}cc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3039 done
3040 done
3041 IFS=$as_save_IFS
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3057 if test -z "$CC"; then
3058 # Extract the first word of "cc", so it can be a program name with args.
3059 set dummy cc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_CC+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 ac_prog_rejected=no
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3077 ac_prog_rejected=yes
3078 continue
3080 ac_cv_prog_CC="cc"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3086 IFS=$as_save_IFS
3088 if test $ac_prog_rejected = yes; then
3089 # We found a bogon in the path, so make sure we never use it.
3090 set dummy $ac_cv_prog_CC
3091 shift
3092 if test $# != 0; then
3093 # We chose a different compiler from the bogus one.
3094 # However, it has the same basename, so the bogon will be chosen
3095 # first if we set CC to just the basename; use the full file name.
3096 shift
3097 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 for ac_prog in cl.exe
3117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if test "${ac_cv_prog_CC+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3138 done
3139 done
3140 IFS=$as_save_IFS
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3154 test -n "$CC" && break
3155 done
3157 if test -z "$CC"; then
3158 ac_ct_CC=$CC
3159 for ac_prog in cl.exe
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_ac_ct_CC="$ac_prog"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3182 done
3183 done
3184 IFS=$as_save_IFS
3188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3198 test -n "$ac_ct_CC" && break
3199 done
3201 if test "x$ac_ct_CC" = x; then
3202 CC=""
3203 else
3204 case $cross_compiling:$ac_tool_warned in
3205 yes:)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned=yes ;;
3209 esac
3210 CC=$ac_ct_CC
3217 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error "no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." "$LINENO" 5; }
3222 # Provide some information about the compiler.
3223 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224 set X $ac_compile
3225 ac_compiler=$2
3226 for ac_option in --version -v -V -qversion; do
3227 { { ac_try="$ac_compiler $ac_option >&5"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3235 ac_status=$?
3236 if test -s conftest.err; then
3237 sed '10a\
3238 ... rest of stderr output deleted ...
3239 10q' conftest.err >conftest.er1
3240 cat conftest.er1 >&5
3241 rm -f conftest.er1 conftest.err
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245 done
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3251 main ()
3255 return 0;
3257 _ACEOF
3258 ac_clean_files_save=$ac_clean_files
3259 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3260 # Try to create an executable without -o first, disregard a.out.
3261 # It will help us diagnose broken compilers, and finding out an intuition
3262 # of exeext.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264 $as_echo_n "checking for C compiler default output file name... " >&6; }
3265 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3267 # The possible output files:
3268 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3270 ac_rmfiles=
3271 for ac_file in $ac_files
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276 esac
3277 done
3278 rm -f $ac_rmfiles
3280 if { { ac_try="$ac_link_default"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link_default") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3292 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3293 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3294 # so that the user can short-circuit this test for compilers unknown to
3295 # Autoconf.
3296 for ac_file in $ac_files ''
3298 test -f "$ac_file" || continue
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3302 [ab].out )
3303 # We found the default executable, but exeext='' is most
3304 # certainly right.
3305 break;;
3306 *.* )
3307 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3308 then :; else
3309 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311 # We set ac_cv_exeext here because the later test for it is not
3312 # safe: cross compilers may not add the suffix if given an `-o'
3313 # argument, so we may need to know it at that point already.
3314 # Even if this section looks crufty: it has the advantage of
3315 # actually working.
3316 break;;
3318 break;;
3319 esac
3320 done
3321 test "$ac_cv_exeext" = no && ac_cv_exeext=
3323 else
3324 ac_file=''
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327 $as_echo "$ac_file" >&6; }
3328 if test -z "$ac_file"; then :
3329 $as_echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 { as_fn_set_status 77
3335 as_fn_error "C compiler cannot create executables
3336 See \`config.log' for more details." "$LINENO" 5; }; }
3338 ac_exeext=$ac_cv_exeext
3340 # Check that the compiler produces executables we can run. If not, either
3341 # the compiler is broken, or we cross compile.
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343 $as_echo_n "checking whether the C compiler works... " >&6; }
3344 # If not cross compiling, check that we can run a simple program.
3345 if test "$cross_compiling" != yes; then
3346 if { ac_try='./$ac_file'
3347 { { case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_try") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; }; then
3357 cross_compiling=no
3358 else
3359 if test "$cross_compiling" = maybe; then
3360 cross_compiling=yes
3361 else
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error "cannot run C compiled programs.
3365 If you meant to cross compile, use \`--host'.
3366 See \`config.log' for more details." "$LINENO" 5; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3373 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3374 ac_clean_files=$ac_clean_files_save
3375 # Check that the compiler produces executables we can run. If not, either
3376 # the compiler is broken, or we cross compile.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3378 $as_echo_n "checking whether we are cross compiling... " >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380 $as_echo "$cross_compiling" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3383 $as_echo_n "checking for suffix of executables... " >&6; }
3384 if { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; then :
3395 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3396 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3397 # work properly (i.e., refer to `conftest.exe'), while it won't with
3398 # `rm'.
3399 for ac_file in conftest.exe conftest conftest.*; do
3400 test -f "$ac_file" || continue
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404 break;;
3405 * ) break;;
3406 esac
3407 done
3408 else
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error "cannot compute suffix of executables: cannot compile and link
3412 See \`config.log' for more details." "$LINENO" 5; }
3414 rm -f conftest$ac_cv_exeext
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3420 ac_exeext=$EXEEXT
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3430 main ()
3434 return 0;
3436 _ACEOF
3437 rm -f conftest.o conftest.obj
3438 if { { ac_try="$ac_compile"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_compile") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; then :
3449 for ac_file in conftest.o conftest.obj conftest.*; do
3450 test -f "$ac_file" || continue;
3451 case $ac_file in
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3454 break;;
3455 esac
3456 done
3457 else
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error "cannot compute suffix of object files: cannot compile
3464 See \`config.log' for more details." "$LINENO" 5; }
3466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3469 $as_echo "$ac_cv_objext" >&6; }
3470 OBJEXT=$ac_cv_objext
3471 ac_objext=$OBJEXT
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3474 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3481 main ()
3483 #ifndef __GNUC__
3484 choke me
3485 #endif
3488 return 0;
3490 _ACEOF
3491 if ac_fn_c_try_compile "$LINENO"; then :
3492 ac_compiler_gnu=yes
3493 else
3494 ac_compiler_gnu=no
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3501 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3502 if test $ac_compiler_gnu = yes; then
3503 GCC=yes
3504 else
3505 GCC=
3507 ac_test_CFLAGS=${CFLAGS+set}
3508 ac_save_CFLAGS=$CFLAGS
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3510 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3511 if test "${ac_cv_prog_cc_g+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 ac_save_c_werror_flag=$ac_c_werror_flag
3515 ac_c_werror_flag=yes
3516 ac_cv_prog_cc_g=no
3517 CFLAGS="-g"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3522 main ()
3526 return 0;
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_g=yes
3531 else
3532 CFLAGS=""
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3537 main ()
3541 return 0;
3543 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
3546 else
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3548 CFLAGS="-g"
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3553 main ()
3557 return 0;
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_g=yes
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3571 $as_echo "$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573 CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3576 CFLAGS="-g -O2"
3577 else
3578 CFLAGS="-g"
3580 else
3581 if test "$GCC" = yes; then
3582 CFLAGS="-O2"
3583 else
3584 CFLAGS=
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 ac_cv_prog_cc_c89=no
3593 ac_save_CC=$CC
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596 #include <stdarg.h>
3597 #include <stdio.h>
3598 #include <sys/types.h>
3599 #include <sys/stat.h>
3600 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3601 struct buf { int x; };
3602 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3603 static char *e (p, i)
3604 char **p;
3605 int i;
3607 return p[i];
3609 static char *f (char * (*g) (char **, int), char **p, ...)
3611 char *s;
3612 va_list v;
3613 va_start (v,p);
3614 s = g (p, va_arg (v,int));
3615 va_end (v);
3616 return s;
3619 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3620 function prototypes and stuff, but not '\xHH' hex character constants.
3621 These don't provoke an error unfortunately, instead are silently treated
3622 as 'x'. The following induces an error, until -std is added to get
3623 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3624 array size at least. It's necessary to write '\x00'==0 to get something
3625 that's true only with -std. */
3626 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3628 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629 inside strings and character constants. */
3630 #define FOO(x) 'x'
3631 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3633 int test (int i, double x);
3634 struct s1 {int (*f) (int a);};
3635 struct s2 {int (*f) (double a);};
3636 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3637 int argc;
3638 char **argv;
3640 main ()
3642 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3644 return 0;
3646 _ACEOF
3647 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3650 CC="$ac_save_CC $ac_arg"
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_prog_cc_c89=$ac_arg
3654 rm -f core conftest.err conftest.$ac_objext
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break
3656 done
3657 rm -f conftest.$ac_ext
3658 CC=$ac_save_CC
3661 # AC_CACHE_VAL
3662 case "x$ac_cv_prog_cc_c89" in
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3665 $as_echo "none needed" >&6; } ;;
3666 xno)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3668 $as_echo "unsupported" >&6; } ;;
3670 CC="$CC $ac_cv_prog_cc_c89"
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3673 esac
3674 if test "x$ac_cv_prog_cc_c89" != xno; then :
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683 DEPDIR="${am__leading_dot}deps"
3685 ac_config_commands="$ac_config_commands depfiles"
3688 am_make=${MAKE-make}
3689 cat > confinc << 'END'
3690 am__doit:
3691 @echo this is the am__doit target
3692 .PHONY: am__doit
3694 # If we don't find an include directive, just comment out the code.
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3696 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3697 am__include="#"
3698 am__quote=
3699 _am_result=none
3700 # First try GNU make style include.
3701 echo "include confinc" > confmf
3702 # Ignore all kinds of additional output from `make'.
3703 case `$am_make -s -f confmf 2> /dev/null` in #(
3704 *the\ am__doit\ target*)
3705 am__include=include
3706 am__quote=
3707 _am_result=GNU
3709 esac
3710 # Now try BSD make style include.
3711 if test "$am__include" = "#"; then
3712 echo '.include "confinc"' > confmf
3713 case `$am_make -s -f confmf 2> /dev/null` in #(
3714 *the\ am__doit\ target*)
3715 am__include=.include
3716 am__quote="\""
3717 _am_result=BSD
3719 esac
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3724 $as_echo "$_am_result" >&6; }
3725 rm -f confinc confmf
3727 # Check whether --enable-dependency-tracking was given.
3728 if test "${enable_dependency_tracking+set}" = set; then :
3729 enableval=$enable_dependency_tracking;
3732 if test "x$enable_dependency_tracking" != xno; then
3733 am_depcomp="$ac_aux_dir/depcomp"
3734 AMDEPBACKSLASH='\'
3736 if test "x$enable_dependency_tracking" != xno; then
3737 AMDEP_TRUE=
3738 AMDEP_FALSE='#'
3739 else
3740 AMDEP_TRUE='#'
3741 AMDEP_FALSE=
3746 depcc="$CC" am_compiler_list=
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3749 $as_echo_n "checking dependency style of $depcc... " >&6; }
3750 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3754 # We make a subdir and do the tests there. Otherwise we can end up
3755 # making bogus files that we don't know about and never remove. For
3756 # instance it was reported that on HP-UX the gcc test will end up
3757 # making a dummy file named `D' -- because `-MD' means `put the output
3758 # in D'.
3759 mkdir conftest.dir
3760 # Copy depcomp to subdir because otherwise we won't find it if we're
3761 # using a relative directory.
3762 cp "$am_depcomp" conftest.dir
3763 cd conftest.dir
3764 # We will build objects and dependencies in a subdirectory because
3765 # it helps to detect inapplicable dependency modes. For instance
3766 # both Tru64's cc and ICC support -MD to output dependencies as a
3767 # side effect of compilation, but ICC will put the dependencies in
3768 # the current directory while Tru64 will put them in the object
3769 # directory.
3770 mkdir sub
3772 am_cv_CC_dependencies_compiler_type=none
3773 if test "$am_compiler_list" = ""; then
3774 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3776 am__universal=false
3777 case " $depcc " in #(
3778 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3779 esac
3781 for depmode in $am_compiler_list; do
3782 # Setup a source with many dependencies, because some compilers
3783 # like to wrap large dependency lists on column 80 (with \), and
3784 # we should not choose a depcomp mode which is confused by this.
3786 # We need to recreate these files for each test, as the compiler may
3787 # overwrite some of them when testing with obscure command lines.
3788 # This happens at least with the AIX C compiler.
3789 : > sub/conftest.c
3790 for i in 1 2 3 4 5 6; do
3791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3792 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3793 # Solaris 8's {/usr,}/bin/sh.
3794 touch sub/conftst$i.h
3795 done
3796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3798 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3799 # mode. It turns out that the SunPro C++ compiler does not properly
3800 # handle `-M -o', and we need to detect this. Also, some Intel
3801 # versions had trouble with output in subdirs
3802 am__obj=sub/conftest.${OBJEXT-o}
3803 am__minus_obj="-o $am__obj"
3804 case $depmode in
3805 gcc)
3806 # This depmode causes a compiler race in universal mode.
3807 test "$am__universal" = false || continue
3809 nosideeffect)
3810 # after this tag, mechanisms are not by side-effect, so they'll
3811 # only be used when explicitly requested
3812 if test "x$enable_dependency_tracking" = xyes; then
3813 continue
3814 else
3815 break
3818 msvisualcpp | msvcmsys)
3819 # This compiler won't grok `-c -o', but also, the minuso test has
3820 # not run yet. These depmodes are late enough in the game, and
3821 # so weak that their functioning should not be impacted.
3822 am__obj=conftest.${OBJEXT-o}
3823 am__minus_obj=
3825 none) break ;;
3826 esac
3827 if depmode=$depmode \
3828 source=sub/conftest.c object=$am__obj \
3829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3831 >/dev/null 2>conftest.err &&
3832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3834 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3836 # icc doesn't choke on unknown options, it will just issue warnings
3837 # or remarks (even with -Werror). So we grep stderr for any message
3838 # that says an option was ignored or not supported.
3839 # When given -MP, icc 7.0 and 7.1 complain thusly:
3840 # icc: Command line warning: ignoring option '-M'; no argument required
3841 # The diagnosis changed in icc 8.0:
3842 # icc: Command line remark: option '-MP' not supported
3843 if (grep 'ignoring option' conftest.err ||
3844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3845 am_cv_CC_dependencies_compiler_type=$depmode
3846 break
3849 done
3851 cd ..
3852 rm -rf conftest.dir
3853 else
3854 am_cv_CC_dependencies_compiler_type=none
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3859 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3860 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3863 test "x$enable_dependency_tracking" != xno \
3864 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3865 am__fastdepCC_TRUE=
3866 am__fastdepCC_FALSE='#'
3867 else
3868 am__fastdepCC_TRUE='#'
3869 am__fastdepCC_FALSE=
3873 ac_ext=go
3874 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3875 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compile_gnu=yes
3877 if test -n "$ac_tool_prefix"; then
3878 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3879 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if test "${ac_cv_prog_GOC+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -n "$GOC"; then
3886 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3899 done
3900 done
3901 IFS=$as_save_IFS
3905 GOC=$ac_cv_prog_GOC
3906 if test -n "$GOC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3908 $as_echo "$GOC" >&6; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3916 if test -z "$ac_cv_prog_GOC"; then
3917 ac_ct_GOC=$GOC
3918 # Extract the first word of "gccgo", so it can be a program name with args.
3919 set dummy gccgo; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -n "$ac_ct_GOC"; then
3926 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935 ac_cv_prog_ac_ct_GOC="gccgo"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3939 done
3940 done
3941 IFS=$as_save_IFS
3945 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3946 if test -n "$ac_ct_GOC"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3948 $as_echo "$ac_ct_GOC" >&6; }
3949 else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3954 if test "x$ac_ct_GOC" = x; then
3955 GOC=""
3956 else
3957 case $cross_compiling:$ac_tool_warned in
3958 yes:)
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3961 ac_tool_warned=yes ;;
3962 esac
3963 GOC=$ac_ct_GOC
3965 else
3966 GOC="$ac_cv_prog_GOC"
3969 if test -z "$GOC"; then
3970 if test -n "$ac_tool_prefix"; then
3971 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3972 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if test "${ac_cv_prog_GOC+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -n "$GOC"; then
3979 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3992 done
3993 done
3994 IFS=$as_save_IFS
3998 GOC=$ac_cv_prog_GOC
3999 if test -n "$GOC"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4001 $as_echo "$GOC" >&6; }
4002 else
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4010 if test -z "$GOC"; then
4011 # Extract the first word of "gccgo", so it can be a program name with args.
4012 set dummy gccgo; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if test "${ac_cv_prog_GOC+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test -n "$GOC"; then
4019 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4020 else
4021 ac_prog_rejected=no
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4030 ac_prog_rejected=yes
4031 continue
4033 ac_cv_prog_GOC="gccgo"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4037 done
4038 done
4039 IFS=$as_save_IFS
4041 if test $ac_prog_rejected = yes; then
4042 # We found a bogon in the path, so make sure we never use it.
4043 set dummy $ac_cv_prog_GOC
4044 shift
4045 if test $# != 0; then
4046 # We chose a different compiler from the bogus one.
4047 # However, it has the same basename, so the bogon will be chosen
4048 # first if we set GOC to just the basename; use the full file name.
4049 shift
4050 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4055 GOC=$ac_cv_prog_GOC
4056 if test -n "$GOC"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4058 $as_echo "$GOC" >&6; }
4059 else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4068 # Provide some information about the compiler.
4069 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4070 set X $ac_compile
4071 ac_compiler=$2
4072 { { ac_try="$ac_compiler --version >&5"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_compiler --version >&5") 2>conftest.err
4080 ac_status=$?
4081 if test -s conftest.err; then
4082 sed '10a\
4083 ... rest of stderr output deleted ...
4084 10q' conftest.err >conftest.er1
4085 cat conftest.er1 >&5
4086 rm -f conftest.er1 conftest.err
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }
4090 GOCFLAGS="-g -O2"
4091 ac_ext=c
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4103 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4104 # Check whether --enable-maintainer-mode was given.
4105 if test "${enable_maintainer_mode+set}" = set; then :
4106 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4107 else
4108 USE_MAINTAINER_MODE=no
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4112 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4113 if test $USE_MAINTAINER_MODE = yes; then
4114 MAINTAINER_MODE_TRUE=
4115 MAINTAINER_MODE_FALSE='#'
4116 else
4117 MAINTAINER_MODE_TRUE='#'
4118 MAINTAINER_MODE_FALSE=
4121 MAINT=$MAINTAINER_MODE_TRUE
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4126 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4127 if test "${ac_cv_path_SED+set}" = set; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4131 for ac_i in 1 2 3 4 5 6 7; do
4132 ac_script="$ac_script$as_nl$ac_script"
4133 done
4134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4135 { ac_script=; unset ac_script;}
4136 if test -z "$SED"; then
4137 ac_path_SED_found=false
4138 # Loop through the user's path and test for each of PROGNAME-LIST
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_prog in sed gsed; do
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4147 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4148 # Check for GNU ac_path_SED and select it if it is found.
4149 # Check for GNU $ac_path_SED
4150 case `"$ac_path_SED" --version 2>&1` in
4151 *GNU*)
4152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4154 ac_count=0
4155 $as_echo_n 0123456789 >"conftest.in"
4156 while :
4158 cat "conftest.in" "conftest.in" >"conftest.tmp"
4159 mv "conftest.tmp" "conftest.in"
4160 cp "conftest.in" "conftest.nl"
4161 $as_echo '' >> "conftest.nl"
4162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4164 as_fn_arith $ac_count + 1 && ac_count=$as_val
4165 if test $ac_count -gt ${ac_path_SED_max-0}; then
4166 # Best one so far, save it but keep looking for a better one
4167 ac_cv_path_SED="$ac_path_SED"
4168 ac_path_SED_max=$ac_count
4170 # 10*(2^10) chars as input seems more than enough
4171 test $ac_count -gt 10 && break
4172 done
4173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174 esac
4176 $ac_path_SED_found && break 3
4177 done
4178 done
4179 done
4180 IFS=$as_save_IFS
4181 if test -z "$ac_cv_path_SED"; then
4182 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4184 else
4185 ac_cv_path_SED=$SED
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4190 $as_echo "$ac_cv_path_SED" >&6; }
4191 SED="$ac_cv_path_SED"
4192 rm -f conftest.sed
4194 test -z "$SED" && SED=sed
4195 Xsed="$SED -e 1s/^X//"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4208 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4209 if test "${ac_cv_path_GREP+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -z "$GREP"; then
4213 ac_path_GREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in grep ggrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4223 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4224 # Check for GNU ac_path_GREP and select it if it is found.
4225 # Check for GNU $ac_path_GREP
4226 case `"$ac_path_GREP" --version 2>&1` in
4227 *GNU*)
4228 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4230 ac_count=0
4231 $as_echo_n 0123456789 >"conftest.in"
4232 while :
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 $as_echo 'GREP' >> "conftest.nl"
4238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 as_fn_arith $ac_count + 1 && ac_count=$as_val
4241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_GREP="$ac_path_GREP"
4244 ac_path_GREP_max=$ac_count
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4248 done
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 esac
4252 $ac_path_GREP_found && break 3
4253 done
4254 done
4255 done
4256 IFS=$as_save_IFS
4257 if test -z "$ac_cv_path_GREP"; then
4258 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4260 else
4261 ac_cv_path_GREP=$GREP
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4266 $as_echo "$ac_cv_path_GREP" >&6; }
4267 GREP="$ac_cv_path_GREP"
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4271 $as_echo_n "checking for egrep... " >&6; }
4272 if test "${ac_cv_path_EGREP+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4276 then ac_cv_path_EGREP="$GREP -E"
4277 else
4278 if test -z "$EGREP"; then
4279 ac_path_EGREP_found=false
4280 # Loop through the user's path and test for each of PROGNAME-LIST
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_prog in egrep; do
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4289 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4290 # Check for GNU ac_path_EGREP and select it if it is found.
4291 # Check for GNU $ac_path_EGREP
4292 case `"$ac_path_EGREP" --version 2>&1` in
4293 *GNU*)
4294 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4296 ac_count=0
4297 $as_echo_n 0123456789 >"conftest.in"
4298 while :
4300 cat "conftest.in" "conftest.in" >"conftest.tmp"
4301 mv "conftest.tmp" "conftest.in"
4302 cp "conftest.in" "conftest.nl"
4303 $as_echo 'EGREP' >> "conftest.nl"
4304 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4306 as_fn_arith $ac_count + 1 && ac_count=$as_val
4307 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4308 # Best one so far, save it but keep looking for a better one
4309 ac_cv_path_EGREP="$ac_path_EGREP"
4310 ac_path_EGREP_max=$ac_count
4312 # 10*(2^10) chars as input seems more than enough
4313 test $ac_count -gt 10 && break
4314 done
4315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4316 esac
4318 $ac_path_EGREP_found && break 3
4319 done
4320 done
4321 done
4322 IFS=$as_save_IFS
4323 if test -z "$ac_cv_path_EGREP"; then
4324 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4326 else
4327 ac_cv_path_EGREP=$EGREP
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4333 $as_echo "$ac_cv_path_EGREP" >&6; }
4334 EGREP="$ac_cv_path_EGREP"
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4338 $as_echo_n "checking for fgrep... " >&6; }
4339 if test "${ac_cv_path_FGREP+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4343 then ac_cv_path_FGREP="$GREP -F"
4344 else
4345 if test -z "$FGREP"; then
4346 ac_path_FGREP_found=false
4347 # Loop through the user's path and test for each of PROGNAME-LIST
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_prog in fgrep; do
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4356 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4357 # Check for GNU ac_path_FGREP and select it if it is found.
4358 # Check for GNU $ac_path_FGREP
4359 case `"$ac_path_FGREP" --version 2>&1` in
4360 *GNU*)
4361 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4363 ac_count=0
4364 $as_echo_n 0123456789 >"conftest.in"
4365 while :
4367 cat "conftest.in" "conftest.in" >"conftest.tmp"
4368 mv "conftest.tmp" "conftest.in"
4369 cp "conftest.in" "conftest.nl"
4370 $as_echo 'FGREP' >> "conftest.nl"
4371 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373 as_fn_arith $ac_count + 1 && ac_count=$as_val
4374 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4375 # Best one so far, save it but keep looking for a better one
4376 ac_cv_path_FGREP="$ac_path_FGREP"
4377 ac_path_FGREP_max=$ac_count
4379 # 10*(2^10) chars as input seems more than enough
4380 test $ac_count -gt 10 && break
4381 done
4382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383 esac
4385 $ac_path_FGREP_found && break 3
4386 done
4387 done
4388 done
4389 IFS=$as_save_IFS
4390 if test -z "$ac_cv_path_FGREP"; then
4391 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4393 else
4394 ac_cv_path_FGREP=$FGREP
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4400 $as_echo "$ac_cv_path_FGREP" >&6; }
4401 FGREP="$ac_cv_path_FGREP"
4404 test -z "$GREP" && GREP=grep
4422 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4423 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4424 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4427 $as_echo_n "checking how to print strings... " >&6; }
4428 # Test print first, because it will be a builtin if present.
4429 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4430 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4431 ECHO='print -r --'
4432 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4433 ECHO='printf %s\n'
4434 else
4435 # Use this function as a fallback that always works.
4436 func_fallback_echo ()
4438 eval 'cat <<_LTECHO_EOF
4440 _LTECHO_EOF'
4442 ECHO='func_fallback_echo'
4445 # func_echo_all arg...
4446 # Invoke $ECHO with all args, space-separated.
4447 func_echo_all ()
4449 $ECHO ""
4452 case "$ECHO" in
4453 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4454 $as_echo "printf" >&6; } ;;
4455 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4456 $as_echo "print -r" >&6; } ;;
4457 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4458 $as_echo "cat" >&6; } ;;
4459 esac
4476 # Check whether --with-gnu-ld was given.
4477 if test "${with_gnu_ld+set}" = set; then :
4478 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4479 else
4480 with_gnu_ld=no
4483 ac_prog=ld
4484 if test "$GCC" = yes; then
4485 # Check if gcc -print-prog-name=ld gives a path.
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4487 $as_echo_n "checking for ld used by $CC... " >&6; }
4488 case $host in
4489 *-*-mingw*)
4490 # gcc leaves a trailing carriage return which upsets mingw
4491 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4493 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4494 esac
4495 case $ac_prog in
4496 # Accept absolute paths.
4497 [\\/]* | ?:[\\/]*)
4498 re_direlt='/[^/][^/]*/\.\./'
4499 # Canonicalize the pathname of ld
4500 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4501 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4502 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4503 done
4504 test -z "$LD" && LD="$ac_prog"
4507 # If it fails, then pretend we aren't using GCC.
4508 ac_prog=ld
4511 # If it is relative, then search for the first ld in PATH.
4512 with_gnu_ld=unknown
4514 esac
4515 elif test "$with_gnu_ld" = yes; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4517 $as_echo_n "checking for GNU ld... " >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4520 $as_echo_n "checking for non-GNU ld... " >&6; }
4522 if test "${lt_cv_path_LD+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -z "$LD"; then
4526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4527 for ac_dir in $PATH; do
4528 IFS="$lt_save_ifs"
4529 test -z "$ac_dir" && ac_dir=.
4530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4531 lt_cv_path_LD="$ac_dir/$ac_prog"
4532 # Check to see if the program is GNU ld. I'd rather use --version,
4533 # but apparently some variants of GNU ld only accept -v.
4534 # Break only if it was the GNU/non-GNU ld that we prefer.
4535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537 test "$with_gnu_ld" != no && break
4540 test "$with_gnu_ld" != yes && break
4542 esac
4544 done
4545 IFS="$lt_save_ifs"
4546 else
4547 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4551 LD="$lt_cv_path_LD"
4552 if test -n "$LD"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4554 $as_echo "$LD" >&6; }
4555 else
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4559 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4561 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4562 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4566 case `$LD -v 2>&1 </dev/null` in
4567 *GNU* | *'with BFD'*)
4568 lt_cv_prog_gnu_ld=yes
4571 lt_cv_prog_gnu_ld=no
4573 esac
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4576 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4577 with_gnu_ld=$lt_cv_prog_gnu_ld
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4589 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test -n "$RANLIB"; then
4596 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4609 done
4610 done
4611 IFS=$as_save_IFS
4615 RANLIB=$ac_cv_prog_RANLIB
4616 if test -n "$RANLIB"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4618 $as_echo "$RANLIB" >&6; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4626 if test -z "$ac_cv_prog_RANLIB"; then
4627 ac_ct_RANLIB=$RANLIB
4628 # Extract the first word of "ranlib", so it can be a program name with args.
4629 set dummy ranlib; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 if test -n "$ac_ct_RANLIB"; then
4636 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_ac_ct_RANLIB="ranlib"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4651 IFS=$as_save_IFS
4655 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4656 if test -n "$ac_ct_RANLIB"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4658 $as_echo "$ac_ct_RANLIB" >&6; }
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4664 if test "x$ac_ct_RANLIB" = x; then
4665 RANLIB=":"
4666 else
4667 case $cross_compiling:$ac_tool_warned in
4668 yes:)
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671 ac_tool_warned=yes ;;
4672 esac
4673 RANLIB=$ac_ct_RANLIB
4675 else
4676 RANLIB="$ac_cv_prog_RANLIB"
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$OBJCOPY"; then
4688 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4701 done
4702 done
4703 IFS=$as_save_IFS
4707 OBJCOPY=$ac_cv_prog_OBJCOPY
4708 if test -n "$OBJCOPY"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4710 $as_echo "$OBJCOPY" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4718 if test -z "$ac_cv_prog_OBJCOPY"; then
4719 ac_ct_OBJCOPY=$OBJCOPY
4720 # Extract the first word of "objcopy", so it can be a program name with args.
4721 set dummy objcopy; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -n "$ac_ct_OBJCOPY"; then
4728 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4743 IFS=$as_save_IFS
4747 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4748 if test -n "$ac_ct_OBJCOPY"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4750 $as_echo "$ac_ct_OBJCOPY" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4756 if test "x$ac_ct_OBJCOPY" = x; then
4757 OBJCOPY="missing-objcopy"
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 OBJCOPY=$ac_ct_OBJCOPY
4767 else
4768 OBJCOPY="$ac_cv_prog_OBJCOPY"
4772 enable_dlopen=yes
4776 case `pwd` in
4777 *\ * | *\ *)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4779 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4780 esac
4784 macro_version='2.2.7a'
4785 macro_revision='1.3134'
4799 ltmain="$ac_aux_dir/ltmain.sh"
4801 # Backslashify metacharacters that are still active within
4802 # double-quoted strings.
4803 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4805 # Same as above, but do not quote variable references.
4806 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4808 # Sed substitution to delay expansion of an escaped shell variable in a
4809 # double_quote_subst'ed string.
4810 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4812 # Sed substitution to delay expansion of an escaped single quote.
4813 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4815 # Sed substitution to avoid accidental globbing in evaled expressions
4816 no_glob_subst='s/\*/\\\*/g'
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4819 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4820 if test "${lt_cv_path_NM+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$NM"; then
4824 # Let the user override the test.
4825 lt_cv_path_NM="$NM"
4826 else
4827 lt_nm_to_check="${ac_tool_prefix}nm"
4828 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4829 lt_nm_to_check="$lt_nm_to_check nm"
4831 for lt_tmp_nm in $lt_nm_to_check; do
4832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4833 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4834 IFS="$lt_save_ifs"
4835 test -z "$ac_dir" && ac_dir=.
4836 tmp_nm="$ac_dir/$lt_tmp_nm"
4837 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4838 # Check to see if the nm accepts a BSD-compat flag.
4839 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4840 # nm: unknown option "B" ignored
4841 # Tru64's nm complains that /dev/null is an invalid object file
4842 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4843 */dev/null* | *'Invalid file or object type'*)
4844 lt_cv_path_NM="$tmp_nm -B"
4845 break
4848 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4849 */dev/null*)
4850 lt_cv_path_NM="$tmp_nm -p"
4851 break
4854 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4855 continue # so that we can try to find one that supports BSD flags
4857 esac
4859 esac
4861 done
4862 IFS="$lt_save_ifs"
4863 done
4864 : ${lt_cv_path_NM=no}
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4868 $as_echo "$lt_cv_path_NM" >&6; }
4869 if test "$lt_cv_path_NM" != "no"; then
4870 NM="$lt_cv_path_NM"
4871 else
4872 # Didn't find any BSD compatible name lister, look for dumpbin.
4873 if test -n "$DUMPBIN"; then :
4874 # Let the user override the test.
4875 else
4876 if test -n "$ac_tool_prefix"; then
4877 for ac_prog in dumpbin "link -dump"
4879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$DUMPBIN"; then
4887 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4902 IFS=$as_save_IFS
4906 DUMPBIN=$ac_cv_prog_DUMPBIN
4907 if test -n "$DUMPBIN"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4909 $as_echo "$DUMPBIN" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4916 test -n "$DUMPBIN" && break
4917 done
4919 if test -z "$DUMPBIN"; then
4920 ac_ct_DUMPBIN=$DUMPBIN
4921 for ac_prog in dumpbin "link -dump"
4923 # Extract the first word of "$ac_prog", so it can be a program name with args.
4924 set dummy $ac_prog; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$ac_ct_DUMPBIN"; then
4931 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4950 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4951 if test -n "$ac_ct_DUMPBIN"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4953 $as_echo "$ac_ct_DUMPBIN" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4960 test -n "$ac_ct_DUMPBIN" && break
4961 done
4963 if test "x$ac_ct_DUMPBIN" = x; then
4964 DUMPBIN=":"
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967 yes:)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970 ac_tool_warned=yes ;;
4971 esac
4972 DUMPBIN=$ac_ct_DUMPBIN
4976 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4977 *COFF*)
4978 DUMPBIN="$DUMPBIN -symbols"
4981 DUMPBIN=:
4983 esac
4986 if test "$DUMPBIN" != ":"; then
4987 NM="$DUMPBIN"
4990 test -z "$NM" && NM=nm
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4998 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4999 if test "${lt_cv_nm_interface+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 lt_cv_nm_interface="BSD nm"
5003 echo "int some_variable = 0;" > conftest.$ac_ext
5004 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5005 (eval "$ac_compile" 2>conftest.err)
5006 cat conftest.err >&5
5007 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5008 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5009 cat conftest.err >&5
5010 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5011 cat conftest.out >&5
5012 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5013 lt_cv_nm_interface="MS dumpbin"
5015 rm -f conftest*
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5018 $as_echo "$lt_cv_nm_interface" >&6; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5021 $as_echo_n "checking whether ln -s works... " >&6; }
5022 LN_S=$as_ln_s
5023 if test "$LN_S" = "ln -s"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025 $as_echo "yes" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5028 $as_echo "no, using $LN_S" >&6; }
5031 # find the maximum length of command line arguments
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5033 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5034 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5038 teststring="ABCD"
5040 case $build_os in
5041 msdosdjgpp*)
5042 # On DJGPP, this test can blow up pretty badly due to problems in libc
5043 # (any single argument exceeding 2000 bytes causes a buffer overrun
5044 # during glob expansion). Even if it were fixed, the result of this
5045 # check would be larger than it should be.
5046 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5049 gnu*)
5050 # Under GNU Hurd, this test is not required because there is
5051 # no limit to the length of command line arguments.
5052 # Libtool will interpret -1 as no limit whatsoever
5053 lt_cv_sys_max_cmd_len=-1;
5056 cygwin* | mingw* | cegcc*)
5057 # On Win9x/ME, this test blows up -- it succeeds, but takes
5058 # about 5 minutes as the teststring grows exponentially.
5059 # Worse, since 9x/ME are not pre-emptively multitasking,
5060 # you end up with a "frozen" computer, even though with patience
5061 # the test eventually succeeds (with a max line length of 256k).
5062 # Instead, let's just punt: use the minimum linelength reported by
5063 # all of the supported platforms: 8192 (on NT/2K/XP).
5064 lt_cv_sys_max_cmd_len=8192;
5067 mint*)
5068 # On MiNT this can take a long time and run out of memory.
5069 lt_cv_sys_max_cmd_len=8192;
5072 amigaos*)
5073 # On AmigaOS with pdksh, this test takes hours, literally.
5074 # So we just punt and use a minimum line length of 8192.
5075 lt_cv_sys_max_cmd_len=8192;
5078 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5079 # This has been around since 386BSD, at least. Likely further.
5080 if test -x /sbin/sysctl; then
5081 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5082 elif test -x /usr/sbin/sysctl; then
5083 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5084 else
5085 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5087 # And add a safety zone
5088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5092 interix*)
5093 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5094 lt_cv_sys_max_cmd_len=196608
5097 osf*)
5098 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5099 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5100 # nice to cause kernel panics so lets avoid the loop below.
5101 # First set a reasonable default.
5102 lt_cv_sys_max_cmd_len=16384
5104 if test -x /sbin/sysconfig; then
5105 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5106 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5107 esac
5110 sco3.2v5*)
5111 lt_cv_sys_max_cmd_len=102400
5113 sysv5* | sco5v6* | sysv4.2uw2*)
5114 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5115 if test -n "$kargmax"; then
5116 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5117 else
5118 lt_cv_sys_max_cmd_len=32768
5122 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5123 if test -n "$lt_cv_sys_max_cmd_len"; then
5124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5126 else
5127 # Make teststring a little bigger before we do anything with it.
5128 # a 1K string should be a reasonable start.
5129 for i in 1 2 3 4 5 6 7 8 ; do
5130 teststring=$teststring$teststring
5131 done
5132 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5133 # If test is not a shell built-in, we'll probably end up computing a
5134 # maximum length that is only half of the actual maximum length, but
5135 # we can't tell.
5136 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5137 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5138 test $i != 17 # 1/2 MB should be enough
5140 i=`expr $i + 1`
5141 teststring=$teststring$teststring
5142 done
5143 # Only check the string length outside the loop.
5144 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5145 teststring=
5146 # Add a significant safety factor because C++ compilers can tack on
5147 # massive amounts of additional arguments before passing them to the
5148 # linker. It appears as though 1/2 is a usable value.
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5152 esac
5156 if test -n $lt_cv_sys_max_cmd_len ; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5158 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5159 else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5161 $as_echo "none" >&6; }
5163 max_cmd_len=$lt_cv_sys_max_cmd_len
5170 : ${CP="cp -f"}
5171 : ${MV="mv -f"}
5172 : ${RM="rm -f"}
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5175 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5176 # Try some XSI features
5177 xsi_shell=no
5178 ( _lt_dummy="a/b/c"
5179 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5180 = c,a/b,, \
5181 && eval 'test $(( 1 + 1 )) -eq 2 \
5182 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5183 && xsi_shell=yes
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5185 $as_echo "$xsi_shell" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5189 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5190 lt_shell_append=no
5191 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5192 >/dev/null 2>&1 \
5193 && lt_shell_append=yes
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5195 $as_echo "$lt_shell_append" >&6; }
5198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5199 lt_unset=unset
5200 else
5201 lt_unset=false
5208 # test EBCDIC or ASCII
5209 case `echo X|tr X '\101'` in
5210 A) # ASCII based system
5211 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5212 lt_SP2NL='tr \040 \012'
5213 lt_NL2SP='tr \015\012 \040\040'
5215 *) # EBCDIC based system
5216 lt_SP2NL='tr \100 \n'
5217 lt_NL2SP='tr \r\n \100\100'
5219 esac
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5230 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5231 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 lt_cv_ld_reload_flag='-r'
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5237 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5238 reload_flag=$lt_cv_ld_reload_flag
5239 case $reload_flag in
5240 "" | " "*) ;;
5241 *) reload_flag=" $reload_flag" ;;
5242 esac
5243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5244 case $host_os in
5245 darwin*)
5246 if test "$GCC" = yes; then
5247 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5248 else
5249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5252 esac
5262 if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5264 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$OBJDUMP"; then
5271 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5284 done
5285 done
5286 IFS=$as_save_IFS
5290 OBJDUMP=$ac_cv_prog_OBJDUMP
5291 if test -n "$OBJDUMP"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5293 $as_echo "$OBJDUMP" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5301 if test -z "$ac_cv_prog_OBJDUMP"; then
5302 ac_ct_OBJDUMP=$OBJDUMP
5303 # Extract the first word of "objdump", so it can be a program name with args.
5304 set dummy objdump; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -n "$ac_ct_OBJDUMP"; then
5311 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5324 done
5325 done
5326 IFS=$as_save_IFS
5330 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5331 if test -n "$ac_ct_OBJDUMP"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5333 $as_echo "$ac_ct_OBJDUMP" >&6; }
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5339 if test "x$ac_ct_OBJDUMP" = x; then
5340 OBJDUMP="false"
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343 yes:)
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346 ac_tool_warned=yes ;;
5347 esac
5348 OBJDUMP=$ac_ct_OBJDUMP
5350 else
5351 OBJDUMP="$ac_cv_prog_OBJDUMP"
5354 test -z "$OBJDUMP" && OBJDUMP=objdump
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5365 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5366 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 lt_cv_file_magic_cmd='$MAGIC_CMD'
5370 lt_cv_file_magic_test_file=
5371 lt_cv_deplibs_check_method='unknown'
5372 # Need to set the preceding variable on all platforms that support
5373 # interlibrary dependencies.
5374 # 'none' -- dependencies not supported.
5375 # `unknown' -- same as none, but documents that we really don't know.
5376 # 'pass_all' -- all dependencies passed with no checks.
5377 # 'test_compile' -- check by making test program.
5378 # 'file_magic [[regex]]' -- check by looking for files in library path
5379 # which responds to the $file_magic_cmd with a given extended regex.
5380 # If you have `file' or equivalent on your system and you're not sure
5381 # whether `pass_all' will *always* work, you probably want this one.
5383 case $host_os in
5384 aix[4-9]*)
5385 lt_cv_deplibs_check_method=pass_all
5388 beos*)
5389 lt_cv_deplibs_check_method=pass_all
5392 bsdi[45]*)
5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5394 lt_cv_file_magic_cmd='/usr/bin/file -L'
5395 lt_cv_file_magic_test_file=/shlib/libc.so
5398 cygwin*)
5399 # func_win32_libid is a shell function defined in ltmain.sh
5400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5401 lt_cv_file_magic_cmd='func_win32_libid'
5404 mingw* | pw32*)
5405 # Base MSYS/MinGW do not provide the 'file' command needed by
5406 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5407 # unless we find 'file', for example because we are cross-compiling.
5408 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5409 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5411 lt_cv_file_magic_cmd='func_win32_libid'
5412 else
5413 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5414 lt_cv_file_magic_cmd='$OBJDUMP -f'
5418 cegcc*)
5419 # use the weaker test based on 'objdump'. See mingw*.
5420 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5421 lt_cv_file_magic_cmd='$OBJDUMP -f'
5424 darwin* | rhapsody*)
5425 lt_cv_deplibs_check_method=pass_all
5428 freebsd* | dragonfly*)
5429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5430 case $host_cpu in
5431 i*86 )
5432 # Not sure whether the presence of OpenBSD here was a mistake.
5433 # Let's accept both of them until this is cleared up.
5434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5435 lt_cv_file_magic_cmd=/usr/bin/file
5436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5438 esac
5439 else
5440 lt_cv_deplibs_check_method=pass_all
5444 gnu*)
5445 lt_cv_deplibs_check_method=pass_all
5448 haiku*)
5449 lt_cv_deplibs_check_method=pass_all
5452 hpux10.20* | hpux11*)
5453 lt_cv_file_magic_cmd=/usr/bin/file
5454 case $host_cpu in
5455 ia64*)
5456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5457 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5459 hppa*64*)
5460 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]'
5461 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5464 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5465 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5467 esac
5470 interix[3-9]*)
5471 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5475 irix5* | irix6* | nonstopux*)
5476 case $LD in
5477 *-32|*"-32 ") libmagic=32-bit;;
5478 *-n32|*"-n32 ") libmagic=N32;;
5479 *-64|*"-64 ") libmagic=64-bit;;
5480 *) libmagic=never-match;;
5481 esac
5482 lt_cv_deplibs_check_method=pass_all
5485 # This must be Linux ELF.
5486 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5487 lt_cv_deplibs_check_method=pass_all
5490 netbsd*)
5491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5493 else
5494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5498 newos6*)
5499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5500 lt_cv_file_magic_cmd=/usr/bin/file
5501 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5504 *nto* | *qnx*)
5505 lt_cv_deplibs_check_method=pass_all
5508 openbsd*)
5509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5511 else
5512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5516 osf3* | osf4* | osf5*)
5517 lt_cv_deplibs_check_method=pass_all
5520 rdos*)
5521 lt_cv_deplibs_check_method=pass_all
5524 solaris*)
5525 lt_cv_deplibs_check_method=pass_all
5528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5529 lt_cv_deplibs_check_method=pass_all
5532 sysv4 | sysv4.3*)
5533 case $host_vendor in
5534 motorola)
5535 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]'
5536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5538 ncr)
5539 lt_cv_deplibs_check_method=pass_all
5541 sequent)
5542 lt_cv_file_magic_cmd='/bin/file'
5543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5545 sni)
5546 lt_cv_file_magic_cmd='/bin/file'
5547 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5548 lt_cv_file_magic_test_file=/lib/libc.so
5550 siemens)
5551 lt_cv_deplibs_check_method=pass_all
5554 lt_cv_deplibs_check_method=pass_all
5556 esac
5559 tpf*)
5560 lt_cv_deplibs_check_method=pass_all
5562 esac
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5566 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5567 file_magic_cmd=$lt_cv_file_magic_cmd
5568 deplibs_check_method=$lt_cv_deplibs_check_method
5569 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5582 if test -n "$ac_tool_prefix"; then
5583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5584 set dummy ${ac_tool_prefix}ar; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if test "${ac_cv_prog_AR+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$AR"; then
5591 ac_cv_prog_AR="$AR" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_prog_AR="${ac_tool_prefix}ar"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 AR=$ac_cv_prog_AR
5611 if test -n "$AR"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5613 $as_echo "$AR" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5621 if test -z "$ac_cv_prog_AR"; then
5622 ac_ct_AR=$AR
5623 # Extract the first word of "ar", so it can be a program name with args.
5624 set dummy ar; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$ac_ct_AR"; then
5631 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_ac_ct_AR="ar"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5651 if test -n "$ac_ct_AR"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5653 $as_echo "$ac_ct_AR" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5659 if test "x$ac_ct_AR" = x; then
5660 AR="false"
5661 else
5662 case $cross_compiling:$ac_tool_warned in
5663 yes:)
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned=yes ;;
5667 esac
5668 AR=$ac_ct_AR
5670 else
5671 AR="$ac_cv_prog_AR"
5674 test -z "$AR" && AR=ar
5675 test -z "$AR_FLAGS" && AR_FLAGS=cru
5687 if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5689 set dummy ${ac_tool_prefix}strip; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_prog_STRIP+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if test -n "$STRIP"; then
5696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5709 done
5710 done
5711 IFS=$as_save_IFS
5715 STRIP=$ac_cv_prog_STRIP
5716 if test -n "$STRIP"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5718 $as_echo "$STRIP" >&6; }
5719 else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5726 if test -z "$ac_cv_prog_STRIP"; then
5727 ac_ct_STRIP=$STRIP
5728 # Extract the first word of "strip", so it can be a program name with args.
5729 set dummy strip; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$ac_ct_STRIP"; then
5736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_ac_ct_STRIP="strip"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5749 done
5750 done
5751 IFS=$as_save_IFS
5755 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5756 if test -n "$ac_ct_STRIP"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5758 $as_echo "$ac_ct_STRIP" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5764 if test "x$ac_ct_STRIP" = x; then
5765 STRIP=":"
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768 yes:)
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771 ac_tool_warned=yes ;;
5772 esac
5773 STRIP=$ac_ct_STRIP
5775 else
5776 STRIP="$ac_cv_prog_STRIP"
5779 test -z "$STRIP" && STRIP=:
5786 if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if test -n "$RANLIB"; then
5795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5808 done
5809 done
5810 IFS=$as_save_IFS
5814 RANLIB=$ac_cv_prog_RANLIB
5815 if test -n "$RANLIB"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5817 $as_echo "$RANLIB" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5825 if test -z "$ac_cv_prog_RANLIB"; then
5826 ac_ct_RANLIB=$RANLIB
5827 # Extract the first word of "ranlib", so it can be a program name with args.
5828 set dummy ranlib; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if test -n "$ac_ct_RANLIB"; then
5835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_prog_ac_ct_RANLIB="ranlib"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5848 done
5849 done
5850 IFS=$as_save_IFS
5854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5855 if test -n "$ac_ct_RANLIB"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5857 $as_echo "$ac_ct_RANLIB" >&6; }
5858 else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5863 if test "x$ac_ct_RANLIB" = x; then
5864 RANLIB=":"
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867 yes:)
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5870 ac_tool_warned=yes ;;
5871 esac
5872 RANLIB=$ac_ct_RANLIB
5874 else
5875 RANLIB="$ac_cv_prog_RANLIB"
5878 test -z "$RANLIB" && RANLIB=:
5885 # Determine commands to create old-style static archives.
5886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5887 old_postinstall_cmds='chmod 644 $oldlib'
5888 old_postuninstall_cmds=
5890 if test -n "$RANLIB"; then
5891 case $host_os in
5892 openbsd*)
5893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5898 esac
5899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5902 case $host_os in
5903 darwin*)
5904 lock_old_archive_extraction=yes ;;
5906 lock_old_archive_extraction=no ;;
5907 esac
5947 # If no C compiler was specified, use CC.
5948 LTCC=${LTCC-"$CC"}
5950 # If no C compiler flags were specified, use CFLAGS.
5951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5953 # Allow CC to be a program name with arguments.
5954 compiler=$CC
5957 # Check for command to grab the raw symbol name followed by C symbol from nm.
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5959 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5960 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5964 # These are sane defaults that work on at least a few old systems.
5965 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5967 # Character class describing NM global symbol codes.
5968 symcode='[BCDEGRST]'
5970 # Regexp to match symbols that can be accessed directly from C.
5971 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5973 # Define system-specific variables.
5974 case $host_os in
5975 aix*)
5976 symcode='[BCDT]'
5978 cygwin* | mingw* | pw32* | cegcc*)
5979 symcode='[ABCDGISTW]'
5981 hpux*)
5982 if test "$host_cpu" = ia64; then
5983 symcode='[ABCDEGRST]'
5986 irix* | nonstopux*)
5987 symcode='[BCDEGRST]'
5989 osf*)
5990 symcode='[BCDEGQRST]'
5992 solaris*)
5993 symcode='[BDRT]'
5995 sco3.2v5*)
5996 symcode='[DT]'
5998 sysv4.2uw2*)
5999 symcode='[DT]'
6001 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6002 symcode='[ABDT]'
6004 sysv4)
6005 symcode='[DFNSTU]'
6007 esac
6009 # If we're using GNU nm, then use its standard symbol codes.
6010 case `$NM -V 2>&1` in
6011 *GNU* | *'with BFD'*)
6012 symcode='[ABCDGIRSTW]' ;;
6013 esac
6015 # Transform an extracted symbol line into a proper C declaration.
6016 # Some systems (esp. on ia64) link data and code symbols differently,
6017 # so use this general approach.
6018 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6020 # Transform an extracted symbol line into symbol name and symbol address
6021 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6022 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'"
6024 # Handle CRLF in mingw tool chain
6025 opt_cr=
6026 case $build_os in
6027 mingw*)
6028 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6030 esac
6032 # Try without a prefix underscore, then with it.
6033 for ac_symprfx in "" "_"; do
6035 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6036 symxfrm="\\1 $ac_symprfx\\2 \\2"
6038 # Write the raw and C identifiers.
6039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6040 # Fake it for dumpbin and say T for any non-static function
6041 # and D for any global variable.
6042 # Also find C++ and __fastcall symbols from MSVC++,
6043 # which start with @ or ?.
6044 lt_cv_sys_global_symbol_pipe="$AWK '"\
6045 " {last_section=section; section=\$ 3};"\
6046 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6047 " \$ 0!~/External *\|/{next};"\
6048 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6049 " {if(hide[section]) next};"\
6050 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6051 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6052 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6053 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6054 " ' prfx=^$ac_symprfx"
6055 else
6056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6059 # Check to see that the pipe works correctly.
6060 pipe_works=no
6062 rm -f conftest*
6063 cat > conftest.$ac_ext <<_LT_EOF
6064 #ifdef __cplusplus
6065 extern "C" {
6066 #endif
6067 char nm_test_var;
6068 void nm_test_func(void);
6069 void nm_test_func(void){}
6070 #ifdef __cplusplus
6072 #endif
6073 int main(){nm_test_var='a';nm_test_func();return(0);}
6074 _LT_EOF
6076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6077 (eval $ac_compile) 2>&5
6078 ac_status=$?
6079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6080 test $ac_status = 0; }; then
6081 # Now try to grab the symbols.
6082 nlist=conftest.nm
6083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6084 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6085 ac_status=$?
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087 test $ac_status = 0; } && test -s "$nlist"; then
6088 # Try sorting and uniquifying the output.
6089 if sort "$nlist" | uniq > "$nlist"T; then
6090 mv -f "$nlist"T "$nlist"
6091 else
6092 rm -f "$nlist"T
6095 # Make sure that we snagged all the symbols we need.
6096 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6097 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6098 cat <<_LT_EOF > conftest.$ac_ext
6099 #ifdef __cplusplus
6100 extern "C" {
6101 #endif
6103 _LT_EOF
6104 # Now generate the symbol file.
6105 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6107 cat <<_LT_EOF >> conftest.$ac_ext
6109 /* The mapping between symbol names and symbols. */
6110 const struct {
6111 const char *name;
6112 void *address;
6114 lt__PROGRAM__LTX_preloaded_symbols[] =
6116 { "@PROGRAM@", (void *) 0 },
6117 _LT_EOF
6118 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6119 cat <<\_LT_EOF >> conftest.$ac_ext
6120 {0, (void *) 0}
6123 /* This works around a problem in FreeBSD linker */
6124 #ifdef FREEBSD_WORKAROUND
6125 static const void *lt_preloaded_setup() {
6126 return lt__PROGRAM__LTX_preloaded_symbols;
6128 #endif
6130 #ifdef __cplusplus
6132 #endif
6133 _LT_EOF
6134 # Now try linking the two files.
6135 mv conftest.$ac_objext conftstm.$ac_objext
6136 lt_save_LIBS="$LIBS"
6137 lt_save_CFLAGS="$CFLAGS"
6138 LIBS="conftstm.$ac_objext"
6139 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6141 (eval $ac_link) 2>&5
6142 ac_status=$?
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6145 pipe_works=yes
6147 LIBS="$lt_save_LIBS"
6148 CFLAGS="$lt_save_CFLAGS"
6149 else
6150 echo "cannot find nm_test_func in $nlist" >&5
6152 else
6153 echo "cannot find nm_test_var in $nlist" >&5
6155 else
6156 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6158 else
6159 echo "$progname: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6162 rm -rf conftest* conftst*
6164 # Do not use the global_symbol_pipe unless it works.
6165 if test "$pipe_works" = yes; then
6166 break
6167 else
6168 lt_cv_sys_global_symbol_pipe=
6170 done
6174 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6175 lt_cv_sys_global_symbol_to_cdecl=
6177 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6179 $as_echo "failed" >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6182 $as_echo "ok" >&6; }
6207 # Check whether --enable-libtool-lock was given.
6208 if test "${enable_libtool_lock+set}" = set; then :
6209 enableval=$enable_libtool_lock;
6212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6214 # Some flags need to be propagated to the compiler or linker for good
6215 # libtool support.
6216 case $host in
6217 ia64-*-hpux*)
6218 # Find out which ABI we are using.
6219 echo 'int i;' > conftest.$ac_ext
6220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6221 (eval $ac_compile) 2>&5
6222 ac_status=$?
6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224 test $ac_status = 0; }; then
6225 case `/usr/bin/file conftest.$ac_objext` in
6226 *ELF-32*)
6227 HPUX_IA64_MODE="32"
6229 *ELF-64*)
6230 HPUX_IA64_MODE="64"
6232 esac
6234 rm -rf conftest*
6236 *-*-irix6*)
6237 # Find out which ABI we are using.
6238 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240 (eval $ac_compile) 2>&5
6241 ac_status=$?
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }; then
6244 if test "$lt_cv_prog_gnu_ld" = yes; then
6245 case `/usr/bin/file conftest.$ac_objext` in
6246 *32-bit*)
6247 LD="${LD-ld} -melf32bsmip"
6249 *N32*)
6250 LD="${LD-ld} -melf32bmipn32"
6252 *64-bit*)
6253 LD="${LD-ld} -melf64bmip"
6255 esac
6256 else
6257 case `/usr/bin/file conftest.$ac_objext` in
6258 *32-bit*)
6259 LD="${LD-ld} -32"
6261 *N32*)
6262 LD="${LD-ld} -n32"
6264 *64-bit*)
6265 LD="${LD-ld} -64"
6267 esac
6270 rm -rf conftest*
6273 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6274 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6275 # Find out which ABI we are using.
6276 echo 'int i;' > conftest.$ac_ext
6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6278 (eval $ac_compile) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; }; then
6282 case `/usr/bin/file conftest.o` in
6283 *32-bit*)
6284 case $host in
6285 x86_64-*kfreebsd*-gnu)
6286 LD="${LD-ld} -m elf_i386_fbsd"
6288 x86_64-*linux*)
6289 LD="${LD-ld} -m elf_i386"
6291 ppc64-*linux*|powerpc64-*linux*)
6292 LD="${LD-ld} -m elf32ppclinux"
6294 s390x-*linux*)
6295 LD="${LD-ld} -m elf_s390"
6297 sparc64-*linux*)
6298 LD="${LD-ld} -m elf32_sparc"
6300 esac
6302 *64-bit*)
6303 case $host in
6304 x86_64-*kfreebsd*-gnu)
6305 LD="${LD-ld} -m elf_x86_64_fbsd"
6307 x86_64-*linux*)
6308 LD="${LD-ld} -m elf_x86_64"
6310 ppc*-*linux*|powerpc*-*linux*)
6311 LD="${LD-ld} -m elf64ppc"
6313 s390*-*linux*|s390*-*tpf*)
6314 LD="${LD-ld} -m elf64_s390"
6316 sparc*-*linux*)
6317 LD="${LD-ld} -m elf64_sparc"
6319 esac
6321 esac
6323 rm -rf conftest*
6326 *-*-sco3.2v5*)
6327 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6328 SAVE_CFLAGS="$CFLAGS"
6329 CFLAGS="$CFLAGS -belf"
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6331 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6332 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 ac_ext=c
6336 ac_cpp='$CPP $CPPFLAGS'
6337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6345 main ()
6349 return 0;
6351 _ACEOF
6352 if ac_fn_c_try_link "$LINENO"; then :
6353 lt_cv_cc_needs_belf=yes
6354 else
6355 lt_cv_cc_needs_belf=no
6357 rm -f core conftest.err conftest.$ac_objext \
6358 conftest$ac_exeext conftest.$ac_ext
6359 ac_ext=c
6360 ac_cpp='$CPP $CPPFLAGS'
6361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6367 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6368 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6369 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6370 CFLAGS="$SAVE_CFLAGS"
6373 sparc*-*solaris*)
6374 # Find out which ABI we are using.
6375 echo 'int i;' > conftest.$ac_ext
6376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6377 (eval $ac_compile) 2>&5
6378 ac_status=$?
6379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380 test $ac_status = 0; }; then
6381 case `/usr/bin/file conftest.o` in
6382 *64-bit*)
6383 case $lt_cv_prog_gnu_ld in
6384 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6386 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6387 LD="${LD-ld} -64"
6390 esac
6392 esac
6394 rm -rf conftest*
6396 esac
6398 need_locks="$enable_libtool_lock"
6401 case $host_os in
6402 rhapsody* | darwin*)
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$DSYMUTIL"; then
6412 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6425 done
6426 done
6427 IFS=$as_save_IFS
6431 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6432 if test -n "$DSYMUTIL"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6434 $as_echo "$DSYMUTIL" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6442 if test -z "$ac_cv_prog_DSYMUTIL"; then
6443 ac_ct_DSYMUTIL=$DSYMUTIL
6444 # Extract the first word of "dsymutil", so it can be a program name with args.
6445 set dummy dsymutil; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$ac_ct_DSYMUTIL"; then
6452 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6465 done
6466 done
6467 IFS=$as_save_IFS
6471 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6472 if test -n "$ac_ct_DSYMUTIL"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6474 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6480 if test "x$ac_ct_DSYMUTIL" = x; then
6481 DSYMUTIL=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 DSYMUTIL=$ac_ct_DSYMUTIL
6491 else
6492 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if test -n "$NMEDIT"; then
6504 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6517 done
6518 done
6519 IFS=$as_save_IFS
6523 NMEDIT=$ac_cv_prog_NMEDIT
6524 if test -n "$NMEDIT"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6526 $as_echo "$NMEDIT" >&6; }
6527 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6534 if test -z "$ac_cv_prog_NMEDIT"; then
6535 ac_ct_NMEDIT=$NMEDIT
6536 # Extract the first word of "nmedit", so it can be a program name with args.
6537 set dummy nmedit; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 if test -n "$ac_ct_NMEDIT"; then
6544 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6557 done
6558 done
6559 IFS=$as_save_IFS
6563 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6564 if test -n "$ac_ct_NMEDIT"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6566 $as_echo "$ac_ct_NMEDIT" >&6; }
6567 else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6572 if test "x$ac_ct_NMEDIT" = x; then
6573 NMEDIT=":"
6574 else
6575 case $cross_compiling:$ac_tool_warned in
6576 yes:)
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579 ac_tool_warned=yes ;;
6580 esac
6581 NMEDIT=$ac_ct_NMEDIT
6583 else
6584 NMEDIT="$ac_cv_prog_NMEDIT"
6587 if test -n "$ac_tool_prefix"; then
6588 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6589 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_prog_LIPO+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$LIPO"; then
6596 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6609 done
6610 done
6611 IFS=$as_save_IFS
6615 LIPO=$ac_cv_prog_LIPO
6616 if test -n "$LIPO"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6618 $as_echo "$LIPO" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6626 if test -z "$ac_cv_prog_LIPO"; then
6627 ac_ct_LIPO=$LIPO
6628 # Extract the first word of "lipo", so it can be a program name with args.
6629 set dummy lipo; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if test -n "$ac_ct_LIPO"; then
6636 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_prog_ac_ct_LIPO="lipo"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6651 IFS=$as_save_IFS
6655 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6656 if test -n "$ac_ct_LIPO"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6658 $as_echo "$ac_ct_LIPO" >&6; }
6659 else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6664 if test "x$ac_ct_LIPO" = x; then
6665 LIPO=":"
6666 else
6667 case $cross_compiling:$ac_tool_warned in
6668 yes:)
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671 ac_tool_warned=yes ;;
6672 esac
6673 LIPO=$ac_ct_LIPO
6675 else
6676 LIPO="$ac_cv_prog_LIPO"
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}otool; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 if test -n "$OTOOL"; then
6688 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6707 OTOOL=$ac_cv_prog_OTOOL
6708 if test -n "$OTOOL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6710 $as_echo "$OTOOL" >&6; }
6711 else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6718 if test -z "$ac_cv_prog_OTOOL"; then
6719 ac_ct_OTOOL=$OTOOL
6720 # Extract the first word of "otool", so it can be a program name with args.
6721 set dummy otool; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 if test -n "$ac_ct_OTOOL"; then
6728 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_ac_ct_OTOOL="otool"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6741 done
6742 done
6743 IFS=$as_save_IFS
6747 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6748 if test -n "$ac_ct_OTOOL"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6750 $as_echo "$ac_ct_OTOOL" >&6; }
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6756 if test "x$ac_ct_OTOOL" = x; then
6757 OTOOL=":"
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765 OTOOL=$ac_ct_OTOOL
6767 else
6768 OTOOL="$ac_cv_prog_OTOOL"
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$OTOOL64"; then
6780 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6793 done
6794 done
6795 IFS=$as_save_IFS
6799 OTOOL64=$ac_cv_prog_OTOOL64
6800 if test -n "$OTOOL64"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6802 $as_echo "$OTOOL64" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6810 if test -z "$ac_cv_prog_OTOOL64"; then
6811 ac_ct_OTOOL64=$OTOOL64
6812 # Extract the first word of "otool64", so it can be a program name with args.
6813 set dummy otool64; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$ac_ct_OTOOL64"; then
6820 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_prog_ac_ct_OTOOL64="otool64"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6833 done
6834 done
6835 IFS=$as_save_IFS
6839 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6840 if test -n "$ac_ct_OTOOL64"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6842 $as_echo "$ac_ct_OTOOL64" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6848 if test "x$ac_ct_OTOOL64" = x; then
6849 OTOOL64=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 OTOOL64=$ac_ct_OTOOL64
6859 else
6860 OTOOL64="$ac_cv_prog_OTOOL64"
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6890 $as_echo_n "checking for -single_module linker flag... " >&6; }
6891 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 lt_cv_apple_cc_single_mod=no
6895 if test -z "${LT_MULTI_MODULE}"; then
6896 # By default we will add the -single_module flag. You can override
6897 # by either setting the environment variable LT_MULTI_MODULE
6898 # non-empty at configure time, or by adding -multi_module to the
6899 # link flags.
6900 rm -rf libconftest.dylib*
6901 echo "int foo(void){return 1;}" > conftest.c
6902 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6903 -dynamiclib -Wl,-single_module conftest.c" >&5
6904 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6905 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6906 _lt_result=$?
6907 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6908 lt_cv_apple_cc_single_mod=yes
6909 else
6910 cat conftest.err >&5
6912 rm -rf libconftest.dylib*
6913 rm -f conftest.*
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6917 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6919 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6920 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 lt_cv_ld_exported_symbols_list=no
6924 save_LDFLAGS=$LDFLAGS
6925 echo "_main" > conftest.sym
6926 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6931 main ()
6935 return 0;
6937 _ACEOF
6938 if ac_fn_c_try_link "$LINENO"; then :
6939 lt_cv_ld_exported_symbols_list=yes
6940 else
6941 lt_cv_ld_exported_symbols_list=no
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6945 LDFLAGS="$save_LDFLAGS"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6949 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6951 $as_echo_n "checking for -force_load linker flag... " >&6; }
6952 if test "${lt_cv_ld_force_load+set}" = set; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 lt_cv_ld_force_load=no
6956 cat > conftest.c << _LT_EOF
6957 int forced_loaded() { return 2;}
6958 _LT_EOF
6959 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6960 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6961 echo "$AR cru libconftest.a conftest.o" >&5
6962 $AR cru libconftest.a conftest.o 2>&5
6963 cat > conftest.c << _LT_EOF
6964 int main() { return 0;}
6965 _LT_EOF
6966 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6967 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6968 _lt_result=$?
6969 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6970 lt_cv_ld_force_load=yes
6971 else
6972 cat conftest.err >&5
6974 rm -f conftest.err libconftest.a conftest conftest.c
6975 rm -rf conftest.dSYM
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6979 $as_echo "$lt_cv_ld_force_load" >&6; }
6980 case $host_os in
6981 rhapsody* | darwin1.[012])
6982 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6983 darwin1.*)
6984 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6985 darwin*) # darwin 5.x on
6986 # if running on 10.5 or later, the deployment target defaults
6987 # to the OS version, if on x86, and 10.4, the deployment
6988 # target defaults to 10.4. Don't you love it?
6989 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6990 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6991 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6992 10.[012]*)
6993 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6994 10.*)
6995 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6996 esac
6998 esac
6999 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7000 _lt_dar_single_mod='$single_module'
7002 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7003 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7004 else
7005 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7007 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7008 _lt_dsymutil='~$DSYMUTIL $lib || :'
7009 else
7010 _lt_dsymutil=
7013 esac
7015 ac_ext=c
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7021 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7022 # On Suns, sometimes $CPP names a directory.
7023 if test -n "$CPP" && test -d "$CPP"; then
7024 CPP=
7026 if test -z "$CPP"; then
7027 if test "${ac_cv_prog_CPP+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 # Double quotes because CPP needs to be expanded
7031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7033 ac_preproc_ok=false
7034 for ac_c_preproc_warn_flag in '' yes
7036 # Use a header file that comes with gcc, so configuring glibc
7037 # with a fresh cross-compiler works.
7038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7039 # <limits.h> exists even on freestanding compilers.
7040 # On the NeXT, cc -E runs the code through the compiler's parser,
7041 # not just through cpp. "Syntax error" is here to catch this case.
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7044 #ifdef __STDC__
7045 # include <limits.h>
7046 #else
7047 # include <assert.h>
7048 #endif
7049 Syntax error
7050 _ACEOF
7051 if ac_fn_c_try_cpp "$LINENO"; then :
7053 else
7054 # Broken: fails on valid input.
7055 continue
7057 rm -f conftest.err conftest.$ac_ext
7059 # OK, works on sane cases. Now check whether nonexistent headers
7060 # can be detected and how.
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 #include <ac_nonexistent.h>
7064 _ACEOF
7065 if ac_fn_c_try_cpp "$LINENO"; then :
7066 # Broken: success on invalid input.
7067 continue
7068 else
7069 # Passes both tests.
7070 ac_preproc_ok=:
7071 break
7073 rm -f conftest.err conftest.$ac_ext
7075 done
7076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7077 rm -f conftest.err conftest.$ac_ext
7078 if $ac_preproc_ok; then :
7079 break
7082 done
7083 ac_cv_prog_CPP=$CPP
7086 CPP=$ac_cv_prog_CPP
7087 else
7088 ac_cv_prog_CPP=$CPP
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7091 $as_echo "$CPP" >&6; }
7092 ac_preproc_ok=false
7093 for ac_c_preproc_warn_flag in '' yes
7095 # Use a header file that comes with gcc, so configuring glibc
7096 # with a fresh cross-compiler works.
7097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098 # <limits.h> exists even on freestanding compilers.
7099 # On the NeXT, cc -E runs the code through the compiler's parser,
7100 # not just through cpp. "Syntax error" is here to catch this case.
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7103 #ifdef __STDC__
7104 # include <limits.h>
7105 #else
7106 # include <assert.h>
7107 #endif
7108 Syntax error
7109 _ACEOF
7110 if ac_fn_c_try_cpp "$LINENO"; then :
7112 else
7113 # Broken: fails on valid input.
7114 continue
7116 rm -f conftest.err conftest.$ac_ext
7118 # OK, works on sane cases. Now check whether nonexistent headers
7119 # can be detected and how.
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122 #include <ac_nonexistent.h>
7123 _ACEOF
7124 if ac_fn_c_try_cpp "$LINENO"; then :
7125 # Broken: success on invalid input.
7126 continue
7127 else
7128 # Passes both tests.
7129 ac_preproc_ok=:
7130 break
7132 rm -f conftest.err conftest.$ac_ext
7134 done
7135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7136 rm -f conftest.err conftest.$ac_ext
7137 if $ac_preproc_ok; then :
7139 else
7140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7142 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7143 See \`config.log' for more details." "$LINENO" 5; }
7146 ac_ext=c
7147 ac_cpp='$CPP $CPPFLAGS'
7148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7154 $as_echo_n "checking for ANSI C header files... " >&6; }
7155 if test "${ac_cv_header_stdc+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 #include <stdlib.h>
7161 #include <stdarg.h>
7162 #include <string.h>
7163 #include <float.h>
7166 main ()
7170 return 0;
7172 _ACEOF
7173 if ac_fn_c_try_compile "$LINENO"; then :
7174 ac_cv_header_stdc=yes
7175 else
7176 ac_cv_header_stdc=no
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 if test $ac_cv_header_stdc = yes; then
7181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 #include <string.h>
7186 _ACEOF
7187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7188 $EGREP "memchr" >/dev/null 2>&1; then :
7190 else
7191 ac_cv_header_stdc=no
7193 rm -f conftest*
7197 if test $ac_cv_header_stdc = yes; then
7198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 #include <stdlib.h>
7203 _ACEOF
7204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7205 $EGREP "free" >/dev/null 2>&1; then :
7207 else
7208 ac_cv_header_stdc=no
7210 rm -f conftest*
7214 if test $ac_cv_header_stdc = yes; then
7215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7216 if test "$cross_compiling" = yes; then :
7218 else
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <ctype.h>
7222 #include <stdlib.h>
7223 #if ((' ' & 0x0FF) == 0x020)
7224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7226 #else
7227 # define ISLOWER(c) \
7228 (('a' <= (c) && (c) <= 'i') \
7229 || ('j' <= (c) && (c) <= 'r') \
7230 || ('s' <= (c) && (c) <= 'z'))
7231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7232 #endif
7234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7236 main ()
7238 int i;
7239 for (i = 0; i < 256; i++)
7240 if (XOR (islower (i), ISLOWER (i))
7241 || toupper (i) != TOUPPER (i))
7242 return 2;
7243 return 0;
7245 _ACEOF
7246 if ac_fn_c_try_run "$LINENO"; then :
7248 else
7249 ac_cv_header_stdc=no
7251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7252 conftest.$ac_objext conftest.beam conftest.$ac_ext
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7258 $as_echo "$ac_cv_header_stdc" >&6; }
7259 if test $ac_cv_header_stdc = yes; then
7261 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7266 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7267 inttypes.h stdint.h unistd.h
7268 do :
7269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7272 eval as_val=\$$as_ac_Header
7273 if test "x$as_val" = x""yes; then :
7274 cat >>confdefs.h <<_ACEOF
7275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276 _ACEOF
7280 done
7283 for ac_header in dlfcn.h
7284 do :
7285 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7287 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7288 cat >>confdefs.h <<_ACEOF
7289 #define HAVE_DLFCN_H 1
7290 _ACEOF
7294 done
7296 if test -n "$ac_tool_prefix"; then
7297 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7298 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if test "${ac_cv_prog_GOC+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 if test -n "$GOC"; then
7305 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7318 done
7319 done
7320 IFS=$as_save_IFS
7324 GOC=$ac_cv_prog_GOC
7325 if test -n "$GOC"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7327 $as_echo "$GOC" >&6; }
7328 else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7335 if test -z "$ac_cv_prog_GOC"; then
7336 ac_ct_GOC=$GOC
7337 # Extract the first word of "gccgo", so it can be a program name with args.
7338 set dummy gccgo; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 if test -n "$ac_ct_GOC"; then
7345 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_ac_ct_GOC="gccgo"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7358 done
7359 done
7360 IFS=$as_save_IFS
7364 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7365 if test -n "$ac_ct_GOC"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7367 $as_echo "$ac_ct_GOC" >&6; }
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7373 if test "x$ac_ct_GOC" = x; then
7374 GOC=""
7375 else
7376 case $cross_compiling:$ac_tool_warned in
7377 yes:)
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380 ac_tool_warned=yes ;;
7381 esac
7382 GOC=$ac_ct_GOC
7384 else
7385 GOC="$ac_cv_prog_GOC"
7393 # Set options
7398 enable_win32_dll=no
7401 # Check whether --enable-shared was given.
7402 if test "${enable_shared+set}" = set; then :
7403 enableval=$enable_shared; p=${PACKAGE-default}
7404 case $enableval in
7405 yes) enable_shared=yes ;;
7406 no) enable_shared=no ;;
7408 enable_shared=no
7409 # Look at the argument we got. We use all the common list separators.
7410 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7411 for pkg in $enableval; do
7412 IFS="$lt_save_ifs"
7413 if test "X$pkg" = "X$p"; then
7414 enable_shared=yes
7416 done
7417 IFS="$lt_save_ifs"
7419 esac
7420 else
7421 enable_shared=yes
7432 # Check whether --enable-static was given.
7433 if test "${enable_static+set}" = set; then :
7434 enableval=$enable_static; p=${PACKAGE-default}
7435 case $enableval in
7436 yes) enable_static=yes ;;
7437 no) enable_static=no ;;
7439 enable_static=no
7440 # Look at the argument we got. We use all the common list separators.
7441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7442 for pkg in $enableval; do
7443 IFS="$lt_save_ifs"
7444 if test "X$pkg" = "X$p"; then
7445 enable_static=yes
7447 done
7448 IFS="$lt_save_ifs"
7450 esac
7451 else
7452 enable_static=yes
7464 # Check whether --with-pic was given.
7465 if test "${with_pic+set}" = set; then :
7466 withval=$with_pic; pic_mode="$withval"
7467 else
7468 pic_mode=default
7472 test -z "$pic_mode" && pic_mode=default
7480 # Check whether --enable-fast-install was given.
7481 if test "${enable_fast_install+set}" = set; then :
7482 enableval=$enable_fast_install; p=${PACKAGE-default}
7483 case $enableval in
7484 yes) enable_fast_install=yes ;;
7485 no) enable_fast_install=no ;;
7487 enable_fast_install=no
7488 # Look at the argument we got. We use all the common list separators.
7489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7490 for pkg in $enableval; do
7491 IFS="$lt_save_ifs"
7492 if test "X$pkg" = "X$p"; then
7493 enable_fast_install=yes
7495 done
7496 IFS="$lt_save_ifs"
7498 esac
7499 else
7500 enable_fast_install=yes
7513 # This can be used to rebuild libtool when needed
7514 LIBTOOL_DEPS="$ltmain"
7516 # Always use our own libtool.
7517 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7544 test -z "$LN_S" && LN_S="ln -s"
7559 if test -n "${ZSH_VERSION+set}" ; then
7560 setopt NO_GLOB_SUBST
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7564 $as_echo_n "checking for objdir... " >&6; }
7565 if test "${lt_cv_objdir+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 rm -f .libs 2>/dev/null
7569 mkdir .libs 2>/dev/null
7570 if test -d .libs; then
7571 lt_cv_objdir=.libs
7572 else
7573 # MS-DOS does not allow filenames that begin with a dot.
7574 lt_cv_objdir=_libs
7576 rmdir .libs 2>/dev/null
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7579 $as_echo "$lt_cv_objdir" >&6; }
7580 objdir=$lt_cv_objdir
7586 cat >>confdefs.h <<_ACEOF
7587 #define LT_OBJDIR "$lt_cv_objdir/"
7588 _ACEOF
7593 case $host_os in
7594 aix3*)
7595 # AIX sometimes has problems with the GCC collect2 program. For some
7596 # reason, if we set the COLLECT_NAMES environment variable, the problems
7597 # vanish in a puff of smoke.
7598 if test "X${COLLECT_NAMES+set}" != Xset; then
7599 COLLECT_NAMES=
7600 export COLLECT_NAMES
7603 esac
7605 # Global variables:
7606 ofile=libtool
7607 can_build_shared=yes
7609 # All known linkers require a `.a' archive for static linking (except MSVC,
7610 # which needs '.lib').
7611 libext=a
7613 with_gnu_ld="$lt_cv_prog_gnu_ld"
7615 old_CC="$CC"
7616 old_CFLAGS="$CFLAGS"
7618 # Set sane defaults for various variables
7619 test -z "$CC" && CC=cc
7620 test -z "$LTCC" && LTCC=$CC
7621 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7622 test -z "$LD" && LD=ld
7623 test -z "$ac_objext" && ac_objext=o
7625 for cc_temp in $compiler""; do
7626 case $cc_temp in
7627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7629 \-*) ;;
7630 *) break;;
7631 esac
7632 done
7633 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7636 # Only perform the check for file, if the check method requires it
7637 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7638 case $deplibs_check_method in
7639 file_magic*)
7640 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7642 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7643 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 case $MAGIC_CMD in
7647 [\\/*] | ?:[\\/]*)
7648 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7651 lt_save_MAGIC_CMD="$MAGIC_CMD"
7652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7653 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7654 for ac_dir in $ac_dummy; do
7655 IFS="$lt_save_ifs"
7656 test -z "$ac_dir" && ac_dir=.
7657 if test -f $ac_dir/${ac_tool_prefix}file; then
7658 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7659 if test -n "$file_magic_test_file"; then
7660 case $deplibs_check_method in
7661 "file_magic "*)
7662 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7664 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7665 $EGREP "$file_magic_regex" > /dev/null; then
7667 else
7668 cat <<_LT_EOF 1>&2
7670 *** Warning: the command libtool uses to detect shared libraries,
7671 *** $file_magic_cmd, produces output that libtool cannot recognize.
7672 *** The result is that libtool may fail to recognize shared libraries
7673 *** as such. This will affect the creation of libtool libraries that
7674 *** depend on shared libraries, but programs linked with such libtool
7675 *** libraries will work regardless of this problem. Nevertheless, you
7676 *** may want to report the problem to your system manager and/or to
7677 *** bug-libtool@gnu.org
7679 _LT_EOF
7680 fi ;;
7681 esac
7683 break
7685 done
7686 IFS="$lt_save_ifs"
7687 MAGIC_CMD="$lt_save_MAGIC_CMD"
7689 esac
7692 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7693 if test -n "$MAGIC_CMD"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7695 $as_echo "$MAGIC_CMD" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7705 if test -z "$lt_cv_path_MAGIC_CMD"; then
7706 if test -n "$ac_tool_prefix"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7708 $as_echo_n "checking for file... " >&6; }
7709 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 case $MAGIC_CMD in
7713 [\\/*] | ?:[\\/]*)
7714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7717 lt_save_MAGIC_CMD="$MAGIC_CMD"
7718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7720 for ac_dir in $ac_dummy; do
7721 IFS="$lt_save_ifs"
7722 test -z "$ac_dir" && ac_dir=.
7723 if test -f $ac_dir/file; then
7724 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7725 if test -n "$file_magic_test_file"; then
7726 case $deplibs_check_method in
7727 "file_magic "*)
7728 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7731 $EGREP "$file_magic_regex" > /dev/null; then
7733 else
7734 cat <<_LT_EOF 1>&2
7736 *** Warning: the command libtool uses to detect shared libraries,
7737 *** $file_magic_cmd, produces output that libtool cannot recognize.
7738 *** The result is that libtool may fail to recognize shared libraries
7739 *** as such. This will affect the creation of libtool libraries that
7740 *** depend on shared libraries, but programs linked with such libtool
7741 *** libraries will work regardless of this problem. Nevertheless, you
7742 *** may want to report the problem to your system manager and/or to
7743 *** bug-libtool@gnu.org
7745 _LT_EOF
7746 fi ;;
7747 esac
7749 break
7751 done
7752 IFS="$lt_save_ifs"
7753 MAGIC_CMD="$lt_save_MAGIC_CMD"
7755 esac
7758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7759 if test -n "$MAGIC_CMD"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7761 $as_echo "$MAGIC_CMD" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7768 else
7769 MAGIC_CMD=:
7775 esac
7777 # Use C for the default configuration in the libtool script
7779 lt_save_CC="$CC"
7780 ac_ext=c
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787 # Source file extension for C test sources.
7788 ac_ext=c
7790 # Object file extension for compiled C test sources.
7791 objext=o
7792 objext=$objext
7794 # Code to be used in simple compile tests
7795 lt_simple_compile_test_code="int some_variable = 0;"
7797 # Code to be used in simple link tests
7798 lt_simple_link_test_code='int main(){return(0);}'
7806 # If no C compiler was specified, use CC.
7807 LTCC=${LTCC-"$CC"}
7809 # If no C compiler flags were specified, use CFLAGS.
7810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7812 # Allow CC to be a program name with arguments.
7813 compiler=$CC
7815 # Save the default compiler, since it gets overwritten when the other
7816 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7817 compiler_DEFAULT=$CC
7819 # save warnings/boilerplate of simple test code
7820 ac_outfile=conftest.$ac_objext
7821 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7822 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7823 _lt_compiler_boilerplate=`cat conftest.err`
7824 $RM conftest*
7826 ac_outfile=conftest.$ac_objext
7827 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7828 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7829 _lt_linker_boilerplate=`cat conftest.err`
7830 $RM -r conftest*
7833 ## CAVEAT EMPTOR:
7834 ## There is no encapsulation within the following macros, do not change
7835 ## the running order or otherwise move them around unless you know exactly
7836 ## what you are doing...
7837 if test -n "$compiler"; then
7839 lt_prog_compiler_no_builtin_flag=
7841 if test "$GCC" = yes; then
7842 case $cc_basename in
7843 nvcc*)
7844 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7846 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7847 esac
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7850 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7851 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 lt_cv_prog_compiler_rtti_exceptions=no
7855 ac_outfile=conftest.$ac_objext
7856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7857 lt_compiler_flag="-fno-rtti -fno-exceptions"
7858 # Insert the option either (1) after the last *FLAGS variable, or
7859 # (2) before a word containing "conftest.", or (3) at the end.
7860 # Note that $ac_compile itself does not contain backslashes and begins
7861 # with a dollar sign (not a hyphen), so the echo should work correctly.
7862 # The option is referenced via a variable to avoid confusing sed.
7863 lt_compile=`echo "$ac_compile" | $SED \
7864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7866 -e 's:$: $lt_compiler_flag:'`
7867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7868 (eval "$lt_compile" 2>conftest.err)
7869 ac_status=$?
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 if (exit $ac_status) && test -s "$ac_outfile"; then
7873 # The compiler can only warn and ignore the option if not recognized
7874 # So say no if there are warnings other than the usual output.
7875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7878 lt_cv_prog_compiler_rtti_exceptions=yes
7881 $RM conftest*
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7885 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7887 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7888 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7889 else
7900 lt_prog_compiler_wl=
7901 lt_prog_compiler_pic=
7902 lt_prog_compiler_static=
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7905 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7907 if test "$GCC" = yes; then
7908 lt_prog_compiler_wl='-Wl,'
7909 lt_prog_compiler_static='-static'
7911 case $host_os in
7912 aix*)
7913 # All AIX code is PIC.
7914 if test "$host_cpu" = ia64; then
7915 # AIX 5 now supports IA64 processor
7916 lt_prog_compiler_static='-Bstatic'
7920 amigaos*)
7921 case $host_cpu in
7922 powerpc)
7923 # see comment about AmigaOS4 .so support
7924 lt_prog_compiler_pic='-fPIC'
7926 m68k)
7927 # FIXME: we need at least 68020 code to build shared libraries, but
7928 # adding the `-m68020' flag to GCC prevents building anything better,
7929 # like `-m68040'.
7930 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7932 esac
7935 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7936 # PIC is the default for these OSes.
7939 mingw* | cygwin* | pw32* | os2* | cegcc*)
7940 # This hack is so that the source file can tell whether it is being
7941 # built for inclusion in a dll (and should export symbols for example).
7942 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7943 # (--disable-auto-import) libraries
7944 lt_prog_compiler_pic='-DDLL_EXPORT'
7947 darwin* | rhapsody*)
7948 # PIC is the default on this platform
7949 # Common symbols not allowed in MH_DYLIB files
7950 lt_prog_compiler_pic='-fno-common'
7953 haiku*)
7954 # PIC is the default for Haiku.
7955 # The "-static" flag exists, but is broken.
7956 lt_prog_compiler_static=
7959 hpux*)
7960 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7961 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7962 # sets the default TLS model and affects inlining.
7963 case $host_cpu in
7964 hppa*64*)
7965 # +Z the default
7968 lt_prog_compiler_pic='-fPIC'
7970 esac
7973 interix[3-9]*)
7974 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7975 # Instead, we relocate shared libraries at runtime.
7978 msdosdjgpp*)
7979 # Just because we use GCC doesn't mean we suddenly get shared libraries
7980 # on systems that don't support them.
7981 lt_prog_compiler_can_build_shared=no
7982 enable_shared=no
7985 *nto* | *qnx*)
7986 # QNX uses GNU C++, but need to define -shared option too, otherwise
7987 # it will coredump.
7988 lt_prog_compiler_pic='-fPIC -shared'
7991 sysv4*MP*)
7992 if test -d /usr/nec; then
7993 lt_prog_compiler_pic=-Kconform_pic
7998 lt_prog_compiler_pic='-fPIC'
8000 esac
8002 case $cc_basename in
8003 nvcc*) # Cuda Compiler Driver 2.2
8004 lt_prog_compiler_wl='-Xlinker '
8005 lt_prog_compiler_pic='-Xcompiler -fPIC'
8007 esac
8008 else
8009 # PORTME Check for flag to pass linker flags through the system compiler.
8010 case $host_os in
8011 aix*)
8012 lt_prog_compiler_wl='-Wl,'
8013 if test "$host_cpu" = ia64; then
8014 # AIX 5 now supports IA64 processor
8015 lt_prog_compiler_static='-Bstatic'
8016 else
8017 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8021 mingw* | cygwin* | pw32* | os2* | cegcc*)
8022 # This hack is so that the source file can tell whether it is being
8023 # built for inclusion in a dll (and should export symbols for example).
8024 lt_prog_compiler_pic='-DDLL_EXPORT'
8027 hpux9* | hpux10* | hpux11*)
8028 lt_prog_compiler_wl='-Wl,'
8029 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8030 # not for PA HP-UX.
8031 case $host_cpu in
8032 hppa*64*|ia64*)
8033 # +Z the default
8036 lt_prog_compiler_pic='+Z'
8038 esac
8039 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8040 lt_prog_compiler_static='${wl}-a ${wl}archive'
8043 irix5* | irix6* | nonstopux*)
8044 lt_prog_compiler_wl='-Wl,'
8045 # PIC (with -KPIC) is the default.
8046 lt_prog_compiler_static='-non_shared'
8049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8050 case $cc_basename in
8051 # old Intel for x86_64 which still supported -KPIC.
8052 ecc*)
8053 lt_prog_compiler_wl='-Wl,'
8054 lt_prog_compiler_pic='-KPIC'
8055 lt_prog_compiler_static='-static'
8057 # icc used to be incompatible with GCC.
8058 # ICC 10 doesn't accept -KPIC any more.
8059 icc* | ifort*)
8060 lt_prog_compiler_wl='-Wl,'
8061 lt_prog_compiler_pic='-fPIC'
8062 lt_prog_compiler_static='-static'
8064 # Lahey Fortran 8.1.
8065 lf95*)
8066 lt_prog_compiler_wl='-Wl,'
8067 lt_prog_compiler_pic='--shared'
8068 lt_prog_compiler_static='--static'
8070 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8071 # Portland Group compilers (*not* the Pentium gcc compiler,
8072 # which looks to be a dead project)
8073 lt_prog_compiler_wl='-Wl,'
8074 lt_prog_compiler_pic='-fpic'
8075 lt_prog_compiler_static='-Bstatic'
8077 ccc*)
8078 lt_prog_compiler_wl='-Wl,'
8079 # All Alpha code is PIC.
8080 lt_prog_compiler_static='-non_shared'
8082 xl* | bgxl* | bgf* | mpixl*)
8083 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8084 lt_prog_compiler_wl='-Wl,'
8085 lt_prog_compiler_pic='-qpic'
8086 lt_prog_compiler_static='-qstaticlink'
8089 case `$CC -V 2>&1 | sed 5q` in
8090 *Sun\ F* | *Sun*Fortran*)
8091 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8092 lt_prog_compiler_pic='-KPIC'
8093 lt_prog_compiler_static='-Bstatic'
8094 lt_prog_compiler_wl=''
8096 *Sun\ C*)
8097 # Sun C 5.9
8098 lt_prog_compiler_pic='-KPIC'
8099 lt_prog_compiler_static='-Bstatic'
8100 lt_prog_compiler_wl='-Wl,'
8102 esac
8104 esac
8107 newsos6)
8108 lt_prog_compiler_pic='-KPIC'
8109 lt_prog_compiler_static='-Bstatic'
8112 *nto* | *qnx*)
8113 # QNX uses GNU C++, but need to define -shared option too, otherwise
8114 # it will coredump.
8115 lt_prog_compiler_pic='-fPIC -shared'
8118 osf3* | osf4* | osf5*)
8119 lt_prog_compiler_wl='-Wl,'
8120 # All OSF/1 code is PIC.
8121 lt_prog_compiler_static='-non_shared'
8124 rdos*)
8125 lt_prog_compiler_static='-non_shared'
8128 solaris*)
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 case $cc_basename in
8132 f77* | f90* | f95*)
8133 lt_prog_compiler_wl='-Qoption ld ';;
8135 lt_prog_compiler_wl='-Wl,';;
8136 esac
8139 sunos4*)
8140 lt_prog_compiler_wl='-Qoption ld '
8141 lt_prog_compiler_pic='-PIC'
8142 lt_prog_compiler_static='-Bstatic'
8145 sysv4 | sysv4.2uw2* | sysv4.3*)
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_pic='-KPIC'
8148 lt_prog_compiler_static='-Bstatic'
8151 sysv4*MP*)
8152 if test -d /usr/nec ;then
8153 lt_prog_compiler_pic='-Kconform_pic'
8154 lt_prog_compiler_static='-Bstatic'
8158 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8159 lt_prog_compiler_wl='-Wl,'
8160 lt_prog_compiler_pic='-KPIC'
8161 lt_prog_compiler_static='-Bstatic'
8164 unicos*)
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_can_build_shared=no
8169 uts4*)
8170 lt_prog_compiler_pic='-pic'
8171 lt_prog_compiler_static='-Bstatic'
8175 lt_prog_compiler_can_build_shared=no
8177 esac
8180 case $host_os in
8181 # For platforms which do not support PIC, -DPIC is meaningless:
8182 *djgpp*)
8183 lt_prog_compiler_pic=
8186 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8188 esac
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8190 $as_echo "$lt_prog_compiler_pic" >&6; }
8198 # Check to make sure the PIC flag actually works.
8200 if test -n "$lt_prog_compiler_pic"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8202 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8203 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 lt_cv_prog_compiler_pic_works=no
8207 ac_outfile=conftest.$ac_objext
8208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8209 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8210 # Insert the option either (1) after the last *FLAGS variable, or
8211 # (2) before a word containing "conftest.", or (3) at the end.
8212 # Note that $ac_compile itself does not contain backslashes and begins
8213 # with a dollar sign (not a hyphen), so the echo should work correctly.
8214 # The option is referenced via a variable to avoid confusing sed.
8215 lt_compile=`echo "$ac_compile" | $SED \
8216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8218 -e 's:$: $lt_compiler_flag:'`
8219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8220 (eval "$lt_compile" 2>conftest.err)
8221 ac_status=$?
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 if (exit $ac_status) && test -s "$ac_outfile"; then
8225 # The compiler can only warn and ignore the option if not recognized
8226 # So say no if there are warnings other than the usual output.
8227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8230 lt_cv_prog_compiler_pic_works=yes
8233 $RM conftest*
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8237 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8239 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8240 case $lt_prog_compiler_pic in
8241 "" | " "*) ;;
8242 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8243 esac
8244 else
8245 lt_prog_compiler_pic=
8246 lt_prog_compiler_can_build_shared=no
8257 # Check to make sure the static flag actually works.
8259 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8261 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8262 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 lt_cv_prog_compiler_static_works=no
8266 save_LDFLAGS="$LDFLAGS"
8267 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8268 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8270 # The linker can only warn and ignore the option if not recognized
8271 # So say no if there are warnings
8272 if test -s conftest.err; then
8273 # Append any errors to the config.log.
8274 cat conftest.err 1>&5
8275 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8277 if diff conftest.exp conftest.er2 >/dev/null; then
8278 lt_cv_prog_compiler_static_works=yes
8280 else
8281 lt_cv_prog_compiler_static_works=yes
8284 $RM -r conftest*
8285 LDFLAGS="$save_LDFLAGS"
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8289 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8291 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8293 else
8294 lt_prog_compiler_static=
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8304 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8305 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 lt_cv_prog_compiler_c_o=no
8309 $RM -r conftest 2>/dev/null
8310 mkdir conftest
8311 cd conftest
8312 mkdir out
8313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8315 lt_compiler_flag="-o out/conftest2.$ac_objext"
8316 # Insert the option either (1) after the last *FLAGS variable, or
8317 # (2) before a word containing "conftest.", or (3) at the end.
8318 # Note that $ac_compile itself does not contain backslashes and begins
8319 # with a dollar sign (not a hyphen), so the echo should work correctly.
8320 lt_compile=`echo "$ac_compile" | $SED \
8321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323 -e 's:$: $lt_compiler_flag:'`
8324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8325 (eval "$lt_compile" 2>out/conftest.err)
8326 ac_status=$?
8327 cat out/conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8330 then
8331 # The compiler can only warn and ignore the option if not recognized
8332 # So say no if there are warnings
8333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8334 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8335 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8336 lt_cv_prog_compiler_c_o=yes
8339 chmod u+w . 2>&5
8340 $RM conftest*
8341 # SGI C++ compiler will create directory out/ii_files/ for
8342 # template instantiation
8343 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8344 $RM out/* && rmdir out
8345 cd ..
8346 $RM -r conftest
8347 $RM conftest*
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8351 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8359 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8360 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 lt_cv_prog_compiler_c_o=no
8364 $RM -r conftest 2>/dev/null
8365 mkdir conftest
8366 cd conftest
8367 mkdir out
8368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8370 lt_compiler_flag="-o out/conftest2.$ac_objext"
8371 # Insert the option either (1) after the last *FLAGS variable, or
8372 # (2) before a word containing "conftest.", or (3) at the end.
8373 # Note that $ac_compile itself does not contain backslashes and begins
8374 # with a dollar sign (not a hyphen), so the echo should work correctly.
8375 lt_compile=`echo "$ac_compile" | $SED \
8376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8378 -e 's:$: $lt_compiler_flag:'`
8379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8380 (eval "$lt_compile" 2>out/conftest.err)
8381 ac_status=$?
8382 cat out/conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8385 then
8386 # The compiler can only warn and ignore the option if not recognized
8387 # So say no if there are warnings
8388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8391 lt_cv_prog_compiler_c_o=yes
8394 chmod u+w . 2>&5
8395 $RM conftest*
8396 # SGI C++ compiler will create directory out/ii_files/ for
8397 # template instantiation
8398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8399 $RM out/* && rmdir out
8400 cd ..
8401 $RM -r conftest
8402 $RM conftest*
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8406 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8411 hard_links="nottested"
8412 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8413 # do not overwrite the value of need_locks provided by the user
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8415 $as_echo_n "checking if we can lock with hard links... " >&6; }
8416 hard_links=yes
8417 $RM conftest*
8418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8419 touch conftest.a
8420 ln conftest.a conftest.b 2>&5 || hard_links=no
8421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8423 $as_echo "$hard_links" >&6; }
8424 if test "$hard_links" = no; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8426 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8427 need_locks=warn
8429 else
8430 need_locks=no
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8439 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8441 runpath_var=
8442 allow_undefined_flag=
8443 always_export_symbols=no
8444 archive_cmds=
8445 archive_expsym_cmds=
8446 compiler_needs_object=no
8447 enable_shared_with_static_runtimes=no
8448 export_dynamic_flag_spec=
8449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8450 hardcode_automatic=no
8451 hardcode_direct=no
8452 hardcode_direct_absolute=no
8453 hardcode_libdir_flag_spec=
8454 hardcode_libdir_flag_spec_ld=
8455 hardcode_libdir_separator=
8456 hardcode_minus_L=no
8457 hardcode_shlibpath_var=unsupported
8458 inherit_rpath=no
8459 link_all_deplibs=unknown
8460 module_cmds=
8461 module_expsym_cmds=
8462 old_archive_from_new_cmds=
8463 old_archive_from_expsyms_cmds=
8464 thread_safe_flag_spec=
8465 whole_archive_flag_spec=
8466 # include_expsyms should be a list of space-separated symbols to be *always*
8467 # included in the symbol list
8468 include_expsyms=
8469 # exclude_expsyms can be an extended regexp of symbols to exclude
8470 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8471 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8472 # as well as any symbol that contains `d'.
8473 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8474 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8475 # platforms (ab)use it in PIC code, but their linkers get confused if
8476 # the symbol is explicitly referenced. Since portable code cannot
8477 # rely on this symbol name, it's probably fine to never include it in
8478 # preloaded symbol tables.
8479 # Exclude shared library initialization/finalization symbols.
8480 extract_expsyms_cmds=
8482 case $host_os in
8483 cygwin* | mingw* | pw32* | cegcc*)
8484 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8485 # When not using gcc, we currently assume that we are using
8486 # Microsoft Visual C++.
8487 if test "$GCC" != yes; then
8488 with_gnu_ld=no
8491 interix*)
8492 # we just hope/assume this is gcc and not c89 (= MSVC++)
8493 with_gnu_ld=yes
8495 openbsd*)
8496 with_gnu_ld=no
8498 esac
8500 ld_shlibs=yes
8502 # On some targets, GNU ld is compatible enough with the native linker
8503 # that we're better off using the native interface for both.
8504 lt_use_gnu_ld_interface=no
8505 if test "$with_gnu_ld" = yes; then
8506 case $host_os in
8507 aix*)
8508 # The AIX port of GNU ld has always aspired to compatibility
8509 # with the native linker. However, as the warning in the GNU ld
8510 # block says, versions before 2.19.5* couldn't really create working
8511 # shared libraries, regardless of the interface used.
8512 case `$LD -v 2>&1` in
8513 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8514 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8515 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8517 lt_use_gnu_ld_interface=yes
8519 esac
8522 lt_use_gnu_ld_interface=yes
8524 esac
8527 if test "$lt_use_gnu_ld_interface" = yes; then
8528 # If archive_cmds runs LD, not CC, wlarc should be empty
8529 wlarc='${wl}'
8531 # Set some defaults for GNU ld with shared library support. These
8532 # are reset later if shared libraries are not supported. Putting them
8533 # here allows them to be overridden if necessary.
8534 runpath_var=LD_RUN_PATH
8535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536 export_dynamic_flag_spec='${wl}--export-dynamic'
8537 # ancient GNU ld didn't support --whole-archive et. al.
8538 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8539 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8540 else
8541 whole_archive_flag_spec=
8543 supports_anon_versioning=no
8544 case `$LD -v 2>&1` in
8545 *GNU\ gold*) supports_anon_versioning=yes ;;
8546 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8547 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8548 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8549 *\ 2.11.*) ;; # other 2.11 versions
8550 *) supports_anon_versioning=yes ;;
8551 esac
8553 # See if GNU ld supports shared libraries.
8554 case $host_os in
8555 aix[3-9]*)
8556 # On AIX/PPC, the GNU linker is very broken
8557 if test "$host_cpu" != ia64; then
8558 ld_shlibs=no
8559 cat <<_LT_EOF 1>&2
8561 *** Warning: the GNU linker, at least up to release 2.19, is reported
8562 *** to be unable to reliably create shared libraries on AIX.
8563 *** Therefore, libtool is disabling shared libraries support. If you
8564 *** really care for shared libraries, you may want to install binutils
8565 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8566 *** You will then need to restart the configuration process.
8568 _LT_EOF
8572 amigaos*)
8573 case $host_cpu in
8574 powerpc)
8575 # see comment about AmigaOS4 .so support
8576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8577 archive_expsym_cmds=''
8579 m68k)
8580 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)'
8581 hardcode_libdir_flag_spec='-L$libdir'
8582 hardcode_minus_L=yes
8584 esac
8587 beos*)
8588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8589 allow_undefined_flag=unsupported
8590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8591 # support --undefined. This deserves some investigation. FIXME
8592 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8593 else
8594 ld_shlibs=no
8598 cygwin* | mingw* | pw32* | cegcc*)
8599 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8600 # as there is no search path for DLLs.
8601 hardcode_libdir_flag_spec='-L$libdir'
8602 export_dynamic_flag_spec='${wl}--export-all-symbols'
8603 allow_undefined_flag=unsupported
8604 always_export_symbols=no
8605 enable_shared_with_static_runtimes=yes
8606 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8608 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8610 # If the export-symbols file already is a .def file (1st line
8611 # is EXPORTS), use it as is; otherwise, prepend...
8612 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8613 cp $export_symbols $output_objdir/$soname.def;
8614 else
8615 echo EXPORTS > $output_objdir/$soname.def;
8616 cat $export_symbols >> $output_objdir/$soname.def;
8618 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8619 else
8620 ld_shlibs=no
8624 haiku*)
8625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8626 link_all_deplibs=yes
8629 interix[3-9]*)
8630 hardcode_direct=no
8631 hardcode_shlibpath_var=no
8632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633 export_dynamic_flag_spec='${wl}-E'
8634 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8635 # Instead, shared libraries are loaded at an image base (0x10000000 by
8636 # default) and relocated if they conflict, which is a slow very memory
8637 # consuming and fragmenting process. To avoid this, we pick a random,
8638 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8639 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8640 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8641 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'
8644 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8645 tmp_diet=no
8646 if test "$host_os" = linux-dietlibc; then
8647 case $cc_basename in
8648 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8649 esac
8651 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8652 && test "$tmp_diet" = no
8653 then
8654 tmp_addflag=
8655 tmp_sharedflag='-shared'
8656 case $cc_basename,$host_cpu in
8657 pgcc*) # Portland Group C compiler
8658 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'
8659 tmp_addflag=' $pic_flag'
8661 pgf77* | pgf90* | pgf95* | pgfortran*)
8662 # Portland Group f77 and f90 compilers
8663 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'
8664 tmp_addflag=' $pic_flag -Mnomain' ;;
8665 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8666 tmp_addflag=' -i_dynamic' ;;
8667 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8668 tmp_addflag=' -i_dynamic -nofor_main' ;;
8669 ifc* | ifort*) # Intel Fortran compiler
8670 tmp_addflag=' -nofor_main' ;;
8671 lf95*) # Lahey Fortran 8.1
8672 whole_archive_flag_spec=
8673 tmp_sharedflag='--shared' ;;
8674 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8675 tmp_sharedflag='-qmkshrobj'
8676 tmp_addflag= ;;
8677 nvcc*) # Cuda Compiler Driver 2.2
8678 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'
8679 compiler_needs_object=yes
8681 esac
8682 case `$CC -V 2>&1 | sed 5q` in
8683 *Sun\ C*) # Sun C 5.9
8684 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'
8685 compiler_needs_object=yes
8686 tmp_sharedflag='-G' ;;
8687 *Sun\ F*) # Sun Fortran 8.3
8688 tmp_sharedflag='-G' ;;
8689 esac
8690 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692 if test "x$supports_anon_versioning" = xyes; then
8693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8695 echo "local: *; };" >> $output_objdir/$libname.ver~
8696 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8699 case $cc_basename in
8700 xlf* | bgf* | bgxlf* | mpixlf*)
8701 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8702 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8703 hardcode_libdir_flag_spec=
8704 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8705 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8706 if test "x$supports_anon_versioning" = xyes; then
8707 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8709 echo "local: *; };" >> $output_objdir/$libname.ver~
8710 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8713 esac
8714 else
8715 ld_shlibs=no
8719 netbsd*)
8720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8721 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8722 wlarc=
8723 else
8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729 solaris*)
8730 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8731 ld_shlibs=no
8732 cat <<_LT_EOF 1>&2
8734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8735 *** create shared libraries on Solaris systems. Therefore, libtool
8736 *** is disabling shared libraries support. We urge you to upgrade GNU
8737 *** binutils to release 2.9.1 or newer. Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8741 _LT_EOF
8742 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8745 else
8746 ld_shlibs=no
8750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8751 case `$LD -v 2>&1` in
8752 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8753 ld_shlibs=no
8754 cat <<_LT_EOF 1>&2
8756 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8757 *** reliably create shared libraries on SCO systems. Therefore, libtool
8758 *** is disabling shared libraries support. We urge you to upgrade GNU
8759 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8760 *** your PATH or compiler configuration so that the native linker is
8761 *** used, and then restart.
8763 _LT_EOF
8766 # For security reasons, it is highly recommended that you always
8767 # use absolute paths for naming shared libraries, and exclude the
8768 # DT_RUNPATH tag from executables and libraries. But doing so
8769 # requires that you compile everything twice, which is a pain.
8770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8774 else
8775 ld_shlibs=no
8778 esac
8781 sunos4*)
8782 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8783 wlarc=
8784 hardcode_direct=yes
8785 hardcode_shlibpath_var=no
8789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8792 else
8793 ld_shlibs=no
8796 esac
8798 if test "$ld_shlibs" = no; then
8799 runpath_var=
8800 hardcode_libdir_flag_spec=
8801 export_dynamic_flag_spec=
8802 whole_archive_flag_spec=
8804 else
8805 # PORTME fill in a description of your system's linker (not GNU ld)
8806 case $host_os in
8807 aix3*)
8808 allow_undefined_flag=unsupported
8809 always_export_symbols=yes
8810 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'
8811 # Note: this linker hardcodes the directories in LIBPATH if there
8812 # are no directories specified by -L.
8813 hardcode_minus_L=yes
8814 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8815 # Neither direct hardcoding nor static linking is supported with a
8816 # broken collect2.
8817 hardcode_direct=unsupported
8821 aix[4-9]*)
8822 if test "$host_cpu" = ia64; then
8823 # On IA64, the linker does run time linking by default, so we don't
8824 # have to do anything special.
8825 aix_use_runtimelinking=no
8826 exp_sym_flag='-Bexport'
8827 no_entry_flag=""
8828 else
8829 # If we're using GNU nm, then we don't want the "-C" option.
8830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8831 # Also, AIX nm treats weak defined symbols like other global
8832 # defined symbols, whereas GNU nm marks them as "W".
8833 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8834 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'
8835 else
8836 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'
8838 aix_use_runtimelinking=no
8840 # Test if we are trying to use run time linking or normal
8841 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8842 # need to do runtime linking.
8843 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8844 for ld_flag in $LDFLAGS; do
8845 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8846 aix_use_runtimelinking=yes
8847 break
8849 done
8851 esac
8853 exp_sym_flag='-bexport'
8854 no_entry_flag='-bnoentry'
8857 # When large executables or shared objects are built, AIX ld can
8858 # have problems creating the table of contents. If linking a library
8859 # or program results in "error TOC overflow" add -mminimal-toc to
8860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8863 archive_cmds=''
8864 hardcode_direct=yes
8865 hardcode_direct_absolute=yes
8866 hardcode_libdir_separator=':'
8867 link_all_deplibs=yes
8868 file_list_spec='${wl}-f,'
8870 if test "$GCC" = yes; then
8871 case $host_os in aix4.[012]|aix4.[012].*)
8872 # We only want to do this on AIX 4.2 and lower, the check
8873 # below for broken collect2 doesn't work under 4.3+
8874 collect2name=`${CC} -print-prog-name=collect2`
8875 if test -f "$collect2name" &&
8876 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8877 then
8878 # We have reworked collect2
8880 else
8881 # We have old collect2
8882 hardcode_direct=unsupported
8883 # It fails to find uninstalled libraries when the uninstalled
8884 # path is not listed in the libpath. Setting hardcode_minus_L
8885 # to unsupported forces relinking
8886 hardcode_minus_L=yes
8887 hardcode_libdir_flag_spec='-L$libdir'
8888 hardcode_libdir_separator=
8891 esac
8892 shared_flag='-shared'
8893 if test "$aix_use_runtimelinking" = yes; then
8894 shared_flag="$shared_flag "'${wl}-G'
8896 else
8897 # not using gcc
8898 if test "$host_cpu" = ia64; then
8899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8900 # chokes on -Wl,-G. The following line is correct:
8901 shared_flag='-G'
8902 else
8903 if test "$aix_use_runtimelinking" = yes; then
8904 shared_flag='${wl}-G'
8905 else
8906 shared_flag='${wl}-bM:SRE'
8911 export_dynamic_flag_spec='${wl}-bexpall'
8912 # It seems that -bexpall does not export symbols beginning with
8913 # underscore (_), so it is better to generate a list of symbols to export.
8914 always_export_symbols=yes
8915 if test "$aix_use_runtimelinking" = yes; then
8916 # Warning - without using the other runtime loading flags (-brtl),
8917 # -berok will link without error, but may produce a broken library.
8918 allow_undefined_flag='-berok'
8919 # Determine the default libpath from the value encoded in an
8920 # empty executable.
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8925 main ()
8929 return 0;
8931 _ACEOF
8932 if ac_fn_c_try_link "$LINENO"; then :
8934 lt_aix_libpath_sed='
8935 /Import File Strings/,/^$/ {
8936 /^0/ {
8937 s/^0 *\(.*\)$/\1/
8941 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942 # Check for a 64-bit object if we didn't find anything.
8943 if test -z "$aix_libpath"; then
8944 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8947 rm -f core conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8951 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8952 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"
8953 else
8954 if test "$host_cpu" = ia64; then
8955 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8956 allow_undefined_flag="-z nodefs"
8957 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"
8958 else
8959 # Determine the default libpath from the value encoded in an
8960 # empty executable.
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8965 main ()
8969 return 0;
8971 _ACEOF
8972 if ac_fn_c_try_link "$LINENO"; then :
8974 lt_aix_libpath_sed='
8975 /Import File Strings/,/^$/ {
8976 /^0/ {
8977 s/^0 *\(.*\)$/\1/
8981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8982 # Check for a 64-bit object if we didn't find anything.
8983 if test -z "$aix_libpath"; then
8984 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8987 rm -f core conftest.err conftest.$ac_objext \
8988 conftest$ac_exeext conftest.$ac_ext
8989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8992 # Warning - without using the other run time loading flags,
8993 # -berok will link without error, but may produce a broken library.
8994 no_undefined_flag=' ${wl}-bernotok'
8995 allow_undefined_flag=' ${wl}-berok'
8996 if test "$with_gnu_ld" = yes; then
8997 # We only use this code for GNU lds that support --whole-archive.
8998 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8999 else
9000 # Exported symbols can be pulled into shared objects from archives
9001 whole_archive_flag_spec='$convenience'
9003 archive_cmds_need_lc=yes
9004 # This is similar to how AIX traditionally builds its shared libraries.
9005 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'
9010 amigaos*)
9011 case $host_cpu in
9012 powerpc)
9013 # see comment about AmigaOS4 .so support
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds=''
9017 m68k)
9018 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)'
9019 hardcode_libdir_flag_spec='-L$libdir'
9020 hardcode_minus_L=yes
9022 esac
9025 bsdi[45]*)
9026 export_dynamic_flag_spec=-rdynamic
9029 cygwin* | mingw* | pw32* | cegcc*)
9030 # When not using gcc, we currently assume that we are using
9031 # Microsoft Visual C++.
9032 # hardcode_libdir_flag_spec is actually meaningless, as there is
9033 # no search path for DLLs.
9034 hardcode_libdir_flag_spec=' '
9035 allow_undefined_flag=unsupported
9036 # Tell ltmain to make .lib files, not .a files.
9037 libext=lib
9038 # Tell ltmain to make .dll files, not .so files.
9039 shrext_cmds=".dll"
9040 # FIXME: Setting linknames here is a bad hack.
9041 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9042 # The linker will automatically build a .lib file if we build a DLL.
9043 old_archive_from_new_cmds='true'
9044 # FIXME: Should let the user specify the lib program.
9045 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9046 fix_srcfile_path='`cygpath -w "$srcfile"`'
9047 enable_shared_with_static_runtimes=yes
9050 darwin* | rhapsody*)
9053 archive_cmds_need_lc=no
9054 hardcode_direct=no
9055 hardcode_automatic=yes
9056 hardcode_shlibpath_var=unsupported
9057 if test "$lt_cv_ld_force_load" = "yes"; then
9058 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\"`'
9059 else
9060 whole_archive_flag_spec=''
9062 link_all_deplibs=yes
9063 allow_undefined_flag="$_lt_dar_allow_undefined"
9064 case $cc_basename in
9065 ifort*) _lt_dar_can_shared=yes ;;
9066 *) _lt_dar_can_shared=$GCC ;;
9067 esac
9068 if test "$_lt_dar_can_shared" = "yes"; then
9069 output_verbose_link_cmd=func_echo_all
9070 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9071 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9072 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}"
9073 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}"
9075 else
9076 ld_shlibs=no
9081 dgux*)
9082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_shlibpath_var=no
9087 freebsd1*)
9088 ld_shlibs=no
9091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9092 # support. Future versions do this automatically, but an explicit c++rt0.o
9093 # does not break anything, and helps significantly (at the cost of a little
9094 # extra space).
9095 freebsd2.2*)
9096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9097 hardcode_libdir_flag_spec='-R$libdir'
9098 hardcode_direct=yes
9099 hardcode_shlibpath_var=no
9102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9103 freebsd2*)
9104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9105 hardcode_direct=yes
9106 hardcode_minus_L=yes
9107 hardcode_shlibpath_var=no
9110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9111 freebsd* | dragonfly*)
9112 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9113 hardcode_libdir_flag_spec='-R$libdir'
9114 hardcode_direct=yes
9115 hardcode_shlibpath_var=no
9118 hpux9*)
9119 if test "$GCC" = yes; then
9120 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'
9121 else
9122 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'
9124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125 hardcode_libdir_separator=:
9126 hardcode_direct=yes
9128 # hardcode_minus_L: Not really in the search PATH,
9129 # but as the default location of the library.
9130 hardcode_minus_L=yes
9131 export_dynamic_flag_spec='${wl}-E'
9134 hpux10*)
9135 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9136 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9137 else
9138 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9140 if test "$with_gnu_ld" = no; then
9141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142 hardcode_libdir_flag_spec_ld='+b $libdir'
9143 hardcode_libdir_separator=:
9144 hardcode_direct=yes
9145 hardcode_direct_absolute=yes
9146 export_dynamic_flag_spec='${wl}-E'
9147 # hardcode_minus_L: Not really in the search PATH,
9148 # but as the default location of the library.
9149 hardcode_minus_L=yes
9153 hpux11*)
9154 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9155 case $host_cpu in
9156 hppa*64*)
9157 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9159 ia64*)
9160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9163 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9165 esac
9166 else
9167 case $host_cpu in
9168 hppa*64*)
9169 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 ia64*)
9172 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9176 # Older versions of the 11.00 compiler do not understand -b yet
9177 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9179 $as_echo_n "checking if $CC understands -b... " >&6; }
9180 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 lt_cv_prog_compiler__b=no
9184 save_LDFLAGS="$LDFLAGS"
9185 LDFLAGS="$LDFLAGS -b"
9186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9188 # The linker can only warn and ignore the option if not recognized
9189 # So say no if there are warnings
9190 if test -s conftest.err; then
9191 # Append any errors to the config.log.
9192 cat conftest.err 1>&5
9193 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9195 if diff conftest.exp conftest.er2 >/dev/null; then
9196 lt_cv_prog_compiler__b=yes
9198 else
9199 lt_cv_prog_compiler__b=yes
9202 $RM -r conftest*
9203 LDFLAGS="$save_LDFLAGS"
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9207 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9209 if test x"$lt_cv_prog_compiler__b" = xyes; then
9210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9211 else
9212 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9216 esac
9218 if test "$with_gnu_ld" = no; then
9219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9220 hardcode_libdir_separator=:
9222 case $host_cpu in
9223 hppa*64*|ia64*)
9224 hardcode_direct=no
9225 hardcode_shlibpath_var=no
9228 hardcode_direct=yes
9229 hardcode_direct_absolute=yes
9230 export_dynamic_flag_spec='${wl}-E'
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L=yes
9236 esac
9240 irix5* | irix6* | nonstopux*)
9241 if test "$GCC" = yes; then
9242 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'
9243 # Try to use the -exported_symbol ld option, if it does not
9244 # work, assume that -exports_file does not work either and
9245 # implicitly export all symbols.
9246 save_LDFLAGS="$LDFLAGS"
9247 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 int foo(void) {}
9251 _ACEOF
9252 if ac_fn_c_try_link "$LINENO"; then :
9253 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'
9256 rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258 LDFLAGS="$save_LDFLAGS"
9259 else
9260 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'
9261 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'
9263 archive_cmds_need_lc='no'
9264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265 hardcode_libdir_separator=:
9266 inherit_rpath=yes
9267 link_all_deplibs=yes
9270 netbsd*)
9271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9273 else
9274 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9276 hardcode_libdir_flag_spec='-R$libdir'
9277 hardcode_direct=yes
9278 hardcode_shlibpath_var=no
9281 newsos6)
9282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283 hardcode_direct=yes
9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 hardcode_libdir_separator=:
9286 hardcode_shlibpath_var=no
9289 *nto* | *qnx*)
9292 openbsd*)
9293 if test -f /usr/libexec/ld.so; then
9294 hardcode_direct=yes
9295 hardcode_shlibpath_var=no
9296 hardcode_direct_absolute=yes
9297 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9298 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9299 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9300 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9301 export_dynamic_flag_spec='${wl}-E'
9302 else
9303 case $host_os in
9304 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9306 hardcode_libdir_flag_spec='-R$libdir'
9309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9312 esac
9314 else
9315 ld_shlibs=no
9319 os2*)
9320 hardcode_libdir_flag_spec='-L$libdir'
9321 hardcode_minus_L=yes
9322 allow_undefined_flag=unsupported
9323 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'
9324 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9327 osf3*)
9328 if test "$GCC" = yes; then
9329 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9330 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'
9331 else
9332 allow_undefined_flag=' -expect_unresolved \*'
9333 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'
9335 archive_cmds_need_lc='no'
9336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9337 hardcode_libdir_separator=:
9340 osf4* | osf5*) # as osf3* with the addition of -msym flag
9341 if test "$GCC" = yes; then
9342 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9343 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'
9344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345 else
9346 allow_undefined_flag=' -expect_unresolved \*'
9347 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'
9348 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~
9349 $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'
9351 # Both c and cxx compiler support -rpath directly
9352 hardcode_libdir_flag_spec='-rpath $libdir'
9354 archive_cmds_need_lc='no'
9355 hardcode_libdir_separator=:
9358 solaris*)
9359 no_undefined_flag=' -z defs'
9360 if test "$GCC" = yes; then
9361 wlarc='${wl}'
9362 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9363 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9364 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9365 else
9366 case `$CC -V 2>&1` in
9367 *"Compilers 5.0"*)
9368 wlarc=''
9369 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9371 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9374 wlarc='${wl}'
9375 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9377 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9379 esac
9381 hardcode_libdir_flag_spec='-R$libdir'
9382 hardcode_shlibpath_var=no
9383 case $host_os in
9384 solaris2.[0-5] | solaris2.[0-5].*) ;;
9386 # The compiler driver will combine and reorder linker options,
9387 # but understands `-z linker_flag'. GCC discards it without `$wl',
9388 # but is careful enough not to reorder.
9389 # Supported since Solaris 2.6 (maybe 2.5.1?)
9390 if test "$GCC" = yes; then
9391 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9392 else
9393 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9396 esac
9397 link_all_deplibs=yes
9400 sunos4*)
9401 if test "x$host_vendor" = xsequent; then
9402 # Use $CC to link under sequent, because it throws in some extra .o
9403 # files that make .init and .fini sections work.
9404 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9405 else
9406 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_libdir_flag_spec='-L$libdir'
9409 hardcode_direct=yes
9410 hardcode_minus_L=yes
9411 hardcode_shlibpath_var=no
9414 sysv4)
9415 case $host_vendor in
9416 sni)
9417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9418 hardcode_direct=yes # is this really true???
9420 siemens)
9421 ## LD is ld it makes a PLAMLIB
9422 ## CC just makes a GrossModule.
9423 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9424 reload_cmds='$CC -r -o $output$reload_objs'
9425 hardcode_direct=no
9427 motorola)
9428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9431 esac
9432 runpath_var='LD_RUN_PATH'
9433 hardcode_shlibpath_var=no
9436 sysv4.3*)
9437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9438 hardcode_shlibpath_var=no
9439 export_dynamic_flag_spec='-Bexport'
9442 sysv4*MP*)
9443 if test -d /usr/nec; then
9444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_shlibpath_var=no
9446 runpath_var=LD_RUN_PATH
9447 hardcode_runpath_var=yes
9448 ld_shlibs=yes
9452 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9453 no_undefined_flag='${wl}-z,text'
9454 archive_cmds_need_lc=no
9455 hardcode_shlibpath_var=no
9456 runpath_var='LD_RUN_PATH'
9458 if test "$GCC" = yes; then
9459 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 else
9462 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9463 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 sysv5* | sco3.2v5* | sco5v6*)
9468 # Note: We can NOT use -z defs as we might desire, because we do not
9469 # link with -lc, and that would cause any symbols used from libc to
9470 # always be unresolved, which means just about no library would
9471 # ever link correctly. If we're not using GNU ld we use -z text
9472 # though, which does catch some bad symbols but isn't as heavy-handed
9473 # as -z defs.
9474 no_undefined_flag='${wl}-z,text'
9475 allow_undefined_flag='${wl}-z,nodefs'
9476 archive_cmds_need_lc=no
9477 hardcode_shlibpath_var=no
9478 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9479 hardcode_libdir_separator=':'
9480 link_all_deplibs=yes
9481 export_dynamic_flag_spec='${wl}-Bexport'
9482 runpath_var='LD_RUN_PATH'
9484 if test "$GCC" = yes; then
9485 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487 else
9488 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 uts4*)
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_libdir_flag_spec='-L$libdir'
9496 hardcode_shlibpath_var=no
9500 ld_shlibs=no
9502 esac
9504 if test x$host_vendor = xsni; then
9505 case $host in
9506 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9507 export_dynamic_flag_spec='${wl}-Blargedynsym'
9509 esac
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9514 $as_echo "$ld_shlibs" >&6; }
9515 test "$ld_shlibs" = no && can_build_shared=no
9517 with_gnu_ld=$with_gnu_ld
9534 # Do we need to explicitly link libc?
9536 case "x$archive_cmds_need_lc" in
9537 x|xyes)
9538 # Assume -lc should be added
9539 archive_cmds_need_lc=yes
9541 if test "$enable_shared" = yes && test "$GCC" = yes; then
9542 case $archive_cmds in
9543 *'~'*)
9544 # FIXME: we may have to deal with multi-command sequences.
9546 '$CC '*)
9547 # Test whether the compiler implicitly links with -lc since on some
9548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9549 # to ld, don't add -lc before -lgcc.
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9551 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9552 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 $RM conftest*
9556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9559 (eval $ac_compile) 2>&5
9560 ac_status=$?
9561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9562 test $ac_status = 0; } 2>conftest.err; then
9563 soname=conftest
9564 lib=conftest
9565 libobjs=conftest.$ac_objext
9566 deplibs=
9567 wl=$lt_prog_compiler_wl
9568 pic_flag=$lt_prog_compiler_pic
9569 compiler_flags=-v
9570 linker_flags=-v
9571 verstring=
9572 output_objdir=.
9573 libname=conftest
9574 lt_save_allow_undefined_flag=$allow_undefined_flag
9575 allow_undefined_flag=
9576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9577 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9578 ac_status=$?
9579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9580 test $ac_status = 0; }
9581 then
9582 lt_cv_archive_cmds_need_lc=no
9583 else
9584 lt_cv_archive_cmds_need_lc=yes
9586 allow_undefined_flag=$lt_save_allow_undefined_flag
9587 else
9588 cat conftest.err 1>&5
9590 $RM conftest*
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9594 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9595 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9597 esac
9600 esac
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9759 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9761 if test "$GCC" = yes; then
9762 case $host_os in
9763 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9764 *) lt_awk_arg="/^libraries:/" ;;
9765 esac
9766 case $host_os in
9767 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9768 *) lt_sed_strip_eq="s,=/,/,g" ;;
9769 esac
9770 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9771 case $lt_search_path_spec in
9772 *\;*)
9773 # if the path contains ";" then we assume it to be the separator
9774 # otherwise default to the standard path separator (i.e. ":") - it is
9775 # assumed that no part of a normal pathname contains ";" but that should
9776 # okay in the real world where ";" in dirpaths is itself problematic.
9777 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9780 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9782 esac
9783 # Ok, now we have the path, separated by spaces, we can step through it
9784 # and add multilib dir if necessary.
9785 lt_tmp_lt_search_path_spec=
9786 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9787 for lt_sys_path in $lt_search_path_spec; do
9788 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9789 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9790 else
9791 test -d "$lt_sys_path" && \
9792 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9794 done
9795 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9796 BEGIN {RS=" "; FS="/|\n";} {
9797 lt_foo="";
9798 lt_count=0;
9799 for (lt_i = NF; lt_i > 0; lt_i--) {
9800 if ($lt_i != "" && $lt_i != ".") {
9801 if ($lt_i == "..") {
9802 lt_count++;
9803 } else {
9804 if (lt_count == 0) {
9805 lt_foo="/" $lt_i lt_foo;
9806 } else {
9807 lt_count--;
9812 if (lt_foo != "") { lt_freq[lt_foo]++; }
9813 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9815 # AWK program above erroneously prepends '/' to C:/dos/paths
9816 # for these hosts.
9817 case $host_os in
9818 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9819 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9820 esac
9821 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9822 else
9823 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9825 library_names_spec=
9826 libname_spec='lib$name'
9827 soname_spec=
9828 shrext_cmds=".so"
9829 postinstall_cmds=
9830 postuninstall_cmds=
9831 finish_cmds=
9832 finish_eval=
9833 shlibpath_var=
9834 shlibpath_overrides_runpath=unknown
9835 version_type=none
9836 dynamic_linker="$host_os ld.so"
9837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9838 need_lib_prefix=unknown
9839 hardcode_into_libs=no
9841 # when you set need_version to no, make sure it does not cause -set_version
9842 # flags to be left without arguments
9843 need_version=unknown
9845 case $host_os in
9846 aix3*)
9847 version_type=linux
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9849 shlibpath_var=LIBPATH
9851 # AIX 3 has no versioning support, so we append a major version to the name.
9852 soname_spec='${libname}${release}${shared_ext}$major'
9855 aix[4-9]*)
9856 version_type=linux
9857 need_lib_prefix=no
9858 need_version=no
9859 hardcode_into_libs=yes
9860 if test "$host_cpu" = ia64; then
9861 # AIX 5 supports IA64
9862 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 else
9865 # With GCC up to 2.95.x, collect2 would create an import file
9866 # for dependence libraries. The import file would start with
9867 # the line `#! .'. This would cause the generated library to
9868 # depend on `.', always an invalid library. This was fixed in
9869 # development snapshots of GCC prior to 3.0.
9870 case $host_os in
9871 aix4 | aix4.[01] | aix4.[01].*)
9872 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9873 echo ' yes '
9874 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9876 else
9877 can_build_shared=no
9880 esac
9881 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9882 # soname into executable. Probably we can add versioning support to
9883 # collect2, so additional links can be useful in future.
9884 if test "$aix_use_runtimelinking" = yes; then
9885 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9886 # instead of lib<name>.a to let people know that these are not
9887 # typical AIX shared libraries.
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 else
9890 # We preserve .a as extension for shared libraries through AIX4.2
9891 # and later when we are not doing run time linking.
9892 library_names_spec='${libname}${release}.a $libname.a'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9895 shlibpath_var=LIBPATH
9899 amigaos*)
9900 case $host_cpu in
9901 powerpc)
9902 # Since July 2007 AmigaOS4 officially supports .so libraries.
9903 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9906 m68k)
9907 library_names_spec='$libname.ixlibrary $libname.a'
9908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9909 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'
9911 esac
9914 beos*)
9915 library_names_spec='${libname}${shared_ext}'
9916 dynamic_linker="$host_os ld.so"
9917 shlibpath_var=LIBRARY_PATH
9920 bsdi[45]*)
9921 version_type=linux
9922 need_version=no
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9929 # the default ld.so.conf also contains /usr/contrib/lib and
9930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9931 # libtool to hard-code these into programs
9934 cygwin* | mingw* | pw32* | cegcc*)
9935 version_type=windows
9936 shrext_cmds=".dll"
9937 need_version=no
9938 need_lib_prefix=no
9940 case $GCC,$host_os in
9941 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9942 library_names_spec='$libname.dll.a'
9943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9944 postinstall_cmds='base_file=`basename \${file}`~
9945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9946 dldir=$destdir/`dirname \$dlpath`~
9947 test -d \$dldir || mkdir -p \$dldir~
9948 $install_prog $dir/$dlname \$dldir/$dlname~
9949 chmod a+x \$dldir/$dlname~
9950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9954 dlpath=$dir/\$dldll~
9955 $RM \$dlpath'
9956 shlibpath_overrides_runpath=yes
9958 case $host_os in
9959 cygwin*)
9960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9963 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9965 mingw* | cegcc*)
9966 # MinGW DLLs use traditional 'lib' prefix
9967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9969 pw32*)
9970 # pw32 DLLs use 'pw' prefix rather than 'lib'
9971 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973 esac
9977 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9979 esac
9980 dynamic_linker='Win32 ld.exe'
9981 # FIXME: first we should search . and the directory the executable is in
9982 shlibpath_var=PATH
9985 darwin* | rhapsody*)
9986 dynamic_linker="$host_os dyld"
9987 version_type=darwin
9988 need_lib_prefix=no
9989 need_version=no
9990 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9991 soname_spec='${libname}${release}${major}$shared_ext'
9992 shlibpath_overrides_runpath=yes
9993 shlibpath_var=DYLD_LIBRARY_PATH
9994 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10000 dgux*)
10001 version_type=linux
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 shlibpath_var=LD_LIBRARY_PATH
10009 freebsd1*)
10010 dynamic_linker=no
10013 freebsd* | dragonfly*)
10014 # DragonFly does not have aout. When/if they implement a new
10015 # versioning mechanism, adjust this.
10016 if test -x /usr/bin/objformat; then
10017 objformat=`/usr/bin/objformat`
10018 else
10019 case $host_os in
10020 freebsd[123]*) objformat=aout ;;
10021 *) objformat=elf ;;
10022 esac
10024 version_type=freebsd-$objformat
10025 case $version_type in
10026 freebsd-elf*)
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10028 need_version=no
10029 need_lib_prefix=no
10031 freebsd-*)
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10033 need_version=yes
10035 esac
10036 shlibpath_var=LD_LIBRARY_PATH
10037 case $host_os in
10038 freebsd2*)
10039 shlibpath_overrides_runpath=yes
10041 freebsd3.[01]* | freebsdelf3.[01]*)
10042 shlibpath_overrides_runpath=yes
10043 hardcode_into_libs=yes
10045 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10046 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10050 *) # from 4.6 on, and DragonFly
10051 shlibpath_overrides_runpath=yes
10052 hardcode_into_libs=yes
10054 esac
10057 gnu*)
10058 version_type=linux
10059 need_lib_prefix=no
10060 need_version=no
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 hardcode_into_libs=yes
10067 haiku*)
10068 version_type=linux
10069 need_lib_prefix=no
10070 need_version=no
10071 dynamic_linker="$host_os runtime_loader"
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 shlibpath_var=LIBRARY_PATH
10075 shlibpath_overrides_runpath=yes
10076 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10077 hardcode_into_libs=yes
10080 hpux9* | hpux10* | hpux11*)
10081 # Give a soname corresponding to the major version so that dld.sl refuses to
10082 # link against other versions.
10083 version_type=sunos
10084 need_lib_prefix=no
10085 need_version=no
10086 case $host_cpu in
10087 ia64*)
10088 shrext_cmds='.so'
10089 hardcode_into_libs=yes
10090 dynamic_linker="$host_os dld.so"
10091 shlibpath_var=LD_LIBRARY_PATH
10092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 if test "X$HPUX_IA64_MODE" = X32; then
10096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10097 else
10098 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10102 hppa*64*)
10103 shrext_cmds='.sl'
10104 hardcode_into_libs=yes
10105 dynamic_linker="$host_os dld.sl"
10106 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10114 shrext_cmds='.sl'
10115 dynamic_linker="$host_os dld.sl"
10116 shlibpath_var=SHLIB_PATH
10117 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10121 esac
10122 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10123 postinstall_cmds='chmod 555 $lib'
10124 # or fails outright, so override atomically:
10125 install_override_mode=555
10128 interix[3-9]*)
10129 version_type=linux
10130 need_lib_prefix=no
10131 need_version=no
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=no
10137 hardcode_into_libs=yes
10140 irix5* | irix6* | nonstopux*)
10141 case $host_os in
10142 nonstopux*) version_type=nonstopux ;;
10144 if test "$lt_cv_prog_gnu_ld" = yes; then
10145 version_type=linux
10146 else
10147 version_type=irix
10148 fi ;;
10149 esac
10150 need_lib_prefix=no
10151 need_version=no
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10154 case $host_os in
10155 irix5* | nonstopux*)
10156 libsuff= shlibsuff=
10159 case $LD in # libtool.m4 will add one of these switches to LD
10160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10161 libsuff= shlibsuff= libmagic=32-bit;;
10162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10163 libsuff=32 shlibsuff=N32 libmagic=N32;;
10164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10166 *) libsuff= shlibsuff= libmagic=never-match;;
10167 esac
10169 esac
10170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10171 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10174 hardcode_into_libs=yes
10177 # No shared lib support for Linux oldld, aout, or coff.
10178 linux*oldld* | linux*aout* | linux*coff*)
10179 dynamic_linker=no
10182 # This must be Linux ELF.
10183 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10184 version_type=linux
10185 need_lib_prefix=no
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=no
10193 # Some binutils ld are patched to set DT_RUNPATH
10194 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 lt_cv_shlibpath_overrides_runpath=no
10198 save_LDFLAGS=$LDFLAGS
10199 save_libdir=$libdir
10200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10206 main ()
10210 return 0;
10212 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"; then :
10214 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10215 lt_cv_shlibpath_overrides_runpath=yes
10218 rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220 LDFLAGS=$save_LDFLAGS
10221 libdir=$save_libdir
10225 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10227 # This implies no fast_install, which is unacceptable.
10228 # Some rework will be needed to allow for fast_install
10229 # before this can be enabled.
10230 hardcode_into_libs=yes
10232 # Append ld.so.conf contents to the search path
10233 if test -f /etc/ld.so.conf; then
10234 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' ' '`
10235 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10238 # We used to test for /lib/ld.so.1 and disable shared libraries on
10239 # powerpc, because MkLinux only supported shared libraries with the
10240 # GNU dynamic linker. Since this was broken with cross compilers,
10241 # most powerpc-linux boxes support dynamic linking these days and
10242 # people can always --disable-shared, the test was removed, and we
10243 # assume the GNU/Linux dynamic linker is in use.
10244 dynamic_linker='GNU/Linux ld.so'
10247 netbsd*)
10248 version_type=sunos
10249 need_lib_prefix=no
10250 need_version=no
10251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10254 dynamic_linker='NetBSD (a.out) ld.so'
10255 else
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 dynamic_linker='NetBSD ld.elf_so'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=yes
10262 hardcode_into_libs=yes
10265 newsos6)
10266 version_type=linux
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=yes
10272 *nto* | *qnx*)
10273 version_type=qnx
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=no
10280 hardcode_into_libs=yes
10281 dynamic_linker='ldqnx.so'
10284 openbsd*)
10285 version_type=sunos
10286 sys_lib_dlsearch_path_spec="/usr/lib"
10287 need_lib_prefix=no
10288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10289 case $host_os in
10290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10291 *) need_version=no ;;
10292 esac
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10297 case $host_os in
10298 openbsd2.[89] | openbsd2.[89].*)
10299 shlibpath_overrides_runpath=no
10302 shlibpath_overrides_runpath=yes
10304 esac
10305 else
10306 shlibpath_overrides_runpath=yes
10310 os2*)
10311 libname_spec='$name'
10312 shrext_cmds=".dll"
10313 need_lib_prefix=no
10314 library_names_spec='$libname${shared_ext} $libname.a'
10315 dynamic_linker='OS/2 ld.exe'
10316 shlibpath_var=LIBPATH
10319 osf3* | osf4* | osf5*)
10320 version_type=osf
10321 need_lib_prefix=no
10322 need_version=no
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10330 rdos*)
10331 dynamic_linker=no
10334 solaris*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes
10342 hardcode_into_libs=yes
10343 # ldd complains unless libraries are executable
10344 postinstall_cmds='chmod +x $lib'
10347 sunos4*)
10348 version_type=sunos
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10350 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 if test "$with_gnu_ld" = yes; then
10354 need_lib_prefix=no
10356 need_version=yes
10359 sysv4 | sysv4.3*)
10360 version_type=linux
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 case $host_vendor in
10365 sni)
10366 shlibpath_overrides_runpath=no
10367 need_lib_prefix=no
10368 runpath_var=LD_RUN_PATH
10370 siemens)
10371 need_lib_prefix=no
10373 motorola)
10374 need_lib_prefix=no
10375 need_version=no
10376 shlibpath_overrides_runpath=no
10377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10379 esac
10382 sysv4*MP*)
10383 if test -d /usr/nec ;then
10384 version_type=linux
10385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10386 soname_spec='$libname${shared_ext}.$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10392 version_type=freebsd-elf
10393 need_lib_prefix=no
10394 need_version=no
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=yes
10399 hardcode_into_libs=yes
10400 if test "$with_gnu_ld" = yes; then
10401 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10402 else
10403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10404 case $host_os in
10405 sco3.2v5*)
10406 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10408 esac
10410 sys_lib_dlsearch_path_spec='/usr/lib'
10413 tpf*)
10414 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10415 version_type=linux
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=no
10421 hardcode_into_libs=yes
10424 uts4*)
10425 version_type=linux
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10432 dynamic_linker=no
10434 esac
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10436 $as_echo "$dynamic_linker" >&6; }
10437 test "$dynamic_linker" = no && can_build_shared=no
10439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10440 if test "$GCC" = yes; then
10441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10444 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10445 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10447 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10448 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10543 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10544 hardcode_action=
10545 if test -n "$hardcode_libdir_flag_spec" ||
10546 test -n "$runpath_var" ||
10547 test "X$hardcode_automatic" = "Xyes" ; then
10549 # We can hardcode non-existent directories.
10550 if test "$hardcode_direct" != no &&
10551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10552 # have to relink, otherwise we might link with an installed library
10553 # when we should be linking with a yet-to-be-installed one
10554 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10555 test "$hardcode_minus_L" != no; then
10556 # Linking always hardcodes the temporary library directory.
10557 hardcode_action=relink
10558 else
10559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10560 hardcode_action=immediate
10562 else
10563 # We cannot hardcode anything, or else we can only hardcode existing
10564 # directories.
10565 hardcode_action=unsupported
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10568 $as_echo "$hardcode_action" >&6; }
10570 if test "$hardcode_action" = relink ||
10571 test "$inherit_rpath" = yes; then
10572 # Fast installation is not supported
10573 enable_fast_install=no
10574 elif test "$shlibpath_overrides_runpath" = yes ||
10575 test "$enable_shared" = no; then
10576 # Fast installation is not necessary
10577 enable_fast_install=needless
10585 if test "x$enable_dlopen" != xyes; then
10586 enable_dlopen=unknown
10587 enable_dlopen_self=unknown
10588 enable_dlopen_self_static=unknown
10589 else
10590 lt_cv_dlopen=no
10591 lt_cv_dlopen_libs=
10593 case $host_os in
10594 beos*)
10595 lt_cv_dlopen="load_add_on"
10596 lt_cv_dlopen_libs=
10597 lt_cv_dlopen_self=yes
10600 mingw* | pw32* | cegcc*)
10601 lt_cv_dlopen="LoadLibrary"
10602 lt_cv_dlopen_libs=
10605 cygwin*)
10606 lt_cv_dlopen="dlopen"
10607 lt_cv_dlopen_libs=
10610 darwin*)
10611 # if libdl is installed we need to link against it
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 ac_check_lib_save_LIBS=$LIBS
10618 LIBS="-ldl $LIBS"
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10622 /* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 char dlopen ();
10630 main ()
10632 return dlopen ();
10634 return 0;
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 ac_cv_lib_dl_dlopen=yes
10639 else
10640 ac_cv_lib_dl_dlopen=no
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS=$ac_check_lib_save_LIBS
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10648 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10650 else
10652 lt_cv_dlopen="dyld"
10653 lt_cv_dlopen_libs=
10654 lt_cv_dlopen_self=yes
10661 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10662 if test "x$ac_cv_func_shl_load" = x""yes; then :
10663 lt_cv_dlopen="shl_load"
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10666 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10667 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-ldld $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10678 #ifdef __cplusplus
10679 extern "C"
10680 #endif
10681 char shl_load ();
10683 main ()
10685 return shl_load ();
10687 return 0;
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_dld_shl_load=yes
10692 else
10693 ac_cv_lib_dld_shl_load=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10700 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10701 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10702 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10703 else
10704 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10705 if test "x$ac_cv_func_dlopen" = x""yes; then :
10706 lt_cv_dlopen="dlopen"
10707 else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10709 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 ac_check_lib_save_LIBS=$LIBS
10714 LIBS="-ldl $LIBS"
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10718 /* Override any GCC internal prototype to avoid an error.
10719 Use char because int might match the return type of a GCC
10720 builtin and then its argument prototype would still apply. */
10721 #ifdef __cplusplus
10722 extern "C"
10723 #endif
10724 char dlopen ();
10726 main ()
10728 return dlopen ();
10730 return 0;
10732 _ACEOF
10733 if ac_fn_c_try_link "$LINENO"; then :
10734 ac_cv_lib_dl_dlopen=yes
10735 else
10736 ac_cv_lib_dl_dlopen=no
10738 rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10743 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10744 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10748 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10749 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 ac_check_lib_save_LIBS=$LIBS
10753 LIBS="-lsvld $LIBS"
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 /* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10760 #ifdef __cplusplus
10761 extern "C"
10762 #endif
10763 char dlopen ();
10765 main ()
10767 return dlopen ();
10769 return 0;
10771 _ACEOF
10772 if ac_fn_c_try_link "$LINENO"; then :
10773 ac_cv_lib_svld_dlopen=yes
10774 else
10775 ac_cv_lib_svld_dlopen=no
10777 rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 LIBS=$ac_check_lib_save_LIBS
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10782 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10783 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10787 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10788 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-ldld $LIBS"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 char dld_link ();
10804 main ()
10806 return dld_link ();
10808 return 0;
10810 _ACEOF
10811 if ac_fn_c_try_link "$LINENO"; then :
10812 ac_cv_lib_dld_dld_link=yes
10813 else
10814 ac_cv_lib_dld_dld_link=no
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10821 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10822 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10823 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10842 esac
10844 if test "x$lt_cv_dlopen" != xno; then
10845 enable_dlopen=yes
10846 else
10847 enable_dlopen=no
10850 case $lt_cv_dlopen in
10851 dlopen)
10852 save_CPPFLAGS="$CPPFLAGS"
10853 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10855 save_LDFLAGS="$LDFLAGS"
10856 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10858 save_LIBS="$LIBS"
10859 LIBS="$lt_cv_dlopen_libs $LIBS"
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10862 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10863 if test "${lt_cv_dlopen_self+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 if test "$cross_compiling" = yes; then :
10867 lt_cv_dlopen_self=cross
10868 else
10869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10870 lt_status=$lt_dlunknown
10871 cat > conftest.$ac_ext <<_LT_EOF
10872 #line 10872 "configure"
10873 #include "confdefs.h"
10875 #if HAVE_DLFCN_H
10876 #include <dlfcn.h>
10877 #endif
10879 #include <stdio.h>
10881 #ifdef RTLD_GLOBAL
10882 # define LT_DLGLOBAL RTLD_GLOBAL
10883 #else
10884 # ifdef DL_GLOBAL
10885 # define LT_DLGLOBAL DL_GLOBAL
10886 # else
10887 # define LT_DLGLOBAL 0
10888 # endif
10889 #endif
10891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10892 find out it does not work in some platform. */
10893 #ifndef LT_DLLAZY_OR_NOW
10894 # ifdef RTLD_LAZY
10895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10896 # else
10897 # ifdef DL_LAZY
10898 # define LT_DLLAZY_OR_NOW DL_LAZY
10899 # else
10900 # ifdef RTLD_NOW
10901 # define LT_DLLAZY_OR_NOW RTLD_NOW
10902 # else
10903 # ifdef DL_NOW
10904 # define LT_DLLAZY_OR_NOW DL_NOW
10905 # else
10906 # define LT_DLLAZY_OR_NOW 0
10907 # endif
10908 # endif
10909 # endif
10910 # endif
10911 #endif
10913 /* When -fvisbility=hidden is used, assume the code has been annotated
10914 correspondingly for the symbols needed. */
10915 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10916 void fnord () __attribute__((visibility("default")));
10917 #endif
10919 void fnord () { int i=42; }
10920 int main ()
10922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10923 int status = $lt_dlunknown;
10925 if (self)
10927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10928 else
10930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10931 else puts (dlerror ());
10933 /* dlclose (self); */
10935 else
10936 puts (dlerror ());
10938 return status;
10940 _LT_EOF
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10942 (eval $ac_link) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10946 (./conftest; exit; ) >&5 2>/dev/null
10947 lt_status=$?
10948 case x$lt_status in
10949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10951 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10952 esac
10953 else :
10954 # compilation failed
10955 lt_cv_dlopen_self=no
10958 rm -fr conftest*
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10963 $as_echo "$lt_cv_dlopen_self" >&6; }
10965 if test "x$lt_cv_dlopen_self" = xyes; then
10966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10968 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10969 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 if test "$cross_compiling" = yes; then :
10973 lt_cv_dlopen_self_static=cross
10974 else
10975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10976 lt_status=$lt_dlunknown
10977 cat > conftest.$ac_ext <<_LT_EOF
10978 #line 10978 "configure"
10979 #include "confdefs.h"
10981 #if HAVE_DLFCN_H
10982 #include <dlfcn.h>
10983 #endif
10985 #include <stdio.h>
10987 #ifdef RTLD_GLOBAL
10988 # define LT_DLGLOBAL RTLD_GLOBAL
10989 #else
10990 # ifdef DL_GLOBAL
10991 # define LT_DLGLOBAL DL_GLOBAL
10992 # else
10993 # define LT_DLGLOBAL 0
10994 # endif
10995 #endif
10997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10998 find out it does not work in some platform. */
10999 #ifndef LT_DLLAZY_OR_NOW
11000 # ifdef RTLD_LAZY
11001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11002 # else
11003 # ifdef DL_LAZY
11004 # define LT_DLLAZY_OR_NOW DL_LAZY
11005 # else
11006 # ifdef RTLD_NOW
11007 # define LT_DLLAZY_OR_NOW RTLD_NOW
11008 # else
11009 # ifdef DL_NOW
11010 # define LT_DLLAZY_OR_NOW DL_NOW
11011 # else
11012 # define LT_DLLAZY_OR_NOW 0
11013 # endif
11014 # endif
11015 # endif
11016 # endif
11017 #endif
11019 /* When -fvisbility=hidden is used, assume the code has been annotated
11020 correspondingly for the symbols needed. */
11021 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11022 void fnord () __attribute__((visibility("default")));
11023 #endif
11025 void fnord () { int i=42; }
11026 int main ()
11028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11029 int status = $lt_dlunknown;
11031 if (self)
11033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11034 else
11036 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11037 else puts (dlerror ());
11039 /* dlclose (self); */
11041 else
11042 puts (dlerror ());
11044 return status;
11046 _LT_EOF
11047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11048 (eval $ac_link) 2>&5
11049 ac_status=$?
11050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11051 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11052 (./conftest; exit; ) >&5 2>/dev/null
11053 lt_status=$?
11054 case x$lt_status in
11055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11058 esac
11059 else :
11060 # compilation failed
11061 lt_cv_dlopen_self_static=no
11064 rm -fr conftest*
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11069 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11072 CPPFLAGS="$save_CPPFLAGS"
11073 LDFLAGS="$save_LDFLAGS"
11074 LIBS="$save_LIBS"
11076 esac
11078 case $lt_cv_dlopen_self in
11079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11080 *) enable_dlopen_self=unknown ;;
11081 esac
11083 case $lt_cv_dlopen_self_static in
11084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11085 *) enable_dlopen_self_static=unknown ;;
11086 esac
11105 striplib=
11106 old_striplib=
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11108 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11109 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11110 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11111 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113 $as_echo "yes" >&6; }
11114 else
11115 # FIXME - insert some real tests, host_os isn't really good enough
11116 case $host_os in
11117 darwin*)
11118 if test -n "$STRIP" ; then
11119 striplib="$STRIP -x"
11120 old_striplib="$STRIP -S"
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11122 $as_echo "yes" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11132 esac
11146 # Report which library types will actually be built
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11148 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11150 $as_echo "$can_build_shared" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11153 $as_echo_n "checking whether to build shared libraries... " >&6; }
11154 test "$can_build_shared" = "no" && enable_shared=no
11156 # On AIX, shared libraries and static libraries use the same namespace, and
11157 # are all built from PIC.
11158 case $host_os in
11159 aix3*)
11160 test "$enable_shared" = yes && enable_static=no
11161 if test -n "$RANLIB"; then
11162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11163 postinstall_cmds='$RANLIB $lib'
11167 aix[4-9]*)
11168 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11169 test "$enable_shared" = yes && enable_static=no
11172 esac
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11174 $as_echo "$enable_shared" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11177 $as_echo_n "checking whether to build static libraries... " >&6; }
11178 # Make sure either enable_shared or enable_static is yes.
11179 test "$enable_shared" = yes || enable_static=yes
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11181 $as_echo "$enable_static" >&6; }
11187 ac_ext=c
11188 ac_cpp='$CPP $CPPFLAGS'
11189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11193 CC="$lt_save_CC"
11207 # Source file extension for Go test sources.
11208 ac_ext=go
11210 # Object file extension for compiled Go test sources.
11211 objext=o
11212 objext_GO=$objext
11214 # Code to be used in simple compile tests
11215 lt_simple_compile_test_code="package main; func main() { }"
11217 # Code to be used in simple link tests
11218 lt_simple_link_test_code='package main; func main() { }'
11220 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11227 # If no C compiler was specified, use CC.
11228 LTCC=${LTCC-"$CC"}
11230 # If no C compiler flags were specified, use CFLAGS.
11231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11233 # Allow CC to be a program name with arguments.
11234 compiler=$CC
11237 # save warnings/boilerplate of simple test code
11238 ac_outfile=conftest.$ac_objext
11239 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11240 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11241 _lt_compiler_boilerplate=`cat conftest.err`
11242 $RM conftest*
11244 ac_outfile=conftest.$ac_objext
11245 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11246 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11247 _lt_linker_boilerplate=`cat conftest.err`
11248 $RM -r conftest*
11251 # Allow CC to be a program name with arguments.
11252 lt_save_CC="$CC"
11253 lt_save_GCC="$GCC"
11254 GCC=yes
11255 CC=${GOC-"gccgo"}
11256 compiler=$CC
11257 compiler_GO=$CC
11258 LD_GO="$LD"
11259 for cc_temp in $compiler""; do
11260 case $cc_temp in
11261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11263 \-*) ;;
11264 *) break;;
11265 esac
11266 done
11267 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11270 # Go did not exist at the time GCC didn't implicitly link libc in.
11271 archive_cmds_need_lc_GO=no
11273 old_archive_cmds_GO=$old_archive_cmds
11275 ## CAVEAT EMPTOR:
11276 ## There is no encapsulation within the following macros, do not change
11277 ## the running order or otherwise move them around unless you know exactly
11278 ## what you are doing...
11279 if test -n "$compiler"; then
11281 lt_prog_compiler_no_builtin_flag_GO=
11283 if test "$GCC" = yes; then
11284 case $cc_basename in
11285 nvcc*)
11286 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11288 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11289 esac
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11292 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11293 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 lt_cv_prog_compiler_rtti_exceptions=no
11297 ac_outfile=conftest.$ac_objext
11298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11299 lt_compiler_flag="-fno-rtti -fno-exceptions"
11300 # Insert the option either (1) after the last *FLAGS variable, or
11301 # (2) before a word containing "conftest.", or (3) at the end.
11302 # Note that $ac_compile itself does not contain backslashes and begins
11303 # with a dollar sign (not a hyphen), so the echo should work correctly.
11304 # The option is referenced via a variable to avoid confusing sed.
11305 lt_compile=`echo "$ac_compile" | $SED \
11306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11308 -e 's:$: $lt_compiler_flag:'`
11309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11310 (eval "$lt_compile" 2>conftest.err)
11311 ac_status=$?
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 if (exit $ac_status) && test -s "$ac_outfile"; then
11315 # The compiler can only warn and ignore the option if not recognized
11316 # So say no if there are warnings other than the usual output.
11317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11320 lt_cv_prog_compiler_rtti_exceptions=yes
11323 $RM conftest*
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11327 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11330 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11331 else
11339 lt_prog_compiler_wl_GO=
11340 lt_prog_compiler_pic_GO=
11341 lt_prog_compiler_static_GO=
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11344 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11346 if test "$GCC" = yes; then
11347 lt_prog_compiler_wl_GO='-Wl,'
11348 lt_prog_compiler_static_GO='-static'
11350 case $host_os in
11351 aix*)
11352 # All AIX code is PIC.
11353 if test "$host_cpu" = ia64; then
11354 # AIX 5 now supports IA64 processor
11355 lt_prog_compiler_static_GO='-Bstatic'
11359 amigaos*)
11360 case $host_cpu in
11361 powerpc)
11362 # see comment about AmigaOS4 .so support
11363 lt_prog_compiler_pic_GO='-fPIC'
11365 m68k)
11366 # FIXME: we need at least 68020 code to build shared libraries, but
11367 # adding the `-m68020' flag to GCC prevents building anything better,
11368 # like `-m68040'.
11369 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11371 esac
11374 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11375 # PIC is the default for these OSes.
11378 mingw* | cygwin* | pw32* | os2* | cegcc*)
11379 # This hack is so that the source file can tell whether it is being
11380 # built for inclusion in a dll (and should export symbols for example).
11381 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11382 # (--disable-auto-import) libraries
11383 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11386 darwin* | rhapsody*)
11387 # PIC is the default on this platform
11388 # Common symbols not allowed in MH_DYLIB files
11389 lt_prog_compiler_pic_GO='-fno-common'
11392 haiku*)
11393 # PIC is the default for Haiku.
11394 # The "-static" flag exists, but is broken.
11395 lt_prog_compiler_static_GO=
11398 hpux*)
11399 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11400 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11401 # sets the default TLS model and affects inlining.
11402 case $host_cpu in
11403 hppa*64*)
11404 # +Z the default
11407 lt_prog_compiler_pic_GO='-fPIC'
11409 esac
11412 interix[3-9]*)
11413 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11414 # Instead, we relocate shared libraries at runtime.
11417 msdosdjgpp*)
11418 # Just because we use GCC doesn't mean we suddenly get shared libraries
11419 # on systems that don't support them.
11420 lt_prog_compiler_can_build_shared_GO=no
11421 enable_shared=no
11424 *nto* | *qnx*)
11425 # QNX uses GNU C++, but need to define -shared option too, otherwise
11426 # it will coredump.
11427 lt_prog_compiler_pic_GO='-fPIC -shared'
11430 sysv4*MP*)
11431 if test -d /usr/nec; then
11432 lt_prog_compiler_pic_GO=-Kconform_pic
11437 lt_prog_compiler_pic_GO='-fPIC'
11439 esac
11441 case $cc_basename in
11442 nvcc*) # Cuda Compiler Driver 2.2
11443 lt_prog_compiler_wl_GO='-Xlinker '
11444 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11446 esac
11447 else
11448 # PORTME Check for flag to pass linker flags through the system compiler.
11449 case $host_os in
11450 aix*)
11451 lt_prog_compiler_wl_GO='-Wl,'
11452 if test "$host_cpu" = ia64; then
11453 # AIX 5 now supports IA64 processor
11454 lt_prog_compiler_static_GO='-Bstatic'
11455 else
11456 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11460 mingw* | cygwin* | pw32* | os2* | cegcc*)
11461 # This hack is so that the source file can tell whether it is being
11462 # built for inclusion in a dll (and should export symbols for example).
11463 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11466 hpux9* | hpux10* | hpux11*)
11467 lt_prog_compiler_wl_GO='-Wl,'
11468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11469 # not for PA HP-UX.
11470 case $host_cpu in
11471 hppa*64*|ia64*)
11472 # +Z the default
11475 lt_prog_compiler_pic_GO='+Z'
11477 esac
11478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11479 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11482 irix5* | irix6* | nonstopux*)
11483 lt_prog_compiler_wl_GO='-Wl,'
11484 # PIC (with -KPIC) is the default.
11485 lt_prog_compiler_static_GO='-non_shared'
11488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11489 case $cc_basename in
11490 # old Intel for x86_64 which still supported -KPIC.
11491 ecc*)
11492 lt_prog_compiler_wl_GO='-Wl,'
11493 lt_prog_compiler_pic_GO='-KPIC'
11494 lt_prog_compiler_static_GO='-static'
11496 # icc used to be incompatible with GCC.
11497 # ICC 10 doesn't accept -KPIC any more.
11498 icc* | ifort*)
11499 lt_prog_compiler_wl_GO='-Wl,'
11500 lt_prog_compiler_pic_GO='-fPIC'
11501 lt_prog_compiler_static_GO='-static'
11503 # Lahey Fortran 8.1.
11504 lf95*)
11505 lt_prog_compiler_wl_GO='-Wl,'
11506 lt_prog_compiler_pic_GO='--shared'
11507 lt_prog_compiler_static_GO='--static'
11509 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11510 # Portland Group compilers (*not* the Pentium gcc compiler,
11511 # which looks to be a dead project)
11512 lt_prog_compiler_wl_GO='-Wl,'
11513 lt_prog_compiler_pic_GO='-fpic'
11514 lt_prog_compiler_static_GO='-Bstatic'
11516 ccc*)
11517 lt_prog_compiler_wl_GO='-Wl,'
11518 # All Alpha code is PIC.
11519 lt_prog_compiler_static_GO='-non_shared'
11521 xl* | bgxl* | bgf* | mpixl*)
11522 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11523 lt_prog_compiler_wl_GO='-Wl,'
11524 lt_prog_compiler_pic_GO='-qpic'
11525 lt_prog_compiler_static_GO='-qstaticlink'
11528 case `$CC -V 2>&1 | sed 5q` in
11529 *Sun\ F* | *Sun*Fortran*)
11530 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11531 lt_prog_compiler_pic_GO='-KPIC'
11532 lt_prog_compiler_static_GO='-Bstatic'
11533 lt_prog_compiler_wl_GO=''
11535 *Sun\ C*)
11536 # Sun C 5.9
11537 lt_prog_compiler_pic_GO='-KPIC'
11538 lt_prog_compiler_static_GO='-Bstatic'
11539 lt_prog_compiler_wl_GO='-Wl,'
11541 esac
11543 esac
11546 newsos6)
11547 lt_prog_compiler_pic_GO='-KPIC'
11548 lt_prog_compiler_static_GO='-Bstatic'
11551 *nto* | *qnx*)
11552 # QNX uses GNU C++, but need to define -shared option too, otherwise
11553 # it will coredump.
11554 lt_prog_compiler_pic_GO='-fPIC -shared'
11557 osf3* | osf4* | osf5*)
11558 lt_prog_compiler_wl_GO='-Wl,'
11559 # All OSF/1 code is PIC.
11560 lt_prog_compiler_static_GO='-non_shared'
11563 rdos*)
11564 lt_prog_compiler_static_GO='-non_shared'
11567 solaris*)
11568 lt_prog_compiler_pic_GO='-KPIC'
11569 lt_prog_compiler_static_GO='-Bstatic'
11570 case $cc_basename in
11571 f77* | f90* | f95*)
11572 lt_prog_compiler_wl_GO='-Qoption ld ';;
11574 lt_prog_compiler_wl_GO='-Wl,';;
11575 esac
11578 sunos4*)
11579 lt_prog_compiler_wl_GO='-Qoption ld '
11580 lt_prog_compiler_pic_GO='-PIC'
11581 lt_prog_compiler_static_GO='-Bstatic'
11584 sysv4 | sysv4.2uw2* | sysv4.3*)
11585 lt_prog_compiler_wl_GO='-Wl,'
11586 lt_prog_compiler_pic_GO='-KPIC'
11587 lt_prog_compiler_static_GO='-Bstatic'
11590 sysv4*MP*)
11591 if test -d /usr/nec ;then
11592 lt_prog_compiler_pic_GO='-Kconform_pic'
11593 lt_prog_compiler_static_GO='-Bstatic'
11597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11598 lt_prog_compiler_wl_GO='-Wl,'
11599 lt_prog_compiler_pic_GO='-KPIC'
11600 lt_prog_compiler_static_GO='-Bstatic'
11603 unicos*)
11604 lt_prog_compiler_wl_GO='-Wl,'
11605 lt_prog_compiler_can_build_shared_GO=no
11608 uts4*)
11609 lt_prog_compiler_pic_GO='-pic'
11610 lt_prog_compiler_static_GO='-Bstatic'
11614 lt_prog_compiler_can_build_shared_GO=no
11616 esac
11619 case $host_os in
11620 # For platforms which do not support PIC, -DPIC is meaningless:
11621 *djgpp*)
11622 lt_prog_compiler_pic_GO=
11625 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11627 esac
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11629 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11634 # Check to make sure the PIC flag actually works.
11636 if test -n "$lt_prog_compiler_pic_GO"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11638 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11639 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 lt_cv_prog_compiler_pic_works_GO=no
11643 ac_outfile=conftest.$ac_objext
11644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11645 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11646 # Insert the option either (1) after the last *FLAGS variable, or
11647 # (2) before a word containing "conftest.", or (3) at the end.
11648 # Note that $ac_compile itself does not contain backslashes and begins
11649 # with a dollar sign (not a hyphen), so the echo should work correctly.
11650 # The option is referenced via a variable to avoid confusing sed.
11651 lt_compile=`echo "$ac_compile" | $SED \
11652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11654 -e 's:$: $lt_compiler_flag:'`
11655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11656 (eval "$lt_compile" 2>conftest.err)
11657 ac_status=$?
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 if (exit $ac_status) && test -s "$ac_outfile"; then
11661 # The compiler can only warn and ignore the option if not recognized
11662 # So say no if there are warnings other than the usual output.
11663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11666 lt_cv_prog_compiler_pic_works_GO=yes
11669 $RM conftest*
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11673 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11675 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11676 case $lt_prog_compiler_pic_GO in
11677 "" | " "*) ;;
11678 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11679 esac
11680 else
11681 lt_prog_compiler_pic_GO=
11682 lt_prog_compiler_can_build_shared_GO=no
11690 # Check to make sure the static flag actually works.
11692 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11694 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11695 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 lt_cv_prog_compiler_static_works_GO=no
11699 save_LDFLAGS="$LDFLAGS"
11700 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11701 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11703 # The linker can only warn and ignore the option if not recognized
11704 # So say no if there are warnings
11705 if test -s conftest.err; then
11706 # Append any errors to the config.log.
11707 cat conftest.err 1>&5
11708 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11710 if diff conftest.exp conftest.er2 >/dev/null; then
11711 lt_cv_prog_compiler_static_works_GO=yes
11713 else
11714 lt_cv_prog_compiler_static_works_GO=yes
11717 $RM -r conftest*
11718 LDFLAGS="$save_LDFLAGS"
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11722 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11724 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11726 else
11727 lt_prog_compiler_static_GO=
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11734 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11735 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 lt_cv_prog_compiler_c_o_GO=no
11739 $RM -r conftest 2>/dev/null
11740 mkdir conftest
11741 cd conftest
11742 mkdir out
11743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11745 lt_compiler_flag="-o out/conftest2.$ac_objext"
11746 # Insert the option either (1) after the last *FLAGS variable, or
11747 # (2) before a word containing "conftest.", or (3) at the end.
11748 # Note that $ac_compile itself does not contain backslashes and begins
11749 # with a dollar sign (not a hyphen), so the echo should work correctly.
11750 lt_compile=`echo "$ac_compile" | $SED \
11751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11753 -e 's:$: $lt_compiler_flag:'`
11754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11755 (eval "$lt_compile" 2>out/conftest.err)
11756 ac_status=$?
11757 cat out/conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11760 then
11761 # The compiler can only warn and ignore the option if not recognized
11762 # So say no if there are warnings
11763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11766 lt_cv_prog_compiler_c_o_GO=yes
11769 chmod u+w . 2>&5
11770 $RM conftest*
11771 # SGI C++ compiler will create directory out/ii_files/ for
11772 # template instantiation
11773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11774 $RM out/* && rmdir out
11775 cd ..
11776 $RM -r conftest
11777 $RM conftest*
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11781 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11786 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11787 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11788 $as_echo_n "(cached) " >&6
11789 else
11790 lt_cv_prog_compiler_c_o_GO=no
11791 $RM -r conftest 2>/dev/null
11792 mkdir conftest
11793 cd conftest
11794 mkdir out
11795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11797 lt_compiler_flag="-o out/conftest2.$ac_objext"
11798 # Insert the option either (1) after the last *FLAGS variable, or
11799 # (2) before a word containing "conftest.", or (3) at the end.
11800 # Note that $ac_compile itself does not contain backslashes and begins
11801 # with a dollar sign (not a hyphen), so the echo should work correctly.
11802 lt_compile=`echo "$ac_compile" | $SED \
11803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11805 -e 's:$: $lt_compiler_flag:'`
11806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11807 (eval "$lt_compile" 2>out/conftest.err)
11808 ac_status=$?
11809 cat out/conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11812 then
11813 # The compiler can only warn and ignore the option if not recognized
11814 # So say no if there are warnings
11815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11818 lt_cv_prog_compiler_c_o_GO=yes
11821 chmod u+w . 2>&5
11822 $RM conftest*
11823 # SGI C++ compiler will create directory out/ii_files/ for
11824 # template instantiation
11825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11826 $RM out/* && rmdir out
11827 cd ..
11828 $RM -r conftest
11829 $RM conftest*
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11833 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11838 hard_links="nottested"
11839 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11840 # do not overwrite the value of need_locks provided by the user
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11842 $as_echo_n "checking if we can lock with hard links... " >&6; }
11843 hard_links=yes
11844 $RM conftest*
11845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11846 touch conftest.a
11847 ln conftest.a conftest.b 2>&5 || hard_links=no
11848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11850 $as_echo "$hard_links" >&6; }
11851 if test "$hard_links" = no; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11853 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11854 need_locks=warn
11856 else
11857 need_locks=no
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11863 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11865 runpath_var=
11866 allow_undefined_flag_GO=
11867 always_export_symbols_GO=no
11868 archive_cmds_GO=
11869 archive_expsym_cmds_GO=
11870 compiler_needs_object_GO=no
11871 enable_shared_with_static_runtimes_GO=no
11872 export_dynamic_flag_spec_GO=
11873 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11874 hardcode_automatic_GO=no
11875 hardcode_direct_GO=no
11876 hardcode_direct_absolute_GO=no
11877 hardcode_libdir_flag_spec_GO=
11878 hardcode_libdir_flag_spec_ld_GO=
11879 hardcode_libdir_separator_GO=
11880 hardcode_minus_L_GO=no
11881 hardcode_shlibpath_var_GO=unsupported
11882 inherit_rpath_GO=no
11883 link_all_deplibs_GO=unknown
11884 module_cmds_GO=
11885 module_expsym_cmds_GO=
11886 old_archive_from_new_cmds_GO=
11887 old_archive_from_expsyms_cmds_GO=
11888 thread_safe_flag_spec_GO=
11889 whole_archive_flag_spec_GO=
11890 # include_expsyms should be a list of space-separated symbols to be *always*
11891 # included in the symbol list
11892 include_expsyms_GO=
11893 # exclude_expsyms can be an extended regexp of symbols to exclude
11894 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11895 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11896 # as well as any symbol that contains `d'.
11897 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11898 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11899 # platforms (ab)use it in PIC code, but their linkers get confused if
11900 # the symbol is explicitly referenced. Since portable code cannot
11901 # rely on this symbol name, it's probably fine to never include it in
11902 # preloaded symbol tables.
11903 # Exclude shared library initialization/finalization symbols.
11904 extract_expsyms_cmds=
11906 case $host_os in
11907 cygwin* | mingw* | pw32* | cegcc*)
11908 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11909 # When not using gcc, we currently assume that we are using
11910 # Microsoft Visual C++.
11911 if test "$GCC" != yes; then
11912 with_gnu_ld=no
11915 interix*)
11916 # we just hope/assume this is gcc and not c89 (= MSVC++)
11917 with_gnu_ld=yes
11919 openbsd*)
11920 with_gnu_ld=no
11922 esac
11924 ld_shlibs_GO=yes
11926 # On some targets, GNU ld is compatible enough with the native linker
11927 # that we're better off using the native interface for both.
11928 lt_use_gnu_ld_interface=no
11929 if test "$with_gnu_ld" = yes; then
11930 case $host_os in
11931 aix*)
11932 # The AIX port of GNU ld has always aspired to compatibility
11933 # with the native linker. However, as the warning in the GNU ld
11934 # block says, versions before 2.19.5* couldn't really create working
11935 # shared libraries, regardless of the interface used.
11936 case `$LD -v 2>&1` in
11937 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11938 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11939 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11941 lt_use_gnu_ld_interface=yes
11943 esac
11946 lt_use_gnu_ld_interface=yes
11948 esac
11951 if test "$lt_use_gnu_ld_interface" = yes; then
11952 # If archive_cmds runs LD, not CC, wlarc should be empty
11953 wlarc='${wl}'
11955 # Set some defaults for GNU ld with shared library support. These
11956 # are reset later if shared libraries are not supported. Putting them
11957 # here allows them to be overridden if necessary.
11958 runpath_var=LD_RUN_PATH
11959 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11960 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11961 # ancient GNU ld didn't support --whole-archive et. al.
11962 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11963 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11964 else
11965 whole_archive_flag_spec_GO=
11967 supports_anon_versioning=no
11968 case `$LD -v 2>&1` in
11969 *GNU\ gold*) supports_anon_versioning=yes ;;
11970 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11971 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11972 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11973 *\ 2.11.*) ;; # other 2.11 versions
11974 *) supports_anon_versioning=yes ;;
11975 esac
11977 # See if GNU ld supports shared libraries.
11978 case $host_os in
11979 aix[3-9]*)
11980 # On AIX/PPC, the GNU linker is very broken
11981 if test "$host_cpu" != ia64; then
11982 ld_shlibs_GO=no
11983 cat <<_LT_EOF 1>&2
11985 *** Warning: the GNU linker, at least up to release 2.19, is reported
11986 *** to be unable to reliably create shared libraries on AIX.
11987 *** Therefore, libtool is disabling shared libraries support. If you
11988 *** really care for shared libraries, you may want to install binutils
11989 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11990 *** You will then need to restart the configuration process.
11992 _LT_EOF
11996 amigaos*)
11997 case $host_cpu in
11998 powerpc)
11999 # see comment about AmigaOS4 .so support
12000 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12001 archive_expsym_cmds_GO=''
12003 m68k)
12004 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)'
12005 hardcode_libdir_flag_spec_GO='-L$libdir'
12006 hardcode_minus_L_GO=yes
12008 esac
12011 beos*)
12012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12013 allow_undefined_flag_GO=unsupported
12014 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12015 # support --undefined. This deserves some investigation. FIXME
12016 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12017 else
12018 ld_shlibs_GO=no
12022 cygwin* | mingw* | pw32* | cegcc*)
12023 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12024 # as there is no search path for DLLs.
12025 hardcode_libdir_flag_spec_GO='-L$libdir'
12026 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12027 allow_undefined_flag_GO=unsupported
12028 always_export_symbols_GO=no
12029 enable_shared_with_static_runtimes_GO=yes
12030 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12032 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12033 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12034 # If the export-symbols file already is a .def file (1st line
12035 # is EXPORTS), use it as is; otherwise, prepend...
12036 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12037 cp $export_symbols $output_objdir/$soname.def;
12038 else
12039 echo EXPORTS > $output_objdir/$soname.def;
12040 cat $export_symbols >> $output_objdir/$soname.def;
12042 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12043 else
12044 ld_shlibs_GO=no
12048 haiku*)
12049 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12050 link_all_deplibs_GO=yes
12053 interix[3-9]*)
12054 hardcode_direct_GO=no
12055 hardcode_shlibpath_var_GO=no
12056 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12057 export_dynamic_flag_spec_GO='${wl}-E'
12058 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12059 # Instead, shared libraries are loaded at an image base (0x10000000 by
12060 # default) and relocated if they conflict, which is a slow very memory
12061 # consuming and fragmenting process. To avoid this, we pick a random,
12062 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12063 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12064 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'
12065 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'
12068 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12069 tmp_diet=no
12070 if test "$host_os" = linux-dietlibc; then
12071 case $cc_basename in
12072 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12073 esac
12075 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12076 && test "$tmp_diet" = no
12077 then
12078 tmp_addflag=
12079 tmp_sharedflag='-shared'
12080 case $cc_basename,$host_cpu in
12081 pgcc*) # Portland Group C compiler
12082 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'
12083 tmp_addflag=' $pic_flag'
12085 pgf77* | pgf90* | pgf95* | pgfortran*)
12086 # Portland Group f77 and f90 compilers
12087 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'
12088 tmp_addflag=' $pic_flag -Mnomain' ;;
12089 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12090 tmp_addflag=' -i_dynamic' ;;
12091 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12092 tmp_addflag=' -i_dynamic -nofor_main' ;;
12093 ifc* | ifort*) # Intel Fortran compiler
12094 tmp_addflag=' -nofor_main' ;;
12095 lf95*) # Lahey Fortran 8.1
12096 whole_archive_flag_spec_GO=
12097 tmp_sharedflag='--shared' ;;
12098 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12099 tmp_sharedflag='-qmkshrobj'
12100 tmp_addflag= ;;
12101 nvcc*) # Cuda Compiler Driver 2.2
12102 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'
12103 compiler_needs_object_GO=yes
12105 esac
12106 case `$CC -V 2>&1 | sed 5q` in
12107 *Sun\ C*) # Sun C 5.9
12108 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'
12109 compiler_needs_object_GO=yes
12110 tmp_sharedflag='-G' ;;
12111 *Sun\ F*) # Sun Fortran 8.3
12112 tmp_sharedflag='-G' ;;
12113 esac
12114 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12116 if test "x$supports_anon_versioning" = xyes; then
12117 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12119 echo "local: *; };" >> $output_objdir/$libname.ver~
12120 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12123 case $cc_basename in
12124 xlf* | bgf* | bgxlf* | mpixlf*)
12125 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12126 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12127 hardcode_libdir_flag_spec_GO=
12128 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12129 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12130 if test "x$supports_anon_versioning" = xyes; then
12131 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12133 echo "local: *; };" >> $output_objdir/$libname.ver~
12134 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12137 esac
12138 else
12139 ld_shlibs_GO=no
12143 netbsd*)
12144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12145 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12146 wlarc=
12147 else
12148 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12149 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12153 solaris*)
12154 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12155 ld_shlibs_GO=no
12156 cat <<_LT_EOF 1>&2
12158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12159 *** create shared libraries on Solaris systems. Therefore, libtool
12160 *** is disabling shared libraries support. We urge you to upgrade GNU
12161 *** binutils to release 2.9.1 or newer. Another option is to modify
12162 *** your PATH or compiler configuration so that the native linker is
12163 *** used, and then restart.
12165 _LT_EOF
12166 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12167 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12168 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12169 else
12170 ld_shlibs_GO=no
12174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12175 case `$LD -v 2>&1` in
12176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12177 ld_shlibs_GO=no
12178 cat <<_LT_EOF 1>&2
12180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12181 *** reliably create shared libraries on SCO systems. Therefore, libtool
12182 *** is disabling shared libraries support. We urge you to upgrade GNU
12183 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12184 *** your PATH or compiler configuration so that the native linker is
12185 *** used, and then restart.
12187 _LT_EOF
12190 # For security reasons, it is highly recommended that you always
12191 # use absolute paths for naming shared libraries, and exclude the
12192 # DT_RUNPATH tag from executables and libraries. But doing so
12193 # requires that you compile everything twice, which is a pain.
12194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12195 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12196 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12197 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12198 else
12199 ld_shlibs_GO=no
12202 esac
12205 sunos4*)
12206 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12207 wlarc=
12208 hardcode_direct_GO=yes
12209 hardcode_shlibpath_var_GO=no
12213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12214 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12215 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12216 else
12217 ld_shlibs_GO=no
12220 esac
12222 if test "$ld_shlibs_GO" = no; then
12223 runpath_var=
12224 hardcode_libdir_flag_spec_GO=
12225 export_dynamic_flag_spec_GO=
12226 whole_archive_flag_spec_GO=
12228 else
12229 # PORTME fill in a description of your system's linker (not GNU ld)
12230 case $host_os in
12231 aix3*)
12232 allow_undefined_flag_GO=unsupported
12233 always_export_symbols_GO=yes
12234 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'
12235 # Note: this linker hardcodes the directories in LIBPATH if there
12236 # are no directories specified by -L.
12237 hardcode_minus_L_GO=yes
12238 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12239 # Neither direct hardcoding nor static linking is supported with a
12240 # broken collect2.
12241 hardcode_direct_GO=unsupported
12245 aix[4-9]*)
12246 if test "$host_cpu" = ia64; then
12247 # On IA64, the linker does run time linking by default, so we don't
12248 # have to do anything special.
12249 aix_use_runtimelinking=no
12250 exp_sym_flag='-Bexport'
12251 no_entry_flag=""
12252 else
12253 # If we're using GNU nm, then we don't want the "-C" option.
12254 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12255 # Also, AIX nm treats weak defined symbols like other global
12256 # defined symbols, whereas GNU nm marks them as "W".
12257 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12258 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'
12259 else
12260 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'
12262 aix_use_runtimelinking=no
12264 # Test if we are trying to use run time linking or normal
12265 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12266 # need to do runtime linking.
12267 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12268 for ld_flag in $LDFLAGS; do
12269 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12270 aix_use_runtimelinking=yes
12271 break
12273 done
12275 esac
12277 exp_sym_flag='-bexport'
12278 no_entry_flag='-bnoentry'
12281 # When large executables or shared objects are built, AIX ld can
12282 # have problems creating the table of contents. If linking a library
12283 # or program results in "error TOC overflow" add -mminimal-toc to
12284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12287 archive_cmds_GO=''
12288 hardcode_direct_GO=yes
12289 hardcode_direct_absolute_GO=yes
12290 hardcode_libdir_separator_GO=':'
12291 link_all_deplibs_GO=yes
12292 file_list_spec_GO='${wl}-f,'
12294 if test "$GCC" = yes; then
12295 case $host_os in aix4.[012]|aix4.[012].*)
12296 # We only want to do this on AIX 4.2 and lower, the check
12297 # below for broken collect2 doesn't work under 4.3+
12298 collect2name=`${CC} -print-prog-name=collect2`
12299 if test -f "$collect2name" &&
12300 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12301 then
12302 # We have reworked collect2
12304 else
12305 # We have old collect2
12306 hardcode_direct_GO=unsupported
12307 # It fails to find uninstalled libraries when the uninstalled
12308 # path is not listed in the libpath. Setting hardcode_minus_L
12309 # to unsupported forces relinking
12310 hardcode_minus_L_GO=yes
12311 hardcode_libdir_flag_spec_GO='-L$libdir'
12312 hardcode_libdir_separator_GO=
12315 esac
12316 shared_flag='-shared'
12317 if test "$aix_use_runtimelinking" = yes; then
12318 shared_flag="$shared_flag "'${wl}-G'
12320 else
12321 # not using gcc
12322 if test "$host_cpu" = ia64; then
12323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12324 # chokes on -Wl,-G. The following line is correct:
12325 shared_flag='-G'
12326 else
12327 if test "$aix_use_runtimelinking" = yes; then
12328 shared_flag='${wl}-G'
12329 else
12330 shared_flag='${wl}-bM:SRE'
12335 export_dynamic_flag_spec_GO='${wl}-bexpall'
12336 # It seems that -bexpall does not export symbols beginning with
12337 # underscore (_), so it is better to generate a list of symbols to export.
12338 always_export_symbols_GO=yes
12339 if test "$aix_use_runtimelinking" = yes; then
12340 # Warning - without using the other runtime loading flags (-brtl),
12341 # -berok will link without error, but may produce a broken library.
12342 allow_undefined_flag_GO='-berok'
12343 # Determine the default libpath from the value encoded in an
12344 # empty executable.
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12349 main ()
12353 return 0;
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"; then :
12358 lt_aix_libpath_sed='
12359 /Import File Strings/,/^$/ {
12360 /^0/ {
12361 s/^0 *\(.*\)$/\1/
12365 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12366 # Check for a 64-bit object if we didn't find anything.
12367 if test -z "$aix_libpath"; then
12368 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12371 rm -f core conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12375 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12376 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"
12377 else
12378 if test "$host_cpu" = ia64; then
12379 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12380 allow_undefined_flag_GO="-z nodefs"
12381 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"
12382 else
12383 # Determine the default libpath from the value encoded in an
12384 # empty executable.
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12389 main ()
12393 return 0;
12395 _ACEOF
12396 if ac_fn_c_try_link "$LINENO"; then :
12398 lt_aix_libpath_sed='
12399 /Import File Strings/,/^$/ {
12400 /^0/ {
12401 s/^0 *\(.*\)$/\1/
12405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12406 # Check for a 64-bit object if we didn't find anything.
12407 if test -z "$aix_libpath"; then
12408 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12415 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12416 # Warning - without using the other run time loading flags,
12417 # -berok will link without error, but may produce a broken library.
12418 no_undefined_flag_GO=' ${wl}-bernotok'
12419 allow_undefined_flag_GO=' ${wl}-berok'
12420 if test "$with_gnu_ld" = yes; then
12421 # We only use this code for GNU lds that support --whole-archive.
12422 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12423 else
12424 # Exported symbols can be pulled into shared objects from archives
12425 whole_archive_flag_spec_GO='$convenience'
12427 archive_cmds_need_lc_GO=yes
12428 # This is similar to how AIX traditionally builds its shared libraries.
12429 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'
12434 amigaos*)
12435 case $host_cpu in
12436 powerpc)
12437 # see comment about AmigaOS4 .so support
12438 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12439 archive_expsym_cmds_GO=''
12441 m68k)
12442 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)'
12443 hardcode_libdir_flag_spec_GO='-L$libdir'
12444 hardcode_minus_L_GO=yes
12446 esac
12449 bsdi[45]*)
12450 export_dynamic_flag_spec_GO=-rdynamic
12453 cygwin* | mingw* | pw32* | cegcc*)
12454 # When not using gcc, we currently assume that we are using
12455 # Microsoft Visual C++.
12456 # hardcode_libdir_flag_spec is actually meaningless, as there is
12457 # no search path for DLLs.
12458 hardcode_libdir_flag_spec_GO=' '
12459 allow_undefined_flag_GO=unsupported
12460 # Tell ltmain to make .lib files, not .a files.
12461 libext=lib
12462 # Tell ltmain to make .dll files, not .so files.
12463 shrext_cmds=".dll"
12464 # FIXME: Setting linknames here is a bad hack.
12465 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12466 # The linker will automatically build a .lib file if we build a DLL.
12467 old_archive_from_new_cmds_GO='true'
12468 # FIXME: Should let the user specify the lib program.
12469 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12470 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12471 enable_shared_with_static_runtimes_GO=yes
12474 darwin* | rhapsody*)
12477 archive_cmds_need_lc_GO=no
12478 hardcode_direct_GO=no
12479 hardcode_automatic_GO=yes
12480 hardcode_shlibpath_var_GO=unsupported
12481 if test "$lt_cv_ld_force_load" = "yes"; then
12482 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\"`'
12483 else
12484 whole_archive_flag_spec_GO=''
12486 link_all_deplibs_GO=yes
12487 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12488 case $cc_basename in
12489 ifort*) _lt_dar_can_shared=yes ;;
12490 *) _lt_dar_can_shared=$GCC ;;
12491 esac
12492 if test "$_lt_dar_can_shared" = "yes"; then
12493 output_verbose_link_cmd=func_echo_all
12494 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}"
12495 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12496 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}"
12497 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}"
12499 else
12500 ld_shlibs_GO=no
12505 dgux*)
12506 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12507 hardcode_libdir_flag_spec_GO='-L$libdir'
12508 hardcode_shlibpath_var_GO=no
12511 freebsd1*)
12512 ld_shlibs_GO=no
12515 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12516 # support. Future versions do this automatically, but an explicit c++rt0.o
12517 # does not break anything, and helps significantly (at the cost of a little
12518 # extra space).
12519 freebsd2.2*)
12520 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12521 hardcode_libdir_flag_spec_GO='-R$libdir'
12522 hardcode_direct_GO=yes
12523 hardcode_shlibpath_var_GO=no
12526 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12527 freebsd2*)
12528 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12529 hardcode_direct_GO=yes
12530 hardcode_minus_L_GO=yes
12531 hardcode_shlibpath_var_GO=no
12534 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12535 freebsd* | dragonfly*)
12536 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12537 hardcode_libdir_flag_spec_GO='-R$libdir'
12538 hardcode_direct_GO=yes
12539 hardcode_shlibpath_var_GO=no
12542 hpux9*)
12543 if test "$GCC" = yes; then
12544 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'
12545 else
12546 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'
12548 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12549 hardcode_libdir_separator_GO=:
12550 hardcode_direct_GO=yes
12552 # hardcode_minus_L: Not really in the search PATH,
12553 # but as the default location of the library.
12554 hardcode_minus_L_GO=yes
12555 export_dynamic_flag_spec_GO='${wl}-E'
12558 hpux10*)
12559 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12560 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12561 else
12562 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12564 if test "$with_gnu_ld" = no; then
12565 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12566 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12567 hardcode_libdir_separator_GO=:
12568 hardcode_direct_GO=yes
12569 hardcode_direct_absolute_GO=yes
12570 export_dynamic_flag_spec_GO='${wl}-E'
12571 # hardcode_minus_L: Not really in the search PATH,
12572 # but as the default location of the library.
12573 hardcode_minus_L_GO=yes
12577 hpux11*)
12578 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12579 case $host_cpu in
12580 hppa*64*)
12581 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12583 ia64*)
12584 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12587 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12589 esac
12590 else
12591 case $host_cpu in
12592 hppa*64*)
12593 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12595 ia64*)
12596 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12599 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12601 esac
12603 if test "$with_gnu_ld" = no; then
12604 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12605 hardcode_libdir_separator_GO=:
12607 case $host_cpu in
12608 hppa*64*|ia64*)
12609 hardcode_direct_GO=no
12610 hardcode_shlibpath_var_GO=no
12613 hardcode_direct_GO=yes
12614 hardcode_direct_absolute_GO=yes
12615 export_dynamic_flag_spec_GO='${wl}-E'
12617 # hardcode_minus_L: Not really in the search PATH,
12618 # but as the default location of the library.
12619 hardcode_minus_L_GO=yes
12621 esac
12625 irix5* | irix6* | nonstopux*)
12626 if test "$GCC" = yes; then
12627 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'
12628 # Try to use the -exported_symbol ld option, if it does not
12629 # work, assume that -exports_file does not work either and
12630 # implicitly export all symbols.
12631 save_LDFLAGS="$LDFLAGS"
12632 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12635 int foo(void) {}
12636 _ACEOF
12637 if ac_fn_c_try_link "$LINENO"; then :
12638 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'
12641 rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643 LDFLAGS="$save_LDFLAGS"
12644 else
12645 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'
12646 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'
12648 archive_cmds_need_lc_GO='no'
12649 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12650 hardcode_libdir_separator_GO=:
12651 inherit_rpath_GO=yes
12652 link_all_deplibs_GO=yes
12655 netbsd*)
12656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12657 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12658 else
12659 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12661 hardcode_libdir_flag_spec_GO='-R$libdir'
12662 hardcode_direct_GO=yes
12663 hardcode_shlibpath_var_GO=no
12666 newsos6)
12667 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12668 hardcode_direct_GO=yes
12669 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12670 hardcode_libdir_separator_GO=:
12671 hardcode_shlibpath_var_GO=no
12674 *nto* | *qnx*)
12677 openbsd*)
12678 if test -f /usr/libexec/ld.so; then
12679 hardcode_direct_GO=yes
12680 hardcode_shlibpath_var_GO=no
12681 hardcode_direct_absolute_GO=yes
12682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12683 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12684 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12685 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec_GO='${wl}-E'
12687 else
12688 case $host_os in
12689 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12690 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12691 hardcode_libdir_flag_spec_GO='-R$libdir'
12694 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12695 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12697 esac
12699 else
12700 ld_shlibs_GO=no
12704 os2*)
12705 hardcode_libdir_flag_spec_GO='-L$libdir'
12706 hardcode_minus_L_GO=yes
12707 allow_undefined_flag_GO=unsupported
12708 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'
12709 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12712 osf3*)
12713 if test "$GCC" = yes; then
12714 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12715 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'
12716 else
12717 allow_undefined_flag_GO=' -expect_unresolved \*'
12718 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'
12720 archive_cmds_need_lc_GO='no'
12721 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12722 hardcode_libdir_separator_GO=:
12725 osf4* | osf5*) # as osf3* with the addition of -msym flag
12726 if test "$GCC" = yes; then
12727 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12728 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'
12729 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12730 else
12731 allow_undefined_flag_GO=' -expect_unresolved \*'
12732 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'
12733 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~
12734 $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'
12736 # Both c and cxx compiler support -rpath directly
12737 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12739 archive_cmds_need_lc_GO='no'
12740 hardcode_libdir_separator_GO=:
12743 solaris*)
12744 no_undefined_flag_GO=' -z defs'
12745 if test "$GCC" = yes; then
12746 wlarc='${wl}'
12747 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12748 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12749 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12750 else
12751 case `$CC -V 2>&1` in
12752 *"Compilers 5.0"*)
12753 wlarc=''
12754 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12755 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12756 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12759 wlarc='${wl}'
12760 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12761 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12762 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12764 esac
12766 hardcode_libdir_flag_spec_GO='-R$libdir'
12767 hardcode_shlibpath_var_GO=no
12768 case $host_os in
12769 solaris2.[0-5] | solaris2.[0-5].*) ;;
12771 # The compiler driver will combine and reorder linker options,
12772 # but understands `-z linker_flag'. GCC discards it without `$wl',
12773 # but is careful enough not to reorder.
12774 # Supported since Solaris 2.6 (maybe 2.5.1?)
12775 if test "$GCC" = yes; then
12776 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12777 else
12778 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12781 esac
12782 link_all_deplibs_GO=yes
12785 sunos4*)
12786 if test "x$host_vendor" = xsequent; then
12787 # Use $CC to link under sequent, because it throws in some extra .o
12788 # files that make .init and .fini sections work.
12789 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12790 else
12791 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12793 hardcode_libdir_flag_spec_GO='-L$libdir'
12794 hardcode_direct_GO=yes
12795 hardcode_minus_L_GO=yes
12796 hardcode_shlibpath_var_GO=no
12799 sysv4)
12800 case $host_vendor in
12801 sni)
12802 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12803 hardcode_direct_GO=yes # is this really true???
12805 siemens)
12806 ## LD is ld it makes a PLAMLIB
12807 ## CC just makes a GrossModule.
12808 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12809 reload_cmds_GO='$CC -r -o $output$reload_objs'
12810 hardcode_direct_GO=no
12812 motorola)
12813 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12814 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12816 esac
12817 runpath_var='LD_RUN_PATH'
12818 hardcode_shlibpath_var_GO=no
12821 sysv4.3*)
12822 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12823 hardcode_shlibpath_var_GO=no
12824 export_dynamic_flag_spec_GO='-Bexport'
12827 sysv4*MP*)
12828 if test -d /usr/nec; then
12829 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12830 hardcode_shlibpath_var_GO=no
12831 runpath_var=LD_RUN_PATH
12832 hardcode_runpath_var=yes
12833 ld_shlibs_GO=yes
12837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12838 no_undefined_flag_GO='${wl}-z,text'
12839 archive_cmds_need_lc_GO=no
12840 hardcode_shlibpath_var_GO=no
12841 runpath_var='LD_RUN_PATH'
12843 if test "$GCC" = yes; then
12844 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12846 else
12847 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12848 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12852 sysv5* | sco3.2v5* | sco5v6*)
12853 # Note: We can NOT use -z defs as we might desire, because we do not
12854 # link with -lc, and that would cause any symbols used from libc to
12855 # always be unresolved, which means just about no library would
12856 # ever link correctly. If we're not using GNU ld we use -z text
12857 # though, which does catch some bad symbols but isn't as heavy-handed
12858 # as -z defs.
12859 no_undefined_flag_GO='${wl}-z,text'
12860 allow_undefined_flag_GO='${wl}-z,nodefs'
12861 archive_cmds_need_lc_GO=no
12862 hardcode_shlibpath_var_GO=no
12863 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12864 hardcode_libdir_separator_GO=':'
12865 link_all_deplibs_GO=yes
12866 export_dynamic_flag_spec_GO='${wl}-Bexport'
12867 runpath_var='LD_RUN_PATH'
12869 if test "$GCC" = yes; then
12870 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12871 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12872 else
12873 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12874 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12878 uts4*)
12879 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12880 hardcode_libdir_flag_spec_GO='-L$libdir'
12881 hardcode_shlibpath_var_GO=no
12885 ld_shlibs_GO=no
12887 esac
12889 if test x$host_vendor = xsni; then
12890 case $host in
12891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12892 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12894 esac
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12899 $as_echo "$ld_shlibs_GO" >&6; }
12900 test "$ld_shlibs_GO" = no && can_build_shared=no
12902 with_gnu_ld_GO=$with_gnu_ld
12910 # Do we need to explicitly link libc?
12912 case "x$archive_cmds_need_lc_GO" in
12913 x|xyes)
12914 # Assume -lc should be added
12915 archive_cmds_need_lc_GO=yes
12917 if test "$enable_shared" = yes && test "$GCC" = yes; then
12918 case $archive_cmds_GO in
12919 *'~'*)
12920 # FIXME: we may have to deal with multi-command sequences.
12922 '$CC '*)
12923 # Test whether the compiler implicitly links with -lc since on some
12924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12925 # to ld, don't add -lc before -lgcc.
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12927 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12928 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 $RM conftest*
12932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12935 (eval $ac_compile) 2>&5
12936 ac_status=$?
12937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12938 test $ac_status = 0; } 2>conftest.err; then
12939 soname=conftest
12940 lib=conftest
12941 libobjs=conftest.$ac_objext
12942 deplibs=
12943 wl=$lt_prog_compiler_wl_GO
12944 pic_flag=$lt_prog_compiler_pic_GO
12945 compiler_flags=-v
12946 linker_flags=-v
12947 verstring=
12948 output_objdir=.
12949 libname=conftest
12950 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12951 allow_undefined_flag_GO=
12952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12953 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12954 ac_status=$?
12955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12956 test $ac_status = 0; }
12957 then
12958 lt_cv_archive_cmds_need_lc_GO=no
12959 else
12960 lt_cv_archive_cmds_need_lc_GO=yes
12962 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12963 else
12964 cat conftest.err 1>&5
12966 $RM conftest*
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12970 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12971 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
12973 esac
12976 esac
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13042 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13043 hardcode_action_GO=
13044 if test -n "$hardcode_libdir_flag_spec_GO" ||
13045 test -n "$runpath_var_GO" ||
13046 test "X$hardcode_automatic_GO" = "Xyes" ; then
13048 # We can hardcode non-existent directories.
13049 if test "$hardcode_direct_GO" != no &&
13050 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13051 # have to relink, otherwise we might link with an installed library
13052 # when we should be linking with a yet-to-be-installed one
13053 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13054 test "$hardcode_minus_L_GO" != no; then
13055 # Linking always hardcodes the temporary library directory.
13056 hardcode_action_GO=relink
13057 else
13058 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13059 hardcode_action_GO=immediate
13061 else
13062 # We cannot hardcode anything, or else we can only hardcode existing
13063 # directories.
13064 hardcode_action_GO=unsupported
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13067 $as_echo "$hardcode_action_GO" >&6; }
13069 if test "$hardcode_action_GO" = relink ||
13070 test "$inherit_rpath_GO" = yes; then
13071 # Fast installation is not supported
13072 enable_fast_install=no
13073 elif test "$shlibpath_overrides_runpath" = yes ||
13074 test "$enable_shared" = no; then
13075 # Fast installation is not necessary
13076 enable_fast_install=needless
13087 ac_ext=c
13088 ac_cpp='$CPP $CPPFLAGS'
13089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13094 GCC=$lt_save_GCC
13095 CC="$lt_save_CC"
13100 ac_config_commands="$ac_config_commands libtool"
13105 # Only expand once:
13111 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13114 WERROR="-Werror"
13117 glibgo_toolexecdir=no
13118 glibgo_toolexeclibdir=no
13119 glibgo_prefixdir=$prefix
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13122 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13123 # Check whether --enable-version-specific-runtime-libs was given.
13124 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13125 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13126 yes) version_specific_libs=yes ;;
13127 no) version_specific_libs=no ;;
13128 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13129 esac
13130 else
13131 version_specific_libs=no
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13135 $as_echo "$version_specific_libs" >&6; }
13137 # Version-specific runtime libs processing.
13138 if test $version_specific_libs = yes; then
13139 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13140 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13143 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13144 # Install a library built with a cross compiler in tooldir, not libdir.
13145 if test x"$glibgo_toolexecdir" = x"no"; then
13146 if test -n "$with_cross_host" &&
13147 test x"$with_cross_host" != x"no"; then
13148 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13149 glibgo_toolexeclibdir='${toolexecdir}/lib'
13150 else
13151 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13152 glibgo_toolexeclibdir='${libdir}'
13154 multi_os_directory=`$CC -print-multi-os-directory`
13155 case $multi_os_directory in
13156 .) ;; # Avoid trailing /.
13157 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13158 esac
13165 # See if the user wants to configure without libffi. Some
13166 # architectures don't support it. FIXME: We should set a default
13167 # based on the host.
13169 # Check whether --with-libffi was given.
13170 if test "${with_libffi+set}" = set; then :
13171 withval=$with_libffi; :
13172 else
13173 with_libffi=${with_libffi_default-yes}
13177 LIBFFI=
13178 LIBFFIINCS=
13179 if test "$with_libffi" != no; then
13181 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13183 LIBFFI=../libffi/libffi_convenience.la
13184 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13189 is_darwin=no
13190 is_freebsd=no
13191 is_linux=no
13192 is_rtems=no
13193 case ${host} in
13194 *-*-darwin*) is_darwin=yes ;;
13195 *-*-freebsd*) is_freebsd=yes ;;
13196 *-*-linux*) is_linux=yes ;;
13197 *-*-rtems*) is_rtems=yes ;;
13198 esac
13199 if test $is_darwin = yes; then
13200 LIBGO_IS_DARWIN_TRUE=
13201 LIBGO_IS_DARWIN_FALSE='#'
13202 else
13203 LIBGO_IS_DARWIN_TRUE='#'
13204 LIBGO_IS_DARWIN_FALSE=
13207 if test $is_freebsd = yes; then
13208 LIBGO_IS_FREEBSD_TRUE=
13209 LIBGO_IS_FREEBSD_FALSE='#'
13210 else
13211 LIBGO_IS_FREEBSD_TRUE='#'
13212 LIBGO_IS_FREEBSD_FALSE=
13215 if test $is_linux = yes; then
13216 LIBGO_IS_LINUX_TRUE=
13217 LIBGO_IS_LINUX_FALSE='#'
13218 else
13219 LIBGO_IS_LINUX_TRUE='#'
13220 LIBGO_IS_LINUX_FALSE=
13223 if test $is_rtems = yes; then
13224 LIBGO_IS_RTEMS_TRUE=
13225 LIBGO_IS_RTEMS_FALSE='#'
13226 else
13227 LIBGO_IS_RTEMS_TRUE='#'
13228 LIBGO_IS_RTEMS_FALSE=
13232 is_386=no
13233 is_x86_64=no
13234 is_arm=no
13235 case ${host} in
13236 i[34567]86-*-*)
13237 is_386=yes
13239 x86_64-*-*)
13240 if test "$with_multisubdir" = "32"; then
13241 is_386=yes
13242 else
13243 is_x86_64=yes
13246 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13247 is_arm=yes
13249 esac
13250 if test $is_386 = yes; then
13251 LIBGO_IS_386_TRUE=
13252 LIBGO_IS_386_FALSE='#'
13253 else
13254 LIBGO_IS_386_TRUE='#'
13255 LIBGO_IS_386_FALSE=
13258 if test $is_x86_64 = yes; then
13259 LIBGO_IS_X86_64_TRUE=
13260 LIBGO_IS_X86_64_FALSE='#'
13261 else
13262 LIBGO_IS_X86_64_TRUE='#'
13263 LIBGO_IS_X86_64_FALSE=
13266 if test $is_arm = yes; then
13267 LIBGO_IS_ARM_TRUE=
13268 LIBGO_IS_ARM_FALSE='#'
13269 else
13270 LIBGO_IS_ARM_TRUE='#'
13271 LIBGO_IS_ARM_FALSE=
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13276 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13277 if test "${ac_cv_libgo_split_stack_supported+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 CFLAGS_hold=$CFLAGS
13281 CFLAGS="$CFLAGS -fsplit-stack"
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284 int i;
13285 _ACEOF
13286 if ac_fn_c_try_compile "$LINENO"; then :
13287 ac_cv_libgo_split_stack_supported=yes
13288 else
13289 ac_cv_libgo_split_stack_supported=no
13291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 CFLAGS=$CFLAGS_hold
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_split_stack_supported" >&5
13295 $as_echo "$ac_cv_libgo_split_stack_supported" >&6; }
13296 if test "$ac_cv_libgo_split_stack_supported" = yes; then
13297 SPLIT_STACK=-fsplit-stack
13299 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13301 else
13302 SPLIT_STACK=
13305 if test "$ac_cv_libgo_split_stack_supported" = yes; then
13306 USING_SPLIT_STACK_TRUE=
13307 USING_SPLIT_STACK_FALSE='#'
13308 else
13309 USING_SPLIT_STACK_TRUE='#'
13310 USING_SPLIT_STACK_FALSE=
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13315 $as_echo_n "checking whether linker supports split stack... " >&6; }
13316 if test "${ac_cv_libgo_linker_supports_split_stack+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 ac_cv_libgo_linker_supports_split_stack=no
13320 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13321 ac_cv_libgo_linker_supports_split_stack=yes
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_linker_supports_split_stack" >&5
13325 $as_echo "$ac_cv_libgo_linker_supports_split_stack" >&6; }
13326 if test "$ac_cv_libgo_linker_supports_split_stack" = yes; then
13328 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13332 MATH_LIBS=
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13334 $as_echo_n "checking for sqrt in -lm... " >&6; }
13335 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 ac_check_lib_save_LIBS=$LIBS
13339 LIBS="-lm $LIBS"
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13343 /* Override any GCC internal prototype to avoid an error.
13344 Use char because int might match the return type of a GCC
13345 builtin and then its argument prototype would still apply. */
13346 #ifdef __cplusplus
13347 extern "C"
13348 #endif
13349 char sqrt ();
13351 main ()
13353 return sqrt ();
13355 return 0;
13357 _ACEOF
13358 if ac_fn_c_try_link "$LINENO"; then :
13359 ac_cv_lib_m_sqrt=yes
13360 else
13361 ac_cv_lib_m_sqrt=no
13363 rm -f core conftest.err conftest.$ac_objext \
13364 conftest$ac_exeext conftest.$ac_ext
13365 LIBS=$ac_check_lib_save_LIBS
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13368 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13369 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13370 MATH_LIBS=-lm
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13376 $as_echo_n "checking whether -pthread is supported... " >&6; }
13377 if test "${ac_cv_libgo_pthread_supported+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 CFLAGS_hold=$CFLAGS
13381 CFLAGS="$CFLAGS -pthread"
13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13384 int i;
13385 _ACEOF
13386 if ac_fn_c_try_compile "$LINENO"; then :
13387 ac_cv_libgo_pthread_supported=yes
13388 else
13389 ac_cv_libgo_pthread_supported=no
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392 CFLAGS=$CFLAGS_hold
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_pthread_supported" >&5
13395 $as_echo "$ac_cv_libgo_pthread_supported" >&6; }
13396 PTHREAD_CFLAGS=
13397 if test "$ac_cv_libgo_pthread_supported" = yes; then
13398 PTHREAD_CFLAGS=-pthread
13402 PTHREAD_LIBS=
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13404 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13405 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 ac_check_lib_save_LIBS=$LIBS
13409 LIBS="-lpthread $LIBS"
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13413 /* Override any GCC internal prototype to avoid an error.
13414 Use char because int might match the return type of a GCC
13415 builtin and then its argument prototype would still apply. */
13416 #ifdef __cplusplus
13417 extern "C"
13418 #endif
13419 char pthread_create ();
13421 main ()
13423 return pthread_create ();
13425 return 0;
13427 _ACEOF
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 ac_cv_lib_pthread_pthread_create=yes
13430 else
13431 ac_cv_lib_pthread_pthread_create=no
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LIBS=$ac_check_lib_save_LIBS
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13438 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13439 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13440 PTHREAD_LIBS=-lpthread
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13446 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13447 if test "${ac_cv_c_bigendian+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 ac_cv_c_bigendian=unknown
13451 # See if we're dealing with a universal compiler.
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 #ifndef __APPLE_CC__
13455 not a universal capable compiler
13456 #endif
13457 typedef int dummy;
13459 _ACEOF
13460 if ac_fn_c_try_compile "$LINENO"; then :
13462 # Check for potential -arch flags. It is not universal unless
13463 # there are at least two -arch flags with different values.
13464 ac_arch=
13465 ac_prev=
13466 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13467 if test -n "$ac_prev"; then
13468 case $ac_word in
13469 i?86 | x86_64 | ppc | ppc64)
13470 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13471 ac_arch=$ac_word
13472 else
13473 ac_cv_c_bigendian=universal
13474 break
13477 esac
13478 ac_prev=
13479 elif test "x$ac_word" = "x-arch"; then
13480 ac_prev=arch
13482 done
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 if test $ac_cv_c_bigendian = unknown; then
13486 # See if sys/param.h defines the BYTE_ORDER macro.
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 #include <sys/types.h>
13490 #include <sys/param.h>
13493 main ()
13495 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13496 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13497 && LITTLE_ENDIAN)
13498 bogus endian macros
13499 #endif
13502 return 0;
13504 _ACEOF
13505 if ac_fn_c_try_compile "$LINENO"; then :
13506 # It does; now see whether it defined to BIG_ENDIAN or not.
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13509 #include <sys/types.h>
13510 #include <sys/param.h>
13513 main ()
13515 #if BYTE_ORDER != BIG_ENDIAN
13516 not big endian
13517 #endif
13520 return 0;
13522 _ACEOF
13523 if ac_fn_c_try_compile "$LINENO"; then :
13524 ac_cv_c_bigendian=yes
13525 else
13526 ac_cv_c_bigendian=no
13528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 if test $ac_cv_c_bigendian = unknown; then
13533 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536 #include <limits.h>
13539 main ()
13541 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13542 bogus endian macros
13543 #endif
13546 return 0;
13548 _ACEOF
13549 if ac_fn_c_try_compile "$LINENO"; then :
13550 # It does; now see whether it defined to _BIG_ENDIAN or not.
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #include <limits.h>
13556 main ()
13558 #ifndef _BIG_ENDIAN
13559 not big endian
13560 #endif
13563 return 0;
13565 _ACEOF
13566 if ac_fn_c_try_compile "$LINENO"; then :
13567 ac_cv_c_bigendian=yes
13568 else
13569 ac_cv_c_bigendian=no
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 if test $ac_cv_c_bigendian = unknown; then
13576 # Compile a test program.
13577 if test "$cross_compiling" = yes; then :
13578 # Try to guess by grepping values from an object file.
13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13581 short int ascii_mm[] =
13582 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13583 short int ascii_ii[] =
13584 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13585 int use_ascii (int i) {
13586 return ascii_mm[i] + ascii_ii[i];
13588 short int ebcdic_ii[] =
13589 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13590 short int ebcdic_mm[] =
13591 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13592 int use_ebcdic (int i) {
13593 return ebcdic_mm[i] + ebcdic_ii[i];
13595 extern int foo;
13598 main ()
13600 return use_ascii (foo) == use_ebcdic (foo);
13602 return 0;
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13607 ac_cv_c_bigendian=yes
13609 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13610 if test "$ac_cv_c_bigendian" = unknown; then
13611 ac_cv_c_bigendian=no
13612 else
13613 # finding both strings is unlikely to happen, but who knows?
13614 ac_cv_c_bigendian=unknown
13618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13619 else
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 $ac_includes_default
13624 main ()
13627 /* Are we little or big endian? From Harbison&Steele. */
13628 union
13630 long int l;
13631 char c[sizeof (long int)];
13632 } u;
13633 u.l = 1;
13634 return u.c[sizeof (long int) - 1] == 1;
13637 return 0;
13639 _ACEOF
13640 if ac_fn_c_try_run "$LINENO"; then :
13641 ac_cv_c_bigendian=no
13642 else
13643 ac_cv_c_bigendian=yes
13645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13646 conftest.$ac_objext conftest.beam conftest.$ac_ext
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13652 $as_echo "$ac_cv_c_bigendian" >&6; }
13653 case $ac_cv_c_bigendian in #(
13654 yes)
13655 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13656 ;; #(
13658 ;; #(
13659 universal)
13661 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13663 ;; #(
13665 as_fn_error "unknown endianness
13666 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13667 esac
13672 # Check whether --with-system-libunwind was given.
13673 if test "${with_system_libunwind+set}" = set; then :
13674 withval=$with_system_libunwind;
13677 # If system-libunwind was not specifically set, pick a default setting.
13678 if test x$with_system_libunwind = x; then
13679 case ${target} in
13680 ia64-*-hpux*) with_system_libunwind=yes ;;
13681 *) with_system_libunwind=no ;;
13682 esac
13684 # Based on system-libunwind and target, do we have ipinfo?
13685 if test x$with_system_libunwind = xyes; then
13686 case ${target} in
13687 ia64-*-*) have_unwind_getipinfo=no ;;
13688 *) have_unwind_getipinfo=yes ;;
13689 esac
13690 else
13691 # Darwin before version 9 does not have _Unwind_GetIPInfo.
13693 case ${target} in
13694 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13695 *) have_unwind_getipinfo=yes ;;
13696 esac
13700 if test x$have_unwind_getipinfo = xyes; then
13702 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
13707 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
13708 do :
13709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13710 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13711 eval as_val=\$$as_ac_Header
13712 if test "x$as_val" = x""yes; then :
13713 cat >>confdefs.h <<_ACEOF
13714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13715 _ACEOF
13719 done
13721 if test "$ac_cv_header_sys_mman_h" = yes; then
13722 HAVE_SYS_MMAN_H_TRUE=
13723 HAVE_SYS_MMAN_H_FALSE='#'
13724 else
13725 HAVE_SYS_MMAN_H_TRUE='#'
13726 HAVE_SYS_MMAN_H_FALSE=
13729 for ac_func in srandom random strsignal
13730 do :
13731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13733 eval as_val=\$$as_ac_var
13734 if test "x$as_val" = x""yes; then :
13735 cat >>confdefs.h <<_ACEOF
13736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13737 _ACEOF
13740 done
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
13744 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
13745 if test "${ac_cv_libgo_compiler_supports_inline_all_stringops+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 CFLAGS_hold=$CFLAGS
13749 CFLAGS="$CFLAGS -minline-all-stringops"
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 int i;
13753 _ACEOF
13754 if ac_fn_c_try_compile "$LINENO"; then :
13755 ac_cv_libgo_compiler_supports_inline_all_stringops=yes
13756 else
13757 ac_cv_libgo_compiler_supports_inline_all_stringops=no
13759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760 CFLAGS=$CFLAGS_hold
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_compiler_supports_inline_all_stringops" >&5
13763 $as_echo "$ac_cv_libgo_compiler_supports_inline_all_stringops" >&6; }
13764 STRINGOPS_FLAG=
13765 if test "$ac_cv_libgo_compiler_supports_inline_all_stringops" = yes; then
13766 STRINGOPS_FLAG=-minline-all-stringops
13770 CFLAGS_hold=$CFLAGS
13771 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
13772 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
13773 if test "x$ac_cv_type_off64_t" = x""yes; then :
13775 cat >>confdefs.h <<_ACEOF
13776 #define HAVE_OFF64_T 1
13777 _ACEOF
13782 CFLAGS=$CFLAGS_hold
13784 cat >confcache <<\_ACEOF
13785 # This file is a shell script that caches the results of configure
13786 # tests run on this system so they can be shared between configure
13787 # scripts and configure runs, see configure's option --config-cache.
13788 # It is not useful on other systems. If it contains results you don't
13789 # want to keep, you may remove or edit it.
13791 # config.status only pays attention to the cache file if you give it
13792 # the --recheck option to rerun configure.
13794 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13795 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13796 # following values.
13798 _ACEOF
13800 # The following way of writing the cache mishandles newlines in values,
13801 # but we know of no workaround that is simple, portable, and efficient.
13802 # So, we kill variables containing newlines.
13803 # Ultrix sh set writes to stderr and can't be redirected directly,
13804 # and sets the high bit in the cache file unless we assign to the vars.
13806 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13807 eval ac_val=\$$ac_var
13808 case $ac_val in #(
13809 *${as_nl}*)
13810 case $ac_var in #(
13811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13813 esac
13814 case $ac_var in #(
13815 _ | IFS | as_nl) ;; #(
13816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13817 *) { eval $ac_var=; unset $ac_var;} ;;
13818 esac ;;
13819 esac
13820 done
13822 (set) 2>&1 |
13823 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13824 *${as_nl}ac_space=\ *)
13825 # `set' does not quote correctly, so add quotes: double-quote
13826 # substitution turns \\\\ into \\, and sed turns \\ into \.
13827 sed -n \
13828 "s/'/'\\\\''/g;
13829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13830 ;; #(
13832 # `set' quotes correctly as required by POSIX, so do not add quotes.
13833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13835 esac |
13836 sort
13838 sed '
13839 /^ac_cv_env_/b end
13840 t clear
13841 :clear
13842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13843 t end
13844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13845 :end' >>confcache
13846 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13847 if test -w "$cache_file"; then
13848 test "x$cache_file" != "x/dev/null" &&
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13850 $as_echo "$as_me: updating cache $cache_file" >&6;}
13851 cat confcache >$cache_file
13852 else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13854 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13857 rm -f confcache
13859 if test ${multilib} = yes; then
13860 multilib_arg="--enable-multilib"
13861 else
13862 multilib_arg=
13865 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
13868 ac_config_commands="$ac_config_commands default"
13871 cat >confcache <<\_ACEOF
13872 # This file is a shell script that caches the results of configure
13873 # tests run on this system so they can be shared between configure
13874 # scripts and configure runs, see configure's option --config-cache.
13875 # It is not useful on other systems. If it contains results you don't
13876 # want to keep, you may remove or edit it.
13878 # config.status only pays attention to the cache file if you give it
13879 # the --recheck option to rerun configure.
13881 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13882 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13883 # following values.
13885 _ACEOF
13887 # The following way of writing the cache mishandles newlines in values,
13888 # but we know of no workaround that is simple, portable, and efficient.
13889 # So, we kill variables containing newlines.
13890 # Ultrix sh set writes to stderr and can't be redirected directly,
13891 # and sets the high bit in the cache file unless we assign to the vars.
13893 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13894 eval ac_val=\$$ac_var
13895 case $ac_val in #(
13896 *${as_nl}*)
13897 case $ac_var in #(
13898 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13899 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13900 esac
13901 case $ac_var in #(
13902 _ | IFS | as_nl) ;; #(
13903 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13904 *) { eval $ac_var=; unset $ac_var;} ;;
13905 esac ;;
13906 esac
13907 done
13909 (set) 2>&1 |
13910 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13911 *${as_nl}ac_space=\ *)
13912 # `set' does not quote correctly, so add quotes: double-quote
13913 # substitution turns \\\\ into \\, and sed turns \\ into \.
13914 sed -n \
13915 "s/'/'\\\\''/g;
13916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13917 ;; #(
13919 # `set' quotes correctly as required by POSIX, so do not add quotes.
13920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13922 esac |
13923 sort
13925 sed '
13926 /^ac_cv_env_/b end
13927 t clear
13928 :clear
13929 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13930 t end
13931 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13932 :end' >>confcache
13933 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13934 if test -w "$cache_file"; then
13935 test "x$cache_file" != "x/dev/null" &&
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13937 $as_echo "$as_me: updating cache $cache_file" >&6;}
13938 cat confcache >$cache_file
13939 else
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13944 rm -f confcache
13946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13947 # Let make expand exec_prefix.
13948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13950 DEFS=-DHAVE_CONFIG_H
13952 ac_libobjs=
13953 ac_ltlibobjs=
13954 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13955 # 1. Remove the extension, and $U if already installed.
13956 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13957 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13958 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13959 # will be set to the directory where LIBOBJS objects are built.
13960 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13961 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13962 done
13963 LIBOBJS=$ac_libobjs
13965 LTLIBOBJS=$ac_ltlibobjs
13968 if test -n "$EXEEXT"; then
13969 am__EXEEXT_TRUE=
13970 am__EXEEXT_FALSE='#'
13971 else
13972 am__EXEEXT_TRUE='#'
13973 am__EXEEXT_FALSE=
13976 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13977 as_fn_error "conditional \"AMDEP\" was never defined.
13978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13980 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13981 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13984 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13985 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13988 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
13989 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
13990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13992 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
13993 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
13994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13996 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
13997 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
13998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14000 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14001 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14004 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14005 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14008 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14009 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14012 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14013 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14016 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14017 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14021 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14022 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14026 : ${CONFIG_STATUS=./config.status}
14027 ac_write_fail=0
14028 ac_clean_files_save=$ac_clean_files
14029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14031 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14032 as_write_fail=0
14033 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14034 #! $SHELL
14035 # Generated by $as_me.
14036 # Run this file to recreate the current configuration.
14037 # Compiler output produced by configure, useful for debugging
14038 # configure, is in config.log if it exists.
14040 debug=false
14041 ac_cs_recheck=false
14042 ac_cs_silent=false
14044 SHELL=\${CONFIG_SHELL-$SHELL}
14045 export SHELL
14046 _ASEOF
14047 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14048 ## -------------------- ##
14049 ## M4sh Initialization. ##
14050 ## -------------------- ##
14052 # Be more Bourne compatible
14053 DUALCASE=1; export DUALCASE # for MKS sh
14054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14055 emulate sh
14056 NULLCMD=:
14057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14058 # is contrary to our usage. Disable this feature.
14059 alias -g '${1+"$@"}'='"$@"'
14060 setopt NO_GLOB_SUBST
14061 else
14062 case `(set -o) 2>/dev/null` in #(
14063 *posix*) :
14064 set -o posix ;; #(
14065 *) :
14067 esac
14071 as_nl='
14073 export as_nl
14074 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14075 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14077 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14078 # Prefer a ksh shell builtin over an external printf program on Solaris,
14079 # but without wasting forks for bash or zsh.
14080 if test -z "$BASH_VERSION$ZSH_VERSION" \
14081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14082 as_echo='print -r --'
14083 as_echo_n='print -rn --'
14084 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14085 as_echo='printf %s\n'
14086 as_echo_n='printf %s'
14087 else
14088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14089 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14090 as_echo_n='/usr/ucb/echo -n'
14091 else
14092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14093 as_echo_n_body='eval
14094 arg=$1;
14095 case $arg in #(
14096 *"$as_nl"*)
14097 expr "X$arg" : "X\\(.*\\)$as_nl";
14098 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14099 esac;
14100 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14102 export as_echo_n_body
14103 as_echo_n='sh -c $as_echo_n_body as_echo'
14105 export as_echo_body
14106 as_echo='sh -c $as_echo_body as_echo'
14109 # The user is always right.
14110 if test "${PATH_SEPARATOR+set}" != set; then
14111 PATH_SEPARATOR=:
14112 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14113 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14114 PATH_SEPARATOR=';'
14119 # IFS
14120 # We need space, tab and new line, in precisely that order. Quoting is
14121 # there to prevent editors from complaining about space-tab.
14122 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14123 # splitting by setting IFS to empty value.)
14124 IFS=" "" $as_nl"
14126 # Find who we are. Look in the path if we contain no directory separator.
14127 case $0 in #((
14128 *[\\/]* ) as_myself=$0 ;;
14129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14132 IFS=$as_save_IFS
14133 test -z "$as_dir" && as_dir=.
14134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14135 done
14136 IFS=$as_save_IFS
14139 esac
14140 # We did not find ourselves, most probably we were run as `sh COMMAND'
14141 # in which case we are not to be found in the path.
14142 if test "x$as_myself" = x; then
14143 as_myself=$0
14145 if test ! -f "$as_myself"; then
14146 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14147 exit 1
14150 # Unset variables that we do not need and which cause bugs (e.g. in
14151 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14152 # suppresses any "Segmentation fault" message there. '((' could
14153 # trigger a bug in pdksh 5.2.14.
14154 for as_var in BASH_ENV ENV MAIL MAILPATH
14155 do eval test x\${$as_var+set} = xset \
14156 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14157 done
14158 PS1='$ '
14159 PS2='> '
14160 PS4='+ '
14162 # NLS nuisances.
14163 LC_ALL=C
14164 export LC_ALL
14165 LANGUAGE=C
14166 export LANGUAGE
14168 # CDPATH.
14169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14172 # as_fn_error ERROR [LINENO LOG_FD]
14173 # ---------------------------------
14174 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14175 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14176 # script with status $?, using 1 if that was 0.
14177 as_fn_error ()
14179 as_status=$?; test $as_status -eq 0 && as_status=1
14180 if test "$3"; then
14181 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14182 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14184 $as_echo "$as_me: error: $1" >&2
14185 as_fn_exit $as_status
14186 } # as_fn_error
14189 # as_fn_set_status STATUS
14190 # -----------------------
14191 # Set $? to STATUS, without forking.
14192 as_fn_set_status ()
14194 return $1
14195 } # as_fn_set_status
14197 # as_fn_exit STATUS
14198 # -----------------
14199 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14200 as_fn_exit ()
14202 set +e
14203 as_fn_set_status $1
14204 exit $1
14205 } # as_fn_exit
14207 # as_fn_unset VAR
14208 # ---------------
14209 # Portably unset VAR.
14210 as_fn_unset ()
14212 { eval $1=; unset $1;}
14214 as_unset=as_fn_unset
14215 # as_fn_append VAR VALUE
14216 # ----------------------
14217 # Append the text in VALUE to the end of the definition contained in VAR. Take
14218 # advantage of any shell optimizations that allow amortized linear growth over
14219 # repeated appends, instead of the typical quadratic growth present in naive
14220 # implementations.
14221 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14222 eval 'as_fn_append ()
14224 eval $1+=\$2
14226 else
14227 as_fn_append ()
14229 eval $1=\$$1\$2
14231 fi # as_fn_append
14233 # as_fn_arith ARG...
14234 # ------------------
14235 # Perform arithmetic evaluation on the ARGs, and store the result in the
14236 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14237 # must be portable across $(()) and expr.
14238 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14239 eval 'as_fn_arith ()
14241 as_val=$(( $* ))
14243 else
14244 as_fn_arith ()
14246 as_val=`expr "$@" || test $? -eq 1`
14248 fi # as_fn_arith
14251 if expr a : '\(a\)' >/dev/null 2>&1 &&
14252 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14253 as_expr=expr
14254 else
14255 as_expr=false
14258 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14259 as_basename=basename
14260 else
14261 as_basename=false
14264 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14265 as_dirname=dirname
14266 else
14267 as_dirname=false
14270 as_me=`$as_basename -- "$0" ||
14271 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14272 X"$0" : 'X\(//\)$' \| \
14273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14274 $as_echo X/"$0" |
14275 sed '/^.*\/\([^/][^/]*\)\/*$/{
14276 s//\1/
14279 /^X\/\(\/\/\)$/{
14280 s//\1/
14283 /^X\/\(\/\).*/{
14284 s//\1/
14287 s/.*/./; q'`
14289 # Avoid depending upon Character Ranges.
14290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14293 as_cr_digits='0123456789'
14294 as_cr_alnum=$as_cr_Letters$as_cr_digits
14296 ECHO_C= ECHO_N= ECHO_T=
14297 case `echo -n x` in #(((((
14298 -n*)
14299 case `echo 'xy\c'` in
14300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14301 xy) ECHO_C='\c';;
14302 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14303 ECHO_T=' ';;
14304 esac;;
14306 ECHO_N='-n';;
14307 esac
14309 rm -f conf$$ conf$$.exe conf$$.file
14310 if test -d conf$$.dir; then
14311 rm -f conf$$.dir/conf$$.file
14312 else
14313 rm -f conf$$.dir
14314 mkdir conf$$.dir 2>/dev/null
14316 if (echo >conf$$.file) 2>/dev/null; then
14317 if ln -s conf$$.file conf$$ 2>/dev/null; then
14318 as_ln_s='ln -s'
14319 # ... but there are two gotchas:
14320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14322 # In both cases, we have to default to `cp -p'.
14323 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14324 as_ln_s='cp -p'
14325 elif ln conf$$.file conf$$ 2>/dev/null; then
14326 as_ln_s=ln
14327 else
14328 as_ln_s='cp -p'
14330 else
14331 as_ln_s='cp -p'
14333 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14334 rmdir conf$$.dir 2>/dev/null
14337 # as_fn_mkdir_p
14338 # -------------
14339 # Create "$as_dir" as a directory, including parents if necessary.
14340 as_fn_mkdir_p ()
14343 case $as_dir in #(
14344 -*) as_dir=./$as_dir;;
14345 esac
14346 test -d "$as_dir" || eval $as_mkdir_p || {
14347 as_dirs=
14348 while :; do
14349 case $as_dir in #(
14350 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14351 *) as_qdir=$as_dir;;
14352 esac
14353 as_dirs="'$as_qdir' $as_dirs"
14354 as_dir=`$as_dirname -- "$as_dir" ||
14355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14356 X"$as_dir" : 'X\(//\)[^/]' \| \
14357 X"$as_dir" : 'X\(//\)$' \| \
14358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14359 $as_echo X"$as_dir" |
14360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14361 s//\1/
14364 /^X\(\/\/\)[^/].*/{
14365 s//\1/
14368 /^X\(\/\/\)$/{
14369 s//\1/
14372 /^X\(\/\).*/{
14373 s//\1/
14376 s/.*/./; q'`
14377 test -d "$as_dir" && break
14378 done
14379 test -z "$as_dirs" || eval "mkdir $as_dirs"
14380 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14383 } # as_fn_mkdir_p
14384 if mkdir -p . 2>/dev/null; then
14385 as_mkdir_p='mkdir -p "$as_dir"'
14386 else
14387 test -d ./-p && rmdir ./-p
14388 as_mkdir_p=false
14391 if test -x / >/dev/null 2>&1; then
14392 as_test_x='test -x'
14393 else
14394 if ls -dL / >/dev/null 2>&1; then
14395 as_ls_L_option=L
14396 else
14397 as_ls_L_option=
14399 as_test_x='
14400 eval sh -c '\''
14401 if test -d "$1"; then
14402 test -d "$1/.";
14403 else
14404 case $1 in #(
14405 -*)set "./$1";;
14406 esac;
14407 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14408 ???[sx]*):;;*)false;;esac;fi
14409 '\'' sh
14412 as_executable_p=$as_test_x
14414 # Sed expression to map a string onto a valid CPP name.
14415 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14417 # Sed expression to map a string onto a valid variable name.
14418 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14421 exec 6>&1
14422 ## ----------------------------------- ##
14423 ## Main body of $CONFIG_STATUS script. ##
14424 ## ----------------------------------- ##
14425 _ASEOF
14426 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14429 # Save the log message, to keep $0 and so on meaningful, and to
14430 # report actual input values of CONFIG_FILES etc. instead of their
14431 # values after options handling.
14432 ac_log="
14433 This file was extended by package-unused $as_me version-unused, which was
14434 generated by GNU Autoconf 2.64. Invocation command line was
14436 CONFIG_FILES = $CONFIG_FILES
14437 CONFIG_HEADERS = $CONFIG_HEADERS
14438 CONFIG_LINKS = $CONFIG_LINKS
14439 CONFIG_COMMANDS = $CONFIG_COMMANDS
14440 $ $0 $@
14442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14445 _ACEOF
14447 case $ac_config_files in *"
14448 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14449 esac
14451 case $ac_config_headers in *"
14452 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14453 esac
14456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14457 # Files that config.status was made for.
14458 config_files="$ac_config_files"
14459 config_headers="$ac_config_headers"
14460 config_commands="$ac_config_commands"
14462 _ACEOF
14464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14465 ac_cs_usage="\
14466 \`$as_me' instantiates files and other configuration actions
14467 from templates according to the current configuration. Unless the files
14468 and actions are specified as TAGs, all are instantiated by default.
14470 Usage: $0 [OPTION]... [TAG]...
14472 -h, --help print this help, then exit
14473 -V, --version print version number and configuration settings, then exit
14474 -q, --quiet, --silent
14475 do not print progress messages
14476 -d, --debug don't remove temporary files
14477 --recheck update $as_me by reconfiguring in the same conditions
14478 --file=FILE[:TEMPLATE]
14479 instantiate the configuration file FILE
14480 --header=FILE[:TEMPLATE]
14481 instantiate the configuration header FILE
14483 Configuration files:
14484 $config_files
14486 Configuration headers:
14487 $config_headers
14489 Configuration commands:
14490 $config_commands
14492 Report bugs to the package provider."
14494 _ACEOF
14495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14496 ac_cs_version="\\
14497 package-unused config.status version-unused
14498 configured by $0, generated by GNU Autoconf 2.64,
14499 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14501 Copyright (C) 2009 Free Software Foundation, Inc.
14502 This config.status script is free software; the Free Software Foundation
14503 gives unlimited permission to copy, distribute and modify it."
14505 ac_pwd='$ac_pwd'
14506 srcdir='$srcdir'
14507 INSTALL='$INSTALL'
14508 MKDIR_P='$MKDIR_P'
14509 AWK='$AWK'
14510 test -n "\$AWK" || AWK=awk
14511 _ACEOF
14513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14514 # The default lists apply if the user does not specify any file.
14515 ac_need_defaults=:
14516 while test $# != 0
14518 case $1 in
14519 --*=*)
14520 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14521 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14522 ac_shift=:
14525 ac_option=$1
14526 ac_optarg=$2
14527 ac_shift=shift
14529 esac
14531 case $ac_option in
14532 # Handling of the options.
14533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14534 ac_cs_recheck=: ;;
14535 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14536 $as_echo "$ac_cs_version"; exit ;;
14537 --debug | --debu | --deb | --de | --d | -d )
14538 debug=: ;;
14539 --file | --fil | --fi | --f )
14540 $ac_shift
14541 case $ac_optarg in
14542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14543 esac
14544 as_fn_append CONFIG_FILES " '$ac_optarg'"
14545 ac_need_defaults=false;;
14546 --header | --heade | --head | --hea )
14547 $ac_shift
14548 case $ac_optarg in
14549 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14550 esac
14551 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14552 ac_need_defaults=false;;
14553 --he | --h)
14554 # Conflict between --help and --header
14555 as_fn_error "ambiguous option: \`$1'
14556 Try \`$0 --help' for more information.";;
14557 --help | --hel | -h )
14558 $as_echo "$ac_cs_usage"; exit ;;
14559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14561 ac_cs_silent=: ;;
14563 # This is an error.
14564 -*) as_fn_error "unrecognized option: \`$1'
14565 Try \`$0 --help' for more information." ;;
14567 *) as_fn_append ac_config_targets " $1"
14568 ac_need_defaults=false ;;
14570 esac
14571 shift
14572 done
14574 ac_configure_extra_args=
14576 if $ac_cs_silent; then
14577 exec 6>/dev/null
14578 ac_configure_extra_args="$ac_configure_extra_args --silent"
14581 _ACEOF
14582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14583 if \$ac_cs_recheck; then
14584 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14585 shift
14586 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14587 CONFIG_SHELL='$SHELL'
14588 export CONFIG_SHELL
14589 exec "\$@"
14592 _ACEOF
14593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14594 exec 5>>config.log
14596 echo
14597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14598 ## Running $as_me. ##
14599 _ASBOX
14600 $as_echo "$ac_log"
14601 } >&5
14603 _ACEOF
14604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606 # INIT-COMMANDS
14609 srcdir="$srcdir"
14610 host="$host"
14611 target="$target"
14612 with_multisubdir="$with_multisubdir"
14613 with_multisrctop="$with_multisrctop"
14614 with_target_subdir="$with_target_subdir"
14615 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14616 multi_basedir="$multi_basedir"
14617 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14618 CC="$CC"
14619 CXX="$CXX"
14620 GFORTRAN="$GFORTRAN"
14621 GCJ="$GCJ"
14622 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14625 # The HP-UX ksh and POSIX shell print the target directory to stdout
14626 # if CDPATH is set.
14627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14629 sed_quote_subst='$sed_quote_subst'
14630 double_quote_subst='$double_quote_subst'
14631 delay_variable_subst='$delay_variable_subst'
14632 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14633 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14634 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14635 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14636 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14637 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14638 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14639 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14640 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14641 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14642 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14643 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14644 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14645 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14646 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14647 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14648 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14649 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14650 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14651 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14652 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14653 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14654 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14655 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14656 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14657 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14658 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14659 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14660 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14661 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14662 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14663 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14664 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14665 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14666 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14667 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14668 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14669 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14670 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14671 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14672 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14673 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14674 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14675 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14676 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14677 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14678 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14679 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14680 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"`'
14681 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14682 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14683 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14684 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14685 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14686 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14687 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14688 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14689 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14690 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14691 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14692 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14693 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14694 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14695 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14696 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14697 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14698 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14699 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14700 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14701 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14702 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14703 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14704 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14705 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14706 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14707 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14708 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14709 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14710 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14711 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14712 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14713 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14714 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14715 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14716 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14717 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14718 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14719 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14720 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14721 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14722 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14723 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14724 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14725 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14726 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14727 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14728 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14729 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14730 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14731 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14732 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14733 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14734 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14735 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14736 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14737 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14738 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14739 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14740 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14741 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14742 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14743 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14744 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14745 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14746 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14747 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14748 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14749 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14750 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14751 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14752 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
14753 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
14754 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
14755 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14756 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
14757 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
14758 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
14759 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
14760 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
14761 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
14762 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
14763 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
14764 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
14765 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14766 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14767 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
14768 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
14769 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
14770 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14771 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14772 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
14773 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14774 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
14775 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14776 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14777 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14778 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
14779 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
14780 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
14781 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
14782 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
14783 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
14784 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
14785 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
14786 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
14787 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
14788 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
14789 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
14790 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14791 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14792 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
14793 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
14794 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
14796 LTCC='$LTCC'
14797 LTCFLAGS='$LTCFLAGS'
14798 compiler='$compiler_DEFAULT'
14800 # A function that is used when there is no print builtin or printf.
14801 func_fallback_echo ()
14803 eval 'cat <<_LTECHO_EOF
14805 _LTECHO_EOF'
14808 # Quote evaled strings.
14809 for var in SED \
14810 GREP \
14811 EGREP \
14812 FGREP \
14813 SHELL \
14814 ECHO \
14815 LD \
14816 NM \
14817 LN_S \
14818 lt_SP2NL \
14819 lt_NL2SP \
14820 reload_flag \
14821 OBJDUMP \
14822 deplibs_check_method \
14823 file_magic_cmd \
14824 AR \
14825 AR_FLAGS \
14826 STRIP \
14827 RANLIB \
14828 CC \
14829 CFLAGS \
14830 compiler \
14831 lt_cv_sys_global_symbol_pipe \
14832 lt_cv_sys_global_symbol_to_cdecl \
14833 lt_cv_sys_global_symbol_to_c_name_address \
14834 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14835 lt_prog_compiler_no_builtin_flag \
14836 lt_prog_compiler_wl \
14837 lt_prog_compiler_pic \
14838 lt_prog_compiler_static \
14839 lt_cv_prog_compiler_c_o \
14840 need_locks \
14841 DSYMUTIL \
14842 NMEDIT \
14843 LIPO \
14844 OTOOL \
14845 OTOOL64 \
14846 shrext_cmds \
14847 export_dynamic_flag_spec \
14848 whole_archive_flag_spec \
14849 compiler_needs_object \
14850 with_gnu_ld \
14851 allow_undefined_flag \
14852 no_undefined_flag \
14853 hardcode_libdir_flag_spec \
14854 hardcode_libdir_flag_spec_ld \
14855 hardcode_libdir_separator \
14856 fix_srcfile_path \
14857 exclude_expsyms \
14858 include_expsyms \
14859 file_list_spec \
14860 variables_saved_for_relink \
14861 libname_spec \
14862 library_names_spec \
14863 soname_spec \
14864 install_override_mode \
14865 finish_eval \
14866 old_striplib \
14867 striplib \
14868 LD_GO \
14869 reload_flag_GO \
14870 compiler_GO \
14871 lt_prog_compiler_no_builtin_flag_GO \
14872 lt_prog_compiler_wl_GO \
14873 lt_prog_compiler_pic_GO \
14874 lt_prog_compiler_static_GO \
14875 lt_cv_prog_compiler_c_o_GO \
14876 export_dynamic_flag_spec_GO \
14877 whole_archive_flag_spec_GO \
14878 compiler_needs_object_GO \
14879 with_gnu_ld_GO \
14880 allow_undefined_flag_GO \
14881 no_undefined_flag_GO \
14882 hardcode_libdir_flag_spec_GO \
14883 hardcode_libdir_flag_spec_ld_GO \
14884 hardcode_libdir_separator_GO \
14885 fix_srcfile_path_GO \
14886 exclude_expsyms_GO \
14887 include_expsyms_GO \
14888 file_list_spec_GO; do
14889 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14890 *[\\\\\\\`\\"\\\$]*)
14891 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14896 esac
14897 done
14899 # Double-quote double-evaled strings.
14900 for var in reload_cmds \
14901 old_postinstall_cmds \
14902 old_postuninstall_cmds \
14903 old_archive_cmds \
14904 extract_expsyms_cmds \
14905 old_archive_from_new_cmds \
14906 old_archive_from_expsyms_cmds \
14907 archive_cmds \
14908 archive_expsym_cmds \
14909 module_cmds \
14910 module_expsym_cmds \
14911 export_symbols_cmds \
14912 prelink_cmds \
14913 postinstall_cmds \
14914 postuninstall_cmds \
14915 finish_cmds \
14916 sys_lib_search_path_spec \
14917 sys_lib_dlsearch_path_spec \
14918 reload_cmds_GO \
14919 old_archive_cmds_GO \
14920 old_archive_from_new_cmds_GO \
14921 old_archive_from_expsyms_cmds_GO \
14922 archive_cmds_GO \
14923 archive_expsym_cmds_GO \
14924 module_cmds_GO \
14925 module_expsym_cmds_GO \
14926 export_symbols_cmds_GO \
14927 prelink_cmds_GO; do
14928 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14929 *[\\\\\\\`\\"\\\$]*)
14930 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14933 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14935 esac
14936 done
14938 ac_aux_dir='$ac_aux_dir'
14939 xsi_shell='$xsi_shell'
14940 lt_shell_append='$lt_shell_append'
14942 # See if we are running on zsh, and set the options which allow our
14943 # commands through without removal of \ escapes INIT.
14944 if test -n "\${ZSH_VERSION+set}" ; then
14945 setopt NO_GLOB_SUBST
14949 PACKAGE='$PACKAGE'
14950 VERSION='$VERSION'
14951 TIMESTAMP='$TIMESTAMP'
14952 RM='$RM'
14953 ofile='$ofile'
14960 # Variables needed in config.status (file generation) which aren't already
14961 # passed by autoconf.
14962 SUBDIRS="$SUBDIRS"
14965 _ACEOF
14967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14969 # Handling of arguments.
14970 for ac_config_target in $ac_config_targets
14972 case $ac_config_target in
14973 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14974 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14975 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14976 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14977 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14978 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14979 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14981 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14982 esac
14983 done
14986 # If the user did not use the arguments to specify the items to instantiate,
14987 # then the envvar interface is used. Set only those that are not.
14988 # We use the long form for the default assignment because of an extremely
14989 # bizarre bug on SunOS 4.1.3.
14990 if $ac_need_defaults; then
14991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14996 # Have a temporary directory for convenience. Make it in the build tree
14997 # simply because there is no reason against having it here, and in addition,
14998 # creating and moving files from /tmp can sometimes cause problems.
14999 # Hook for its removal unless debugging.
15000 # Note that there is a small window in which the directory will not be cleaned:
15001 # after its creation but before its name has been assigned to `$tmp'.
15002 $debug ||
15004 tmp=
15005 trap 'exit_status=$?
15006 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15008 trap 'as_fn_exit 1' 1 2 13 15
15010 # Create a (secure) tmp directory for tmp files.
15013 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15014 test -n "$tmp" && test -d "$tmp"
15015 } ||
15017 tmp=./conf$$-$RANDOM
15018 (umask 077 && mkdir "$tmp")
15019 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15021 # Set up the scripts for CONFIG_FILES section.
15022 # No need to generate them if there are no CONFIG_FILES.
15023 # This happens for instance with `./config.status config.h'.
15024 if test -n "$CONFIG_FILES"; then
15027 ac_cr=`echo X | tr X '\015'`
15028 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15029 # But we know of no other shell where ac_cr would be empty at this
15030 # point, so we can use a bashism as a fallback.
15031 if test "x$ac_cr" = x; then
15032 eval ac_cr=\$\'\\r\'
15034 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15035 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15036 ac_cs_awk_cr='\r'
15037 else
15038 ac_cs_awk_cr=$ac_cr
15041 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15042 _ACEOF
15046 echo "cat >conf$$subs.awk <<_ACEOF" &&
15047 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15048 echo "_ACEOF"
15049 } >conf$$subs.sh ||
15050 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15051 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15052 ac_delim='%!_!# '
15053 for ac_last_try in false false false false false :; do
15054 . ./conf$$subs.sh ||
15055 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15057 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15058 if test $ac_delim_n = $ac_delim_num; then
15059 break
15060 elif $ac_last_try; then
15061 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15062 else
15063 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15065 done
15066 rm -f conf$$subs.sh
15068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15069 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15070 _ACEOF
15071 sed -n '
15073 s/^/S["/; s/!.*/"]=/
15076 s/^[^!]*!//
15077 :repl
15078 t repl
15079 s/'"$ac_delim"'$//
15080 t delim
15083 s/\(.\{148\}\).*/\1/
15084 t more1
15085 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15088 b repl
15089 :more1
15090 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15093 s/.\{148\}//
15094 t nl
15095 :delim
15097 s/\(.\{148\}\).*/\1/
15098 t more2
15099 s/["\\]/\\&/g; s/^/"/; s/$/"/
15102 :more2
15103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15106 s/.\{148\}//
15107 t delim
15108 ' <conf$$subs.awk | sed '
15109 /^[^""]/{
15111 s/\n//
15113 ' >>$CONFIG_STATUS || ac_write_fail=1
15114 rm -f conf$$subs.awk
15115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15116 _ACAWK
15117 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15118 for (key in S) S_is_set[key] = 1
15119 FS = "\a"
15123 line = $ 0
15124 nfields = split(line, field, "@")
15125 substed = 0
15126 len = length(field[1])
15127 for (i = 2; i < nfields; i++) {
15128 key = field[i]
15129 keylen = length(key)
15130 if (S_is_set[key]) {
15131 value = S[key]
15132 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15133 len += length(value) + length(field[++i])
15134 substed = 1
15135 } else
15136 len += 1 + keylen
15139 print line
15142 _ACAWK
15143 _ACEOF
15144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15145 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15146 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15147 else
15149 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15150 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15151 _ACEOF
15153 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15154 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15155 # trailing colons and then remove the whole line if VPATH becomes empty
15156 # (actually we leave an empty line to preserve line numbers).
15157 if test "x$srcdir" = x.; then
15158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15159 s/:*\$(srcdir):*/:/
15160 s/:*\${srcdir}:*/:/
15161 s/:*@srcdir@:*/:/
15162 s/^\([^=]*=[ ]*\):*/\1/
15163 s/:*$//
15164 s/^[^=]*=[ ]*$//
15168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15169 fi # test -n "$CONFIG_FILES"
15171 # Set up the scripts for CONFIG_HEADERS section.
15172 # No need to generate them if there are no CONFIG_HEADERS.
15173 # This happens for instance with `./config.status Makefile'.
15174 if test -n "$CONFIG_HEADERS"; then
15175 cat >"$tmp/defines.awk" <<\_ACAWK ||
15176 BEGIN {
15177 _ACEOF
15179 # Transform confdefs.h into an awk script `defines.awk', embedded as
15180 # here-document in config.status, that substitutes the proper values into
15181 # config.h.in to produce config.h.
15183 # Create a delimiter string that does not exist in confdefs.h, to ease
15184 # handling of long lines.
15185 ac_delim='%!_!# '
15186 for ac_last_try in false false :; do
15187 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15188 if test -z "$ac_t"; then
15189 break
15190 elif $ac_last_try; then
15191 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15192 else
15193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15195 done
15197 # For the awk script, D is an array of macro values keyed by name,
15198 # likewise P contains macro parameters if any. Preserve backslash
15199 # newline sequences.
15201 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15202 sed -n '
15203 s/.\{148\}/&'"$ac_delim"'/g
15204 t rset
15205 :rset
15206 s/^[ ]*#[ ]*define[ ][ ]*/ /
15207 t def
15209 :def
15210 s/\\$//
15211 t bsnl
15212 s/["\\]/\\&/g
15213 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15214 D["\1"]=" \3"/p
15215 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15217 :bsnl
15218 s/["\\]/\\&/g
15219 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15220 D["\1"]=" \3\\\\\\n"\\/p
15221 t cont
15222 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15223 t cont
15225 :cont
15227 s/.\{148\}/&'"$ac_delim"'/g
15228 t clear
15229 :clear
15230 s/\\$//
15231 t bsnlc
15232 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15234 :bsnlc
15235 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15236 b cont
15237 ' <confdefs.h | sed '
15238 s/'"$ac_delim"'/"\\\
15239 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242 for (key in D) D_is_set[key] = 1
15243 FS = "\a"
15245 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15246 line = \$ 0
15247 split(line, arg, " ")
15248 if (arg[1] == "#") {
15249 defundef = arg[2]
15250 mac1 = arg[3]
15251 } else {
15252 defundef = substr(arg[1], 2)
15253 mac1 = arg[2]
15255 split(mac1, mac2, "(") #)
15256 macro = mac2[1]
15257 prefix = substr(line, 1, index(line, defundef) - 1)
15258 if (D_is_set[macro]) {
15259 # Preserve the white space surrounding the "#".
15260 print prefix "define", macro P[macro] D[macro]
15261 next
15262 } else {
15263 # Replace #undef with comments. This is necessary, for example,
15264 # in the case of _POSIX_SOURCE, which is predefined and required
15265 # on some systems where configure will not decide to define it.
15266 if (defundef == "undef") {
15267 print "/*", prefix defundef, macro, "*/"
15268 next
15272 { print }
15273 _ACAWK
15274 _ACEOF
15275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15276 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15277 fi # test -n "$CONFIG_HEADERS"
15280 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15281 shift
15282 for ac_tag
15284 case $ac_tag in
15285 :[FHLC]) ac_mode=$ac_tag; continue;;
15286 esac
15287 case $ac_mode$ac_tag in
15288 :[FHL]*:*);;
15289 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15290 :[FH]-) ac_tag=-:-;;
15291 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15292 esac
15293 ac_save_IFS=$IFS
15294 IFS=:
15295 set x $ac_tag
15296 IFS=$ac_save_IFS
15297 shift
15298 ac_file=$1
15299 shift
15301 case $ac_mode in
15302 :L) ac_source=$1;;
15303 :[FH])
15304 ac_file_inputs=
15305 for ac_f
15307 case $ac_f in
15308 -) ac_f="$tmp/stdin";;
15309 *) # Look for the file first in the build tree, then in the source tree
15310 # (if the path is not absolute). The absolute path cannot be DOS-style,
15311 # because $ac_f cannot contain `:'.
15312 test -f "$ac_f" ||
15313 case $ac_f in
15314 [\\/$]*) false;;
15315 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15316 esac ||
15317 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15318 esac
15319 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15320 as_fn_append ac_file_inputs " '$ac_f'"
15321 done
15323 # Let's still pretend it is `configure' which instantiates (i.e., don't
15324 # use $as_me), people would be surprised to read:
15325 # /* config.h. Generated by config.status. */
15326 configure_input='Generated from '`
15327 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15328 `' by configure.'
15329 if test x"$ac_file" != x-; then
15330 configure_input="$ac_file. $configure_input"
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15332 $as_echo "$as_me: creating $ac_file" >&6;}
15334 # Neutralize special characters interpreted by sed in replacement strings.
15335 case $configure_input in #(
15336 *\&* | *\|* | *\\* )
15337 ac_sed_conf_input=`$as_echo "$configure_input" |
15338 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15339 *) ac_sed_conf_input=$configure_input;;
15340 esac
15342 case $ac_tag in
15343 *:-:* | *:-) cat >"$tmp/stdin" \
15344 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15345 esac
15347 esac
15349 ac_dir=`$as_dirname -- "$ac_file" ||
15350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15351 X"$ac_file" : 'X\(//\)[^/]' \| \
15352 X"$ac_file" : 'X\(//\)$' \| \
15353 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15354 $as_echo X"$ac_file" |
15355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15356 s//\1/
15359 /^X\(\/\/\)[^/].*/{
15360 s//\1/
15363 /^X\(\/\/\)$/{
15364 s//\1/
15367 /^X\(\/\).*/{
15368 s//\1/
15371 s/.*/./; q'`
15372 as_dir="$ac_dir"; as_fn_mkdir_p
15373 ac_builddir=.
15375 case "$ac_dir" in
15376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15379 # A ".." for each directory in $ac_dir_suffix.
15380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15381 case $ac_top_builddir_sub in
15382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15384 esac ;;
15385 esac
15386 ac_abs_top_builddir=$ac_pwd
15387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15388 # for backward compatibility:
15389 ac_top_builddir=$ac_top_build_prefix
15391 case $srcdir in
15392 .) # We are building in place.
15393 ac_srcdir=.
15394 ac_top_srcdir=$ac_top_builddir_sub
15395 ac_abs_top_srcdir=$ac_pwd ;;
15396 [\\/]* | ?:[\\/]* ) # Absolute name.
15397 ac_srcdir=$srcdir$ac_dir_suffix;
15398 ac_top_srcdir=$srcdir
15399 ac_abs_top_srcdir=$srcdir ;;
15400 *) # Relative name.
15401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15402 ac_top_srcdir=$ac_top_build_prefix$srcdir
15403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15404 esac
15405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15408 case $ac_mode in
15411 # CONFIG_FILE
15414 case $INSTALL in
15415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15417 esac
15418 ac_MKDIR_P=$MKDIR_P
15419 case $MKDIR_P in
15420 [\\/$]* | ?:[\\/]* ) ;;
15421 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15422 esac
15423 _ACEOF
15425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15426 # If the template does not know about datarootdir, expand it.
15427 # FIXME: This hack should be removed a few years after 2.60.
15428 ac_datarootdir_hack=; ac_datarootdir_seen=
15429 ac_sed_dataroot='
15430 /datarootdir/ {
15434 /@datadir@/p
15435 /@docdir@/p
15436 /@infodir@/p
15437 /@localedir@/p
15438 /@mandir@/p'
15439 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15440 *datarootdir*) ac_datarootdir_seen=yes;;
15441 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15443 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15444 _ACEOF
15445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15446 ac_datarootdir_hack='
15447 s&@datadir@&$datadir&g
15448 s&@docdir@&$docdir&g
15449 s&@infodir@&$infodir&g
15450 s&@localedir@&$localedir&g
15451 s&@mandir@&$mandir&g
15452 s&\\\${datarootdir}&$datarootdir&g' ;;
15453 esac
15454 _ACEOF
15456 # Neutralize VPATH when `$srcdir' = `.'.
15457 # Shell code in configure.ac might set extrasub.
15458 # FIXME: do we really want to maintain this feature?
15459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15460 ac_sed_extra="$ac_vpsub
15461 $extrasub
15462 _ACEOF
15463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15466 s|@configure_input@|$ac_sed_conf_input|;t t
15467 s&@top_builddir@&$ac_top_builddir_sub&;t t
15468 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15469 s&@srcdir@&$ac_srcdir&;t t
15470 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15471 s&@top_srcdir@&$ac_top_srcdir&;t t
15472 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15473 s&@builddir@&$ac_builddir&;t t
15474 s&@abs_builddir@&$ac_abs_builddir&;t t
15475 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15476 s&@INSTALL@&$ac_INSTALL&;t t
15477 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15478 $ac_datarootdir_hack
15480 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15481 || as_fn_error "could not create $ac_file" "$LINENO" 5
15483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15487 which seems to be undefined. Please make sure it is defined." >&5
15488 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15489 which seems to be undefined. Please make sure it is defined." >&2;}
15491 rm -f "$tmp/stdin"
15492 case $ac_file in
15493 -) cat "$tmp/out" && rm -f "$tmp/out";;
15494 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15495 esac \
15496 || as_fn_error "could not create $ac_file" "$LINENO" 5
15500 # CONFIG_HEADER
15502 if test x"$ac_file" != x-; then
15504 $as_echo "/* $configure_input */" \
15505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15506 } >"$tmp/config.h" \
15507 || as_fn_error "could not create $ac_file" "$LINENO" 5
15508 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15510 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15511 else
15512 rm -f "$ac_file"
15513 mv "$tmp/config.h" "$ac_file" \
15514 || as_fn_error "could not create $ac_file" "$LINENO" 5
15516 else
15517 $as_echo "/* $configure_input */" \
15518 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15519 || as_fn_error "could not create -" "$LINENO" 5
15521 # Compute "$ac_file"'s index in $config_headers.
15522 _am_arg="$ac_file"
15523 _am_stamp_count=1
15524 for _am_header in $config_headers :; do
15525 case $_am_header in
15526 $_am_arg | $_am_arg:* )
15527 break ;;
15529 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15530 esac
15531 done
15532 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15533 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15534 X"$_am_arg" : 'X\(//\)[^/]' \| \
15535 X"$_am_arg" : 'X\(//\)$' \| \
15536 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15537 $as_echo X"$_am_arg" |
15538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15539 s//\1/
15542 /^X\(\/\/\)[^/].*/{
15543 s//\1/
15546 /^X\(\/\/\)$/{
15547 s//\1/
15550 /^X\(\/\).*/{
15551 s//\1/
15554 s/.*/./; q'`/stamp-h$_am_stamp_count
15557 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15558 $as_echo "$as_me: executing $ac_file commands" >&6;}
15560 esac
15563 case $ac_file$ac_mode in
15564 "default-1":C)
15565 # Only add multilib support code if we just rebuilt the top-level
15566 # Makefile.
15567 case " $CONFIG_FILES " in
15568 *" Makefile "*)
15569 ac_file=Makefile . ${multi_basedir}/config-ml.in
15571 esac ;;
15572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15573 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15574 # are listed without --file. Let's play safe and only enable the eval
15575 # if we detect the quoting.
15576 case $CONFIG_FILES in
15577 *\'*) eval set x "$CONFIG_FILES" ;;
15578 *) set x $CONFIG_FILES ;;
15579 esac
15580 shift
15581 for mf
15583 # Strip MF so we end up with the name of the file.
15584 mf=`echo "$mf" | sed -e 's/:.*$//'`
15585 # Check whether this is an Automake generated Makefile or not.
15586 # We used to match only the files named `Makefile.in', but
15587 # some people rename them; so instead we look at the file content.
15588 # Grep'ing the first line is not enough: some people post-process
15589 # each Makefile.in and add a new line on top of each file to say so.
15590 # Grep'ing the whole file is not good either: AIX grep has a line
15591 # limit of 2048, but all sed's we know have understand at least 4000.
15592 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15593 dirpart=`$as_dirname -- "$mf" ||
15594 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15595 X"$mf" : 'X\(//\)[^/]' \| \
15596 X"$mf" : 'X\(//\)$' \| \
15597 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15598 $as_echo X"$mf" |
15599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15600 s//\1/
15603 /^X\(\/\/\)[^/].*/{
15604 s//\1/
15607 /^X\(\/\/\)$/{
15608 s//\1/
15611 /^X\(\/\).*/{
15612 s//\1/
15615 s/.*/./; q'`
15616 else
15617 continue
15619 # Extract the definition of DEPDIR, am__include, and am__quote
15620 # from the Makefile without running `make'.
15621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15622 test -z "$DEPDIR" && continue
15623 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15624 test -z "am__include" && continue
15625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15626 # When using ansi2knr, U may be empty or an underscore; expand it
15627 U=`sed -n 's/^U = //p' < "$mf"`
15628 # Find all dependency output files, they are included files with
15629 # $(DEPDIR) in their names. We invoke sed twice because it is the
15630 # simplest approach to changing $(DEPDIR) to its actual value in the
15631 # expansion.
15632 for file in `sed -n "
15633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15635 # Make sure the directory exists.
15636 test -f "$dirpart/$file" && continue
15637 fdir=`$as_dirname -- "$file" ||
15638 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15639 X"$file" : 'X\(//\)[^/]' \| \
15640 X"$file" : 'X\(//\)$' \| \
15641 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15642 $as_echo X"$file" |
15643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15644 s//\1/
15647 /^X\(\/\/\)[^/].*/{
15648 s//\1/
15651 /^X\(\/\/\)$/{
15652 s//\1/
15655 /^X\(\/\).*/{
15656 s//\1/
15659 s/.*/./; q'`
15660 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15661 # echo "creating $dirpart/$file"
15662 echo '# dummy' > "$dirpart/$file"
15663 done
15664 done
15667 "libtool":C)
15669 # See if we are running on zsh, and set the options which allow our
15670 # commands through without removal of \ escapes.
15671 if test -n "${ZSH_VERSION+set}" ; then
15672 setopt NO_GLOB_SUBST
15675 cfgfile="${ofile}T"
15676 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15677 $RM "$cfgfile"
15679 cat <<_LT_EOF >> "$cfgfile"
15680 #! $SHELL
15682 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15683 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15685 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15687 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15688 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15689 # Written by Gordon Matzigkeit, 1996
15691 # This file is part of GNU Libtool.
15693 # GNU Libtool is free software; you can redistribute it and/or
15694 # modify it under the terms of the GNU General Public License as
15695 # published by the Free Software Foundation; either version 2 of
15696 # the License, or (at your option) any later version.
15698 # As a special exception to the GNU General Public License,
15699 # if you distribute this file as part of a program or library that
15700 # is built using GNU Libtool, you may include this file under the
15701 # same distribution terms that you use for the rest of that program.
15703 # GNU Libtool is distributed in the hope that it will be useful,
15704 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15705 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15706 # GNU General Public License for more details.
15708 # You should have received a copy of the GNU General Public License
15709 # along with GNU Libtool; see the file COPYING. If not, a copy
15710 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15711 # obtained by writing to the Free Software Foundation, Inc.,
15712 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15715 # The names of the tagged configurations supported by this script.
15716 available_tags="GO "
15718 # ### BEGIN LIBTOOL CONFIG
15720 # A sed program that does not truncate output.
15721 SED=$lt_SED
15723 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15724 Xsed="\$SED -e 1s/^X//"
15726 # A grep program that handles long lines.
15727 GREP=$lt_GREP
15729 # An ERE matcher.
15730 EGREP=$lt_EGREP
15732 # A literal string matcher.
15733 FGREP=$lt_FGREP
15735 # Shell to use when invoking shell scripts.
15736 SHELL=$lt_SHELL
15738 # An echo program that protects backslashes.
15739 ECHO=$lt_ECHO
15741 # Which release of libtool.m4 was used?
15742 macro_version=$macro_version
15743 macro_revision=$macro_revision
15745 # Whether or not to build shared libraries.
15746 build_libtool_libs=$enable_shared
15748 # Whether or not to build static libraries.
15749 build_old_libs=$enable_static
15751 # What type of objects to build.
15752 pic_mode=$pic_mode
15754 # Whether or not to optimize for fast installation.
15755 fast_install=$enable_fast_install
15757 # The host system.
15758 host_alias=$host_alias
15759 host=$host
15760 host_os=$host_os
15762 # The build system.
15763 build_alias=$build_alias
15764 build=$build
15765 build_os=$build_os
15767 # A BSD- or MS-compatible name lister.
15768 NM=$lt_NM
15770 # Whether we need soft or hard links.
15771 LN_S=$lt_LN_S
15773 # What is the maximum length of a command?
15774 max_cmd_len=$max_cmd_len
15776 # Object file suffix (normally "o").
15777 objext=$ac_objext
15779 # Executable file suffix (normally "").
15780 exeext=$exeext
15782 # whether the shell understands "unset".
15783 lt_unset=$lt_unset
15785 # turn spaces into newlines.
15786 SP2NL=$lt_lt_SP2NL
15788 # turn newlines into spaces.
15789 NL2SP=$lt_lt_NL2SP
15791 # An object symbol dumper.
15792 OBJDUMP=$lt_OBJDUMP
15794 # Method to check whether dependent libraries are shared objects.
15795 deplibs_check_method=$lt_deplibs_check_method
15797 # Command to use when deplibs_check_method == "file_magic".
15798 file_magic_cmd=$lt_file_magic_cmd
15800 # The archiver.
15801 AR=$lt_AR
15802 AR_FLAGS=$lt_AR_FLAGS
15804 # A symbol stripping program.
15805 STRIP=$lt_STRIP
15807 # Commands used to install an old-style archive.
15808 RANLIB=$lt_RANLIB
15809 old_postinstall_cmds=$lt_old_postinstall_cmds
15810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15812 # Whether to use a lock for old archive extraction.
15813 lock_old_archive_extraction=$lock_old_archive_extraction
15815 # A C compiler.
15816 LTCC=$lt_CC
15818 # LTCC compiler flags.
15819 LTCFLAGS=$lt_CFLAGS
15821 # Take the output of nm and produce a listing of raw symbols and C names.
15822 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15824 # Transform the output of nm in a proper C declaration.
15825 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15827 # Transform the output of nm in a C name address pair.
15828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15830 # Transform the output of nm in a C name address pair when lib prefix is needed.
15831 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15833 # The name of the directory that contains temporary libtool files.
15834 objdir=$objdir
15836 # Used to examine libraries when file_magic_cmd begins with "file".
15837 MAGIC_CMD=$MAGIC_CMD
15839 # Must we lock files when doing compilation?
15840 need_locks=$lt_need_locks
15842 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15843 DSYMUTIL=$lt_DSYMUTIL
15845 # Tool to change global to local symbols on Mac OS X.
15846 NMEDIT=$lt_NMEDIT
15848 # Tool to manipulate fat objects and archives on Mac OS X.
15849 LIPO=$lt_LIPO
15851 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15852 OTOOL=$lt_OTOOL
15854 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15855 OTOOL64=$lt_OTOOL64
15857 # Old archive suffix (normally "a").
15858 libext=$libext
15860 # Shared library suffix (normally ".so").
15861 shrext_cmds=$lt_shrext_cmds
15863 # The commands to extract the exported symbol list from a shared archive.
15864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15866 # Variables whose values should be saved in libtool wrapper scripts and
15867 # restored at link time.
15868 variables_saved_for_relink=$lt_variables_saved_for_relink
15870 # Do we need the "lib" prefix for modules?
15871 need_lib_prefix=$need_lib_prefix
15873 # Do we need a version for libraries?
15874 need_version=$need_version
15876 # Library versioning type.
15877 version_type=$version_type
15879 # Shared library runtime path variable.
15880 runpath_var=$runpath_var
15882 # Shared library path variable.
15883 shlibpath_var=$shlibpath_var
15885 # Is shlibpath searched before the hard-coded library search path?
15886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15888 # Format of library name prefix.
15889 libname_spec=$lt_libname_spec
15891 # List of archive names. First name is the real one, the rest are links.
15892 # The last name is the one that the linker finds with -lNAME
15893 library_names_spec=$lt_library_names_spec
15895 # The coded name of the library, if different from the real name.
15896 soname_spec=$lt_soname_spec
15898 # Permission mode override for installation of shared libraries.
15899 install_override_mode=$lt_install_override_mode
15901 # Command to use after installation of a shared archive.
15902 postinstall_cmds=$lt_postinstall_cmds
15904 # Command to use after uninstallation of a shared archive.
15905 postuninstall_cmds=$lt_postuninstall_cmds
15907 # Commands used to finish a libtool library installation in a directory.
15908 finish_cmds=$lt_finish_cmds
15910 # As "finish_cmds", except a single script fragment to be evaled but
15911 # not shown.
15912 finish_eval=$lt_finish_eval
15914 # Whether we should hardcode library paths into libraries.
15915 hardcode_into_libs=$hardcode_into_libs
15917 # Compile-time system search path for libraries.
15918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15920 # Run-time system search path for libraries.
15921 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15923 # Whether dlopen is supported.
15924 dlopen_support=$enable_dlopen
15926 # Whether dlopen of programs is supported.
15927 dlopen_self=$enable_dlopen_self
15929 # Whether dlopen of statically linked programs is supported.
15930 dlopen_self_static=$enable_dlopen_self_static
15932 # Commands to strip libraries.
15933 old_striplib=$lt_old_striplib
15934 striplib=$lt_striplib
15937 # The linker used to build libraries.
15938 LD=$lt_LD
15940 # How to create reloadable object files.
15941 reload_flag=$lt_reload_flag
15942 reload_cmds=$lt_reload_cmds
15944 # Commands used to build an old-style archive.
15945 old_archive_cmds=$lt_old_archive_cmds
15947 # A language specific compiler.
15948 CC=$lt_compiler
15950 # Is the compiler the GNU compiler?
15951 with_gcc=$GCC
15953 # Compiler flag to turn off builtin functions.
15954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15956 # How to pass a linker flag through the compiler.
15957 wl=$lt_lt_prog_compiler_wl
15959 # Additional compiler flags for building library objects.
15960 pic_flag=$lt_lt_prog_compiler_pic
15962 # Compiler flag to prevent dynamic linking.
15963 link_static_flag=$lt_lt_prog_compiler_static
15965 # Does compiler simultaneously support -c and -o options?
15966 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15968 # Whether or not to add -lc for building shared libraries.
15969 build_libtool_need_lc=$archive_cmds_need_lc
15971 # Whether or not to disallow shared libs when runtime libs are static.
15972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15974 # Compiler flag to allow reflexive dlopens.
15975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15977 # Compiler flag to generate shared objects directly from archives.
15978 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15980 # Whether the compiler copes with passing no objects directly.
15981 compiler_needs_object=$lt_compiler_needs_object
15983 # Create an old-style archive from a shared archive.
15984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15986 # Create a temporary old-style archive to link instead of a shared archive.
15987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15989 # Commands used to build a shared archive.
15990 archive_cmds=$lt_archive_cmds
15991 archive_expsym_cmds=$lt_archive_expsym_cmds
15993 # Commands used to build a loadable module if different from building
15994 # a shared archive.
15995 module_cmds=$lt_module_cmds
15996 module_expsym_cmds=$lt_module_expsym_cmds
15998 # Whether we are building with GNU ld or not.
15999 with_gnu_ld=$lt_with_gnu_ld
16001 # Flag that allows shared libraries with undefined symbols to be built.
16002 allow_undefined_flag=$lt_allow_undefined_flag
16004 # Flag that enforces no undefined symbols.
16005 no_undefined_flag=$lt_no_undefined_flag
16007 # Flag to hardcode \$libdir into a binary during linking.
16008 # This must work even if \$libdir does not exist
16009 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16011 # If ld is used when linking, flag to hardcode \$libdir into a binary
16012 # during linking. This must work even if \$libdir does not exist.
16013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16015 # Whether we need a single "-rpath" flag with a separated argument.
16016 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16018 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16019 # DIR into the resulting binary.
16020 hardcode_direct=$hardcode_direct
16022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16023 # DIR into the resulting binary and the resulting library dependency is
16024 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16025 # library is relocated.
16026 hardcode_direct_absolute=$hardcode_direct_absolute
16028 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16029 # into the resulting binary.
16030 hardcode_minus_L=$hardcode_minus_L
16032 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16033 # into the resulting binary.
16034 hardcode_shlibpath_var=$hardcode_shlibpath_var
16036 # Set to "yes" if building a shared library automatically hardcodes DIR
16037 # into the library and all subsequent libraries and executables linked
16038 # against it.
16039 hardcode_automatic=$hardcode_automatic
16041 # Set to yes if linker adds runtime paths of dependent libraries
16042 # to runtime path list.
16043 inherit_rpath=$inherit_rpath
16045 # Whether libtool must link a program against all its dependency libraries.
16046 link_all_deplibs=$link_all_deplibs
16048 # Fix the shell variable \$srcfile for the compiler.
16049 fix_srcfile_path=$lt_fix_srcfile_path
16051 # Set to "yes" if exported symbols are required.
16052 always_export_symbols=$always_export_symbols
16054 # The commands to list exported symbols.
16055 export_symbols_cmds=$lt_export_symbols_cmds
16057 # Symbols that should not be listed in the preloaded symbols.
16058 exclude_expsyms=$lt_exclude_expsyms
16060 # Symbols that must always be exported.
16061 include_expsyms=$lt_include_expsyms
16063 # Commands necessary for linking programs (against libraries) with templates.
16064 prelink_cmds=$lt_prelink_cmds
16066 # Specify filename containing input files.
16067 file_list_spec=$lt_file_list_spec
16069 # How to hardcode a shared library path into an executable.
16070 hardcode_action=$hardcode_action
16072 # ### END LIBTOOL CONFIG
16074 _LT_EOF
16076 case $host_os in
16077 aix3*)
16078 cat <<\_LT_EOF >> "$cfgfile"
16079 # AIX sometimes has problems with the GCC collect2 program. For some
16080 # reason, if we set the COLLECT_NAMES environment variable, the problems
16081 # vanish in a puff of smoke.
16082 if test "X${COLLECT_NAMES+set}" != Xset; then
16083 COLLECT_NAMES=
16084 export COLLECT_NAMES
16086 _LT_EOF
16088 esac
16091 ltmain="$ac_aux_dir/ltmain.sh"
16094 # We use sed instead of cat because bash on DJGPP gets confused if
16095 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16096 # text mode, it properly converts lines to CR/LF. This bash problem
16097 # is reportedly fixed, but why not run on old versions too?
16098 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16099 || (rm -f "$cfgfile"; exit 1)
16101 case $xsi_shell in
16102 yes)
16103 cat << \_LT_EOF >> "$cfgfile"
16105 # func_dirname file append nondir_replacement
16106 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16107 # otherwise set result to NONDIR_REPLACEMENT.
16108 func_dirname ()
16110 case ${1} in
16111 */*) func_dirname_result="${1%/*}${2}" ;;
16112 * ) func_dirname_result="${3}" ;;
16113 esac
16116 # func_basename file
16117 func_basename ()
16119 func_basename_result="${1##*/}"
16122 # func_dirname_and_basename file append nondir_replacement
16123 # perform func_basename and func_dirname in a single function
16124 # call:
16125 # dirname: Compute the dirname of FILE. If nonempty,
16126 # add APPEND to the result, otherwise set result
16127 # to NONDIR_REPLACEMENT.
16128 # value returned in "$func_dirname_result"
16129 # basename: Compute filename of FILE.
16130 # value retuned in "$func_basename_result"
16131 # Implementation must be kept synchronized with func_dirname
16132 # and func_basename. For efficiency, we do not delegate to
16133 # those functions but instead duplicate the functionality here.
16134 func_dirname_and_basename ()
16136 case ${1} in
16137 */*) func_dirname_result="${1%/*}${2}" ;;
16138 * ) func_dirname_result="${3}" ;;
16139 esac
16140 func_basename_result="${1##*/}"
16143 # func_stripname prefix suffix name
16144 # strip PREFIX and SUFFIX off of NAME.
16145 # PREFIX and SUFFIX must not contain globbing or regex special
16146 # characters, hashes, percent signs, but SUFFIX may contain a leading
16147 # dot (in which case that matches only a dot).
16148 func_stripname ()
16150 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16151 # positional parameters, so assign one to ordinary parameter first.
16152 func_stripname_result=${3}
16153 func_stripname_result=${func_stripname_result#"${1}"}
16154 func_stripname_result=${func_stripname_result%"${2}"}
16157 # func_opt_split
16158 func_opt_split ()
16160 func_opt_split_opt=${1%%=*}
16161 func_opt_split_arg=${1#*=}
16164 # func_lo2o object
16165 func_lo2o ()
16167 case ${1} in
16168 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16169 *) func_lo2o_result=${1} ;;
16170 esac
16173 # func_xform libobj-or-source
16174 func_xform ()
16176 func_xform_result=${1%.*}.lo
16179 # func_arith arithmetic-term...
16180 func_arith ()
16182 func_arith_result=$(( $* ))
16185 # func_len string
16186 # STRING may not start with a hyphen.
16187 func_len ()
16189 func_len_result=${#1}
16192 _LT_EOF
16194 *) # Bourne compatible functions.
16195 cat << \_LT_EOF >> "$cfgfile"
16197 # func_dirname file append nondir_replacement
16198 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16199 # otherwise set result to NONDIR_REPLACEMENT.
16200 func_dirname ()
16202 # Extract subdirectory from the argument.
16203 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16204 if test "X$func_dirname_result" = "X${1}"; then
16205 func_dirname_result="${3}"
16206 else
16207 func_dirname_result="$func_dirname_result${2}"
16211 # func_basename file
16212 func_basename ()
16214 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16218 # func_stripname prefix suffix name
16219 # strip PREFIX and SUFFIX off of NAME.
16220 # PREFIX and SUFFIX must not contain globbing or regex special
16221 # characters, hashes, percent signs, but SUFFIX may contain a leading
16222 # dot (in which case that matches only a dot).
16223 # func_strip_suffix prefix name
16224 func_stripname ()
16226 case ${2} in
16227 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16228 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16229 esac
16232 # sed scripts:
16233 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16234 my_sed_long_arg='1s/^-[^=]*=//'
16236 # func_opt_split
16237 func_opt_split ()
16239 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16240 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16243 # func_lo2o object
16244 func_lo2o ()
16246 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16249 # func_xform libobj-or-source
16250 func_xform ()
16252 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16255 # func_arith arithmetic-term...
16256 func_arith ()
16258 func_arith_result=`expr "$@"`
16261 # func_len string
16262 # STRING may not start with a hyphen.
16263 func_len ()
16265 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16268 _LT_EOF
16269 esac
16271 case $lt_shell_append in
16272 yes)
16273 cat << \_LT_EOF >> "$cfgfile"
16275 # func_append var value
16276 # Append VALUE to the end of shell variable VAR.
16277 func_append ()
16279 eval "$1+=\$2"
16281 _LT_EOF
16284 cat << \_LT_EOF >> "$cfgfile"
16286 # func_append var value
16287 # Append VALUE to the end of shell variable VAR.
16288 func_append ()
16290 eval "$1=\$$1\$2"
16293 _LT_EOF
16295 esac
16298 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16299 || (rm -f "$cfgfile"; exit 1)
16301 mv -f "$cfgfile" "$ofile" ||
16302 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16303 chmod +x "$ofile"
16306 cat <<_LT_EOF >> "$ofile"
16308 # ### BEGIN LIBTOOL TAG CONFIG: GO
16310 # The linker used to build libraries.
16311 LD=$lt_LD_GO
16313 # How to create reloadable object files.
16314 reload_flag=$lt_reload_flag_GO
16315 reload_cmds=$lt_reload_cmds_GO
16317 # Commands used to build an old-style archive.
16318 old_archive_cmds=$lt_old_archive_cmds_GO
16320 # A language specific compiler.
16321 CC=$lt_compiler_GO
16323 # Is the compiler the GNU compiler?
16324 with_gcc=$GCC_GO
16326 # Compiler flag to turn off builtin functions.
16327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16329 # How to pass a linker flag through the compiler.
16330 wl=$lt_lt_prog_compiler_wl_GO
16332 # Additional compiler flags for building library objects.
16333 pic_flag=$lt_lt_prog_compiler_pic_GO
16335 # Compiler flag to prevent dynamic linking.
16336 link_static_flag=$lt_lt_prog_compiler_static_GO
16338 # Does compiler simultaneously support -c and -o options?
16339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16341 # Whether or not to add -lc for building shared libraries.
16342 build_libtool_need_lc=$archive_cmds_need_lc_GO
16344 # Whether or not to disallow shared libs when runtime libs are static.
16345 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16347 # Compiler flag to allow reflexive dlopens.
16348 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16350 # Compiler flag to generate shared objects directly from archives.
16351 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16353 # Whether the compiler copes with passing no objects directly.
16354 compiler_needs_object=$lt_compiler_needs_object_GO
16356 # Create an old-style archive from a shared archive.
16357 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16359 # Create a temporary old-style archive to link instead of a shared archive.
16360 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16362 # Commands used to build a shared archive.
16363 archive_cmds=$lt_archive_cmds_GO
16364 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16366 # Commands used to build a loadable module if different from building
16367 # a shared archive.
16368 module_cmds=$lt_module_cmds_GO
16369 module_expsym_cmds=$lt_module_expsym_cmds_GO
16371 # Whether we are building with GNU ld or not.
16372 with_gnu_ld=$lt_with_gnu_ld_GO
16374 # Flag that allows shared libraries with undefined symbols to be built.
16375 allow_undefined_flag=$lt_allow_undefined_flag_GO
16377 # Flag that enforces no undefined symbols.
16378 no_undefined_flag=$lt_no_undefined_flag_GO
16380 # Flag to hardcode \$libdir into a binary during linking.
16381 # This must work even if \$libdir does not exist
16382 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16384 # If ld is used when linking, flag to hardcode \$libdir into a binary
16385 # during linking. This must work even if \$libdir does not exist.
16386 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16388 # Whether we need a single "-rpath" flag with a separated argument.
16389 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16391 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16392 # DIR into the resulting binary.
16393 hardcode_direct=$hardcode_direct_GO
16395 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16396 # DIR into the resulting binary and the resulting library dependency is
16397 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16398 # library is relocated.
16399 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16401 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16402 # into the resulting binary.
16403 hardcode_minus_L=$hardcode_minus_L_GO
16405 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16406 # into the resulting binary.
16407 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16409 # Set to "yes" if building a shared library automatically hardcodes DIR
16410 # into the library and all subsequent libraries and executables linked
16411 # against it.
16412 hardcode_automatic=$hardcode_automatic_GO
16414 # Set to yes if linker adds runtime paths of dependent libraries
16415 # to runtime path list.
16416 inherit_rpath=$inherit_rpath_GO
16418 # Whether libtool must link a program against all its dependency libraries.
16419 link_all_deplibs=$link_all_deplibs_GO
16421 # Fix the shell variable \$srcfile for the compiler.
16422 fix_srcfile_path=$lt_fix_srcfile_path_GO
16424 # Set to "yes" if exported symbols are required.
16425 always_export_symbols=$always_export_symbols_GO
16427 # The commands to list exported symbols.
16428 export_symbols_cmds=$lt_export_symbols_cmds_GO
16430 # Symbols that should not be listed in the preloaded symbols.
16431 exclude_expsyms=$lt_exclude_expsyms_GO
16433 # Symbols that must always be exported.
16434 include_expsyms=$lt_include_expsyms_GO
16436 # Commands necessary for linking programs (against libraries) with templates.
16437 prelink_cmds=$lt_prelink_cmds_GO
16439 # Specify filename containing input files.
16440 file_list_spec=$lt_file_list_spec_GO
16442 # How to hardcode a shared library path into an executable.
16443 hardcode_action=$hardcode_action_GO
16445 # ### END LIBTOOL TAG CONFIG: GO
16446 _LT_EOF
16449 "default":C) if test -n "$CONFIG_FILES"; then
16450 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16451 # that multilib installs will end up installed in the correct place.
16452 # The testsuite needs it for multilib-aware ABI baseline files.
16453 # To work around this not being passed down from config-ml.in ->
16454 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16455 # append it here. Only modify Makefiles that have just been created.
16457 # Also, get rid of this simulated-VPATH thing that automake does.
16458 cat > vpsed << \_EOF
16459 s!`test -f '$<' || echo '$(srcdir)/'`!!
16460 _EOF
16461 for i in $SUBDIRS; do
16462 case $CONFIG_FILES in
16463 *${i}/Makefile*)
16464 #echo "Adding MULTISUBDIR to $i/Makefile"
16465 sed -f vpsed $i/Makefile > tmp
16466 grep '^MULTISUBDIR =' Makefile >> tmp
16467 mv tmp $i/Makefile
16469 esac
16470 done
16471 rm vpsed
16475 esac
16476 done # for ac_tag
16479 as_fn_exit 0
16480 _ACEOF
16481 ac_clean_files=$ac_clean_files_save
16483 test $ac_write_fail = 0 ||
16484 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16487 # configure is writing to config.log, and then calls config.status.
16488 # config.status does its own redirection, appending to config.log.
16489 # Unfortunately, on DOS this fails, as config.log is still kept open
16490 # by configure, so config.status won't be able to write to it; its
16491 # output is simply discarded. So we exec the FD to /dev/null,
16492 # effectively closing config.log, so it can be properly (re)opened and
16493 # appended to by config.status. When coming back to configure, we
16494 # need to make the FD available again.
16495 if test "$no_create" != yes; then
16496 ac_cs_success=:
16497 ac_config_status_args=
16498 test "$silent" = yes &&
16499 ac_config_status_args="$ac_config_status_args --quiet"
16500 exec 5>/dev/null
16501 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16502 exec 5>>config.log
16503 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16504 # would make configure fail if this is the last instruction.
16505 $ac_cs_success || as_fn_exit $?
16507 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16509 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}