]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
* MAINTAINERS: Add myself as libgo maintainer.
[thirdparty/gcc.git] / libgo / configure
CommitLineData
7a938933
ILT
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.
4#
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.
8#
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## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if 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=';'
78 }
79fi
80
81
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 1 + 1 )) = 2 || exit 1
173
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
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
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
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
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
215fi; }
216IFS=$as_save_IFS
217
218
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+"$@"}
228fi
229
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."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
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/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
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"
326
327
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.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
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.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
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.
370as_fn_error ()
371{
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
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_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/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
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 '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
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; }
449
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
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `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;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (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'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
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
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='package-unused'
558PACKAGE_TARNAME='libgo'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="Makefile.am"
565# Factoring default headers for most tests.
566ac_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"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605STRINGOPS_FLAG
606HAVE_SYS_MMAN_H_FALSE
607HAVE_SYS_MMAN_H_TRUE
608USING_SPLIT_STACK_FALSE
609USING_SPLIT_STACK_TRUE
610SPLIT_STACK
611LIBGO_IS_ARM_FALSE
612LIBGO_IS_ARM_TRUE
613LIBGO_IS_X86_64_FALSE
614LIBGO_IS_X86_64_TRUE
615LIBGO_IS_386_FALSE
616LIBGO_IS_386_TRUE
617LIBGO_IS_RTEMS_FALSE
618LIBGO_IS_RTEMS_TRUE
619LIBGO_IS_LINUX_FALSE
620LIBGO_IS_LINUX_TRUE
621LIBGO_IS_FREEBSD_FALSE
622LIBGO_IS_FREEBSD_TRUE
623LIBGO_IS_DARWIN_FALSE
624LIBGO_IS_DARWIN_TRUE
625LIBFFIINCS
626LIBFFI
627glibgo_toolexeclibdir
628glibgo_toolexecdir
629glibgo_prefixdir
630WERROR
631WARN_FLAGS
632enable_static
633enable_shared
634CPP
635OTOOL64
636OTOOL
637LIPO
638NMEDIT
639DSYMUTIL
640AR
641OBJDUMP
642LN_S
643NM
644ac_ct_DUMPBIN
645DUMPBIN
646LIBTOOL
647OBJCOPY
648RANLIB
649LD
650FGREP
651EGREP
652GREP
653SED
654MAINT
655MAINTAINER_MODE_FALSE
656MAINTAINER_MODE_TRUE
657GOCFLAGS
658GOC
659am__fastdepCC_FALSE
660am__fastdepCC_TRUE
661CCDEPMODE
662AMDEPBACKSLASH
663AMDEP_FALSE
664AMDEP_TRUE
665am__quote
666am__include
667DEPDIR
668OBJEXT
669EXEEXT
670ac_ct_CC
671CPPFLAGS
672LDFLAGS
673CFLAGS
674CC
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
680AWK
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684STRIP
685install_sh
686MAKEINFO
687AUTOHEADER
688AUTOMAKE
689AUTOCONF
690ACLOCAL
691VERSION
692PACKAGE
693CYGPATH_W
694am__isrc
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698target_os
699target_vendor
700target_cpu
701target
702host_os
703host_vendor
704host_cpu
705host
706build_os
707build_vendor
708build_cpu
709build
710multi_basedir
711libtool_VERSION
712target_alias
713host_alias
714build_alias
715LIBS
716ECHO_T
717ECHO_N
718ECHO_C
719DEFS
720mandir
721localedir
722libdir
723psdir
724pdfdir
725dvidir
726htmldir
727infodir
728docdir
729oldincludedir
730includedir
731localstatedir
732sharedstatedir
733sysconfdir
734datadir
735datarootdir
736libexecdir
737sbindir
738bindir
739program_transform_name
740prefix
741exec_prefix
742PACKAGE_URL
743PACKAGE_BUGREPORT
744PACKAGE_STRING
745PACKAGE_VERSION
746PACKAGE_TARNAME
747PACKAGE_NAME
748PATH_SEPARATOR
749SHELL'
750ac_subst_files=''
751ac_user_opts='
752enable_option_checking
753enable_multilib
754enable_dependency_tracking
755enable_maintainer_mode
756with_gnu_ld
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761enable_libtool_lock
762enable_version_specific_runtime_libs
763with_libffi
764with_system_libunwind
765'
766 ac_precious_vars='build_alias
767host_alias
768target_alias
769CPP
770CPPFLAGS'
771
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
776ac_unrecognized_opts=
777ac_unrecognized_sep=
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
800# (The list follows the same order as the GNU Coding Standards.)
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
820
821ac_prev=
822ac_dashdash=
823for ac_option
824do
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
830 fi
831
832 case $ac_option in
833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *) ac_optarg=yes ;;
835 esac
836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
842
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
847
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
862
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
867
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884"enable_$ac_useropt"
885"*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
900
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910"enable_$ac_useropt"
911"*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114"with_$ac_useropt"
1115"*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1120
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130"with_$ac_useropt"
1131"*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) as_fn_error "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information."
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 ;;
1176
1177 esac
1178done
1179
1180if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1198do
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1229 fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
1238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error "working directory cannot be determined"
1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error "pwd does not report name of working directory"
1244
1245
1246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255$as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)[^/].*/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\).*/{
1269 s//\1/
1270 q
1271 }
1272 s/.*/./; q'`
1273 srcdir=$ac_confdir
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 srcdir=..
1276 fi
1277else
1278 ac_srcdir_defaulted=no
1279fi
1280if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1283fi
1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285ac_abs_confdir=`(
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1287 pwd)`
1288# When building in place, set srcdir=.
1289if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 srcdir=.
1291fi
1292# Remove unnecessary trailing slashes from srcdir.
1293# Double slashes in file names in object file debugging info
1294# mess up M-x gdb in Emacs.
1295case $srcdir in
1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297esac
1298for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303done
1304
1305#
1306# Report the --help message.
1307#
1308if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1311 cat <<_ACEOF
1312\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1313
1314Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317VAR=VALUE. See below for descriptions of some of the useful variables.
1318
1319Defaults for the options are specified in brackets.
1320
1321Configuration:
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331
1332Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 [PREFIX]
1337
1338By default, \`make install' will install all the files in
1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341for instance \`--prefix=\$HOME'.
1342
1343For better control, use the options below.
1344
1345Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1365_ACEOF
1366
1367 cat <<\_ACEOF
1368
1369Program names:
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1373
1374System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of package-unused version-unused:";;
1384 esac
1385 cat <<\_ACEOF
1386
1387Optional Features:
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-multilib build many library versions (default)
1392 --disable-dependency-tracking speeds up one-time build
1393 --enable-dependency-tracking do not reject slow dependency extractors
1394 --enable-maintainer-mode enable make rules and dependencies not useful
1395 (and sometimes confusing) to the casual installer
1396 --enable-shared[=PKGS] build shared libraries [default=yes]
1397 --enable-static[=PKGS] build static libraries [default=yes]
1398 --enable-fast-install[=PKGS]
1399 optimize for fast installation [default=yes]
1400 --disable-libtool-lock avoid locking (might break parallel builds)
1401 --enable-version-specific-runtime-libs
1402 Specify that runtime libraries should be installed
1403 in a compiler-specific directory
1404
1405Optional Packages:
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1409 --with-pic try to use only PIC/non-PIC objects [default=use
1410 both]
1411 --without-libffi don't use libffi
1412 --with-system-libunwind use installed libunwind
1413
1414Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
1419 LIBS libraries to pass to the linker, e.g. -l<library>
1420 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1421 you have headers in a nonstandard directory <include dir>
1422 GOC Go compiler command
1423 GOCFLAGS Go compiler flags
1424 CPP C preprocessor
1425
1426Use these variables to override the choices made by `configure' or to help
1427it to find libraries and programs with nonstandard names/locations.
1428
1429Report bugs to the package provider.
1430_ACEOF
1431ac_status=$?
1432fi
1433
1434if test "$ac_init_help" = "recursive"; then
1435 # If there are subdirs, report their specific --help.
1436 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437 test -d "$ac_dir" ||
1438 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439 continue
1440 ac_builddir=.
1441
1442case "$ac_dir" in
1443.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444*)
1445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446 # A ".." for each directory in $ac_dir_suffix.
1447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448 case $ac_top_builddir_sub in
1449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451 esac ;;
1452esac
1453ac_abs_top_builddir=$ac_pwd
1454ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455# for backward compatibility:
1456ac_top_builddir=$ac_top_build_prefix
1457
1458case $srcdir in
1459 .) # We are building in place.
1460 ac_srcdir=.
1461 ac_top_srcdir=$ac_top_builddir_sub
1462 ac_abs_top_srcdir=$ac_pwd ;;
1463 [\\/]* | ?:[\\/]* ) # Absolute name.
1464 ac_srcdir=$srcdir$ac_dir_suffix;
1465 ac_top_srcdir=$srcdir
1466 ac_abs_top_srcdir=$srcdir ;;
1467 *) # Relative name.
1468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469 ac_top_srcdir=$ac_top_build_prefix$srcdir
1470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471esac
1472ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473
1474 cd "$ac_dir" || { ac_status=$?; continue; }
1475 # Check for guested configure.
1476 if test -f "$ac_srcdir/configure.gnu"; then
1477 echo &&
1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479 elif test -f "$ac_srcdir/configure"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure" --help=recursive
1482 else
1483 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484 fi || ac_status=$?
1485 cd "$ac_pwd" || { ac_status=$?; break; }
1486 done
1487fi
1488
1489test -n "$ac_init_help" && exit $ac_status
1490if $ac_init_version; then
1491 cat <<\_ACEOF
1492package-unused configure version-unused
1493generated by GNU Autoconf 2.64
1494
1495Copyright (C) 2009 Free Software Foundation, Inc.
1496This configure script is free software; the Free Software Foundation
1497gives unlimited permission to copy, distribute and modify it.
1498_ACEOF
1499 exit
1500fi
1501
1502## ------------------------ ##
1503## Autoconf initialization. ##
1504## ------------------------ ##
1505
1506# ac_fn_c_try_compile LINENO
1507# --------------------------
1508# Try to compile conftest.$ac_ext, and return whether this succeeded.
1509ac_fn_c_try_compile ()
1510{
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext
1513 if { { ac_try="$ac_compile"
1514case "(($ac_try" in
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1517esac
1518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519$as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_compile") 2>conftest.err
1521 ac_status=$?
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1526 fi
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest.$ac_objext; then :
1532 ac_retval=0
1533else
1534 $as_echo "$as_me: failed program was:" >&5
1535sed 's/^/| /' conftest.$ac_ext >&5
1536
1537 ac_retval=1
1538fi
1539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1540 return $ac_retval
1541
1542} # ac_fn_c_try_compile
1543
1544# ac_fn_c_try_link LINENO
1545# -----------------------
1546# Try to link conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_link ()
1548{
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext conftest$ac_exeext
1551 if { { ac_try="$ac_link"
1552case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_link") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest$ac_exeext && {
1570 test "$cross_compiling" = yes ||
1571 $as_test_x conftest$ac_exeext
1572 }; then :
1573 ac_retval=0
1574else
1575 $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
1577
1578 ac_retval=1
1579fi
1580 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1581 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1582 # interfere with the next link command; also delete a directory that is
1583 # left behind by Apple's compiler. We do this before executing the actions.
1584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 return $ac_retval
1587
1588} # ac_fn_c_try_link
1589
1590# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1591# -------------------------------------------------------
1592# Tests whether HEADER exists and can be compiled using the include files in
1593# INCLUDES, setting the cache variable VAR accordingly.
1594ac_fn_c_check_header_compile ()
1595{
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598$as_echo_n "checking for $2... " >&6; }
1599if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1600 $as_echo_n "(cached) " >&6
1601else
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603/* end confdefs.h. */
1604$4
1605#include <$2>
1606_ACEOF
1607if ac_fn_c_try_compile "$LINENO"; then :
1608 eval "$3=yes"
1609else
1610 eval "$3=no"
1611fi
1612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1613fi
1614eval ac_res=\$$3
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616$as_echo "$ac_res" >&6; }
1617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618
1619} # ac_fn_c_check_header_compile
1620
1621# ac_fn_c_try_cpp LINENO
1622# ----------------------
1623# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_c_try_cpp ()
1625{
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1628case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } >/dev/null && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 }; then :
1646 ac_retval=0
1647else
1648 $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652fi
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 return $ac_retval
1655
1656} # ac_fn_c_try_cpp
1657
1658# ac_fn_c_try_run LINENO
1659# ----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661# that executables *can* be run.
1662ac_fn_c_try_run ()
1663{
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>&5
1673 ac_status=$?
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676 { { case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_try") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; }; }; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: program exited with status $ac_status" >&5
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=$ac_status
1693fi
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 return $ac_retval
1697
1698} # ac_fn_c_try_run
1699
1700# ac_fn_c_check_func LINENO FUNC VAR
1701# ----------------------------------
1702# Tests whether FUNC exists, setting the cache variable VAR accordingly
1703ac_fn_c_check_func ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707$as_echo_n "checking for $2... " >&6; }
1708if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709 $as_echo_n "(cached) " >&6
1710else
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h. */
1713/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1715#define $2 innocuous_$2
1716
1717/* System header to define __stub macros and hopefully few prototypes,
1718 which can conflict with char $2 (); below.
1719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1720 <limits.h> exists even on freestanding compilers. */
1721
1722#ifdef __STDC__
1723# include <limits.h>
1724#else
1725# include <assert.h>
1726#endif
1727
1728#undef $2
1729
1730/* Override any GCC internal prototype to avoid an error.
1731 Use char because int might match the return type of a GCC
1732 builtin and then its argument prototype would still apply. */
1733#ifdef __cplusplus
1734extern "C"
1735#endif
1736char $2 ();
1737/* The GNU C library defines this for functions which it implements
1738 to always fail with ENOSYS. Some functions are actually named
1739 something starting with __ and the normal name is an alias. */
1740#if defined __stub_$2 || defined __stub___$2
1741choke me
1742#endif
1743
1744int
1745main ()
1746{
1747return $2 ();
1748 ;
1749 return 0;
1750}
1751_ACEOF
1752if ac_fn_c_try_link "$LINENO"; then :
1753 eval "$3=yes"
1754else
1755 eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext \
1758 conftest$ac_exeext conftest.$ac_ext
1759fi
1760eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764
1765} # ac_fn_c_check_func
1766
1767# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1768# -------------------------------------------------------
1769# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1770# the include files in INCLUDES and setting the cache variable VAR
1771# accordingly.
1772ac_fn_c_check_header_mongrel ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777$as_echo_n "checking for $2... " >&6; }
1778if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 $as_echo_n "(cached) " >&6
1780fi
1781eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784else
1785 # Is the header compilable?
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1787$as_echo_n "checking $2 usability... " >&6; }
1788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h. */
1790$4
1791#include <$2>
1792_ACEOF
1793if ac_fn_c_try_compile "$LINENO"; then :
1794 ac_header_compiler=yes
1795else
1796 ac_header_compiler=no
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1800$as_echo "$ac_header_compiler" >&6; }
1801
1802# Is the header present?
1803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1804$as_echo_n "checking $2 presence... " >&6; }
1805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h. */
1807#include <$2>
1808_ACEOF
1809if ac_fn_c_try_cpp "$LINENO"; then :
1810 ac_header_preproc=yes
1811else
1812 ac_header_preproc=no
1813fi
1814rm -f conftest.err conftest.$ac_ext
1815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1816$as_echo "$ac_header_preproc" >&6; }
1817
1818# So? What about this header?
1819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1820 yes:no: )
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1822$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 ;;
1826 no:yes:* )
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1828$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1830$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1832$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1834$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838esac
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1843else
1844 eval "$3=\$ac_header_compiler"
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849fi
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851
1852} # ac_fn_c_check_header_mongrel
1853
1854# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1855# -------------------------------------------
1856# Tests whether TYPE exists after having included INCLUDES, setting cache
1857# variable VAR accordingly.
1858ac_fn_c_check_type ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 $as_echo_n "(cached) " >&6
1865else
1866 eval "$3=no"
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h. */
1869$4
1870int
1871main ()
1872{
1873if (sizeof ($2))
1874 return 0;
1875 ;
1876 return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882$4
1883int
1884main ()
1885{
1886if (sizeof (($2)))
1887 return 0;
1888 ;
1889 return 0;
1890}
1891_ACEOF
1892if ac_fn_c_try_compile "$LINENO"; then :
1893
1894else
1895 eval "$3=yes"
1896fi
1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898fi
1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900fi
1901eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
1906} # ac_fn_c_check_type
1907cat >config.log <<_ACEOF
1908This file contains any messages produced by compilers while
1909running configure, to aid debugging if configure makes a mistake.
1910
1911It was created by package-unused $as_me version-unused, which was
1912generated by GNU Autoconf 2.64. Invocation command line was
1913
1914 $ $0 $@
1915
1916_ACEOF
1917exec 5>>config.log
1918{
1919cat <<_ASUNAME
1920## --------- ##
1921## Platform. ##
1922## --------- ##
1923
1924hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929
1930/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1932
1933/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1934/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1935/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1937/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1938/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1939/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1940
1941_ASUNAME
1942
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 $as_echo "PATH: $as_dir"
1949 done
1950IFS=$as_save_IFS
1951
1952} >&5
1953
1954cat >&5 <<_ACEOF
1955
1956
1957## ----------- ##
1958## Core tests. ##
1959## ----------- ##
1960
1961_ACEOF
1962
1963
1964# Keep a trace of the command line.
1965# Strip out --no-create and --no-recursion so they do not pile up.
1966# Strip out --silent because we don't want to record it for future runs.
1967# Also quote any args containing shell meta-characters.
1968# Make two passes to allow for proper duplicate-argument suppression.
1969ac_configure_args=
1970ac_configure_args0=
1971ac_configure_args1=
1972ac_must_keep_next=false
1973for ac_pass in 1 2
1974do
1975 for ac_arg
1976 do
1977 case $ac_arg in
1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980 | -silent | --silent | --silen | --sile | --sil)
1981 continue ;;
1982 *\'*)
1983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 esac
1985 case $ac_pass in
1986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987 2)
1988 as_fn_append ac_configure_args1 " '$ac_arg'"
1989 if test $ac_must_keep_next = true; then
1990 ac_must_keep_next=false # Got value, back to normal.
1991 else
1992 case $ac_arg in
1993 *=* | --config-cache | -C | -disable-* | --disable-* \
1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996 | -with-* | --with-* | -without-* | --without-* | --x)
1997 case "$ac_configure_args0 " in
1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999 esac
2000 ;;
2001 -* ) ac_must_keep_next=true ;;
2002 esac
2003 fi
2004 as_fn_append ac_configure_args " '$ac_arg'"
2005 ;;
2006 esac
2007 done
2008done
2009{ ac_configure_args0=; unset ac_configure_args0;}
2010{ ac_configure_args1=; unset ac_configure_args1;}
2011
2012# When interrupted or exit'd, cleanup temporary files, and complete
2013# config.log. We remove comments because anyway the quotes in there
2014# would cause problems or look ugly.
2015# WARNING: Use '\'' to represent an apostrophe within the trap.
2016# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017trap 'exit_status=$?
2018 # Save into config.log some information that might help in debugging.
2019 {
2020 echo
2021
2022 cat <<\_ASBOX
2023## ---------------- ##
2024## Cache variables. ##
2025## ---------------- ##
2026_ASBOX
2027 echo
2028 # The following way of writing the cache mishandles newlines in values,
2029(
2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in #(
2033 *${as_nl}*)
2034 case $ac_var in #(
2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037 esac
2038 case $ac_var in #(
2039 _ | IFS | as_nl) ;; #(
2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041 *) { eval $ac_var=; unset $ac_var;} ;;
2042 esac ;;
2043 esac
2044 done
2045 (set) 2>&1 |
2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047 *${as_nl}ac_space=\ *)
2048 sed -n \
2049 "s/'\''/'\''\\\\'\'''\''/g;
2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 ;; #(
2052 *)
2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054 ;;
2055 esac |
2056 sort
2057)
2058 echo
2059
2060 cat <<\_ASBOX
2061## ----------------- ##
2062## Output variables. ##
2063## ----------------- ##
2064_ASBOX
2065 echo
2066 for ac_var in $ac_subst_vars
2067 do
2068 eval ac_val=\$$ac_var
2069 case $ac_val in
2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071 esac
2072 $as_echo "$ac_var='\''$ac_val'\''"
2073 done | sort
2074 echo
2075
2076 if test -n "$ac_subst_files"; then
2077 cat <<\_ASBOX
2078## ------------------- ##
2079## File substitutions. ##
2080## ------------------- ##
2081_ASBOX
2082 echo
2083 for ac_var in $ac_subst_files
2084 do
2085 eval ac_val=\$$ac_var
2086 case $ac_val in
2087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088 esac
2089 $as_echo "$ac_var='\''$ac_val'\''"
2090 done | sort
2091 echo
2092 fi
2093
2094 if test -s confdefs.h; then
2095 cat <<\_ASBOX
2096## ----------- ##
2097## confdefs.h. ##
2098## ----------- ##
2099_ASBOX
2100 echo
2101 cat confdefs.h
2102 echo
2103 fi
2104 test "$ac_signal" != 0 &&
2105 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status"
2107 } >&5
2108 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2110 exit $exit_status
2111' 0
2112for ac_signal in 1 2 13 15; do
2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2114done
2115ac_signal=0
2116
2117# confdefs.h avoids OS command line length limits that DEFS can exceed.
2118rm -f -r conftest* confdefs.h
2119
2120$as_echo "/* confdefs.h */" > confdefs.h
2121
2122# Predefined preprocessor variables.
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_NAME "$PACKAGE_NAME"
2126_ACEOF
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130_ACEOF
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_VERSION "$PACKAGE_VERSION"
2134_ACEOF
2135
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_STRING "$PACKAGE_STRING"
2138_ACEOF
2139
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142_ACEOF
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_URL "$PACKAGE_URL"
2146_ACEOF
2147
2148
2149# Let the site file select an alternate cache file if it wants to.
2150# Prefer an explicitly selected file to automatically selected ones.
2151ac_site_file1=NONE
2152ac_site_file2=NONE
2153if test -n "$CONFIG_SITE"; then
2154 ac_site_file1=$CONFIG_SITE
2155elif test "x$prefix" != xNONE; then
2156 ac_site_file1=$prefix/share/config.site
2157 ac_site_file2=$prefix/etc/config.site
2158else
2159 ac_site_file1=$ac_default_prefix/share/config.site
2160 ac_site_file2=$ac_default_prefix/etc/config.site
2161fi
2162for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2163do
2164 test "x$ac_site_file" = xNONE && continue
2165 if test -r "$ac_site_file"; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2167$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2168 sed 's/^/| /' "$ac_site_file" >&5
2169 . "$ac_site_file"
2170 fi
2171done
2172
2173if test -r "$cache_file"; then
2174 # Some versions of bash will fail to source /dev/null (special
2175 # files actually), so we avoid doing that.
2176 if test -f "$cache_file"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178$as_echo "$as_me: loading cache $cache_file" >&6;}
2179 case $cache_file in
2180 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181 *) . "./$cache_file";;
2182 esac
2183 fi
2184else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186$as_echo "$as_me: creating cache $cache_file" >&6;}
2187 >$cache_file
2188fi
2189
2190# Check that the precious variables saved in the cache have kept the same
2191# value.
2192ac_cache_corrupted=false
2193for ac_var in $ac_precious_vars; do
2194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2195 eval ac_new_set=\$ac_env_${ac_var}_set
2196 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2197 eval ac_new_val=\$ac_env_${ac_var}_value
2198 case $ac_old_set,$ac_new_set in
2199 set,)
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2201$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2202 ac_cache_corrupted=: ;;
2203 ,set)
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2205$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2206 ac_cache_corrupted=: ;;
2207 ,);;
2208 *)
2209 if test "x$ac_old_val" != "x$ac_new_val"; then
2210 # differences in whitespace do not lead to failure.
2211 ac_old_val_w=`echo x $ac_old_val`
2212 ac_new_val_w=`echo x $ac_new_val`
2213 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2215$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2216 ac_cache_corrupted=:
2217 else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2219$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2220 eval $ac_var=\$ac_old_val
2221 fi
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2223$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2225$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2226 fi;;
2227 esac
2228 # Pass precious variables to config.status.
2229 if test "$ac_new_set" = set; then
2230 case $ac_new_val in
2231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 *) ac_arg=$ac_var=$ac_new_val ;;
2233 esac
2234 case " $ac_configure_args " in
2235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2236 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2237 esac
2238 fi
2239done
2240if $ac_cache_corrupted; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2244$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2245 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2246fi
2247## -------------------- ##
2248## Main body of script. ##
2249## -------------------- ##
2250
2251ac_ext=c
2252ac_cpp='$CPP $CPPFLAGS'
2253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
2257
2258
2259
2260
2261
2262ac_config_headers="$ac_config_headers config.h"
2263
2264
2265libtool_VERSION=1:0:0
2266
2267
2268# Default to --enable-multilib
2269# Check whether --enable-multilib was given.
2270if test "${enable_multilib+set}" = set; then :
2271 enableval=$enable_multilib; case "$enableval" in
2272 yes) multilib=yes ;;
2273 no) multilib=no ;;
2274 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2275 esac
2276else
2277 multilib=yes
2278fi
2279
2280
2281# We may get other options which we leave undocumented:
2282# --with-target-subdir, --with-multisrctop, --with-multisubdir
2283# See config-ml.in if you want the gory details.
2284
2285if test "$srcdir" = "."; then
2286 if test "$with_target_subdir" != "."; then
2287 multi_basedir="$srcdir/$with_multisrctop../.."
2288 else
2289 multi_basedir="$srcdir/$with_multisrctop.."
2290 fi
2291else
2292 multi_basedir="$srcdir/.."
2293fi
2294
2295
2296# Even if the default multilib is not a cross compilation,
2297# it may be that some of the other multilibs are.
2298if test $cross_compiling = no && test $multilib = yes \
2299 && test "x${with_multisubdir}" != x ; then
2300 cross_compiling=maybe
2301fi
2302
2303ac_config_commands="$ac_config_commands default-1"
2304
2305
2306ac_aux_dir=
2307for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2308 for ac_t in install-sh install.sh shtool; do
2309 if test -f "$ac_dir/$ac_t"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/$ac_t -c"
2312 break 2
2313 fi
2314 done
2315done
2316if test -z "$ac_aux_dir"; then
2317 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2318fi
2319
2320# These three variables are undocumented and unsupported,
2321# and are intended to be withdrawn in a future Autoconf release.
2322# They can cause serious problems if a builder's source tree is in a directory
2323# whose full name contains unusual characters.
2324ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2325ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2326ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2327
2328
2329# Make sure we can run config.sub.
2330$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2331 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2332
2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2334$as_echo_n "checking build system type... " >&6; }
2335if test "${ac_cv_build+set}" = set; then :
2336 $as_echo_n "(cached) " >&6
2337else
2338 ac_build_alias=$build_alias
2339test "x$ac_build_alias" = x &&
2340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2341test "x$ac_build_alias" = x &&
2342 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2343ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2344 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2345
2346fi
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2348$as_echo "$ac_cv_build" >&6; }
2349case $ac_cv_build in
2350*-*-*) ;;
2351*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2352esac
2353build=$ac_cv_build
2354ac_save_IFS=$IFS; IFS='-'
2355set x $ac_cv_build
2356shift
2357build_cpu=$1
2358build_vendor=$2
2359shift; shift
2360# Remember, the first character of IFS is used to create $*,
2361# except with old shells:
2362build_os=$*
2363IFS=$ac_save_IFS
2364case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2365
2366
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2368$as_echo_n "checking host system type... " >&6; }
2369if test "${ac_cv_host+set}" = set; then :
2370 $as_echo_n "(cached) " >&6
2371else
2372 if test "x$host_alias" = x; then
2373 ac_cv_host=$ac_cv_build
2374else
2375 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2376 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2377fi
2378
2379fi
2380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2381$as_echo "$ac_cv_host" >&6; }
2382case $ac_cv_host in
2383*-*-*) ;;
2384*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2385esac
2386host=$ac_cv_host
2387ac_save_IFS=$IFS; IFS='-'
2388set x $ac_cv_host
2389shift
2390host_cpu=$1
2391host_vendor=$2
2392shift; shift
2393# Remember, the first character of IFS is used to create $*,
2394# except with old shells:
2395host_os=$*
2396IFS=$ac_save_IFS
2397case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2398
2399
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2401$as_echo_n "checking target system type... " >&6; }
2402if test "${ac_cv_target+set}" = set; then :
2403 $as_echo_n "(cached) " >&6
2404else
2405 if test "x$target_alias" = x; then
2406 ac_cv_target=$ac_cv_host
2407else
2408 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2409 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2410fi
2411
2412fi
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2414$as_echo "$ac_cv_target" >&6; }
2415case $ac_cv_target in
2416*-*-*) ;;
2417*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2418esac
2419target=$ac_cv_target
2420ac_save_IFS=$IFS; IFS='-'
2421set x $ac_cv_target
2422shift
2423target_cpu=$1
2424target_vendor=$2
2425shift; shift
2426# Remember, the first character of IFS is used to create $*,
2427# except with old shells:
2428target_os=$*
2429IFS=$ac_save_IFS
2430case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2431
2432
2433# The aliases save the names the user supplied, while $host etc.
2434# will get canonicalized.
2435test -n "$target_alias" &&
2436 test "$program_prefix$program_suffix$program_transform_name" = \
2437 NONENONEs,x,x, &&
2438 program_prefix=${target_alias}-
2439
2440target_alias=${target_alias-$host_alias}
2441
2442am__api_version='1.11'
2443
2444# Find a good install program. We prefer a C program (faster),
2445# so one script is as good as another. But avoid the broken or
2446# incompatible versions:
2447# SysV /etc/install, /usr/sbin/install
2448# SunOS /usr/etc/install
2449# IRIX /sbin/install
2450# AIX /bin/install
2451# AmigaOS /C/install, which installs bootblocks on floppy discs
2452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455# OS/2's system install, which has a completely different semantic
2456# ./install, which can be erroneously created by make from ./install.sh.
2457# Reject install programs that cannot install multiple files.
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459$as_echo_n "checking for a BSD-compatible install... " >&6; }
2460if test -z "$INSTALL"; then
2461if test "${ac_cv_path_install+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 # Account for people who put trailing slashes in PATH elements.
2470case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474 /usr/ucb/* ) ;;
2475 *)
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2478 # by default.
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2482 if test $ac_prog = install &&
2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # AIX install. It has an incompatible calling convention.
2485 :
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2489 :
2490 else
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2494 mkdir conftest.dir
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2499 then
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2502 fi
2503 fi
2504 fi
2505 done
2506 done
2507 ;;
2508esac
2509
2510 done
2511IFS=$as_save_IFS
2512
2513rm -rf conftest.one conftest.two conftest.dir
2514
2515fi
2516 if test "${ac_cv_path_install+set}" = set; then
2517 INSTALL=$ac_cv_path_install
2518 else
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
2521 # break other packages using the cache if that directory is
2522 # removed, or if the value is a relative name.
2523 INSTALL=$ac_install_sh
2524 fi
2525fi
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527$as_echo "$INSTALL" >&6; }
2528
2529# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530# It thinks the first close brace ends the variable substitution.
2531test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
2533test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2534
2535test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2538$as_echo_n "checking whether build environment is sane... " >&6; }
2539# Just in case
2540sleep 1
2541echo timestamp > conftest.file
2542# Reject unsafe characters in $srcdir or the absolute working directory
2543# name. Accept space and tab only in the latter.
2544am_lf='
2545'
2546case `pwd` in
2547 *[\\\"\#\$\&\'\`$am_lf]*)
2548 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2549esac
2550case $srcdir in
2551 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2552 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2553esac
2554
2555# Do `set' in a subshell so we don't clobber the current shell's
2556# arguments. Must try -L first in case configure is actually a
2557# symlink; some systems play weird games with the mod time of symlinks
2558# (eg FreeBSD returns the mod time of the symlink's containing
2559# directory).
2560if (
2561 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2562 if test "$*" = "X"; then
2563 # -L didn't work.
2564 set X `ls -t "$srcdir/configure" conftest.file`
2565 fi
2566 rm -f conftest.file
2567 if test "$*" != "X $srcdir/configure conftest.file" \
2568 && test "$*" != "X conftest.file $srcdir/configure"; then
2569
2570 # If neither matched, then we have a broken ls. This can happen
2571 # if, for instance, CONFIG_SHELL is bash and it inherits a
2572 # broken ls alias from the environment. This has actually
2573 # happened. Such a system could not be considered "sane".
2574 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2575alias in your environment" "$LINENO" 5
2576 fi
2577
2578 test "$2" = conftest.file
2579 )
2580then
2581 # Ok.
2582 :
2583else
2584 as_fn_error "newly created file is older than distributed files!
2585Check your system clock" "$LINENO" 5
2586fi
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588$as_echo "yes" >&6; }
2589test "$program_prefix" != NONE &&
2590 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2591# Use a double $ so make ignores it.
2592test "$program_suffix" != NONE &&
2593 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2594# Double any \ or $.
2595# By default was `s,x,x', remove it if useless.
2596ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2597program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2598
2599# expand $ac_aux_dir to an absolute path
2600am_aux_dir=`cd $ac_aux_dir && pwd`
2601
2602if test x"${MISSING+set}" != xset; then
2603 case $am_aux_dir in
2604 *\ * | *\ *)
2605 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2606 *)
2607 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608 esac
2609fi
2610# Use eval to expand $SHELL
2611if eval "$MISSING --run true"; then
2612 am_missing_run="$MISSING --run "
2613else
2614 am_missing_run=
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2616$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2617fi
2618
2619if test x"${install_sh}" != xset; then
2620 case $am_aux_dir in
2621 *\ * | *\ *)
2622 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2623 *)
2624 install_sh="\${SHELL} $am_aux_dir/install-sh"
2625 esac
2626fi
2627
2628# Installed binaries are usually stripped using `strip' when the user
2629# run `make install-strip'. However `strip' might not be the right
2630# tool to use in cross-compilation environments, therefore Automake
2631# will honor the `STRIP' environment variable to overrule this program.
2632if test "$cross_compiling" != no; then
2633 if test -n "$ac_tool_prefix"; then
2634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2635set dummy ${ac_tool_prefix}strip; ac_word=$2
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637$as_echo_n "checking for $ac_word... " >&6; }
2638if test "${ac_cv_prog_STRIP+set}" = set; then :
2639 $as_echo_n "(cached) " >&6
2640else
2641 if test -n "$STRIP"; then
2642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655done
2656 done
2657IFS=$as_save_IFS
2658
2659fi
2660fi
2661STRIP=$ac_cv_prog_STRIP
2662if test -n "$STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2664$as_echo "$STRIP" >&6; }
2665else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
2668fi
2669
2670
2671fi
2672if test -z "$ac_cv_prog_STRIP"; then
2673 ac_ct_STRIP=$STRIP
2674 # Extract the first word of "strip", so it can be a program name with args.
2675set dummy strip; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2680else
2681 if test -n "$ac_ct_STRIP"; then
2682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_ac_ct_STRIP="strip"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696 done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2702if test -n "$ac_ct_STRIP"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2704$as_echo "$ac_ct_STRIP" >&6; }
2705else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710 if test "x$ac_ct_STRIP" = x; then
2711 STRIP=":"
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714yes:)
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2717ac_tool_warned=yes ;;
2718esac
2719 STRIP=$ac_ct_STRIP
2720 fi
2721else
2722 STRIP="$ac_cv_prog_STRIP"
2723fi
2724
2725fi
2726INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2727
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2729$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2730if test -z "$MKDIR_P"; then
2731 if test "${ac_cv_path_mkdir+set}" = set; then :
2732 $as_echo_n "(cached) " >&6
2733else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_prog in mkdir gmkdir; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2742 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2743 'mkdir (GNU coreutils) '* | \
2744 'mkdir (coreutils) '* | \
2745 'mkdir (fileutils) '4.1*)
2746 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747 break 3;;
2748 esac
2749 done
2750 done
2751 done
2752IFS=$as_save_IFS
2753
2754fi
2755
2756 if test "${ac_cv_path_mkdir+set}" = set; then
2757 MKDIR_P="$ac_cv_path_mkdir -p"
2758 else
2759 # As a last resort, use the slow shell script. Don't cache a
2760 # value for MKDIR_P within a source directory, because that will
2761 # break other packages using the cache if that directory is
2762 # removed, or if the value is a relative name.
2763 test -d ./--version && rmdir ./--version
2764 MKDIR_P="$ac_install_sh -d"
2765 fi
2766fi
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2768$as_echo "$MKDIR_P" >&6; }
2769
2770mkdir_p="$MKDIR_P"
2771case $mkdir_p in
2772 [\\/$]* | ?:[\\/]*) ;;
2773 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2774esac
2775
2776for ac_prog in gawk mawk nawk awk
2777do
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779set dummy $ac_prog; ac_word=$2
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
2782if test "${ac_cv_prog_AWK+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2784else
2785 if test -n "$AWK"; then
2786 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_AWK="$ac_prog"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800 done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805AWK=$ac_cv_prog_AWK
2806if test -n "$AWK"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2808$as_echo "$AWK" >&6; }
2809else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
2812fi
2813
2814
2815 test -n "$AWK" && break
2816done
2817
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2819$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2820set x ${MAKE-make}
2821ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2822if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2823 $as_echo_n "(cached) " >&6
2824else
2825 cat >conftest.make <<\_ACEOF
2826SHELL = /bin/sh
2827all:
2828 @echo '@@@%%%=$(MAKE)=@@@%%%'
2829_ACEOF
2830# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2831case `${MAKE-make} -f conftest.make 2>/dev/null` in
2832 *@@@%%%=?*=@@@%%%*)
2833 eval ac_cv_prog_make_${ac_make}_set=yes;;
2834 *)
2835 eval ac_cv_prog_make_${ac_make}_set=no;;
2836esac
2837rm -f conftest.make
2838fi
2839if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841$as_echo "yes" >&6; }
2842 SET_MAKE=
2843else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845$as_echo "no" >&6; }
2846 SET_MAKE="MAKE=${MAKE-make}"
2847fi
2848
2849rm -rf .tst 2>/dev/null
2850mkdir .tst 2>/dev/null
2851if test -d .tst; then
2852 am__leading_dot=.
2853else
2854 am__leading_dot=_
2855fi
2856rmdir .tst 2>/dev/null
2857
2858if test "`cd $srcdir && pwd`" != "`pwd`"; then
2859 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2860 # is not polluted with repeated "-I."
2861 am__isrc=' -I$(srcdir)'
2862 # test to see if srcdir already configured
2863 if test -f $srcdir/config.status; then
2864 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2865 fi
2866fi
2867
2868# test whether we have cygpath
2869if test -z "$CYGPATH_W"; then
2870 if (cygpath --version) >/dev/null 2>/dev/null; then
2871 CYGPATH_W='cygpath -w'
2872 else
2873 CYGPATH_W=echo
2874 fi
2875fi
2876
2877
2878# Define the identity of the package.
2879 PACKAGE='libgo'
2880 VERSION='version-unused'
2881
2882
2883# Some tools Automake needs.
2884
2885ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2886
2887
2888AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2889
2890
2891AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2892
2893
2894AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2895
2896
2897MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2898
2899# We need awk for the "check" target. The system "awk" is bad on
2900# some platforms.
2901# Always define AMTAR for backward compatibility.
2902
2903AMTAR=${AMTAR-"${am_missing_run}tar"}
2904
2905am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916ac_ext=c
2917ac_cpp='$CPP $CPPFLAGS'
2918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2923set dummy ${ac_tool_prefix}gcc; ac_word=$2
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925$as_echo_n "checking for $ac_word... " >&6; }
2926if test "${ac_cv_prog_CC+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2928else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944 done
2945IFS=$as_save_IFS
2946
2947fi
2948fi
2949CC=$ac_cv_prog_CC
2950if test -n "$CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952$as_echo "$CC" >&6; }
2953else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955$as_echo "no" >&6; }
2956fi
2957
2958
2959fi
2960if test -z "$ac_cv_prog_CC"; then
2961 ac_ct_CC=$CC
2962 # Extract the first word of "gcc", so it can be a program name with args.
2963set dummy gcc; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968else
2969 if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_CC="gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983done
2984 done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990if test -n "$ac_ct_CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992$as_echo "$ac_ct_CC" >&6; }
2993else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998 if test "x$ac_ct_CC" = x; then
2999 CC=""
3000 else
3001 case $cross_compiling:$ac_tool_warned in
3002yes:)
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005ac_tool_warned=yes ;;
3006esac
3007 CC=$ac_ct_CC
3008 fi
3009else
3010 CC="$ac_cv_prog_CC"
3011fi
3012
3013if test -z "$CC"; then
3014 if test -n "$ac_tool_prefix"; then
3015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016set dummy ${ac_tool_prefix}cc; ac_word=$2
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018$as_echo_n "checking for $ac_word... " >&6; }
3019if test "${ac_cv_prog_CC+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3021else
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3024else
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_CC="${ac_tool_prefix}cc"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036done
3037 done
3038IFS=$as_save_IFS
3039
3040fi
3041fi
3042CC=$ac_cv_prog_CC
3043if test -n "$CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045$as_echo "$CC" >&6; }
3046else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
3049fi
3050
3051
3052 fi
3053fi
3054if test -z "$CC"; then
3055 # Extract the first word of "cc", so it can be a program name with args.
3056set dummy cc; ac_word=$2
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058$as_echo_n "checking for $ac_word... " >&6; }
3059if test "${ac_cv_prog_CC+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061else
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064else
3065 ac_prog_rejected=no
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074 ac_prog_rejected=yes
3075 continue
3076 fi
3077 ac_cv_prog_CC="cc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081done
3082 done
3083IFS=$as_save_IFS
3084
3085if test $ac_prog_rejected = yes; then
3086 # We found a bogon in the path, so make sure we never use it.
3087 set dummy $ac_cv_prog_CC
3088 shift
3089 if test $# != 0; then
3090 # We chose a different compiler from the bogus one.
3091 # However, it has the same basename, so the bogon will be chosen
3092 # first if we set CC to just the basename; use the full file name.
3093 shift
3094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3095 fi
3096fi
3097fi
3098fi
3099CC=$ac_cv_prog_CC
3100if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102$as_echo "$CC" >&6; }
3103else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105$as_echo "no" >&6; }
3106fi
3107
3108
3109fi
3110if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 for ac_prog in cl.exe
3113 do
3114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117$as_echo_n "checking for $ac_word... " >&6; }
3118if test "${ac_cv_prog_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3120else
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3123else
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 break 2
3134 fi
3135done
3136 done
3137IFS=$as_save_IFS
3138
3139fi
3140fi
3141CC=$ac_cv_prog_CC
3142if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144$as_echo "$CC" >&6; }
3145else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
3148fi
3149
3150
3151 test -n "$CC" && break
3152 done
3153fi
3154if test -z "$CC"; then
3155 ac_ct_CC=$CC
3156 for ac_prog in cl.exe
3157do
3158 # Extract the first word of "$ac_prog", so it can be a program name with args.
3159set dummy $ac_prog; ac_word=$2
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161$as_echo_n "checking for $ac_word... " >&6; }
3162if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164else
3165 if test -n "$ac_ct_CC"; then
3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167else
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_ac_ct_CC="$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179done
3180 done
3181IFS=$as_save_IFS
3182
3183fi
3184fi
3185ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186if test -n "$ac_ct_CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188$as_echo "$ac_ct_CC" >&6; }
3189else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192fi
3193
3194
3195 test -n "$ac_ct_CC" && break
3196done
3197
3198 if test "x$ac_ct_CC" = x; then
3199 CC=""
3200 else
3201 case $cross_compiling:$ac_tool_warned in
3202yes:)
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205ac_tool_warned=yes ;;
3206esac
3207 CC=$ac_ct_CC
3208 fi
3209fi
3210
3211fi
3212
3213
3214test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216as_fn_error "no acceptable C compiler found in \$PATH
3217See \`config.log' for more details." "$LINENO" 5; }
3218
3219# Provide some information about the compiler.
3220$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3221set X $ac_compile
3222ac_compiler=$2
3223for ac_option in --version -v -V -qversion; do
3224 { { ac_try="$ac_compiler $ac_option >&5"
3225case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3232 ac_status=$?
3233 if test -s conftest.err; then
3234 sed '10a\
3235... rest of stderr output deleted ...
3236 10q' conftest.err >conftest.er1
3237 cat conftest.er1 >&5
3238 rm -f conftest.er1 conftest.err
3239 fi
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242done
3243
3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h. */
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255ac_clean_files_save=$ac_clean_files
3256ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3257# Try to create an executable without -o first, disregard a.out.
3258# It will help us diagnose broken compilers, and finding out an intuition
3259# of exeext.
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3261$as_echo_n "checking for C compiler default output file name... " >&6; }
3262ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3263
3264# The possible output files:
3265ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3266
3267ac_rmfiles=
3268for ac_file in $ac_files
3269do
3270 case $ac_file in
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3273 esac
3274done
3275rm -f $ac_rmfiles
3276
3277if { { ac_try="$ac_link_default"
3278case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link_default") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3289# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3290# in a Makefile. We should not override ac_cv_exeext if it was cached,
3291# so that the user can short-circuit this test for compilers unknown to
3292# Autoconf.
3293for ac_file in $ac_files ''
3294do
3295 test -f "$ac_file" || continue
3296 case $ac_file in
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3298 ;;
3299 [ab].out )
3300 # We found the default executable, but exeext='' is most
3301 # certainly right.
3302 break;;
3303 *.* )
3304 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3305 then :; else
3306 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307 fi
3308 # We set ac_cv_exeext here because the later test for it is not
3309 # safe: cross compilers may not add the suffix if given an `-o'
3310 # argument, so we may need to know it at that point already.
3311 # Even if this section looks crufty: it has the advantage of
3312 # actually working.
3313 break;;
3314 * )
3315 break;;
3316 esac
3317done
3318test "$ac_cv_exeext" = no && ac_cv_exeext=
3319
3320else
3321 ac_file=''
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3324$as_echo "$ac_file" >&6; }
3325if test -z "$ac_file"; then :
3326 $as_echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331{ as_fn_set_status 77
3332as_fn_error "C compiler cannot create executables
3333See \`config.log' for more details." "$LINENO" 5; }; }
3334fi
3335ac_exeext=$ac_cv_exeext
3336
3337# Check that the compiler produces executables we can run. If not, either
3338# the compiler is broken, or we cross compile.
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340$as_echo_n "checking whether the C compiler works... " >&6; }
3341# If not cross compiling, check that we can run a simple program.
3342if test "$cross_compiling" != yes; then
3343 if { ac_try='./$ac_file'
3344 { { case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_try") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; }; then
3354 cross_compiling=no
3355 else
3356 if test "$cross_compiling" = maybe; then
3357 cross_compiling=yes
3358 else
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361as_fn_error "cannot run C compiled programs.
3362If you meant to cross compile, use \`--host'.
3363See \`config.log' for more details." "$LINENO" 5; }
3364 fi
3365 fi
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368$as_echo "yes" >&6; }
3369
3370rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3371ac_clean_files=$ac_clean_files_save
3372# Check that the compiler produces executables we can run. If not, either
3373# the compiler is broken, or we cross compile.
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3375$as_echo_n "checking whether we are cross compiling... " >&6; }
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3377$as_echo "$cross_compiling" >&6; }
3378
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380$as_echo_n "checking for suffix of executables... " >&6; }
3381if { { ac_try="$ac_link"
3382case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3389 ac_status=$?
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394# work properly (i.e., refer to `conftest.exe'), while it won't with
3395# `rm'.
3396for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401 break;;
3402 * ) break;;
3403 esac
3404done
3405else
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408as_fn_error "cannot compute suffix of executables: cannot compile and link
3409See \`config.log' for more details." "$LINENO" 5; }
3410fi
3411rm -f conftest$ac_cv_exeext
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413$as_echo "$ac_cv_exeext" >&6; }
3414
3415rm -f conftest.$ac_ext
3416EXEEXT=$ac_cv_exeext
3417ac_exeext=$EXEEXT
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3419$as_echo_n "checking for suffix of object files... " >&6; }
3420if test "${ac_cv_objext+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422else
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h. */
3425
3426int
3427main ()
3428{
3429
3430 ;
3431 return 0;
3432}
3433_ACEOF
3434rm -f conftest.o conftest.obj
3435if { { ac_try="$ac_compile"
3436case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439esac
3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441$as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_compile") 2>&5
3443 ac_status=$?
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 for ac_file in conftest.o conftest.obj conftest.*; do
3447 test -f "$ac_file" || continue;
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3451 break;;
3452 esac
3453done
3454else
3455 $as_echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
3458{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460as_fn_error "cannot compute suffix of object files: cannot compile
3461See \`config.log' for more details." "$LINENO" 5; }
3462fi
3463rm -f conftest.$ac_cv_objext conftest.$ac_ext
3464fi
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3466$as_echo "$ac_cv_objext" >&6; }
3467OBJEXT=$ac_cv_objext
3468ac_objext=$OBJEXT
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3470$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3471if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3473else
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475/* end confdefs.h. */
3476
3477int
3478main ()
3479{
3480#ifndef __GNUC__
3481 choke me
3482#endif
3483
3484 ;
3485 return 0;
3486}
3487_ACEOF
3488if ac_fn_c_try_compile "$LINENO"; then :
3489 ac_compiler_gnu=yes
3490else
3491 ac_compiler_gnu=no
3492fi
3493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494ac_cv_c_compiler_gnu=$ac_compiler_gnu
3495
3496fi
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3498$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3499if test $ac_compiler_gnu = yes; then
3500 GCC=yes
3501else
3502 GCC=
3503fi
3504ac_test_CFLAGS=${CFLAGS+set}
3505ac_save_CFLAGS=$CFLAGS
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3507$as_echo_n "checking whether $CC accepts -g... " >&6; }
3508if test "${ac_cv_prog_cc_g+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3510else
3511 ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3513 ac_cv_prog_cc_g=no
3514 CFLAGS="-g"
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h. */
3517
3518int
3519main ()
3520{
3521
3522 ;
3523 return 0;
3524}
3525_ACEOF
3526if ac_fn_c_try_compile "$LINENO"; then :
3527 ac_cv_prog_cc_g=yes
3528else
3529 CFLAGS=""
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h. */
3532
3533int
3534main ()
3535{
3536
3537 ;
3538 return 0;
3539}
3540_ACEOF
3541if ac_fn_c_try_compile "$LINENO"; then :
3542
3543else
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3545 CFLAGS="-g"
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547/* end confdefs.h. */
3548
3549int
3550main ()
3551{
3552
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_cv_prog_cc_g=yes
3559fi
3560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561fi
3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563fi
3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3568$as_echo "$ac_cv_prog_cc_g" >&6; }
3569if test "$ac_test_CFLAGS" = set; then
3570 CFLAGS=$ac_save_CFLAGS
3571elif test $ac_cv_prog_cc_g = yes; then
3572 if test "$GCC" = yes; then
3573 CFLAGS="-g -O2"
3574 else
3575 CFLAGS="-g"
3576 fi
3577else
3578 if test "$GCC" = yes; then
3579 CFLAGS="-O2"
3580 else
3581 CFLAGS=
3582 fi
3583fi
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3585$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3586if test "${ac_cv_prog_cc_c89+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588else
3589 ac_cv_prog_cc_c89=no
3590ac_save_CC=$CC
3591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h. */
3593#include <stdarg.h>
3594#include <stdio.h>
3595#include <sys/types.h>
3596#include <sys/stat.h>
3597/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3598struct buf { int x; };
3599FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600static char *e (p, i)
3601 char **p;
3602 int i;
3603{
3604 return p[i];
3605}
3606static char *f (char * (*g) (char **, int), char **p, ...)
3607{
3608 char *s;
3609 va_list v;
3610 va_start (v,p);
3611 s = g (p, va_arg (v,int));
3612 va_end (v);
3613 return s;
3614}
3615
3616/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3617 function prototypes and stuff, but not '\xHH' hex character constants.
3618 These don't provoke an error unfortunately, instead are silently treated
3619 as 'x'. The following induces an error, until -std is added to get
3620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3621 array size at least. It's necessary to write '\x00'==0 to get something
3622 that's true only with -std. */
3623int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624
3625/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626 inside strings and character constants. */
3627#define FOO(x) 'x'
3628int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629
3630int test (int i, double x);
3631struct s1 {int (*f) (int a);};
3632struct s2 {int (*f) (double a);};
3633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3634int argc;
3635char **argv;
3636int
3637main ()
3638{
3639return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3640 ;
3641 return 0;
3642}
3643_ACEOF
3644for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646do
3647 CC="$ac_save_CC $ac_arg"
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_c89=$ac_arg
3650fi
3651rm -f core conftest.err conftest.$ac_objext
3652 test "x$ac_cv_prog_cc_c89" != "xno" && break
3653done
3654rm -f conftest.$ac_ext
3655CC=$ac_save_CC
3656
3657fi
3658# AC_CACHE_VAL
3659case "x$ac_cv_prog_cc_c89" in
3660 x)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3662$as_echo "none needed" >&6; } ;;
3663 xno)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3665$as_echo "unsupported" >&6; } ;;
3666 *)
3667 CC="$CC $ac_cv_prog_cc_c89"
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3669$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3670esac
3671if test "x$ac_cv_prog_cc_c89" != xno; then :
3672
3673fi
3674
3675ac_ext=c
3676ac_cpp='$CPP $CPPFLAGS'
3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680DEPDIR="${am__leading_dot}deps"
3681
3682ac_config_commands="$ac_config_commands depfiles"
3683
3684
3685am_make=${MAKE-make}
3686cat > confinc << 'END'
3687am__doit:
3688 @echo this is the am__doit target
3689.PHONY: am__doit
3690END
3691# If we don't find an include directive, just comment out the code.
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3693$as_echo_n "checking for style of include used by $am_make... " >&6; }
3694am__include="#"
3695am__quote=
3696_am_result=none
3697# First try GNU make style include.
3698echo "include confinc" > confmf
3699# Ignore all kinds of additional output from `make'.
3700case `$am_make -s -f confmf 2> /dev/null` in #(
3701*the\ am__doit\ target*)
3702 am__include=include
3703 am__quote=
3704 _am_result=GNU
3705 ;;
3706esac
3707# Now try BSD make style include.
3708if test "$am__include" = "#"; then
3709 echo '.include "confinc"' > confmf
3710 case `$am_make -s -f confmf 2> /dev/null` in #(
3711 *the\ am__doit\ target*)
3712 am__include=.include
3713 am__quote="\""
3714 _am_result=BSD
3715 ;;
3716 esac
3717fi
3718
3719
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3721$as_echo "$_am_result" >&6; }
3722rm -f confinc confmf
3723
3724# Check whether --enable-dependency-tracking was given.
3725if test "${enable_dependency_tracking+set}" = set; then :
3726 enableval=$enable_dependency_tracking;
3727fi
3728
3729if test "x$enable_dependency_tracking" != xno; then
3730 am_depcomp="$ac_aux_dir/depcomp"
3731 AMDEPBACKSLASH='\'
3732fi
3733 if test "x$enable_dependency_tracking" != xno; then
3734 AMDEP_TRUE=
3735 AMDEP_FALSE='#'
3736else
3737 AMDEP_TRUE='#'
3738 AMDEP_FALSE=
3739fi
3740
3741
3742
3743depcc="$CC" am_compiler_list=
3744
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3746$as_echo_n "checking dependency style of $depcc... " >&6; }
3747if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749else
3750 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3751 # We make a subdir and do the tests there. Otherwise we can end up
3752 # making bogus files that we don't know about and never remove. For
3753 # instance it was reported that on HP-UX the gcc test will end up
3754 # making a dummy file named `D' -- because `-MD' means `put the output
3755 # in D'.
3756 mkdir conftest.dir
3757 # Copy depcomp to subdir because otherwise we won't find it if we're
3758 # using a relative directory.
3759 cp "$am_depcomp" conftest.dir
3760 cd conftest.dir
3761 # We will build objects and dependencies in a subdirectory because
3762 # it helps to detect inapplicable dependency modes. For instance
3763 # both Tru64's cc and ICC support -MD to output dependencies as a
3764 # side effect of compilation, but ICC will put the dependencies in
3765 # the current directory while Tru64 will put them in the object
3766 # directory.
3767 mkdir sub
3768
3769 am_cv_CC_dependencies_compiler_type=none
3770 if test "$am_compiler_list" = ""; then
3771 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3772 fi
3773 am__universal=false
3774 case " $depcc " in #(
3775 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3776 esac
3777
3778 for depmode in $am_compiler_list; do
3779 # Setup a source with many dependencies, because some compilers
3780 # like to wrap large dependency lists on column 80 (with \), and
3781 # we should not choose a depcomp mode which is confused by this.
3782 #
3783 # We need to recreate these files for each test, as the compiler may
3784 # overwrite some of them when testing with obscure command lines.
3785 # This happens at least with the AIX C compiler.
3786 : > sub/conftest.c
3787 for i in 1 2 3 4 5 6; do
3788 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3789 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3790 # Solaris 8's {/usr,}/bin/sh.
3791 touch sub/conftst$i.h
3792 done
3793 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3794
3795 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3796 # mode. It turns out that the SunPro C++ compiler does not properly
3797 # handle `-M -o', and we need to detect this. Also, some Intel
3798 # versions had trouble with output in subdirs
3799 am__obj=sub/conftest.${OBJEXT-o}
3800 am__minus_obj="-o $am__obj"
3801 case $depmode in
3802 gcc)
3803 # This depmode causes a compiler race in universal mode.
3804 test "$am__universal" = false || continue
3805 ;;
3806 nosideeffect)
3807 # after this tag, mechanisms are not by side-effect, so they'll
3808 # only be used when explicitly requested
3809 if test "x$enable_dependency_tracking" = xyes; then
3810 continue
3811 else
3812 break
3813 fi
3814 ;;
3815 msvisualcpp | msvcmsys)
3816 # This compiler won't grok `-c -o', but also, the minuso test has
3817 # not run yet. These depmodes are late enough in the game, and
3818 # so weak that their functioning should not be impacted.
3819 am__obj=conftest.${OBJEXT-o}
3820 am__minus_obj=
3821 ;;
3822 none) break ;;
3823 esac
3824 if depmode=$depmode \
3825 source=sub/conftest.c object=$am__obj \
3826 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3827 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3828 >/dev/null 2>conftest.err &&
3829 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3831 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3833 # icc doesn't choke on unknown options, it will just issue warnings
3834 # or remarks (even with -Werror). So we grep stderr for any message
3835 # that says an option was ignored or not supported.
3836 # When given -MP, icc 7.0 and 7.1 complain thusly:
3837 # icc: Command line warning: ignoring option '-M'; no argument required
3838 # The diagnosis changed in icc 8.0:
3839 # icc: Command line remark: option '-MP' not supported
3840 if (grep 'ignoring option' conftest.err ||
3841 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3842 am_cv_CC_dependencies_compiler_type=$depmode
3843 break
3844 fi
3845 fi
3846 done
3847
3848 cd ..
3849 rm -rf conftest.dir
3850else
3851 am_cv_CC_dependencies_compiler_type=none
3852fi
3853
3854fi
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3856$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3857CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3858
3859 if
3860 test "x$enable_dependency_tracking" != xno \
3861 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3862 am__fastdepCC_TRUE=
3863 am__fastdepCC_FALSE='#'
3864else
3865 am__fastdepCC_TRUE='#'
3866 am__fastdepCC_FALSE=
3867fi
3868
3869
3870ac_ext=go
3871ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3872ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873ac_compile_gnu=yes
3874if test -n "$ac_tool_prefix"; then
3875 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3876set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878$as_echo_n "checking for $ac_word... " >&6; }
3879if test "${ac_cv_prog_GOC+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3881else
3882 if test -n "$GOC"; then
3883 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896done
3897 done
3898IFS=$as_save_IFS
3899
3900fi
3901fi
3902GOC=$ac_cv_prog_GOC
3903if test -n "$GOC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3905$as_echo "$GOC" >&6; }
3906else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908$as_echo "no" >&6; }
3909fi
3910
3911
3912fi
3913if test -z "$ac_cv_prog_GOC"; then
3914 ac_ct_GOC=$GOC
3915 # Extract the first word of "gccgo", so it can be a program name with args.
3916set dummy gccgo; ac_word=$2
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918$as_echo_n "checking for $ac_word... " >&6; }
3919if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3921else
3922 if test -n "$ac_ct_GOC"; then
3923 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_prog_ac_ct_GOC="gccgo"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936done
3937 done
3938IFS=$as_save_IFS
3939
3940fi
3941fi
3942ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3943if test -n "$ac_ct_GOC"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3945$as_echo "$ac_ct_GOC" >&6; }
3946else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948$as_echo "no" >&6; }
3949fi
3950
3951 if test "x$ac_ct_GOC" = x; then
3952 GOC=""
3953 else
3954 case $cross_compiling:$ac_tool_warned in
3955yes:)
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958ac_tool_warned=yes ;;
3959esac
3960 GOC=$ac_ct_GOC
3961 fi
3962else
3963 GOC="$ac_cv_prog_GOC"
3964fi
3965
3966if test -z "$GOC"; then
3967 if test -n "$ac_tool_prefix"; then
3968 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3969set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
3972if test "${ac_cv_prog_GOC+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3974else
3975 if test -n "$GOC"; then
3976 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3977else
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 break 2
3988 fi
3989done
3990 done
3991IFS=$as_save_IFS
3992
3993fi
3994fi
3995GOC=$ac_cv_prog_GOC
3996if test -n "$GOC"; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3998$as_echo "$GOC" >&6; }
3999else
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
4002fi
4003
4004
4005 fi
4006fi
4007if test -z "$GOC"; then
4008 # Extract the first word of "gccgo", so it can be a program name with args.
4009set dummy gccgo; ac_word=$2
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011$as_echo_n "checking for $ac_word... " >&6; }
4012if test "${ac_cv_prog_GOC+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014else
4015 if test -n "$GOC"; then
4016 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4017else
4018 ac_prog_rejected=no
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4027 ac_prog_rejected=yes
4028 continue
4029 fi
4030 ac_cv_prog_GOC="gccgo"
4031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4033 fi
4034done
4035 done
4036IFS=$as_save_IFS
4037
4038if test $ac_prog_rejected = yes; then
4039 # We found a bogon in the path, so make sure we never use it.
4040 set dummy $ac_cv_prog_GOC
4041 shift
4042 if test $# != 0; then
4043 # We chose a different compiler from the bogus one.
4044 # However, it has the same basename, so the bogon will be chosen
4045 # first if we set GOC to just the basename; use the full file name.
4046 shift
4047 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4048 fi
4049fi
4050fi
4051fi
4052GOC=$ac_cv_prog_GOC
4053if test -n "$GOC"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4055$as_echo "$GOC" >&6; }
4056else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058$as_echo "no" >&6; }
4059fi
4060
4061
4062fi
4063
4064
4065# Provide some information about the compiler.
4066$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4067set X $ac_compile
4068ac_compiler=$2
4069{ { ac_try="$ac_compiler --version >&5"
4070case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073esac
4074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075$as_echo "$ac_try_echo"; } >&5
4076 (eval "$ac_compiler --version >&5") 2>conftest.err
4077 ac_status=$?
4078 if test -s conftest.err; then
4079 sed '10a\
4080... rest of stderr output deleted ...
4081 10q' conftest.err >conftest.er1
4082 cat conftest.er1 >&5
4083 rm -f conftest.er1 conftest.err
4084 fi
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }
4087GOCFLAGS="-g -O2"
4088ac_ext=c
4089ac_cpp='$CPP $CPPFLAGS'
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4094
4095
4096
4097
4098
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4100$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4101 # Check whether --enable-maintainer-mode was given.
4102if test "${enable_maintainer_mode+set}" = set; then :
4103 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4104else
4105 USE_MAINTAINER_MODE=no
4106fi
4107
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4109$as_echo "$USE_MAINTAINER_MODE" >&6; }
4110 if test $USE_MAINTAINER_MODE = yes; then
4111 MAINTAINER_MODE_TRUE=
4112 MAINTAINER_MODE_FALSE='#'
4113else
4114 MAINTAINER_MODE_TRUE='#'
4115 MAINTAINER_MODE_FALSE=
4116fi
4117
4118 MAINT=$MAINTAINER_MODE_TRUE
4119
4120
4121
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4123$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4124if test "${ac_cv_path_SED+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4126else
4127 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4128 for ac_i in 1 2 3 4 5 6 7; do
4129 ac_script="$ac_script$as_nl$ac_script"
4130 done
4131 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4132 { ac_script=; unset ac_script;}
4133 if test -z "$SED"; then
4134 ac_path_SED_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in sed gsed; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4144 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4145# Check for GNU ac_path_SED and select it if it is found.
4146 # Check for GNU $ac_path_SED
4147case `"$ac_path_SED" --version 2>&1` in
4148*GNU*)
4149 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4150*)
4151 ac_count=0
4152 $as_echo_n 0123456789 >"conftest.in"
4153 while :
4154 do
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo '' >> "conftest.nl"
4159 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 as_fn_arith $ac_count + 1 && ac_count=$as_val
4162 if test $ac_count -gt ${ac_path_SED_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_SED="$ac_path_SED"
4165 ac_path_SED_max=$ac_count
4166 fi
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4169 done
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171esac
4172
4173 $ac_path_SED_found && break 3
4174 done
4175 done
4176 done
4177IFS=$as_save_IFS
4178 if test -z "$ac_cv_path_SED"; then
4179 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4180 fi
4181else
4182 ac_cv_path_SED=$SED
4183fi
4184
4185fi
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4187$as_echo "$ac_cv_path_SED" >&6; }
4188 SED="$ac_cv_path_SED"
4189 rm -f conftest.sed
4190
4191test -z "$SED" && SED=sed
4192Xsed="$SED -e 1s/^X//"
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4205$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206if test "${ac_cv_path_GREP+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208else
4209 if test -z "$GREP"; then
4210 ac_path_GREP_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in grep ggrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4221# Check for GNU ac_path_GREP and select it if it is found.
4222 # Check for GNU $ac_path_GREP
4223case `"$ac_path_GREP" --version 2>&1` in
4224*GNU*)
4225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226*)
4227 ac_count=0
4228 $as_echo_n 0123456789 >"conftest.in"
4229 while :
4230 do
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'GREP' >> "conftest.nl"
4235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 as_fn_arith $ac_count + 1 && ac_count=$as_val
4238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_GREP="$ac_path_GREP"
4241 ac_path_GREP_max=$ac_count
4242 fi
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4245 done
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247esac
4248
4249 $ac_path_GREP_found && break 3
4250 done
4251 done
4252 done
4253IFS=$as_save_IFS
4254 if test -z "$ac_cv_path_GREP"; then
4255 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256 fi
4257else
4258 ac_cv_path_GREP=$GREP
4259fi
4260
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4263$as_echo "$ac_cv_path_GREP" >&6; }
4264 GREP="$ac_cv_path_GREP"
4265
4266
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4268$as_echo_n "checking for egrep... " >&6; }
4269if test "${ac_cv_path_EGREP+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271else
4272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273 then ac_cv_path_EGREP="$GREP -E"
4274 else
4275 if test -z "$EGREP"; then
4276 ac_path_EGREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in egrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4286 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4287# Check for GNU ac_path_EGREP and select it if it is found.
4288 # Check for GNU $ac_path_EGREP
4289case `"$ac_path_EGREP" --version 2>&1` in
4290*GNU*)
4291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292*)
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4296 do
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'EGREP' >> "conftest.nl"
4301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 as_fn_arith $ac_count + 1 && ac_count=$as_val
4304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_EGREP="$ac_path_EGREP"
4307 ac_path_EGREP_max=$ac_count
4308 fi
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313esac
4314
4315 $ac_path_EGREP_found && break 3
4316 done
4317 done
4318 done
4319IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_EGREP"; then
4321 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322 fi
4323else
4324 ac_cv_path_EGREP=$EGREP
4325fi
4326
4327 fi
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4330$as_echo "$ac_cv_path_EGREP" >&6; }
4331 EGREP="$ac_cv_path_EGREP"
4332
4333
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4335$as_echo_n "checking for fgrep... " >&6; }
4336if test "${ac_cv_path_FGREP+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338else
4339 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4340 then ac_cv_path_FGREP="$GREP -F"
4341 else
4342 if test -z "$FGREP"; then
4343 ac_path_FGREP_found=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_prog in fgrep; do
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4353 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4354# Check for GNU ac_path_FGREP and select it if it is found.
4355 # Check for GNU $ac_path_FGREP
4356case `"$ac_path_FGREP" --version 2>&1` in
4357*GNU*)
4358 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4359*)
4360 ac_count=0
4361 $as_echo_n 0123456789 >"conftest.in"
4362 while :
4363 do
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 $as_echo 'FGREP' >> "conftest.nl"
4368 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370 as_fn_arith $ac_count + 1 && ac_count=$as_val
4371 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_FGREP="$ac_path_FGREP"
4374 ac_path_FGREP_max=$ac_count
4375 fi
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4378 done
4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380esac
4381
4382 $ac_path_FGREP_found && break 3
4383 done
4384 done
4385 done
4386IFS=$as_save_IFS
4387 if test -z "$ac_cv_path_FGREP"; then
4388 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4389 fi
4390else
4391 ac_cv_path_FGREP=$FGREP
4392fi
4393
4394 fi
4395fi
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4397$as_echo "$ac_cv_path_FGREP" >&6; }
4398 FGREP="$ac_cv_path_FGREP"
4399
4400
4401test -z "$GREP" && GREP=grep
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4420ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4421ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4422
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4424$as_echo_n "checking how to print strings... " >&6; }
4425# Test print first, because it will be a builtin if present.
4426if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4427 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4428 ECHO='print -r --'
4429elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4430 ECHO='printf %s\n'
4431else
4432 # Use this function as a fallback that always works.
4433 func_fallback_echo ()
4434 {
4435 eval 'cat <<_LTECHO_EOF
4436$1
4437_LTECHO_EOF'
4438 }
4439 ECHO='func_fallback_echo'
4440fi
4441
4442# func_echo_all arg...
4443# Invoke $ECHO with all args, space-separated.
4444func_echo_all ()
4445{
4446 $ECHO ""
4447}
4448
4449case "$ECHO" in
4450 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4451$as_echo "printf" >&6; } ;;
4452 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4453$as_echo "print -r" >&6; } ;;
4454 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4455$as_echo "cat" >&6; } ;;
4456esac
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473# Check whether --with-gnu-ld was given.
4474if test "${with_gnu_ld+set}" = set; then :
4475 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4476else
4477 with_gnu_ld=no
4478fi
4479
4480ac_prog=ld
4481if test "$GCC" = yes; then
4482 # Check if gcc -print-prog-name=ld gives a path.
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4484$as_echo_n "checking for ld used by $CC... " >&6; }
4485 case $host in
4486 *-*-mingw*)
4487 # gcc leaves a trailing carriage return which upsets mingw
4488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4489 *)
4490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4491 esac
4492 case $ac_prog in
4493 # Accept absolute paths.
4494 [\\/]* | ?:[\\/]*)
4495 re_direlt='/[^/][^/]*/\.\./'
4496 # Canonicalize the pathname of ld
4497 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4498 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4499 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4500 done
4501 test -z "$LD" && LD="$ac_prog"
4502 ;;
4503 "")
4504 # If it fails, then pretend we aren't using GCC.
4505 ac_prog=ld
4506 ;;
4507 *)
4508 # If it is relative, then search for the first ld in PATH.
4509 with_gnu_ld=unknown
4510 ;;
4511 esac
4512elif test "$with_gnu_ld" = yes; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4514$as_echo_n "checking for GNU ld... " >&6; }
4515else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4517$as_echo_n "checking for non-GNU ld... " >&6; }
4518fi
4519if test "${lt_cv_path_LD+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521else
4522 if test -z "$LD"; then
4523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4524 for ac_dir in $PATH; do
4525 IFS="$lt_save_ifs"
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4528 lt_cv_path_LD="$ac_dir/$ac_prog"
4529 # Check to see if the program is GNU ld. I'd rather use --version,
4530 # but apparently some variants of GNU ld only accept -v.
4531 # Break only if it was the GNU/non-GNU ld that we prefer.
4532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4533 *GNU* | *'with BFD'*)
4534 test "$with_gnu_ld" != no && break
4535 ;;
4536 *)
4537 test "$with_gnu_ld" != yes && break
4538 ;;
4539 esac
4540 fi
4541 done
4542 IFS="$lt_save_ifs"
4543else
4544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4545fi
4546fi
4547
4548LD="$lt_cv_path_LD"
4549if test -n "$LD"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4551$as_echo "$LD" >&6; }
4552else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554$as_echo "no" >&6; }
4555fi
4556test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4558$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4559if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561else
4562 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4563case `$LD -v 2>&1 </dev/null` in
4564*GNU* | *'with BFD'*)
4565 lt_cv_prog_gnu_ld=yes
4566 ;;
4567*)
4568 lt_cv_prog_gnu_ld=no
4569 ;;
4570esac
4571fi
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4573$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4574with_gnu_ld=$lt_cv_prog_gnu_ld
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584if test -n "$ac_tool_prefix"; then
4585 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4586set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
4589if test "${ac_cv_prog_RANLIB+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591else
4592 if test -n "$RANLIB"; then
4593 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606done
4607 done
4608IFS=$as_save_IFS
4609
4610fi
4611fi
4612RANLIB=$ac_cv_prog_RANLIB
4613if test -n "$RANLIB"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4615$as_echo "$RANLIB" >&6; }
4616else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618$as_echo "no" >&6; }
4619fi
4620
4621
4622fi
4623if test -z "$ac_cv_prog_RANLIB"; then
4624 ac_ct_RANLIB=$RANLIB
4625 # Extract the first word of "ranlib", so it can be a program name with args.
4626set dummy ranlib; ac_word=$2
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628$as_echo_n "checking for $ac_word... " >&6; }
4629if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4631else
4632 if test -n "$ac_ct_RANLIB"; then
4633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_ac_ct_RANLIB="ranlib"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646done
4647 done
4648IFS=$as_save_IFS
4649
4650fi
4651fi
4652ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4653if test -n "$ac_ct_RANLIB"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4655$as_echo "$ac_ct_RANLIB" >&6; }
4656else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658$as_echo "no" >&6; }
4659fi
4660
4661 if test "x$ac_ct_RANLIB" = x; then
4662 RANLIB=":"
4663 else
4664 case $cross_compiling:$ac_tool_warned in
4665yes:)
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4668ac_tool_warned=yes ;;
4669esac
4670 RANLIB=$ac_ct_RANLIB
4671 fi
4672else
4673 RANLIB="$ac_cv_prog_RANLIB"
4674fi
4675
4676if test -n "$ac_tool_prefix"; then
4677 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4678set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
4681if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683else
4684 if test -n "$OBJCOPY"; then
4685 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4686else
4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH
4689do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698done
4699 done
4700IFS=$as_save_IFS
4701
4702fi
4703fi
4704OBJCOPY=$ac_cv_prog_OBJCOPY
4705if test -n "$OBJCOPY"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4707$as_echo "$OBJCOPY" >&6; }
4708else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
4711fi
4712
4713
4714fi
4715if test -z "$ac_cv_prog_OBJCOPY"; then
4716 ac_ct_OBJCOPY=$OBJCOPY
4717 # Extract the first word of "objcopy", so it can be a program name with args.
4718set dummy objcopy; ac_word=$2
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720$as_echo_n "checking for $ac_word... " >&6; }
4721if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723else
4724 if test -n "$ac_ct_OBJCOPY"; then
4725 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4726else
4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4737 fi
4738done
4739 done
4740IFS=$as_save_IFS
4741
4742fi
4743fi
4744ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4745if test -n "$ac_ct_OBJCOPY"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4747$as_echo "$ac_ct_OBJCOPY" >&6; }
4748else
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750$as_echo "no" >&6; }
4751fi
4752
4753 if test "x$ac_ct_OBJCOPY" = x; then
4754 OBJCOPY="missing-objcopy"
4755 else
4756 case $cross_compiling:$ac_tool_warned in
4757yes:)
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760ac_tool_warned=yes ;;
4761esac
4762 OBJCOPY=$ac_ct_OBJCOPY
4763 fi
4764else
4765 OBJCOPY="$ac_cv_prog_OBJCOPY"
4766fi
4767
4768
4769enable_dlopen=yes
4770
4771
4772
4773case `pwd` in
4774 *\ * | *\ *)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4776$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4777esac
4778
4779
4780
4781macro_version='2.2.7a'
4782macro_revision='1.3134'
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796ltmain="$ac_aux_dir/ltmain.sh"
4797
4798# Backslashify metacharacters that are still active within
4799# double-quoted strings.
4800sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4801
4802# Same as above, but do not quote variable references.
4803double_quote_subst='s/\(["`\\]\)/\\\1/g'
4804
4805# Sed substitution to delay expansion of an escaped shell variable in a
4806# double_quote_subst'ed string.
4807delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4808
4809# Sed substitution to delay expansion of an escaped single quote.
4810delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4811
4812# Sed substitution to avoid accidental globbing in evaled expressions
4813no_glob_subst='s/\*/\\\*/g'
4814
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4816$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4817if test "${lt_cv_path_NM+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819else
4820 if test -n "$NM"; then
4821 # Let the user override the test.
4822 lt_cv_path_NM="$NM"
4823else
4824 lt_nm_to_check="${ac_tool_prefix}nm"
4825 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4826 lt_nm_to_check="$lt_nm_to_check nm"
4827 fi
4828 for lt_tmp_nm in $lt_nm_to_check; do
4829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4830 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4831 IFS="$lt_save_ifs"
4832 test -z "$ac_dir" && ac_dir=.
4833 tmp_nm="$ac_dir/$lt_tmp_nm"
4834 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4835 # Check to see if the nm accepts a BSD-compat flag.
4836 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4837 # nm: unknown option "B" ignored
4838 # Tru64's nm complains that /dev/null is an invalid object file
4839 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4840 */dev/null* | *'Invalid file or object type'*)
4841 lt_cv_path_NM="$tmp_nm -B"
4842 break
4843 ;;
4844 *)
4845 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4846 */dev/null*)
4847 lt_cv_path_NM="$tmp_nm -p"
4848 break
4849 ;;
4850 *)
4851 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4852 continue # so that we can try to find one that supports BSD flags
4853 ;;
4854 esac
4855 ;;
4856 esac
4857 fi
4858 done
4859 IFS="$lt_save_ifs"
4860 done
4861 : ${lt_cv_path_NM=no}
4862fi
4863fi
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4865$as_echo "$lt_cv_path_NM" >&6; }
4866if test "$lt_cv_path_NM" != "no"; then
4867 NM="$lt_cv_path_NM"
4868else
4869 # Didn't find any BSD compatible name lister, look for dumpbin.
4870 if test -n "$DUMPBIN"; then :
4871 # Let the user override the test.
4872 else
4873 if test -n "$ac_tool_prefix"; then
4874 for ac_prog in dumpbin "link -dump"
4875 do
4876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
4880if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882else
4883 if test -n "$DUMPBIN"; then
4884 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4885else
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
4897done
4898 done
4899IFS=$as_save_IFS
4900
4901fi
4902fi
4903DUMPBIN=$ac_cv_prog_DUMPBIN
4904if test -n "$DUMPBIN"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4906$as_echo "$DUMPBIN" >&6; }
4907else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
4910fi
4911
4912
4913 test -n "$DUMPBIN" && break
4914 done
4915fi
4916if test -z "$DUMPBIN"; then
4917 ac_ct_DUMPBIN=$DUMPBIN
4918 for ac_prog in dumpbin "link -dump"
4919do
4920 # Extract the first word of "$ac_prog", so it can be a program name with args.
4921set dummy $ac_prog; ac_word=$2
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923$as_echo_n "checking for $ac_word... " >&6; }
4924if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926else
4927 if test -n "$ac_ct_DUMPBIN"; then
4928 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4929else
4930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH
4932do
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4940 fi
4941done
4942 done
4943IFS=$as_save_IFS
4944
4945fi
4946fi
4947ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4948if test -n "$ac_ct_DUMPBIN"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4950$as_echo "$ac_ct_DUMPBIN" >&6; }
4951else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953$as_echo "no" >&6; }
4954fi
4955
4956
4957 test -n "$ac_ct_DUMPBIN" && break
4958done
4959
4960 if test "x$ac_ct_DUMPBIN" = x; then
4961 DUMPBIN=":"
4962 else
4963 case $cross_compiling:$ac_tool_warned in
4964yes:)
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967ac_tool_warned=yes ;;
4968esac
4969 DUMPBIN=$ac_ct_DUMPBIN
4970 fi
4971fi
4972
4973 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4974 *COFF*)
4975 DUMPBIN="$DUMPBIN -symbols"
4976 ;;
4977 *)
4978 DUMPBIN=:
4979 ;;
4980 esac
4981 fi
4982
4983 if test "$DUMPBIN" != ":"; then
4984 NM="$DUMPBIN"
4985 fi
4986fi
4987test -z "$NM" && NM=nm
4988
4989
4990
4991
4992
4993
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4995$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4996if test "${lt_cv_nm_interface+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998else
4999 lt_cv_nm_interface="BSD nm"
5000 echo "int some_variable = 0;" > conftest.$ac_ext
5001 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5002 (eval "$ac_compile" 2>conftest.err)
5003 cat conftest.err >&5
5004 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5005 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5006 cat conftest.err >&5
5007 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5008 cat conftest.out >&5
5009 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5010 lt_cv_nm_interface="MS dumpbin"
5011 fi
5012 rm -f conftest*
5013fi
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5015$as_echo "$lt_cv_nm_interface" >&6; }
5016
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5018$as_echo_n "checking whether ln -s works... " >&6; }
5019LN_S=$as_ln_s
5020if test "$LN_S" = "ln -s"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5022$as_echo "yes" >&6; }
5023else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5025$as_echo "no, using $LN_S" >&6; }
5026fi
5027
5028# find the maximum length of command line arguments
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5030$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5031if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033else
5034 i=0
5035 teststring="ABCD"
5036
5037 case $build_os in
5038 msdosdjgpp*)
5039 # On DJGPP, this test can blow up pretty badly due to problems in libc
5040 # (any single argument exceeding 2000 bytes causes a buffer overrun
5041 # during glob expansion). Even if it were fixed, the result of this
5042 # check would be larger than it should be.
5043 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5044 ;;
5045
5046 gnu*)
5047 # Under GNU Hurd, this test is not required because there is
5048 # no limit to the length of command line arguments.
5049 # Libtool will interpret -1 as no limit whatsoever
5050 lt_cv_sys_max_cmd_len=-1;
5051 ;;
5052
5053 cygwin* | mingw* | cegcc*)
5054 # On Win9x/ME, this test blows up -- it succeeds, but takes
5055 # about 5 minutes as the teststring grows exponentially.
5056 # Worse, since 9x/ME are not pre-emptively multitasking,
5057 # you end up with a "frozen" computer, even though with patience
5058 # the test eventually succeeds (with a max line length of 256k).
5059 # Instead, let's just punt: use the minimum linelength reported by
5060 # all of the supported platforms: 8192 (on NT/2K/XP).
5061 lt_cv_sys_max_cmd_len=8192;
5062 ;;
5063
5064 mint*)
5065 # On MiNT this can take a long time and run out of memory.
5066 lt_cv_sys_max_cmd_len=8192;
5067 ;;
5068
5069 amigaos*)
5070 # On AmigaOS with pdksh, this test takes hours, literally.
5071 # So we just punt and use a minimum line length of 8192.
5072 lt_cv_sys_max_cmd_len=8192;
5073 ;;
5074
5075 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5076 # This has been around since 386BSD, at least. Likely further.
5077 if test -x /sbin/sysctl; then
5078 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5079 elif test -x /usr/sbin/sysctl; then
5080 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5081 else
5082 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5083 fi
5084 # And add a safety zone
5085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5087 ;;
5088
5089 interix*)
5090 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5091 lt_cv_sys_max_cmd_len=196608
5092 ;;
5093
5094 osf*)
5095 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5096 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5097 # nice to cause kernel panics so lets avoid the loop below.
5098 # First set a reasonable default.
5099 lt_cv_sys_max_cmd_len=16384
5100 #
5101 if test -x /sbin/sysconfig; then
5102 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5103 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5104 esac
5105 fi
5106 ;;
5107 sco3.2v5*)
5108 lt_cv_sys_max_cmd_len=102400
5109 ;;
5110 sysv5* | sco5v6* | sysv4.2uw2*)
5111 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5112 if test -n "$kargmax"; then
5113 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5114 else
5115 lt_cv_sys_max_cmd_len=32768
5116 fi
5117 ;;
5118 *)
5119 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5120 if test -n "$lt_cv_sys_max_cmd_len"; then
5121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5123 else
5124 # Make teststring a little bigger before we do anything with it.
5125 # a 1K string should be a reasonable start.
5126 for i in 1 2 3 4 5 6 7 8 ; do
5127 teststring=$teststring$teststring
5128 done
5129 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5130 # If test is not a shell built-in, we'll probably end up computing a
5131 # maximum length that is only half of the actual maximum length, but
5132 # we can't tell.
5133 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5134 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5135 test $i != 17 # 1/2 MB should be enough
5136 do
5137 i=`expr $i + 1`
5138 teststring=$teststring$teststring
5139 done
5140 # Only check the string length outside the loop.
5141 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5142 teststring=
5143 # Add a significant safety factor because C++ compilers can tack on
5144 # massive amounts of additional arguments before passing them to the
5145 # linker. It appears as though 1/2 is a usable value.
5146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5147 fi
5148 ;;
5149 esac
5150
5151fi
5152
5153if test -n $lt_cv_sys_max_cmd_len ; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5155$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5156else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5158$as_echo "none" >&6; }
5159fi
5160max_cmd_len=$lt_cv_sys_max_cmd_len
5161
5162
5163
5164
5165
5166
5167: ${CP="cp -f"}
5168: ${MV="mv -f"}
5169: ${RM="rm -f"}
5170
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5172$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5173# Try some XSI features
5174xsi_shell=no
5175( _lt_dummy="a/b/c"
5176 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5177 = c,a/b,, \
5178 && eval 'test $(( 1 + 1 )) -eq 2 \
5179 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5180 && xsi_shell=yes
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5182$as_echo "$xsi_shell" >&6; }
5183
5184
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5186$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5187lt_shell_append=no
5188( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5189 >/dev/null 2>&1 \
5190 && lt_shell_append=yes
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5192$as_echo "$lt_shell_append" >&6; }
5193
5194
5195if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5196 lt_unset=unset
5197else
5198 lt_unset=false
5199fi
5200
5201
5202
5203
5204
5205# test EBCDIC or ASCII
5206case `echo X|tr X '\101'` in
5207 A) # ASCII based system
5208 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5209 lt_SP2NL='tr \040 \012'
5210 lt_NL2SP='tr \015\012 \040\040'
5211 ;;
5212 *) # EBCDIC based system
5213 lt_SP2NL='tr \100 \n'
5214 lt_NL2SP='tr \r\n \100\100'
5215 ;;
5216esac
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5227$as_echo_n "checking for $LD option to reload object files... " >&6; }
5228if test "${lt_cv_ld_reload_flag+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230else
5231 lt_cv_ld_reload_flag='-r'
5232fi
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5234$as_echo "$lt_cv_ld_reload_flag" >&6; }
5235reload_flag=$lt_cv_ld_reload_flag
5236case $reload_flag in
5237"" | " "*) ;;
5238*) reload_flag=" $reload_flag" ;;
5239esac
5240reload_cmds='$LD$reload_flag -o $output$reload_objs'
5241case $host_os in
5242 darwin*)
5243 if test "$GCC" = yes; then
5244 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5245 else
5246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5247 fi
5248 ;;
5249esac
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5261set dummy ${ac_tool_prefix}objdump; ac_word=$2
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
5264if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5266else
5267 if test -n "$OBJDUMP"; then
5268 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281done
5282 done
5283IFS=$as_save_IFS
5284
5285fi
5286fi
5287OBJDUMP=$ac_cv_prog_OBJDUMP
5288if test -n "$OBJDUMP"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5290$as_echo "$OBJDUMP" >&6; }
5291else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293$as_echo "no" >&6; }
5294fi
5295
5296
5297fi
5298if test -z "$ac_cv_prog_OBJDUMP"; then
5299 ac_ct_OBJDUMP=$OBJDUMP
5300 # Extract the first word of "objdump", so it can be a program name with args.
5301set dummy objdump; ac_word=$2
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303$as_echo_n "checking for $ac_word... " >&6; }
5304if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5306else
5307 if test -n "$ac_ct_OBJDUMP"; then
5308 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321done
5322 done
5323IFS=$as_save_IFS
5324
5325fi
5326fi
5327ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5328if test -n "$ac_ct_OBJDUMP"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5330$as_echo "$ac_ct_OBJDUMP" >&6; }
5331else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333$as_echo "no" >&6; }
5334fi
5335
5336 if test "x$ac_ct_OBJDUMP" = x; then
5337 OBJDUMP="false"
5338 else
5339 case $cross_compiling:$ac_tool_warned in
5340yes:)
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5343ac_tool_warned=yes ;;
5344esac
5345 OBJDUMP=$ac_ct_OBJDUMP
5346 fi
5347else
5348 OBJDUMP="$ac_cv_prog_OBJDUMP"
5349fi
5350
5351test -z "$OBJDUMP" && OBJDUMP=objdump
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5362$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5363if test "${lt_cv_deplibs_check_method+set}" = set; then :
5364 $as_echo_n "(cached) " >&6
5365else
5366 lt_cv_file_magic_cmd='$MAGIC_CMD'
5367lt_cv_file_magic_test_file=
5368lt_cv_deplibs_check_method='unknown'
5369# Need to set the preceding variable on all platforms that support
5370# interlibrary dependencies.
5371# 'none' -- dependencies not supported.
5372# `unknown' -- same as none, but documents that we really don't know.
5373# 'pass_all' -- all dependencies passed with no checks.
5374# 'test_compile' -- check by making test program.
5375# 'file_magic [[regex]]' -- check by looking for files in library path
5376# which responds to the $file_magic_cmd with a given extended regex.
5377# If you have `file' or equivalent on your system and you're not sure
5378# whether `pass_all' will *always* work, you probably want this one.
5379
5380case $host_os in
5381aix[4-9]*)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384
5385beos*)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388
5389bsdi[45]*)
5390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5391 lt_cv_file_magic_cmd='/usr/bin/file -L'
5392 lt_cv_file_magic_test_file=/shlib/libc.so
5393 ;;
5394
5395cygwin*)
5396 # func_win32_libid is a shell function defined in ltmain.sh
5397 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5398 lt_cv_file_magic_cmd='func_win32_libid'
5399 ;;
5400
5401mingw* | pw32*)
5402 # Base MSYS/MinGW do not provide the 'file' command needed by
5403 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5404 # unless we find 'file', for example because we are cross-compiling.
5405 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5406 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5407 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5408 lt_cv_file_magic_cmd='func_win32_libid'
5409 else
5410 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5411 lt_cv_file_magic_cmd='$OBJDUMP -f'
5412 fi
5413 ;;
5414
5415cegcc*)
5416 # use the weaker test based on 'objdump'. See mingw*.
5417 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5418 lt_cv_file_magic_cmd='$OBJDUMP -f'
5419 ;;
5420
5421darwin* | rhapsody*)
5422 lt_cv_deplibs_check_method=pass_all
5423 ;;
5424
5425freebsd* | dragonfly*)
5426 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5427 case $host_cpu in
5428 i*86 )
5429 # Not sure whether the presence of OpenBSD here was a mistake.
5430 # Let's accept both of them until this is cleared up.
5431 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5432 lt_cv_file_magic_cmd=/usr/bin/file
5433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5434 ;;
5435 esac
5436 else
5437 lt_cv_deplibs_check_method=pass_all
5438 fi
5439 ;;
5440
5441gnu*)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444
5445haiku*)
5446 lt_cv_deplibs_check_method=pass_all
5447 ;;
5448
5449hpux10.20* | hpux11*)
5450 lt_cv_file_magic_cmd=/usr/bin/file
5451 case $host_cpu in
5452 ia64*)
5453 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5454 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5455 ;;
5456 hppa*64*)
5457 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]'
5458 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5459 ;;
5460 *)
5461 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5462 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5463 ;;
5464 esac
5465 ;;
5466
5467interix[3-9]*)
5468 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5470 ;;
5471
5472irix5* | irix6* | nonstopux*)
5473 case $LD in
5474 *-32|*"-32 ") libmagic=32-bit;;
5475 *-n32|*"-n32 ") libmagic=N32;;
5476 *-64|*"-64 ") libmagic=64-bit;;
5477 *) libmagic=never-match;;
5478 esac
5479 lt_cv_deplibs_check_method=pass_all
5480 ;;
5481
5482# This must be Linux ELF.
5483linux* | k*bsd*-gnu | kopensolaris*-gnu)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486
5487netbsd*)
5488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5490 else
5491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5492 fi
5493 ;;
5494
5495newos6*)
5496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5497 lt_cv_file_magic_cmd=/usr/bin/file
5498 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5499 ;;
5500
5501*nto* | *qnx*)
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504
5505openbsd*)
5506 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5508 else
5509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5510 fi
5511 ;;
5512
5513osf3* | osf4* | osf5*)
5514 lt_cv_deplibs_check_method=pass_all
5515 ;;
5516
5517rdos*)
5518 lt_cv_deplibs_check_method=pass_all
5519 ;;
5520
5521solaris*)
5522 lt_cv_deplibs_check_method=pass_all
5523 ;;
5524
5525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5526 lt_cv_deplibs_check_method=pass_all
5527 ;;
5528
5529sysv4 | sysv4.3*)
5530 case $host_vendor in
5531 motorola)
5532 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]'
5533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5534 ;;
5535 ncr)
5536 lt_cv_deplibs_check_method=pass_all
5537 ;;
5538 sequent)
5539 lt_cv_file_magic_cmd='/bin/file'
5540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5541 ;;
5542 sni)
5543 lt_cv_file_magic_cmd='/bin/file'
5544 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5545 lt_cv_file_magic_test_file=/lib/libc.so
5546 ;;
5547 siemens)
5548 lt_cv_deplibs_check_method=pass_all
5549 ;;
5550 pc)
5551 lt_cv_deplibs_check_method=pass_all
5552 ;;
5553 esac
5554 ;;
5555
5556tpf*)
5557 lt_cv_deplibs_check_method=pass_all
5558 ;;
5559esac
5560
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5563$as_echo "$lt_cv_deplibs_check_method" >&6; }
5564file_magic_cmd=$lt_cv_file_magic_cmd
5565deplibs_check_method=$lt_cv_deplibs_check_method
5566test -z "$deplibs_check_method" && deplibs_check_method=unknown
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579if test -n "$ac_tool_prefix"; then
5580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5581set dummy ${ac_tool_prefix}ar; ac_word=$2
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if test "${ac_cv_prog_AR+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
5586else
5587 if test -n "$AR"; then
5588 ac_cv_prog_AR="$AR" # Let the user override the test.
5589else
5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_AR="${ac_tool_prefix}ar"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601done
5602 done
5603IFS=$as_save_IFS
5604
5605fi
5606fi
5607AR=$ac_cv_prog_AR
5608if test -n "$AR"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5610$as_echo "$AR" >&6; }
5611else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613$as_echo "no" >&6; }
5614fi
5615
5616
5617fi
5618if test -z "$ac_cv_prog_AR"; then
5619 ac_ct_AR=$AR
5620 # Extract the first word of "ar", so it can be a program name with args.
5621set dummy ar; ac_word=$2
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
5624if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
5626else
5627 if test -n "$ac_ct_AR"; then
5628 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_prog_ac_ct_AR="ar"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642 done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647ac_ct_AR=$ac_cv_prog_ac_ct_AR
5648if test -n "$ac_ct_AR"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5650$as_echo "$ac_ct_AR" >&6; }
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654fi
5655
5656 if test "x$ac_ct_AR" = x; then
5657 AR="false"
5658 else
5659 case $cross_compiling:$ac_tool_warned in
5660yes:)
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663ac_tool_warned=yes ;;
5664esac
5665 AR=$ac_ct_AR
5666 fi
5667else
5668 AR="$ac_cv_prog_AR"
5669fi
5670
5671test -z "$AR" && AR=ar
5672test -z "$AR_FLAGS" && AR_FLAGS=cru
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5686set dummy ${ac_tool_prefix}strip; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if test "${ac_cv_prog_STRIP+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 if test -n "$STRIP"; then
5693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707 done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712STRIP=$ac_cv_prog_STRIP
5713if test -n "$STRIP"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5715$as_echo "$STRIP" >&6; }
5716else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722fi
5723if test -z "$ac_cv_prog_STRIP"; then
5724 ac_ct_STRIP=$STRIP
5725 # Extract the first word of "strip", so it can be a program name with args.
5726set dummy strip; ac_word=$2
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728$as_echo_n "checking for $ac_word... " >&6; }
5729if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5731else
5732 if test -n "$ac_ct_STRIP"; then
5733 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742 ac_cv_prog_ac_ct_STRIP="strip"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
5746done
5747 done
5748IFS=$as_save_IFS
5749
5750fi
5751fi
5752ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5753if test -n "$ac_ct_STRIP"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5755$as_echo "$ac_ct_STRIP" >&6; }
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }
5759fi
5760
5761 if test "x$ac_ct_STRIP" = x; then
5762 STRIP=":"
5763 else
5764 case $cross_compiling:$ac_tool_warned in
5765yes:)
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768ac_tool_warned=yes ;;
5769esac
5770 STRIP=$ac_ct_STRIP
5771 fi
5772else
5773 STRIP="$ac_cv_prog_STRIP"
5774fi
5775
5776test -z "$STRIP" && STRIP=:
5777
5778
5779
5780
5781
5782
5783if test -n "$ac_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5785set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
5788if test "${ac_cv_prog_RANLIB+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790else
5791 if test -n "$RANLIB"; then
5792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805done
5806 done
5807IFS=$as_save_IFS
5808
5809fi
5810fi
5811RANLIB=$ac_cv_prog_RANLIB
5812if test -n "$RANLIB"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5814$as_echo "$RANLIB" >&6; }
5815else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }
5818fi
5819
5820
5821fi
5822if test -z "$ac_cv_prog_RANLIB"; then
5823 ac_ct_RANLIB=$RANLIB
5824 # Extract the first word of "ranlib", so it can be a program name with args.
5825set dummy ranlib; ac_word=$2
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830else
5831 if test -n "$ac_ct_RANLIB"; then
5832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_ac_ct_RANLIB="ranlib"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846 done
5847IFS=$as_save_IFS
5848
5849fi
5850fi
5851ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5852if test -n "$ac_ct_RANLIB"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5854$as_echo "$ac_ct_RANLIB" >&6; }
5855else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858fi
5859
5860 if test "x$ac_ct_RANLIB" = x; then
5861 RANLIB=":"
5862 else
5863 case $cross_compiling:$ac_tool_warned in
5864yes:)
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867ac_tool_warned=yes ;;
5868esac
5869 RANLIB=$ac_ct_RANLIB
5870 fi
5871else
5872 RANLIB="$ac_cv_prog_RANLIB"
5873fi
5874
5875test -z "$RANLIB" && RANLIB=:
5876
5877
5878
5879
5880
5881
5882# Determine commands to create old-style static archives.
5883old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5884old_postinstall_cmds='chmod 644 $oldlib'
5885old_postuninstall_cmds=
5886
5887if test -n "$RANLIB"; then
5888 case $host_os in
5889 openbsd*)
5890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5891 ;;
5892 *)
5893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5894 ;;
5895 esac
5896 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5897fi
5898
5899case $host_os in
5900 darwin*)
5901 lock_old_archive_extraction=yes ;;
5902 *)
5903 lock_old_archive_extraction=no ;;
5904esac
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944# If no C compiler was specified, use CC.
5945LTCC=${LTCC-"$CC"}
5946
5947# If no C compiler flags were specified, use CFLAGS.
5948LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5949
5950# Allow CC to be a program name with arguments.
5951compiler=$CC
5952
5953
5954# Check for command to grab the raw symbol name followed by C symbol from nm.
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5956$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5957if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959else
5960
5961# These are sane defaults that work on at least a few old systems.
5962# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5963
5964# Character class describing NM global symbol codes.
5965symcode='[BCDEGRST]'
5966
5967# Regexp to match symbols that can be accessed directly from C.
5968sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5969
5970# Define system-specific variables.
5971case $host_os in
5972aix*)
5973 symcode='[BCDT]'
5974 ;;
5975cygwin* | mingw* | pw32* | cegcc*)
5976 symcode='[ABCDGISTW]'
5977 ;;
5978hpux*)
5979 if test "$host_cpu" = ia64; then
5980 symcode='[ABCDEGRST]'
5981 fi
5982 ;;
5983irix* | nonstopux*)
5984 symcode='[BCDEGRST]'
5985 ;;
5986osf*)
5987 symcode='[BCDEGQRST]'
5988 ;;
5989solaris*)
5990 symcode='[BDRT]'
5991 ;;
5992sco3.2v5*)
5993 symcode='[DT]'
5994 ;;
5995sysv4.2uw2*)
5996 symcode='[DT]'
5997 ;;
5998sysv5* | sco5v6* | unixware* | OpenUNIX*)
5999 symcode='[ABDT]'
6000 ;;
6001sysv4)
6002 symcode='[DFNSTU]'
6003 ;;
6004esac
6005
6006# If we're using GNU nm, then use its standard symbol codes.
6007case `$NM -V 2>&1` in
6008*GNU* | *'with BFD'*)
6009 symcode='[ABCDGIRSTW]' ;;
6010esac
6011
6012# Transform an extracted symbol line into a proper C declaration.
6013# Some systems (esp. on ia64) link data and code symbols differently,
6014# so use this general approach.
6015lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6016
6017# Transform an extracted symbol line into symbol name and symbol address
6018lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6019lt_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'"
6020
6021# Handle CRLF in mingw tool chain
6022opt_cr=
6023case $build_os in
6024mingw*)
6025 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6026 ;;
6027esac
6028
6029# Try without a prefix underscore, then with it.
6030for ac_symprfx in "" "_"; do
6031
6032 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6033 symxfrm="\\1 $ac_symprfx\\2 \\2"
6034
6035 # Write the raw and C identifiers.
6036 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6037 # Fake it for dumpbin and say T for any non-static function
6038 # and D for any global variable.
6039 # Also find C++ and __fastcall symbols from MSVC++,
6040 # which start with @ or ?.
6041 lt_cv_sys_global_symbol_pipe="$AWK '"\
6042" {last_section=section; section=\$ 3};"\
6043" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6044" \$ 0!~/External *\|/{next};"\
6045" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6046" {if(hide[section]) next};"\
6047" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6048" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6049" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6050" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6051" ' prfx=^$ac_symprfx"
6052 else
6053 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6054 fi
6055
6056 # Check to see that the pipe works correctly.
6057 pipe_works=no
6058
6059 rm -f conftest*
6060 cat > conftest.$ac_ext <<_LT_EOF
6061#ifdef __cplusplus
6062extern "C" {
6063#endif
6064char nm_test_var;
6065void nm_test_func(void);
6066void nm_test_func(void){}
6067#ifdef __cplusplus
6068}
6069#endif
6070int main(){nm_test_var='a';nm_test_func();return(0);}
6071_LT_EOF
6072
6073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6074 (eval $ac_compile) 2>&5
6075 ac_status=$?
6076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6077 test $ac_status = 0; }; then
6078 # Now try to grab the symbols.
6079 nlist=conftest.nm
6080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6081 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6082 ac_status=$?
6083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6084 test $ac_status = 0; } && test -s "$nlist"; then
6085 # Try sorting and uniquifying the output.
6086 if sort "$nlist" | uniq > "$nlist"T; then
6087 mv -f "$nlist"T "$nlist"
6088 else
6089 rm -f "$nlist"T
6090 fi
6091
6092 # Make sure that we snagged all the symbols we need.
6093 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6094 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6095 cat <<_LT_EOF > conftest.$ac_ext
6096#ifdef __cplusplus
6097extern "C" {
6098#endif
6099
6100_LT_EOF
6101 # Now generate the symbol file.
6102 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6103
6104 cat <<_LT_EOF >> conftest.$ac_ext
6105
6106/* The mapping between symbol names and symbols. */
6107const struct {
6108 const char *name;
6109 void *address;
6110}
6111lt__PROGRAM__LTX_preloaded_symbols[] =
6112{
6113 { "@PROGRAM@", (void *) 0 },
6114_LT_EOF
6115 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6116 cat <<\_LT_EOF >> conftest.$ac_ext
6117 {0, (void *) 0}
6118};
6119
6120/* This works around a problem in FreeBSD linker */
6121#ifdef FREEBSD_WORKAROUND
6122static const void *lt_preloaded_setup() {
6123 return lt__PROGRAM__LTX_preloaded_symbols;
6124}
6125#endif
6126
6127#ifdef __cplusplus
6128}
6129#endif
6130_LT_EOF
6131 # Now try linking the two files.
6132 mv conftest.$ac_objext conftstm.$ac_objext
6133 lt_save_LIBS="$LIBS"
6134 lt_save_CFLAGS="$CFLAGS"
6135 LIBS="conftstm.$ac_objext"
6136 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6138 (eval $ac_link) 2>&5
6139 ac_status=$?
6140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6142 pipe_works=yes
6143 fi
6144 LIBS="$lt_save_LIBS"
6145 CFLAGS="$lt_save_CFLAGS"
6146 else
6147 echo "cannot find nm_test_func in $nlist" >&5
6148 fi
6149 else
6150 echo "cannot find nm_test_var in $nlist" >&5
6151 fi
6152 else
6153 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6154 fi
6155 else
6156 echo "$progname: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6158 fi
6159 rm -rf conftest* conftst*
6160
6161 # Do not use the global_symbol_pipe unless it works.
6162 if test "$pipe_works" = yes; then
6163 break
6164 else
6165 lt_cv_sys_global_symbol_pipe=
6166 fi
6167done
6168
6169fi
6170
6171if test -z "$lt_cv_sys_global_symbol_pipe"; then
6172 lt_cv_sys_global_symbol_to_cdecl=
6173fi
6174if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6176$as_echo "failed" >&6; }
6177else
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6179$as_echo "ok" >&6; }
6180fi
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204# Check whether --enable-libtool-lock was given.
6205if test "${enable_libtool_lock+set}" = set; then :
6206 enableval=$enable_libtool_lock;
6207fi
6208
6209test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6210
6211# Some flags need to be propagated to the compiler or linker for good
6212# libtool support.
6213case $host in
6214ia64-*-hpux*)
6215 # Find out which ABI we are using.
6216 echo 'int i;' > conftest.$ac_ext
6217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218 (eval $ac_compile) 2>&5
6219 ac_status=$?
6220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221 test $ac_status = 0; }; then
6222 case `/usr/bin/file conftest.$ac_objext` in
6223 *ELF-32*)
6224 HPUX_IA64_MODE="32"
6225 ;;
6226 *ELF-64*)
6227 HPUX_IA64_MODE="64"
6228 ;;
6229 esac
6230 fi
6231 rm -rf conftest*
6232 ;;
6233*-*-irix6*)
6234 # Find out which ABI we are using.
6235 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6237 (eval $ac_compile) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; }; then
6241 if test "$lt_cv_prog_gnu_ld" = yes; then
6242 case `/usr/bin/file conftest.$ac_objext` in
6243 *32-bit*)
6244 LD="${LD-ld} -melf32bsmip"
6245 ;;
6246 *N32*)
6247 LD="${LD-ld} -melf32bmipn32"
6248 ;;
6249 *64-bit*)
6250 LD="${LD-ld} -melf64bmip"
6251 ;;
6252 esac
6253 else
6254 case `/usr/bin/file conftest.$ac_objext` in
6255 *32-bit*)
6256 LD="${LD-ld} -32"
6257 ;;
6258 *N32*)
6259 LD="${LD-ld} -n32"
6260 ;;
6261 *64-bit*)
6262 LD="${LD-ld} -64"
6263 ;;
6264 esac
6265 fi
6266 fi
6267 rm -rf conftest*
6268 ;;
6269
6270x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6271s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6272 # Find out which ABI we are using.
6273 echo 'int i;' > conftest.$ac_ext
6274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6275 (eval $ac_compile) 2>&5
6276 ac_status=$?
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }; then
6279 case `/usr/bin/file conftest.o` in
6280 *32-bit*)
6281 case $host in
6282 x86_64-*kfreebsd*-gnu)
6283 LD="${LD-ld} -m elf_i386_fbsd"
6284 ;;
6285 x86_64-*linux*)
6286 LD="${LD-ld} -m elf_i386"
6287 ;;
6288 ppc64-*linux*|powerpc64-*linux*)
6289 LD="${LD-ld} -m elf32ppclinux"
6290 ;;
6291 s390x-*linux*)
6292 LD="${LD-ld} -m elf_s390"
6293 ;;
6294 sparc64-*linux*)
6295 LD="${LD-ld} -m elf32_sparc"
6296 ;;
6297 esac
6298 ;;
6299 *64-bit*)
6300 case $host in
6301 x86_64-*kfreebsd*-gnu)
6302 LD="${LD-ld} -m elf_x86_64_fbsd"
6303 ;;
6304 x86_64-*linux*)
6305 LD="${LD-ld} -m elf_x86_64"
6306 ;;
6307 ppc*-*linux*|powerpc*-*linux*)
6308 LD="${LD-ld} -m elf64ppc"
6309 ;;
6310 s390*-*linux*|s390*-*tpf*)
6311 LD="${LD-ld} -m elf64_s390"
6312 ;;
6313 sparc*-*linux*)
6314 LD="${LD-ld} -m elf64_sparc"
6315 ;;
6316 esac
6317 ;;
6318 esac
6319 fi
6320 rm -rf conftest*
6321 ;;
6322
6323*-*-sco3.2v5*)
6324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6325 SAVE_CFLAGS="$CFLAGS"
6326 CFLAGS="$CFLAGS -belf"
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6328$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6329if test "${lt_cv_cc_needs_belf+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6331else
6332 ac_ext=c
6333ac_cpp='$CPP $CPPFLAGS'
6334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h. */
6340
6341int
6342main ()
6343{
6344
6345 ;
6346 return 0;
6347}
6348_ACEOF
6349if ac_fn_c_try_link "$LINENO"; then :
6350 lt_cv_cc_needs_belf=yes
6351else
6352 lt_cv_cc_needs_belf=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356 ac_ext=c
6357ac_cpp='$CPP $CPPFLAGS'
6358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6364$as_echo "$lt_cv_cc_needs_belf" >&6; }
6365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6367 CFLAGS="$SAVE_CFLAGS"
6368 fi
6369 ;;
6370sparc*-*solaris*)
6371 # Find out which ABI we are using.
6372 echo 'int i;' > conftest.$ac_ext
6373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6374 (eval $ac_compile) 2>&5
6375 ac_status=$?
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; }; then
6378 case `/usr/bin/file conftest.o` in
6379 *64-bit*)
6380 case $lt_cv_prog_gnu_ld in
6381 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6382 *)
6383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6384 LD="${LD-ld} -64"
6385 fi
6386 ;;
6387 esac
6388 ;;
6389 esac
6390 fi
6391 rm -rf conftest*
6392 ;;
6393esac
6394
6395need_locks="$enable_libtool_lock"
6396
6397
6398 case $host_os in
6399 rhapsody* | darwin*)
6400 if test -n "$ac_tool_prefix"; then
6401 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6402set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404$as_echo_n "checking for $ac_word... " >&6; }
6405if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6406 $as_echo_n "(cached) " >&6
6407else
6408 if test -n "$DSYMUTIL"; then
6409 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6410else
6411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412for as_dir in $PATH
6413do
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6421 fi
6422done
6423 done
6424IFS=$as_save_IFS
6425
6426fi
6427fi
6428DSYMUTIL=$ac_cv_prog_DSYMUTIL
6429if test -n "$DSYMUTIL"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6431$as_echo "$DSYMUTIL" >&6; }
6432else
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434$as_echo "no" >&6; }
6435fi
6436
6437
6438fi
6439if test -z "$ac_cv_prog_DSYMUTIL"; then
6440 ac_ct_DSYMUTIL=$DSYMUTIL
6441 # Extract the first word of "dsymutil", so it can be a program name with args.
6442set dummy dsymutil; ac_word=$2
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444$as_echo_n "checking for $ac_word... " >&6; }
6445if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447else
6448 if test -n "$ac_ct_DSYMUTIL"; then
6449 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6450else
6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452for as_dir in $PATH
6453do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462done
6463 done
6464IFS=$as_save_IFS
6465
6466fi
6467fi
6468ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6469if test -n "$ac_ct_DSYMUTIL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6471$as_echo "$ac_ct_DSYMUTIL" >&6; }
6472else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474$as_echo "no" >&6; }
6475fi
6476
6477 if test "x$ac_ct_DSYMUTIL" = x; then
6478 DSYMUTIL=":"
6479 else
6480 case $cross_compiling:$ac_tool_warned in
6481yes:)
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484ac_tool_warned=yes ;;
6485esac
6486 DSYMUTIL=$ac_ct_DSYMUTIL
6487 fi
6488else
6489 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6490fi
6491
6492 if test -n "$ac_tool_prefix"; then
6493 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6494set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496$as_echo_n "checking for $ac_word... " >&6; }
6497if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
6499else
6500 if test -n "$NMEDIT"; then
6501 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6510 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514done
6515 done
6516IFS=$as_save_IFS
6517
6518fi
6519fi
6520NMEDIT=$ac_cv_prog_NMEDIT
6521if test -n "$NMEDIT"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6523$as_echo "$NMEDIT" >&6; }
6524else
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526$as_echo "no" >&6; }
6527fi
6528
6529
6530fi
6531if test -z "$ac_cv_prog_NMEDIT"; then
6532 ac_ct_NMEDIT=$NMEDIT
6533 # Extract the first word of "nmedit", so it can be a program name with args.
6534set dummy nmedit; ac_word=$2
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536$as_echo_n "checking for $ac_word... " >&6; }
6537if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539else
6540 if test -n "$ac_ct_NMEDIT"; then
6541 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554done
6555 done
6556IFS=$as_save_IFS
6557
6558fi
6559fi
6560ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6561if test -n "$ac_ct_NMEDIT"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6563$as_echo "$ac_ct_NMEDIT" >&6; }
6564else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566$as_echo "no" >&6; }
6567fi
6568
6569 if test "x$ac_ct_NMEDIT" = x; then
6570 NMEDIT=":"
6571 else
6572 case $cross_compiling:$ac_tool_warned in
6573yes:)
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576ac_tool_warned=yes ;;
6577esac
6578 NMEDIT=$ac_ct_NMEDIT
6579 fi
6580else
6581 NMEDIT="$ac_cv_prog_NMEDIT"
6582fi
6583
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6586set dummy ${ac_tool_prefix}lipo; ac_word=$2
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588$as_echo_n "checking for $ac_word... " >&6; }
6589if test "${ac_cv_prog_LIPO+set}" = set; then :
6590 $as_echo_n "(cached) " >&6
6591else
6592 if test -n "$LIPO"; then
6593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606done
6607 done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
6612LIPO=$ac_cv_prog_LIPO
6613if test -n "$LIPO"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6615$as_echo "$LIPO" >&6; }
6616else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618$as_echo "no" >&6; }
6619fi
6620
6621
6622fi
6623if test -z "$ac_cv_prog_LIPO"; then
6624 ac_ct_LIPO=$LIPO
6625 # Extract the first word of "lipo", so it can be a program name with args.
6626set dummy lipo; ac_word=$2
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
6629if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631else
6632 if test -n "$ac_ct_LIPO"; then
6633 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_ac_ct_LIPO="lipo"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
6647 done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6653if test -n "$ac_ct_LIPO"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6655$as_echo "$ac_ct_LIPO" >&6; }
6656else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661 if test "x$ac_ct_LIPO" = x; then
6662 LIPO=":"
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665yes:)
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668ac_tool_warned=yes ;;
6669esac
6670 LIPO=$ac_ct_LIPO
6671 fi
6672else
6673 LIPO="$ac_cv_prog_LIPO"
6674fi
6675
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6678set dummy ${ac_tool_prefix}otool; ac_word=$2
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680$as_echo_n "checking for $ac_word... " >&6; }
6681if test "${ac_cv_prog_OTOOL+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6683else
6684 if test -n "$OTOOL"; then
6685 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6686else
6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698done
6699 done
6700IFS=$as_save_IFS
6701
6702fi
6703fi
6704OTOOL=$ac_cv_prog_OTOOL
6705if test -n "$OTOOL"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6707$as_echo "$OTOOL" >&6; }
6708else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710$as_echo "no" >&6; }
6711fi
6712
6713
6714fi
6715if test -z "$ac_cv_prog_OTOOL"; then
6716 ac_ct_OTOOL=$OTOOL
6717 # Extract the first word of "otool", so it can be a program name with args.
6718set dummy otool; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723else
6724 if test -n "$ac_ct_OTOOL"; then
6725 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_OTOOL="otool"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739 done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6745if test -n "$ac_ct_OTOOL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6747$as_echo "$ac_ct_OTOOL" >&6; }
6748else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753 if test "x$ac_ct_OTOOL" = x; then
6754 OTOOL=":"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757yes:)
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760ac_tool_warned=yes ;;
6761esac
6762 OTOOL=$ac_ct_OTOOL
6763 fi
6764else
6765 OTOOL="$ac_cv_prog_OTOOL"
6766fi
6767
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6770set dummy ${ac_tool_prefix}otool64; ac_word=$2
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772$as_echo_n "checking for $ac_word... " >&6; }
6773if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6774 $as_echo_n "(cached) " >&6
6775else
6776 if test -n "$OTOOL64"; then
6777 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6778else
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790done
6791 done
6792IFS=$as_save_IFS
6793
6794fi
6795fi
6796OTOOL64=$ac_cv_prog_OTOOL64
6797if test -n "$OTOOL64"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6799$as_echo "$OTOOL64" >&6; }
6800else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802$as_echo "no" >&6; }
6803fi
6804
6805
6806fi
6807if test -z "$ac_cv_prog_OTOOL64"; then
6808 ac_ct_OTOOL64=$OTOOL64
6809 # Extract the first word of "otool64", so it can be a program name with args.
6810set dummy otool64; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815else
6816 if test -n "$ac_ct_OTOOL64"; then
6817 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_OTOOL64="otool64"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831 done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6837if test -n "$ac_ct_OTOOL64"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6839$as_echo "$ac_ct_OTOOL64" >&6; }
6840else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845 if test "x$ac_ct_OTOOL64" = x; then
6846 OTOOL64=":"
6847 else
6848 case $cross_compiling:$ac_tool_warned in
6849yes:)
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852ac_tool_warned=yes ;;
6853esac
6854 OTOOL64=$ac_ct_OTOOL64
6855 fi
6856else
6857 OTOOL64="$ac_cv_prog_OTOOL64"
6858fi
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6887$as_echo_n "checking for -single_module linker flag... " >&6; }
6888if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6890else
6891 lt_cv_apple_cc_single_mod=no
6892 if test -z "${LT_MULTI_MODULE}"; then
6893 # By default we will add the -single_module flag. You can override
6894 # by either setting the environment variable LT_MULTI_MODULE
6895 # non-empty at configure time, or by adding -multi_module to the
6896 # link flags.
6897 rm -rf libconftest.dylib*
6898 echo "int foo(void){return 1;}" > conftest.c
6899 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6900-dynamiclib -Wl,-single_module conftest.c" >&5
6901 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6902 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6903 _lt_result=$?
6904 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6905 lt_cv_apple_cc_single_mod=yes
6906 else
6907 cat conftest.err >&5
6908 fi
6909 rm -rf libconftest.dylib*
6910 rm -f conftest.*
6911 fi
6912fi
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6914$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6916$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6917if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919else
6920 lt_cv_ld_exported_symbols_list=no
6921 save_LDFLAGS=$LDFLAGS
6922 echo "_main" > conftest.sym
6923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925/* end confdefs.h. */
6926
6927int
6928main ()
6929{
6930
6931 ;
6932 return 0;
6933}
6934_ACEOF
6935if ac_fn_c_try_link "$LINENO"; then :
6936 lt_cv_ld_exported_symbols_list=yes
6937else
6938 lt_cv_ld_exported_symbols_list=no
6939fi
6940rm -f core conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6942 LDFLAGS="$save_LDFLAGS"
6943
6944fi
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6946$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6948$as_echo_n "checking for -force_load linker flag... " >&6; }
6949if test "${lt_cv_ld_force_load+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6951else
6952 lt_cv_ld_force_load=no
6953 cat > conftest.c << _LT_EOF
6954int forced_loaded() { return 2;}
6955_LT_EOF
6956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6958 echo "$AR cru libconftest.a conftest.o" >&5
6959 $AR cru libconftest.a conftest.o 2>&5
6960 cat > conftest.c << _LT_EOF
6961int main() { return 0;}
6962_LT_EOF
6963 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6964 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6965 _lt_result=$?
6966 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6967 lt_cv_ld_force_load=yes
6968 else
6969 cat conftest.err >&5
6970 fi
6971 rm -f conftest.err libconftest.a conftest conftest.c
6972 rm -rf conftest.dSYM
6973
6974fi
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6976$as_echo "$lt_cv_ld_force_load" >&6; }
6977 case $host_os in
6978 rhapsody* | darwin1.[012])
6979 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6980 darwin1.*)
6981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6982 darwin*) # darwin 5.x on
6983 # if running on 10.5 or later, the deployment target defaults
6984 # to the OS version, if on x86, and 10.4, the deployment
6985 # target defaults to 10.4. Don't you love it?
6986 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6987 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6989 10.[012]*)
6990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6991 10.*)
6992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6993 esac
6994 ;;
6995 esac
6996 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6997 _lt_dar_single_mod='$single_module'
6998 fi
6999 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7000 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7001 else
7002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7003 fi
7004 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7005 _lt_dsymutil='~$DSYMUTIL $lib || :'
7006 else
7007 _lt_dsymutil=
7008 fi
7009 ;;
7010 esac
7011
7012ac_ext=c
7013ac_cpp='$CPP $CPPFLAGS'
7014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7018$as_echo_n "checking how to run the C preprocessor... " >&6; }
7019# On Suns, sometimes $CPP names a directory.
7020if test -n "$CPP" && test -d "$CPP"; then
7021 CPP=
7022fi
7023if test -z "$CPP"; then
7024 if test "${ac_cv_prog_CPP+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7026else
7027 # Double quotes because CPP needs to be expanded
7028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7029 do
7030 ac_preproc_ok=false
7031for ac_c_preproc_warn_flag in '' yes
7032do
7033 # Use a header file that comes with gcc, so configuring glibc
7034 # with a fresh cross-compiler works.
7035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7036 # <limits.h> exists even on freestanding compilers.
7037 # On the NeXT, cc -E runs the code through the compiler's parser,
7038 # not just through cpp. "Syntax error" is here to catch this case.
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h. */
7041#ifdef __STDC__
7042# include <limits.h>
7043#else
7044# include <assert.h>
7045#endif
7046 Syntax error
7047_ACEOF
7048if ac_fn_c_try_cpp "$LINENO"; then :
7049
7050else
7051 # Broken: fails on valid input.
7052continue
7053fi
7054rm -f conftest.err conftest.$ac_ext
7055
7056 # OK, works on sane cases. Now check whether nonexistent headers
7057 # can be detected and how.
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h. */
7060#include <ac_nonexistent.h>
7061_ACEOF
7062if ac_fn_c_try_cpp "$LINENO"; then :
7063 # Broken: success on invalid input.
7064continue
7065else
7066 # Passes both tests.
7067ac_preproc_ok=:
7068break
7069fi
7070rm -f conftest.err conftest.$ac_ext
7071
7072done
7073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7074rm -f conftest.err conftest.$ac_ext
7075if $ac_preproc_ok; then :
7076 break
7077fi
7078
7079 done
7080 ac_cv_prog_CPP=$CPP
7081
7082fi
7083 CPP=$ac_cv_prog_CPP
7084else
7085 ac_cv_prog_CPP=$CPP
7086fi
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7088$as_echo "$CPP" >&6; }
7089ac_preproc_ok=false
7090for ac_c_preproc_warn_flag in '' yes
7091do
7092 # Use a header file that comes with gcc, so configuring glibc
7093 # with a fresh cross-compiler works.
7094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7095 # <limits.h> exists even on freestanding compilers.
7096 # On the NeXT, cc -E runs the code through the compiler's parser,
7097 # not just through cpp. "Syntax error" is here to catch this case.
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h. */
7100#ifdef __STDC__
7101# include <limits.h>
7102#else
7103# include <assert.h>
7104#endif
7105 Syntax error
7106_ACEOF
7107if ac_fn_c_try_cpp "$LINENO"; then :
7108
7109else
7110 # Broken: fails on valid input.
7111continue
7112fi
7113rm -f conftest.err conftest.$ac_ext
7114
7115 # OK, works on sane cases. Now check whether nonexistent headers
7116 # can be detected and how.
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118/* end confdefs.h. */
7119#include <ac_nonexistent.h>
7120_ACEOF
7121if ac_fn_c_try_cpp "$LINENO"; then :
7122 # Broken: success on invalid input.
7123continue
7124else
7125 # Passes both tests.
7126ac_preproc_ok=:
7127break
7128fi
7129rm -f conftest.err conftest.$ac_ext
7130
7131done
7132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7133rm -f conftest.err conftest.$ac_ext
7134if $ac_preproc_ok; then :
7135
7136else
7137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7139as_fn_error "C preprocessor \"$CPP\" fails sanity check
7140See \`config.log' for more details." "$LINENO" 5; }
7141fi
7142
7143ac_ext=c
7144ac_cpp='$CPP $CPPFLAGS'
7145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147ac_compiler_gnu=$ac_cv_c_compiler_gnu
7148
7149
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7151$as_echo_n "checking for ANSI C header files... " >&6; }
7152if test "${ac_cv_header_stdc+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7154else
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h. */
7157#include <stdlib.h>
7158#include <stdarg.h>
7159#include <string.h>
7160#include <float.h>
7161
7162int
7163main ()
7164{
7165
7166 ;
7167 return 0;
7168}
7169_ACEOF
7170if ac_fn_c_try_compile "$LINENO"; then :
7171 ac_cv_header_stdc=yes
7172else
7173 ac_cv_header_stdc=no
7174fi
7175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176
7177if test $ac_cv_header_stdc = yes; then
7178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h. */
7181#include <string.h>
7182
7183_ACEOF
7184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185 $EGREP "memchr" >/dev/null 2>&1; then :
7186
7187else
7188 ac_cv_header_stdc=no
7189fi
7190rm -f conftest*
7191
7192fi
7193
7194if test $ac_cv_header_stdc = yes; then
7195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h. */
7198#include <stdlib.h>
7199
7200_ACEOF
7201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202 $EGREP "free" >/dev/null 2>&1; then :
7203
7204else
7205 ac_cv_header_stdc=no
7206fi
7207rm -f conftest*
7208
7209fi
7210
7211if test $ac_cv_header_stdc = yes; then
7212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7213 if test "$cross_compiling" = yes; then :
7214 :
7215else
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217/* end confdefs.h. */
7218#include <ctype.h>
7219#include <stdlib.h>
7220#if ((' ' & 0x0FF) == 0x020)
7221# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7222# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7223#else
7224# define ISLOWER(c) \
7225 (('a' <= (c) && (c) <= 'i') \
7226 || ('j' <= (c) && (c) <= 'r') \
7227 || ('s' <= (c) && (c) <= 'z'))
7228# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7229#endif
7230
7231#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7232int
7233main ()
7234{
7235 int i;
7236 for (i = 0; i < 256; i++)
7237 if (XOR (islower (i), ISLOWER (i))
7238 || toupper (i) != TOUPPER (i))
7239 return 2;
7240 return 0;
7241}
7242_ACEOF
7243if ac_fn_c_try_run "$LINENO"; then :
7244
7245else
7246 ac_cv_header_stdc=no
7247fi
7248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7249 conftest.$ac_objext conftest.beam conftest.$ac_ext
7250fi
7251
7252fi
7253fi
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7255$as_echo "$ac_cv_header_stdc" >&6; }
7256if test $ac_cv_header_stdc = yes; then
7257
7258$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7259
7260fi
7261
7262# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7263for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7264 inttypes.h stdint.h unistd.h
7265do :
7266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7267ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7268"
7269eval as_val=\$$as_ac_Header
7270 if test "x$as_val" = x""yes; then :
7271 cat >>confdefs.h <<_ACEOF
7272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7273_ACEOF
7274
7275fi
7276
7277done
7278
7279
7280for ac_header in dlfcn.h
7281do :
7282 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7283"
7284if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7285 cat >>confdefs.h <<_ACEOF
7286#define HAVE_DLFCN_H 1
7287_ACEOF
7288
7289fi
7290
7291done
7292
7293if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7295set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297$as_echo_n "checking for $ac_word... " >&6; }
7298if test "${ac_cv_prog_GOC+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7300else
7301 if test -n "$GOC"; then
7302 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7303else
7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315done
7316 done
7317IFS=$as_save_IFS
7318
7319fi
7320fi
7321GOC=$ac_cv_prog_GOC
7322if test -n "$GOC"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7324$as_echo "$GOC" >&6; }
7325else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327$as_echo "no" >&6; }
7328fi
7329
7330
7331fi
7332if test -z "$ac_cv_prog_GOC"; then
7333 ac_ct_GOC=$GOC
7334 # Extract the first word of "gccgo", so it can be a program name with args.
7335set dummy gccgo; ac_word=$2
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337$as_echo_n "checking for $ac_word... " >&6; }
7338if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340else
7341 if test -n "$ac_ct_GOC"; then
7342 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7343else
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_ac_ct_GOC="gccgo"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355done
7356 done
7357IFS=$as_save_IFS
7358
7359fi
7360fi
7361ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7362if test -n "$ac_ct_GOC"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7364$as_echo "$ac_ct_GOC" >&6; }
7365else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367$as_echo "no" >&6; }
7368fi
7369
7370 if test "x$ac_ct_GOC" = x; then
7371 GOC=""
7372 else
7373 case $cross_compiling:$ac_tool_warned in
7374yes:)
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377ac_tool_warned=yes ;;
7378esac
7379 GOC=$ac_ct_GOC
7380 fi
7381else
7382 GOC="$ac_cv_prog_GOC"
7383fi
7384
7385
7386
7387
7388
7389
7390# Set options
7391
7392
7393
7394
7395 enable_win32_dll=no
7396
7397
7398 # Check whether --enable-shared was given.
7399if test "${enable_shared+set}" = set; then :
7400 enableval=$enable_shared; p=${PACKAGE-default}
7401 case $enableval in
7402 yes) enable_shared=yes ;;
7403 no) enable_shared=no ;;
7404 *)
7405 enable_shared=no
7406 # Look at the argument we got. We use all the common list separators.
7407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7408 for pkg in $enableval; do
7409 IFS="$lt_save_ifs"
7410 if test "X$pkg" = "X$p"; then
7411 enable_shared=yes
7412 fi
7413 done
7414 IFS="$lt_save_ifs"
7415 ;;
7416 esac
7417else
7418 enable_shared=yes
7419fi
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 # Check whether --enable-static was given.
7430if test "${enable_static+set}" = set; then :
7431 enableval=$enable_static; p=${PACKAGE-default}
7432 case $enableval in
7433 yes) enable_static=yes ;;
7434 no) enable_static=no ;;
7435 *)
7436 enable_static=no
7437 # Look at the argument we got. We use all the common list separators.
7438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7439 for pkg in $enableval; do
7440 IFS="$lt_save_ifs"
7441 if test "X$pkg" = "X$p"; then
7442 enable_static=yes
7443 fi
7444 done
7445 IFS="$lt_save_ifs"
7446 ;;
7447 esac
7448else
7449 enable_static=yes
7450fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461# Check whether --with-pic was given.
7462if test "${with_pic+set}" = set; then :
7463 withval=$with_pic; pic_mode="$withval"
7464else
7465 pic_mode=default
7466fi
7467
7468
7469test -z "$pic_mode" && pic_mode=default
7470
7471
7472
7473
7474
7475
7476
7477 # Check whether --enable-fast-install was given.
7478if test "${enable_fast_install+set}" = set; then :
7479 enableval=$enable_fast_install; p=${PACKAGE-default}
7480 case $enableval in
7481 yes) enable_fast_install=yes ;;
7482 no) enable_fast_install=no ;;
7483 *)
7484 enable_fast_install=no
7485 # Look at the argument we got. We use all the common list separators.
7486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7487 for pkg in $enableval; do
7488 IFS="$lt_save_ifs"
7489 if test "X$pkg" = "X$p"; then
7490 enable_fast_install=yes
7491 fi
7492 done
7493 IFS="$lt_save_ifs"
7494 ;;
7495 esac
7496else
7497 enable_fast_install=yes
7498fi
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510# This can be used to rebuild libtool when needed
7511LIBTOOL_DEPS="$ltmain"
7512
7513# Always use our own libtool.
7514LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541test -z "$LN_S" && LN_S="ln -s"
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556if test -n "${ZSH_VERSION+set}" ; then
7557 setopt NO_GLOB_SUBST
7558fi
7559
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7561$as_echo_n "checking for objdir... " >&6; }
7562if test "${lt_cv_objdir+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564else
7565 rm -f .libs 2>/dev/null
7566mkdir .libs 2>/dev/null
7567if test -d .libs; then
7568 lt_cv_objdir=.libs
7569else
7570 # MS-DOS does not allow filenames that begin with a dot.
7571 lt_cv_objdir=_libs
7572fi
7573rmdir .libs 2>/dev/null
7574fi
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7576$as_echo "$lt_cv_objdir" >&6; }
7577objdir=$lt_cv_objdir
7578
7579
7580
7581
7582
7583cat >>confdefs.h <<_ACEOF
7584#define LT_OBJDIR "$lt_cv_objdir/"
7585_ACEOF
7586
7587
7588
7589
7590case $host_os in
7591aix3*)
7592 # AIX sometimes has problems with the GCC collect2 program. For some
7593 # reason, if we set the COLLECT_NAMES environment variable, the problems
7594 # vanish in a puff of smoke.
7595 if test "X${COLLECT_NAMES+set}" != Xset; then
7596 COLLECT_NAMES=
7597 export COLLECT_NAMES
7598 fi
7599 ;;
7600esac
7601
7602# Global variables:
7603ofile=libtool
7604can_build_shared=yes
7605
7606# All known linkers require a `.a' archive for static linking (except MSVC,
7607# which needs '.lib').
7608libext=a
7609
7610with_gnu_ld="$lt_cv_prog_gnu_ld"
7611
7612old_CC="$CC"
7613old_CFLAGS="$CFLAGS"
7614
7615# Set sane defaults for various variables
7616test -z "$CC" && CC=cc
7617test -z "$LTCC" && LTCC=$CC
7618test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7619test -z "$LD" && LD=ld
7620test -z "$ac_objext" && ac_objext=o
7621
7622for cc_temp in $compiler""; do
7623 case $cc_temp in
7624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7626 \-*) ;;
7627 *) break;;
7628 esac
7629done
7630cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7631
7632
7633# Only perform the check for file, if the check method requires it
7634test -z "$MAGIC_CMD" && MAGIC_CMD=file
7635case $deplibs_check_method in
7636file_magic*)
7637 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7639$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7640if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7642else
7643 case $MAGIC_CMD in
7644[\\/*] | ?:[\\/]*)
7645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7646 ;;
7647*)
7648 lt_save_MAGIC_CMD="$MAGIC_CMD"
7649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7651 for ac_dir in $ac_dummy; do
7652 IFS="$lt_save_ifs"
7653 test -z "$ac_dir" && ac_dir=.
7654 if test -f $ac_dir/${ac_tool_prefix}file; then
7655 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7656 if test -n "$file_magic_test_file"; then
7657 case $deplibs_check_method in
7658 "file_magic "*)
7659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7662 $EGREP "$file_magic_regex" > /dev/null; then
7663 :
7664 else
7665 cat <<_LT_EOF 1>&2
7666
7667*** Warning: the command libtool uses to detect shared libraries,
7668*** $file_magic_cmd, produces output that libtool cannot recognize.
7669*** The result is that libtool may fail to recognize shared libraries
7670*** as such. This will affect the creation of libtool libraries that
7671*** depend on shared libraries, but programs linked with such libtool
7672*** libraries will work regardless of this problem. Nevertheless, you
7673*** may want to report the problem to your system manager and/or to
7674*** bug-libtool@gnu.org
7675
7676_LT_EOF
7677 fi ;;
7678 esac
7679 fi
7680 break
7681 fi
7682 done
7683 IFS="$lt_save_ifs"
7684 MAGIC_CMD="$lt_save_MAGIC_CMD"
7685 ;;
7686esac
7687fi
7688
7689MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7690if test -n "$MAGIC_CMD"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7692$as_echo "$MAGIC_CMD" >&6; }
7693else
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
7696fi
7697
7698
7699
7700
7701
7702if test -z "$lt_cv_path_MAGIC_CMD"; then
7703 if test -n "$ac_tool_prefix"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7705$as_echo_n "checking for file... " >&6; }
7706if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708else
7709 case $MAGIC_CMD in
7710[\\/*] | ?:[\\/]*)
7711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7712 ;;
7713*)
7714 lt_save_MAGIC_CMD="$MAGIC_CMD"
7715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7717 for ac_dir in $ac_dummy; do
7718 IFS="$lt_save_ifs"
7719 test -z "$ac_dir" && ac_dir=.
7720 if test -f $ac_dir/file; then
7721 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7722 if test -n "$file_magic_test_file"; then
7723 case $deplibs_check_method in
7724 "file_magic "*)
7725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7728 $EGREP "$file_magic_regex" > /dev/null; then
7729 :
7730 else
7731 cat <<_LT_EOF 1>&2
7732
7733*** Warning: the command libtool uses to detect shared libraries,
7734*** $file_magic_cmd, produces output that libtool cannot recognize.
7735*** The result is that libtool may fail to recognize shared libraries
7736*** as such. This will affect the creation of libtool libraries that
7737*** depend on shared libraries, but programs linked with such libtool
7738*** libraries will work regardless of this problem. Nevertheless, you
7739*** may want to report the problem to your system manager and/or to
7740*** bug-libtool@gnu.org
7741
7742_LT_EOF
7743 fi ;;
7744 esac
7745 fi
7746 break
7747 fi
7748 done
7749 IFS="$lt_save_ifs"
7750 MAGIC_CMD="$lt_save_MAGIC_CMD"
7751 ;;
7752esac
7753fi
7754
7755MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7756if test -n "$MAGIC_CMD"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7758$as_echo "$MAGIC_CMD" >&6; }
7759else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762fi
7763
7764
7765 else
7766 MAGIC_CMD=:
7767 fi
7768fi
7769
7770 fi
7771 ;;
7772esac
7773
7774# Use C for the default configuration in the libtool script
7775
7776lt_save_CC="$CC"
7777ac_ext=c
7778ac_cpp='$CPP $CPPFLAGS'
7779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782
7783
7784# Source file extension for C test sources.
7785ac_ext=c
7786
7787# Object file extension for compiled C test sources.
7788objext=o
7789objext=$objext
7790
7791# Code to be used in simple compile tests
7792lt_simple_compile_test_code="int some_variable = 0;"
7793
7794# Code to be used in simple link tests
7795lt_simple_link_test_code='int main(){return(0);}'
7796
7797
7798
7799
7800
7801
7802
7803# If no C compiler was specified, use CC.
7804LTCC=${LTCC-"$CC"}
7805
7806# If no C compiler flags were specified, use CFLAGS.
7807LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7808
7809# Allow CC to be a program name with arguments.
7810compiler=$CC
7811
7812# Save the default compiler, since it gets overwritten when the other
7813# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7814compiler_DEFAULT=$CC
7815
7816# save warnings/boilerplate of simple test code
7817ac_outfile=conftest.$ac_objext
7818echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7819eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7820_lt_compiler_boilerplate=`cat conftest.err`
7821$RM conftest*
7822
7823ac_outfile=conftest.$ac_objext
7824echo "$lt_simple_link_test_code" >conftest.$ac_ext
7825eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7826_lt_linker_boilerplate=`cat conftest.err`
7827$RM -r conftest*
7828
7829
7830## CAVEAT EMPTOR:
7831## There is no encapsulation within the following macros, do not change
7832## the running order or otherwise move them around unless you know exactly
7833## what you are doing...
7834if test -n "$compiler"; then
7835
7836lt_prog_compiler_no_builtin_flag=
7837
7838if test "$GCC" = yes; then
7839 case $cc_basename in
7840 nvcc*)
7841 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7842 *)
7843 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7844 esac
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7847$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7848if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850else
7851 lt_cv_prog_compiler_rtti_exceptions=no
7852 ac_outfile=conftest.$ac_objext
7853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854 lt_compiler_flag="-fno-rtti -fno-exceptions"
7855 # Insert the option either (1) after the last *FLAGS variable, or
7856 # (2) before a word containing "conftest.", or (3) at the end.
7857 # Note that $ac_compile itself does not contain backslashes and begins
7858 # with a dollar sign (not a hyphen), so the echo should work correctly.
7859 # The option is referenced via a variable to avoid confusing sed.
7860 lt_compile=`echo "$ac_compile" | $SED \
7861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863 -e 's:$: $lt_compiler_flag:'`
7864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7865 (eval "$lt_compile" 2>conftest.err)
7866 ac_status=$?
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 if (exit $ac_status) && test -s "$ac_outfile"; then
7870 # The compiler can only warn and ignore the option if not recognized
7871 # So say no if there are warnings other than the usual output.
7872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875 lt_cv_prog_compiler_rtti_exceptions=yes
7876 fi
7877 fi
7878 $RM conftest*
7879
7880fi
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7882$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7883
7884if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7885 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7886else
7887 :
7888fi
7889
7890fi
7891
7892
7893
7894
7895
7896
7897 lt_prog_compiler_wl=
7898lt_prog_compiler_pic=
7899lt_prog_compiler_static=
7900
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7902$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7903
7904 if test "$GCC" = yes; then
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_static='-static'
7907
7908 case $host_os in
7909 aix*)
7910 # All AIX code is PIC.
7911 if test "$host_cpu" = ia64; then
7912 # AIX 5 now supports IA64 processor
7913 lt_prog_compiler_static='-Bstatic'
7914 fi
7915 ;;
7916
7917 amigaos*)
7918 case $host_cpu in
7919 powerpc)
7920 # see comment about AmigaOS4 .so support
7921 lt_prog_compiler_pic='-fPIC'
7922 ;;
7923 m68k)
7924 # FIXME: we need at least 68020 code to build shared libraries, but
7925 # adding the `-m68020' flag to GCC prevents building anything better,
7926 # like `-m68040'.
7927 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7928 ;;
7929 esac
7930 ;;
7931
7932 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7933 # PIC is the default for these OSes.
7934 ;;
7935
7936 mingw* | cygwin* | pw32* | os2* | cegcc*)
7937 # This hack is so that the source file can tell whether it is being
7938 # built for inclusion in a dll (and should export symbols for example).
7939 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7940 # (--disable-auto-import) libraries
7941 lt_prog_compiler_pic='-DDLL_EXPORT'
7942 ;;
7943
7944 darwin* | rhapsody*)
7945 # PIC is the default on this platform
7946 # Common symbols not allowed in MH_DYLIB files
7947 lt_prog_compiler_pic='-fno-common'
7948 ;;
7949
7950 haiku*)
7951 # PIC is the default for Haiku.
7952 # The "-static" flag exists, but is broken.
7953 lt_prog_compiler_static=
7954 ;;
7955
7956 hpux*)
7957 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7958 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7959 # sets the default TLS model and affects inlining.
7960 case $host_cpu in
7961 hppa*64*)
7962 # +Z the default
7963 ;;
7964 *)
7965 lt_prog_compiler_pic='-fPIC'
7966 ;;
7967 esac
7968 ;;
7969
7970 interix[3-9]*)
7971 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7972 # Instead, we relocate shared libraries at runtime.
7973 ;;
7974
7975 msdosdjgpp*)
7976 # Just because we use GCC doesn't mean we suddenly get shared libraries
7977 # on systems that don't support them.
7978 lt_prog_compiler_can_build_shared=no
7979 enable_shared=no
7980 ;;
7981
7982 *nto* | *qnx*)
7983 # QNX uses GNU C++, but need to define -shared option too, otherwise
7984 # it will coredump.
7985 lt_prog_compiler_pic='-fPIC -shared'
7986 ;;
7987
7988 sysv4*MP*)
7989 if test -d /usr/nec; then
7990 lt_prog_compiler_pic=-Kconform_pic
7991 fi
7992 ;;
7993
7994 *)
7995 lt_prog_compiler_pic='-fPIC'
7996 ;;
7997 esac
7998
7999 case $cc_basename in
8000 nvcc*) # Cuda Compiler Driver 2.2
8001 lt_prog_compiler_wl='-Xlinker '
8002 lt_prog_compiler_pic='-Xcompiler -fPIC'
8003 ;;
8004 esac
8005 else
8006 # PORTME Check for flag to pass linker flags through the system compiler.
8007 case $host_os in
8008 aix*)
8009 lt_prog_compiler_wl='-Wl,'
8010 if test "$host_cpu" = ia64; then
8011 # AIX 5 now supports IA64 processor
8012 lt_prog_compiler_static='-Bstatic'
8013 else
8014 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8015 fi
8016 ;;
8017
8018 mingw* | cygwin* | pw32* | os2* | cegcc*)
8019 # This hack is so that the source file can tell whether it is being
8020 # built for inclusion in a dll (and should export symbols for example).
8021 lt_prog_compiler_pic='-DDLL_EXPORT'
8022 ;;
8023
8024 hpux9* | hpux10* | hpux11*)
8025 lt_prog_compiler_wl='-Wl,'
8026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8027 # not for PA HP-UX.
8028 case $host_cpu in
8029 hppa*64*|ia64*)
8030 # +Z the default
8031 ;;
8032 *)
8033 lt_prog_compiler_pic='+Z'
8034 ;;
8035 esac
8036 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8037 lt_prog_compiler_static='${wl}-a ${wl}archive'
8038 ;;
8039
8040 irix5* | irix6* | nonstopux*)
8041 lt_prog_compiler_wl='-Wl,'
8042 # PIC (with -KPIC) is the default.
8043 lt_prog_compiler_static='-non_shared'
8044 ;;
8045
8046 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8047 case $cc_basename in
8048 # old Intel for x86_64 which still supported -KPIC.
8049 ecc*)
8050 lt_prog_compiler_wl='-Wl,'
8051 lt_prog_compiler_pic='-KPIC'
8052 lt_prog_compiler_static='-static'
8053 ;;
8054 # icc used to be incompatible with GCC.
8055 # ICC 10 doesn't accept -KPIC any more.
8056 icc* | ifort*)
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-fPIC'
8059 lt_prog_compiler_static='-static'
8060 ;;
8061 # Lahey Fortran 8.1.
8062 lf95*)
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='--shared'
8065 lt_prog_compiler_static='--static'
8066 ;;
8067 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8068 # Portland Group compilers (*not* the Pentium gcc compiler,
8069 # which looks to be a dead project)
8070 lt_prog_compiler_wl='-Wl,'
8071 lt_prog_compiler_pic='-fpic'
8072 lt_prog_compiler_static='-Bstatic'
8073 ;;
8074 ccc*)
8075 lt_prog_compiler_wl='-Wl,'
8076 # All Alpha code is PIC.
8077 lt_prog_compiler_static='-non_shared'
8078 ;;
8079 xl* | bgxl* | bgf* | mpixl*)
8080 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='-qpic'
8083 lt_prog_compiler_static='-qstaticlink'
8084 ;;
8085 *)
8086 case `$CC -V 2>&1 | sed 5q` in
8087 *Sun\ F* | *Sun*Fortran*)
8088 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8089 lt_prog_compiler_pic='-KPIC'
8090 lt_prog_compiler_static='-Bstatic'
8091 lt_prog_compiler_wl=''
8092 ;;
8093 *Sun\ C*)
8094 # Sun C 5.9
8095 lt_prog_compiler_pic='-KPIC'
8096 lt_prog_compiler_static='-Bstatic'
8097 lt_prog_compiler_wl='-Wl,'
8098 ;;
8099 esac
8100 ;;
8101 esac
8102 ;;
8103
8104 newsos6)
8105 lt_prog_compiler_pic='-KPIC'
8106 lt_prog_compiler_static='-Bstatic'
8107 ;;
8108
8109 *nto* | *qnx*)
8110 # QNX uses GNU C++, but need to define -shared option too, otherwise
8111 # it will coredump.
8112 lt_prog_compiler_pic='-fPIC -shared'
8113 ;;
8114
8115 osf3* | osf4* | osf5*)
8116 lt_prog_compiler_wl='-Wl,'
8117 # All OSF/1 code is PIC.
8118 lt_prog_compiler_static='-non_shared'
8119 ;;
8120
8121 rdos*)
8122 lt_prog_compiler_static='-non_shared'
8123 ;;
8124
8125 solaris*)
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 case $cc_basename in
8129 f77* | f90* | f95*)
8130 lt_prog_compiler_wl='-Qoption ld ';;
8131 *)
8132 lt_prog_compiler_wl='-Wl,';;
8133 esac
8134 ;;
8135
8136 sunos4*)
8137 lt_prog_compiler_wl='-Qoption ld '
8138 lt_prog_compiler_pic='-PIC'
8139 lt_prog_compiler_static='-Bstatic'
8140 ;;
8141
8142 sysv4 | sysv4.2uw2* | sysv4.3*)
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_pic='-KPIC'
8145 lt_prog_compiler_static='-Bstatic'
8146 ;;
8147
8148 sysv4*MP*)
8149 if test -d /usr/nec ;then
8150 lt_prog_compiler_pic='-Kconform_pic'
8151 lt_prog_compiler_static='-Bstatic'
8152 fi
8153 ;;
8154
8155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8156 lt_prog_compiler_wl='-Wl,'
8157 lt_prog_compiler_pic='-KPIC'
8158 lt_prog_compiler_static='-Bstatic'
8159 ;;
8160
8161 unicos*)
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_can_build_shared=no
8164 ;;
8165
8166 uts4*)
8167 lt_prog_compiler_pic='-pic'
8168 lt_prog_compiler_static='-Bstatic'
8169 ;;
8170
8171 *)
8172 lt_prog_compiler_can_build_shared=no
8173 ;;
8174 esac
8175 fi
8176
8177case $host_os in
8178 # For platforms which do not support PIC, -DPIC is meaningless:
8179 *djgpp*)
8180 lt_prog_compiler_pic=
8181 ;;
8182 *)
8183 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8184 ;;
8185esac
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8187$as_echo "$lt_prog_compiler_pic" >&6; }
8188
8189
8190
8191
8192
8193
8194#
8195# Check to make sure the PIC flag actually works.
8196#
8197if test -n "$lt_prog_compiler_pic"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8199$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8200if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
8202else
8203 lt_cv_prog_compiler_pic_works=no
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8207 # Insert the option either (1) after the last *FLAGS variable, or
8208 # (2) before a word containing "conftest.", or (3) at the end.
8209 # Note that $ac_compile itself does not contain backslashes and begins
8210 # with a dollar sign (not a hyphen), so the echo should work correctly.
8211 # The option is referenced via a variable to avoid confusing sed.
8212 lt_compile=`echo "$ac_compile" | $SED \
8213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215 -e 's:$: $lt_compiler_flag:'`
8216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217 (eval "$lt_compile" 2>conftest.err)
8218 ac_status=$?
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 if (exit $ac_status) && test -s "$ac_outfile"; then
8222 # The compiler can only warn and ignore the option if not recognized
8223 # So say no if there are warnings other than the usual output.
8224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227 lt_cv_prog_compiler_pic_works=yes
8228 fi
8229 fi
8230 $RM conftest*
8231
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8234$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8235
8236if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8237 case $lt_prog_compiler_pic in
8238 "" | " "*) ;;
8239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8240 esac
8241else
8242 lt_prog_compiler_pic=
8243 lt_prog_compiler_can_build_shared=no
8244fi
8245
8246fi
8247
8248
8249
8250
8251
8252
8253#
8254# Check to make sure the static flag actually works.
8255#
8256wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8258$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8259if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261else
8262 lt_cv_prog_compiler_static_works=no
8263 save_LDFLAGS="$LDFLAGS"
8264 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8265 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8267 # The linker can only warn and ignore the option if not recognized
8268 # So say no if there are warnings
8269 if test -s conftest.err; then
8270 # Append any errors to the config.log.
8271 cat conftest.err 1>&5
8272 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274 if diff conftest.exp conftest.er2 >/dev/null; then
8275 lt_cv_prog_compiler_static_works=yes
8276 fi
8277 else
8278 lt_cv_prog_compiler_static_works=yes
8279 fi
8280 fi
8281 $RM -r conftest*
8282 LDFLAGS="$save_LDFLAGS"
8283
8284fi
8285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8286$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8287
8288if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8289 :
8290else
8291 lt_prog_compiler_static=
8292fi
8293
8294
8295
8296
8297
8298
8299
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8301$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8302if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304else
8305 lt_cv_prog_compiler_c_o=no
8306 $RM -r conftest 2>/dev/null
8307 mkdir conftest
8308 cd conftest
8309 mkdir out
8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8311
8312 lt_compiler_flag="-o out/conftest2.$ac_objext"
8313 # Insert the option either (1) after the last *FLAGS variable, or
8314 # (2) before a word containing "conftest.", or (3) at the end.
8315 # Note that $ac_compile itself does not contain backslashes and begins
8316 # with a dollar sign (not a hyphen), so the echo should work correctly.
8317 lt_compile=`echo "$ac_compile" | $SED \
8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320 -e 's:$: $lt_compiler_flag:'`
8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8322 (eval "$lt_compile" 2>out/conftest.err)
8323 ac_status=$?
8324 cat out/conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8327 then
8328 # The compiler can only warn and ignore the option if not recognized
8329 # So say no if there are warnings
8330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8333 lt_cv_prog_compiler_c_o=yes
8334 fi
8335 fi
8336 chmod u+w . 2>&5
8337 $RM conftest*
8338 # SGI C++ compiler will create directory out/ii_files/ for
8339 # template instantiation
8340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8341 $RM out/* && rmdir out
8342 cd ..
8343 $RM -r conftest
8344 $RM conftest*
8345
8346fi
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8348$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8349
8350
8351
8352
8353
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8356$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8357if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359else
8360 lt_cv_prog_compiler_c_o=no
8361 $RM -r conftest 2>/dev/null
8362 mkdir conftest
8363 cd conftest
8364 mkdir out
8365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8366
8367 lt_compiler_flag="-o out/conftest2.$ac_objext"
8368 # Insert the option either (1) after the last *FLAGS variable, or
8369 # (2) before a word containing "conftest.", or (3) at the end.
8370 # Note that $ac_compile itself does not contain backslashes and begins
8371 # with a dollar sign (not a hyphen), so the echo should work correctly.
8372 lt_compile=`echo "$ac_compile" | $SED \
8373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375 -e 's:$: $lt_compiler_flag:'`
8376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8377 (eval "$lt_compile" 2>out/conftest.err)
8378 ac_status=$?
8379 cat out/conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8382 then
8383 # The compiler can only warn and ignore the option if not recognized
8384 # So say no if there are warnings
8385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8388 lt_cv_prog_compiler_c_o=yes
8389 fi
8390 fi
8391 chmod u+w . 2>&5
8392 $RM conftest*
8393 # SGI C++ compiler will create directory out/ii_files/ for
8394 # template instantiation
8395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8396 $RM out/* && rmdir out
8397 cd ..
8398 $RM -r conftest
8399 $RM conftest*
8400
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8403$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8404
8405
8406
8407
8408hard_links="nottested"
8409if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8410 # do not overwrite the value of need_locks provided by the user
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8412$as_echo_n "checking if we can lock with hard links... " >&6; }
8413 hard_links=yes
8414 $RM conftest*
8415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8416 touch conftest.a
8417 ln conftest.a conftest.b 2>&5 || hard_links=no
8418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8420$as_echo "$hard_links" >&6; }
8421 if test "$hard_links" = no; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8423$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8424 need_locks=warn
8425 fi
8426else
8427 need_locks=no
8428fi
8429
8430
8431
8432
8433
8434
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8436$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8437
8438 runpath_var=
8439 allow_undefined_flag=
8440 always_export_symbols=no
8441 archive_cmds=
8442 archive_expsym_cmds=
8443 compiler_needs_object=no
8444 enable_shared_with_static_runtimes=no
8445 export_dynamic_flag_spec=
8446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8447 hardcode_automatic=no
8448 hardcode_direct=no
8449 hardcode_direct_absolute=no
8450 hardcode_libdir_flag_spec=
8451 hardcode_libdir_flag_spec_ld=
8452 hardcode_libdir_separator=
8453 hardcode_minus_L=no
8454 hardcode_shlibpath_var=unsupported
8455 inherit_rpath=no
8456 link_all_deplibs=unknown
8457 module_cmds=
8458 module_expsym_cmds=
8459 old_archive_from_new_cmds=
8460 old_archive_from_expsyms_cmds=
8461 thread_safe_flag_spec=
8462 whole_archive_flag_spec=
8463 # include_expsyms should be a list of space-separated symbols to be *always*
8464 # included in the symbol list
8465 include_expsyms=
8466 # exclude_expsyms can be an extended regexp of symbols to exclude
8467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8469 # as well as any symbol that contains `d'.
8470 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8472 # platforms (ab)use it in PIC code, but their linkers get confused if
8473 # the symbol is explicitly referenced. Since portable code cannot
8474 # rely on this symbol name, it's probably fine to never include it in
8475 # preloaded symbol tables.
8476 # Exclude shared library initialization/finalization symbols.
8477 extract_expsyms_cmds=
8478
8479 case $host_os in
8480 cygwin* | mingw* | pw32* | cegcc*)
8481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8482 # When not using gcc, we currently assume that we are using
8483 # Microsoft Visual C++.
8484 if test "$GCC" != yes; then
8485 with_gnu_ld=no
8486 fi
8487 ;;
8488 interix*)
8489 # we just hope/assume this is gcc and not c89 (= MSVC++)
8490 with_gnu_ld=yes
8491 ;;
8492 openbsd*)
8493 with_gnu_ld=no
8494 ;;
8495 esac
8496
8497 ld_shlibs=yes
8498
8499 # On some targets, GNU ld is compatible enough with the native linker
8500 # that we're better off using the native interface for both.
8501 lt_use_gnu_ld_interface=no
8502 if test "$with_gnu_ld" = yes; then
8503 case $host_os in
8504 aix*)
8505 # The AIX port of GNU ld has always aspired to compatibility
8506 # with the native linker. However, as the warning in the GNU ld
8507 # block says, versions before 2.19.5* couldn't really create working
8508 # shared libraries, regardless of the interface used.
8509 case `$LD -v 2>&1` in
8510 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8511 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8512 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8513 *)
8514 lt_use_gnu_ld_interface=yes
8515 ;;
8516 esac
8517 ;;
8518 *)
8519 lt_use_gnu_ld_interface=yes
8520 ;;
8521 esac
8522 fi
8523
8524 if test "$lt_use_gnu_ld_interface" = yes; then
8525 # If archive_cmds runs LD, not CC, wlarc should be empty
8526 wlarc='${wl}'
8527
8528 # Set some defaults for GNU ld with shared library support. These
8529 # are reset later if shared libraries are not supported. Putting them
8530 # here allows them to be overridden if necessary.
8531 runpath_var=LD_RUN_PATH
8532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533 export_dynamic_flag_spec='${wl}--export-dynamic'
8534 # ancient GNU ld didn't support --whole-archive et. al.
8535 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8536 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8537 else
8538 whole_archive_flag_spec=
8539 fi
8540 supports_anon_versioning=no
8541 case `$LD -v 2>&1` in
8542 *GNU\ gold*) supports_anon_versioning=yes ;;
8543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8546 *\ 2.11.*) ;; # other 2.11 versions
8547 *) supports_anon_versioning=yes ;;
8548 esac
8549
8550 # See if GNU ld supports shared libraries.
8551 case $host_os in
8552 aix[3-9]*)
8553 # On AIX/PPC, the GNU linker is very broken
8554 if test "$host_cpu" != ia64; then
8555 ld_shlibs=no
8556 cat <<_LT_EOF 1>&2
8557
8558*** Warning: the GNU linker, at least up to release 2.19, is reported
8559*** to be unable to reliably create shared libraries on AIX.
8560*** Therefore, libtool is disabling shared libraries support. If you
8561*** really care for shared libraries, you may want to install binutils
8562*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8563*** You will then need to restart the configuration process.
8564
8565_LT_EOF
8566 fi
8567 ;;
8568
8569 amigaos*)
8570 case $host_cpu in
8571 powerpc)
8572 # see comment about AmigaOS4 .so support
8573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574 archive_expsym_cmds=''
8575 ;;
8576 m68k)
8577 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)'
8578 hardcode_libdir_flag_spec='-L$libdir'
8579 hardcode_minus_L=yes
8580 ;;
8581 esac
8582 ;;
8583
8584 beos*)
8585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8586 allow_undefined_flag=unsupported
8587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8588 # support --undefined. This deserves some investigation. FIXME
8589 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590 else
8591 ld_shlibs=no
8592 fi
8593 ;;
8594
8595 cygwin* | mingw* | pw32* | cegcc*)
8596 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8597 # as there is no search path for DLLs.
8598 hardcode_libdir_flag_spec='-L$libdir'
8599 export_dynamic_flag_spec='${wl}--export-all-symbols'
8600 allow_undefined_flag=unsupported
8601 always_export_symbols=no
8602 enable_shared_with_static_runtimes=yes
8603 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8604
8605 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8607 # If the export-symbols file already is a .def file (1st line
8608 # is EXPORTS), use it as is; otherwise, prepend...
8609 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8610 cp $export_symbols $output_objdir/$soname.def;
8611 else
8612 echo EXPORTS > $output_objdir/$soname.def;
8613 cat $export_symbols >> $output_objdir/$soname.def;
8614 fi~
8615 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8616 else
8617 ld_shlibs=no
8618 fi
8619 ;;
8620
8621 haiku*)
8622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623 link_all_deplibs=yes
8624 ;;
8625
8626 interix[3-9]*)
8627 hardcode_direct=no
8628 hardcode_shlibpath_var=no
8629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8630 export_dynamic_flag_spec='${wl}-E'
8631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8632 # Instead, shared libraries are loaded at an image base (0x10000000 by
8633 # default) and relocated if they conflict, which is a slow very memory
8634 # consuming and fragmenting process. To avoid this, we pick a random,
8635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8636 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8638 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'
8639 ;;
8640
8641 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8642 tmp_diet=no
8643 if test "$host_os" = linux-dietlibc; then
8644 case $cc_basename in
8645 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8646 esac
8647 fi
8648 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8649 && test "$tmp_diet" = no
8650 then
8651 tmp_addflag=
8652 tmp_sharedflag='-shared'
8653 case $cc_basename,$host_cpu in
8654 pgcc*) # Portland Group C compiler
8655 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'
8656 tmp_addflag=' $pic_flag'
8657 ;;
8658 pgf77* | pgf90* | pgf95* | pgfortran*)
8659 # Portland Group f77 and f90 compilers
8660 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'
8661 tmp_addflag=' $pic_flag -Mnomain' ;;
8662 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8663 tmp_addflag=' -i_dynamic' ;;
8664 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8665 tmp_addflag=' -i_dynamic -nofor_main' ;;
8666 ifc* | ifort*) # Intel Fortran compiler
8667 tmp_addflag=' -nofor_main' ;;
8668 lf95*) # Lahey Fortran 8.1
8669 whole_archive_flag_spec=
8670 tmp_sharedflag='--shared' ;;
8671 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8672 tmp_sharedflag='-qmkshrobj'
8673 tmp_addflag= ;;
8674 nvcc*) # Cuda Compiler Driver 2.2
8675 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'
8676 compiler_needs_object=yes
8677 ;;
8678 esac
8679 case `$CC -V 2>&1 | sed 5q` in
8680 *Sun\ C*) # Sun C 5.9
8681 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'
8682 compiler_needs_object=yes
8683 tmp_sharedflag='-G' ;;
8684 *Sun\ F*) # Sun Fortran 8.3
8685 tmp_sharedflag='-G' ;;
8686 esac
8687 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8688
8689 if test "x$supports_anon_versioning" = xyes; then
8690 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8691 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8692 echo "local: *; };" >> $output_objdir/$libname.ver~
8693 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8694 fi
8695
8696 case $cc_basename in
8697 xlf* | bgf* | bgxlf* | mpixlf*)
8698 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8699 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8700 hardcode_libdir_flag_spec=
8701 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8702 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8703 if test "x$supports_anon_versioning" = xyes; then
8704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8706 echo "local: *; };" >> $output_objdir/$libname.ver~
8707 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8708 fi
8709 ;;
8710 esac
8711 else
8712 ld_shlibs=no
8713 fi
8714 ;;
8715
8716 netbsd*)
8717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8719 wlarc=
8720 else
8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723 fi
8724 ;;
8725
8726 solaris*)
8727 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8728 ld_shlibs=no
8729 cat <<_LT_EOF 1>&2
8730
8731*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8732*** create shared libraries on Solaris systems. Therefore, libtool
8733*** is disabling shared libraries support. We urge you to upgrade GNU
8734*** binutils to release 2.9.1 or newer. Another option is to modify
8735*** your PATH or compiler configuration so that the native linker is
8736*** used, and then restart.
8737
8738_LT_EOF
8739 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742 else
8743 ld_shlibs=no
8744 fi
8745 ;;
8746
8747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8748 case `$LD -v 2>&1` in
8749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8750 ld_shlibs=no
8751 cat <<_LT_EOF 1>&2
8752
8753*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8754*** reliably create shared libraries on SCO systems. Therefore, libtool
8755*** is disabling shared libraries support. We urge you to upgrade GNU
8756*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8757*** your PATH or compiler configuration so that the native linker is
8758*** used, and then restart.
8759
8760_LT_EOF
8761 ;;
8762 *)
8763 # For security reasons, it is highly recommended that you always
8764 # use absolute paths for naming shared libraries, and exclude the
8765 # DT_RUNPATH tag from executables and libraries. But doing so
8766 # requires that you compile everything twice, which is a pain.
8767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8771 else
8772 ld_shlibs=no
8773 fi
8774 ;;
8775 esac
8776 ;;
8777
8778 sunos4*)
8779 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8780 wlarc=
8781 hardcode_direct=yes
8782 hardcode_shlibpath_var=no
8783 ;;
8784
8785 *)
8786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789 else
8790 ld_shlibs=no
8791 fi
8792 ;;
8793 esac
8794
8795 if test "$ld_shlibs" = no; then
8796 runpath_var=
8797 hardcode_libdir_flag_spec=
8798 export_dynamic_flag_spec=
8799 whole_archive_flag_spec=
8800 fi
8801 else
8802 # PORTME fill in a description of your system's linker (not GNU ld)
8803 case $host_os in
8804 aix3*)
8805 allow_undefined_flag=unsupported
8806 always_export_symbols=yes
8807 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'
8808 # Note: this linker hardcodes the directories in LIBPATH if there
8809 # are no directories specified by -L.
8810 hardcode_minus_L=yes
8811 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8812 # Neither direct hardcoding nor static linking is supported with a
8813 # broken collect2.
8814 hardcode_direct=unsupported
8815 fi
8816 ;;
8817
8818 aix[4-9]*)
8819 if test "$host_cpu" = ia64; then
8820 # On IA64, the linker does run time linking by default, so we don't
8821 # have to do anything special.
8822 aix_use_runtimelinking=no
8823 exp_sym_flag='-Bexport'
8824 no_entry_flag=""
8825 else
8826 # If we're using GNU nm, then we don't want the "-C" option.
8827 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8828 # Also, AIX nm treats weak defined symbols like other global
8829 # defined symbols, whereas GNU nm marks them as "W".
8830 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8831 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'
8832 else
8833 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'
8834 fi
8835 aix_use_runtimelinking=no
8836
8837 # Test if we are trying to use run time linking or normal
8838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8839 # need to do runtime linking.
8840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8841 for ld_flag in $LDFLAGS; do
8842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8843 aix_use_runtimelinking=yes
8844 break
8845 fi
8846 done
8847 ;;
8848 esac
8849
8850 exp_sym_flag='-bexport'
8851 no_entry_flag='-bnoentry'
8852 fi
8853
8854 # When large executables or shared objects are built, AIX ld can
8855 # have problems creating the table of contents. If linking a library
8856 # or program results in "error TOC overflow" add -mminimal-toc to
8857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8859
8860 archive_cmds=''
8861 hardcode_direct=yes
8862 hardcode_direct_absolute=yes
8863 hardcode_libdir_separator=':'
8864 link_all_deplibs=yes
8865 file_list_spec='${wl}-f,'
8866
8867 if test "$GCC" = yes; then
8868 case $host_os in aix4.[012]|aix4.[012].*)
8869 # We only want to do this on AIX 4.2 and lower, the check
8870 # below for broken collect2 doesn't work under 4.3+
8871 collect2name=`${CC} -print-prog-name=collect2`
8872 if test -f "$collect2name" &&
8873 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8874 then
8875 # We have reworked collect2
8876 :
8877 else
8878 # We have old collect2
8879 hardcode_direct=unsupported
8880 # It fails to find uninstalled libraries when the uninstalled
8881 # path is not listed in the libpath. Setting hardcode_minus_L
8882 # to unsupported forces relinking
8883 hardcode_minus_L=yes
8884 hardcode_libdir_flag_spec='-L$libdir'
8885 hardcode_libdir_separator=
8886 fi
8887 ;;
8888 esac
8889 shared_flag='-shared'
8890 if test "$aix_use_runtimelinking" = yes; then
8891 shared_flag="$shared_flag "'${wl}-G'
8892 fi
8893 else
8894 # not using gcc
8895 if test "$host_cpu" = ia64; then
8896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8897 # chokes on -Wl,-G. The following line is correct:
8898 shared_flag='-G'
8899 else
8900 if test "$aix_use_runtimelinking" = yes; then
8901 shared_flag='${wl}-G'
8902 else
8903 shared_flag='${wl}-bM:SRE'
8904 fi
8905 fi
8906 fi
8907
8908 export_dynamic_flag_spec='${wl}-bexpall'
8909 # It seems that -bexpall does not export symbols beginning with
8910 # underscore (_), so it is better to generate a list of symbols to export.
8911 always_export_symbols=yes
8912 if test "$aix_use_runtimelinking" = yes; then
8913 # Warning - without using the other runtime loading flags (-brtl),
8914 # -berok will link without error, but may produce a broken library.
8915 allow_undefined_flag='-berok'
8916 # Determine the default libpath from the value encoded in an
8917 # empty executable.
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h. */
8920
8921int
8922main ()
8923{
8924
8925 ;
8926 return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_link "$LINENO"; then :
8930
8931lt_aix_libpath_sed='
8932 /Import File Strings/,/^$/ {
8933 /^0/ {
8934 s/^0 *\(.*\)$/\1/
8935 p
8936 }
8937 }'
8938aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8939# Check for a 64-bit object if we didn't find anything.
8940if test -z "$aix_libpath"; then
8941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942fi
8943fi
8944rm -f core conftest.err conftest.$ac_objext \
8945 conftest$ac_exeext conftest.$ac_ext
8946if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8947
8948 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8949 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"
8950 else
8951 if test "$host_cpu" = ia64; then
8952 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8953 allow_undefined_flag="-z nodefs"
8954 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"
8955 else
8956 # Determine the default libpath from the value encoded in an
8957 # empty executable.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959/* end confdefs.h. */
8960
8961int
8962main ()
8963{
8964
8965 ;
8966 return 0;
8967}
8968_ACEOF
8969if ac_fn_c_try_link "$LINENO"; then :
8970
8971lt_aix_libpath_sed='
8972 /Import File Strings/,/^$/ {
8973 /^0/ {
8974 s/^0 *\(.*\)$/\1/
8975 p
8976 }
8977 }'
8978aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979# Check for a 64-bit object if we didn't find anything.
8980if test -z "$aix_libpath"; then
8981 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8982fi
8983fi
8984rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8987
8988 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8989 # Warning - without using the other run time loading flags,
8990 # -berok will link without error, but may produce a broken library.
8991 no_undefined_flag=' ${wl}-bernotok'
8992 allow_undefined_flag=' ${wl}-berok'
8993 if test "$with_gnu_ld" = yes; then
8994 # We only use this code for GNU lds that support --whole-archive.
8995 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8996 else
8997 # Exported symbols can be pulled into shared objects from archives
8998 whole_archive_flag_spec='$convenience'
8999 fi
9000 archive_cmds_need_lc=yes
9001 # This is similar to how AIX traditionally builds its shared libraries.
9002 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'
9003 fi
9004 fi
9005 ;;
9006
9007 amigaos*)
9008 case $host_cpu in
9009 powerpc)
9010 # see comment about AmigaOS4 .so support
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds=''
9013 ;;
9014 m68k)
9015 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)'
9016 hardcode_libdir_flag_spec='-L$libdir'
9017 hardcode_minus_L=yes
9018 ;;
9019 esac
9020 ;;
9021
9022 bsdi[45]*)
9023 export_dynamic_flag_spec=-rdynamic
9024 ;;
9025
9026 cygwin* | mingw* | pw32* | cegcc*)
9027 # When not using gcc, we currently assume that we are using
9028 # Microsoft Visual C++.
9029 # hardcode_libdir_flag_spec is actually meaningless, as there is
9030 # no search path for DLLs.
9031 hardcode_libdir_flag_spec=' '
9032 allow_undefined_flag=unsupported
9033 # Tell ltmain to make .lib files, not .a files.
9034 libext=lib
9035 # Tell ltmain to make .dll files, not .so files.
9036 shrext_cmds=".dll"
9037 # FIXME: Setting linknames here is a bad hack.
9038 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9039 # The linker will automatically build a .lib file if we build a DLL.
9040 old_archive_from_new_cmds='true'
9041 # FIXME: Should let the user specify the lib program.
9042 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9043 fix_srcfile_path='`cygpath -w "$srcfile"`'
9044 enable_shared_with_static_runtimes=yes
9045 ;;
9046
9047 darwin* | rhapsody*)
9048
9049
9050 archive_cmds_need_lc=no
9051 hardcode_direct=no
9052 hardcode_automatic=yes
9053 hardcode_shlibpath_var=unsupported
9054 if test "$lt_cv_ld_force_load" = "yes"; then
9055 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\"`'
9056 else
9057 whole_archive_flag_spec=''
9058 fi
9059 link_all_deplibs=yes
9060 allow_undefined_flag="$_lt_dar_allow_undefined"
9061 case $cc_basename in
9062 ifort*) _lt_dar_can_shared=yes ;;
9063 *) _lt_dar_can_shared=$GCC ;;
9064 esac
9065 if test "$_lt_dar_can_shared" = "yes"; then
9066 output_verbose_link_cmd=func_echo_all
9067 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9068 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9069 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}"
9070 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}"
9071
9072 else
9073 ld_shlibs=no
9074 fi
9075
9076 ;;
9077
9078 dgux*)
9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_shlibpath_var=no
9082 ;;
9083
9084 freebsd1*)
9085 ld_shlibs=no
9086 ;;
9087
9088 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9089 # support. Future versions do this automatically, but an explicit c++rt0.o
9090 # does not break anything, and helps significantly (at the cost of a little
9091 # extra space).
9092 freebsd2.2*)
9093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9094 hardcode_libdir_flag_spec='-R$libdir'
9095 hardcode_direct=yes
9096 hardcode_shlibpath_var=no
9097 ;;
9098
9099 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9100 freebsd2*)
9101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9102 hardcode_direct=yes
9103 hardcode_minus_L=yes
9104 hardcode_shlibpath_var=no
9105 ;;
9106
9107 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9108 freebsd* | dragonfly*)
9109 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9110 hardcode_libdir_flag_spec='-R$libdir'
9111 hardcode_direct=yes
9112 hardcode_shlibpath_var=no
9113 ;;
9114
9115 hpux9*)
9116 if test "$GCC" = yes; then
9117 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'
9118 else
9119 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'
9120 fi
9121 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9122 hardcode_libdir_separator=:
9123 hardcode_direct=yes
9124
9125 # hardcode_minus_L: Not really in the search PATH,
9126 # but as the default location of the library.
9127 hardcode_minus_L=yes
9128 export_dynamic_flag_spec='${wl}-E'
9129 ;;
9130
9131 hpux10*)
9132 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9133 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9134 else
9135 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9136 fi
9137 if test "$with_gnu_ld" = no; then
9138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9139 hardcode_libdir_flag_spec_ld='+b $libdir'
9140 hardcode_libdir_separator=:
9141 hardcode_direct=yes
9142 hardcode_direct_absolute=yes
9143 export_dynamic_flag_spec='${wl}-E'
9144 # hardcode_minus_L: Not really in the search PATH,
9145 # but as the default location of the library.
9146 hardcode_minus_L=yes
9147 fi
9148 ;;
9149
9150 hpux11*)
9151 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9152 case $host_cpu in
9153 hppa*64*)
9154 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 ;;
9156 ia64*)
9157 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9158 ;;
9159 *)
9160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161 ;;
9162 esac
9163 else
9164 case $host_cpu in
9165 hppa*64*)
9166 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9167 ;;
9168 ia64*)
9169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9170 ;;
9171 *)
9172
9173 # Older versions of the 11.00 compiler do not understand -b yet
9174 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9176$as_echo_n "checking if $CC understands -b... " >&6; }
9177if test "${lt_cv_prog_compiler__b+set}" = set; then :
9178 $as_echo_n "(cached) " >&6
9179else
9180 lt_cv_prog_compiler__b=no
9181 save_LDFLAGS="$LDFLAGS"
9182 LDFLAGS="$LDFLAGS -b"
9183 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9185 # The linker can only warn and ignore the option if not recognized
9186 # So say no if there are warnings
9187 if test -s conftest.err; then
9188 # Append any errors to the config.log.
9189 cat conftest.err 1>&5
9190 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9192 if diff conftest.exp conftest.er2 >/dev/null; then
9193 lt_cv_prog_compiler__b=yes
9194 fi
9195 else
9196 lt_cv_prog_compiler__b=yes
9197 fi
9198 fi
9199 $RM -r conftest*
9200 LDFLAGS="$save_LDFLAGS"
9201
9202fi
9203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9204$as_echo "$lt_cv_prog_compiler__b" >&6; }
9205
9206if test x"$lt_cv_prog_compiler__b" = xyes; then
9207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9208else
9209 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9210fi
9211
9212 ;;
9213 esac
9214 fi
9215 if test "$with_gnu_ld" = no; then
9216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9217 hardcode_libdir_separator=:
9218
9219 case $host_cpu in
9220 hppa*64*|ia64*)
9221 hardcode_direct=no
9222 hardcode_shlibpath_var=no
9223 ;;
9224 *)
9225 hardcode_direct=yes
9226 hardcode_direct_absolute=yes
9227 export_dynamic_flag_spec='${wl}-E'
9228
9229 # hardcode_minus_L: Not really in the search PATH,
9230 # but as the default location of the library.
9231 hardcode_minus_L=yes
9232 ;;
9233 esac
9234 fi
9235 ;;
9236
9237 irix5* | irix6* | nonstopux*)
9238 if test "$GCC" = yes; then
9239 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'
9240 # Try to use the -exported_symbol ld option, if it does not
9241 # work, assume that -exports_file does not work either and
9242 # implicitly export all symbols.
9243 save_LDFLAGS="$LDFLAGS"
9244 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246/* end confdefs.h. */
9247int foo(void) {}
9248_ACEOF
9249if ac_fn_c_try_link "$LINENO"; then :
9250 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'
9251
9252fi
9253rm -f core conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255 LDFLAGS="$save_LDFLAGS"
9256 else
9257 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'
9258 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'
9259 fi
9260 archive_cmds_need_lc='no'
9261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9262 hardcode_libdir_separator=:
9263 inherit_rpath=yes
9264 link_all_deplibs=yes
9265 ;;
9266
9267 netbsd*)
9268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9270 else
9271 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9272 fi
9273 hardcode_libdir_flag_spec='-R$libdir'
9274 hardcode_direct=yes
9275 hardcode_shlibpath_var=no
9276 ;;
9277
9278 newsos6)
9279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280 hardcode_direct=yes
9281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9282 hardcode_libdir_separator=:
9283 hardcode_shlibpath_var=no
9284 ;;
9285
9286 *nto* | *qnx*)
9287 ;;
9288
9289 openbsd*)
9290 if test -f /usr/libexec/ld.so; then
9291 hardcode_direct=yes
9292 hardcode_shlibpath_var=no
9293 hardcode_direct_absolute=yes
9294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9296 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9298 export_dynamic_flag_spec='${wl}-E'
9299 else
9300 case $host_os in
9301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9303 hardcode_libdir_flag_spec='-R$libdir'
9304 ;;
9305 *)
9306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9308 ;;
9309 esac
9310 fi
9311 else
9312 ld_shlibs=no
9313 fi
9314 ;;
9315
9316 os2*)
9317 hardcode_libdir_flag_spec='-L$libdir'
9318 hardcode_minus_L=yes
9319 allow_undefined_flag=unsupported
9320 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'
9321 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9322 ;;
9323
9324 osf3*)
9325 if test "$GCC" = yes; then
9326 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9327 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'
9328 else
9329 allow_undefined_flag=' -expect_unresolved \*'
9330 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'
9331 fi
9332 archive_cmds_need_lc='no'
9333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9334 hardcode_libdir_separator=:
9335 ;;
9336
9337 osf4* | osf5*) # as osf3* with the addition of -msym flag
9338 if test "$GCC" = yes; then
9339 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9340 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'
9341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342 else
9343 allow_undefined_flag=' -expect_unresolved \*'
9344 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'
9345 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~
9346 $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'
9347
9348 # Both c and cxx compiler support -rpath directly
9349 hardcode_libdir_flag_spec='-rpath $libdir'
9350 fi
9351 archive_cmds_need_lc='no'
9352 hardcode_libdir_separator=:
9353 ;;
9354
9355 solaris*)
9356 no_undefined_flag=' -z defs'
9357 if test "$GCC" = yes; then
9358 wlarc='${wl}'
9359 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9360 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9361 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9362 else
9363 case `$CC -V 2>&1` in
9364 *"Compilers 5.0"*)
9365 wlarc=''
9366 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9369 ;;
9370 *)
9371 wlarc='${wl}'
9372 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9374 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9375 ;;
9376 esac
9377 fi
9378 hardcode_libdir_flag_spec='-R$libdir'
9379 hardcode_shlibpath_var=no
9380 case $host_os in
9381 solaris2.[0-5] | solaris2.[0-5].*) ;;
9382 *)
9383 # The compiler driver will combine and reorder linker options,
9384 # but understands `-z linker_flag'. GCC discards it without `$wl',
9385 # but is careful enough not to reorder.
9386 # Supported since Solaris 2.6 (maybe 2.5.1?)
9387 if test "$GCC" = yes; then
9388 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9389 else
9390 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9391 fi
9392 ;;
9393 esac
9394 link_all_deplibs=yes
9395 ;;
9396
9397 sunos4*)
9398 if test "x$host_vendor" = xsequent; then
9399 # Use $CC to link under sequent, because it throws in some extra .o
9400 # files that make .init and .fini sections work.
9401 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9402 else
9403 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9404 fi
9405 hardcode_libdir_flag_spec='-L$libdir'
9406 hardcode_direct=yes
9407 hardcode_minus_L=yes
9408 hardcode_shlibpath_var=no
9409 ;;
9410
9411 sysv4)
9412 case $host_vendor in
9413 sni)
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_direct=yes # is this really true???
9416 ;;
9417 siemens)
9418 ## LD is ld it makes a PLAMLIB
9419 ## CC just makes a GrossModule.
9420 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9421 reload_cmds='$CC -r -o $output$reload_objs'
9422 hardcode_direct=no
9423 ;;
9424 motorola)
9425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9427 ;;
9428 esac
9429 runpath_var='LD_RUN_PATH'
9430 hardcode_shlibpath_var=no
9431 ;;
9432
9433 sysv4.3*)
9434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435 hardcode_shlibpath_var=no
9436 export_dynamic_flag_spec='-Bexport'
9437 ;;
9438
9439 sysv4*MP*)
9440 if test -d /usr/nec; then
9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442 hardcode_shlibpath_var=no
9443 runpath_var=LD_RUN_PATH
9444 hardcode_runpath_var=yes
9445 ld_shlibs=yes
9446 fi
9447 ;;
9448
9449 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9450 no_undefined_flag='${wl}-z,text'
9451 archive_cmds_need_lc=no
9452 hardcode_shlibpath_var=no
9453 runpath_var='LD_RUN_PATH'
9454
9455 if test "$GCC" = yes; then
9456 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 else
9459 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 fi
9462 ;;
9463
9464 sysv5* | sco3.2v5* | sco5v6*)
9465 # Note: We can NOT use -z defs as we might desire, because we do not
9466 # link with -lc, and that would cause any symbols used from libc to
9467 # always be unresolved, which means just about no library would
9468 # ever link correctly. If we're not using GNU ld we use -z text
9469 # though, which does catch some bad symbols but isn't as heavy-handed
9470 # as -z defs.
9471 no_undefined_flag='${wl}-z,text'
9472 allow_undefined_flag='${wl}-z,nodefs'
9473 archive_cmds_need_lc=no
9474 hardcode_shlibpath_var=no
9475 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9476 hardcode_libdir_separator=':'
9477 link_all_deplibs=yes
9478 export_dynamic_flag_spec='${wl}-Bexport'
9479 runpath_var='LD_RUN_PATH'
9480
9481 if test "$GCC" = yes; then
9482 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9484 else
9485 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487 fi
9488 ;;
9489
9490 uts4*)
9491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492 hardcode_libdir_flag_spec='-L$libdir'
9493 hardcode_shlibpath_var=no
9494 ;;
9495
9496 *)
9497 ld_shlibs=no
9498 ;;
9499 esac
9500
9501 if test x$host_vendor = xsni; then
9502 case $host in
9503 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9504 export_dynamic_flag_spec='${wl}-Blargedynsym'
9505 ;;
9506 esac
9507 fi
9508 fi
9509
9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9511$as_echo "$ld_shlibs" >&6; }
9512test "$ld_shlibs" = no && can_build_shared=no
9513
9514with_gnu_ld=$with_gnu_ld
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530#
9531# Do we need to explicitly link libc?
9532#
9533case "x$archive_cmds_need_lc" in
9534x|xyes)
9535 # Assume -lc should be added
9536 archive_cmds_need_lc=yes
9537
9538 if test "$enable_shared" = yes && test "$GCC" = yes; then
9539 case $archive_cmds in
9540 *'~'*)
9541 # FIXME: we may have to deal with multi-command sequences.
9542 ;;
9543 '$CC '*)
9544 # Test whether the compiler implicitly links with -lc since on some
9545 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9546 # to ld, don't add -lc before -lgcc.
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9548$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9549if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551else
9552 $RM conftest*
9553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9554
9555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9556 (eval $ac_compile) 2>&5
9557 ac_status=$?
9558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9559 test $ac_status = 0; } 2>conftest.err; then
9560 soname=conftest
9561 lib=conftest
9562 libobjs=conftest.$ac_objext
9563 deplibs=
9564 wl=$lt_prog_compiler_wl
9565 pic_flag=$lt_prog_compiler_pic
9566 compiler_flags=-v
9567 linker_flags=-v
9568 verstring=
9569 output_objdir=.
9570 libname=conftest
9571 lt_save_allow_undefined_flag=$allow_undefined_flag
9572 allow_undefined_flag=
9573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9574 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9575 ac_status=$?
9576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9577 test $ac_status = 0; }
9578 then
9579 lt_cv_archive_cmds_need_lc=no
9580 else
9581 lt_cv_archive_cmds_need_lc=yes
9582 fi
9583 allow_undefined_flag=$lt_save_allow_undefined_flag
9584 else
9585 cat conftest.err 1>&5
9586 fi
9587 $RM conftest*
9588
9589fi
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9591$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9592 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9593 ;;
9594 esac
9595 fi
9596 ;;
9597esac
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9756$as_echo_n "checking dynamic linker characteristics... " >&6; }
9757
9758if test "$GCC" = yes; then
9759 case $host_os in
9760 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9761 *) lt_awk_arg="/^libraries:/" ;;
9762 esac
9763 case $host_os in
9764 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9765 *) lt_sed_strip_eq="s,=/,/,g" ;;
9766 esac
9767 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9768 case $lt_search_path_spec in
9769 *\;*)
9770 # if the path contains ";" then we assume it to be the separator
9771 # otherwise default to the standard path separator (i.e. ":") - it is
9772 # assumed that no part of a normal pathname contains ";" but that should
9773 # okay in the real world where ";" in dirpaths is itself problematic.
9774 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9775 ;;
9776 *)
9777 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9778 ;;
9779 esac
9780 # Ok, now we have the path, separated by spaces, we can step through it
9781 # and add multilib dir if necessary.
9782 lt_tmp_lt_search_path_spec=
9783 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9784 for lt_sys_path in $lt_search_path_spec; do
9785 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9786 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9787 else
9788 test -d "$lt_sys_path" && \
9789 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9790 fi
9791 done
9792 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9793BEGIN {RS=" "; FS="/|\n";} {
9794 lt_foo="";
9795 lt_count=0;
9796 for (lt_i = NF; lt_i > 0; lt_i--) {
9797 if ($lt_i != "" && $lt_i != ".") {
9798 if ($lt_i == "..") {
9799 lt_count++;
9800 } else {
9801 if (lt_count == 0) {
9802 lt_foo="/" $lt_i lt_foo;
9803 } else {
9804 lt_count--;
9805 }
9806 }
9807 }
9808 }
9809 if (lt_foo != "") { lt_freq[lt_foo]++; }
9810 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9811}'`
9812 # AWK program above erroneously prepends '/' to C:/dos/paths
9813 # for these hosts.
9814 case $host_os in
9815 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9816 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9817 esac
9818 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9819else
9820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9821fi
9822library_names_spec=
9823libname_spec='lib$name'
9824soname_spec=
9825shrext_cmds=".so"
9826postinstall_cmds=
9827postuninstall_cmds=
9828finish_cmds=
9829finish_eval=
9830shlibpath_var=
9831shlibpath_overrides_runpath=unknown
9832version_type=none
9833dynamic_linker="$host_os ld.so"
9834sys_lib_dlsearch_path_spec="/lib /usr/lib"
9835need_lib_prefix=unknown
9836hardcode_into_libs=no
9837
9838# when you set need_version to no, make sure it does not cause -set_version
9839# flags to be left without arguments
9840need_version=unknown
9841
9842case $host_os in
9843aix3*)
9844 version_type=linux
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9846 shlibpath_var=LIBPATH
9847
9848 # AIX 3 has no versioning support, so we append a major version to the name.
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 ;;
9851
9852aix[4-9]*)
9853 version_type=linux
9854 need_lib_prefix=no
9855 need_version=no
9856 hardcode_into_libs=yes
9857 if test "$host_cpu" = ia64; then
9858 # AIX 5 supports IA64
9859 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 else
9862 # With GCC up to 2.95.x, collect2 would create an import file
9863 # for dependence libraries. The import file would start with
9864 # the line `#! .'. This would cause the generated library to
9865 # depend on `.', always an invalid library. This was fixed in
9866 # development snapshots of GCC prior to 3.0.
9867 case $host_os in
9868 aix4 | aix4.[01] | aix4.[01].*)
9869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9870 echo ' yes '
9871 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9872 :
9873 else
9874 can_build_shared=no
9875 fi
9876 ;;
9877 esac
9878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9879 # soname into executable. Probably we can add versioning support to
9880 # collect2, so additional links can be useful in future.
9881 if test "$aix_use_runtimelinking" = yes; then
9882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9883 # instead of lib<name>.a to let people know that these are not
9884 # typical AIX shared libraries.
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 else
9887 # We preserve .a as extension for shared libraries through AIX4.2
9888 # and later when we are not doing run time linking.
9889 library_names_spec='${libname}${release}.a $libname.a'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 fi
9892 shlibpath_var=LIBPATH
9893 fi
9894 ;;
9895
9896amigaos*)
9897 case $host_cpu in
9898 powerpc)
9899 # Since July 2007 AmigaOS4 officially supports .so libraries.
9900 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 ;;
9903 m68k)
9904 library_names_spec='$libname.ixlibrary $libname.a'
9905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9906 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'
9907 ;;
9908 esac
9909 ;;
9910
9911beos*)
9912 library_names_spec='${libname}${shared_ext}'
9913 dynamic_linker="$host_os ld.so"
9914 shlibpath_var=LIBRARY_PATH
9915 ;;
9916
9917bsdi[45]*)
9918 version_type=linux
9919 need_version=no
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9923 shlibpath_var=LD_LIBRARY_PATH
9924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9926 # the default ld.so.conf also contains /usr/contrib/lib and
9927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9928 # libtool to hard-code these into programs
9929 ;;
9930
9931cygwin* | mingw* | pw32* | cegcc*)
9932 version_type=windows
9933 shrext_cmds=".dll"
9934 need_version=no
9935 need_lib_prefix=no
9936
9937 case $GCC,$host_os in
9938 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9939 library_names_spec='$libname.dll.a'
9940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9941 postinstall_cmds='base_file=`basename \${file}`~
9942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9943 dldir=$destdir/`dirname \$dlpath`~
9944 test -d \$dldir || mkdir -p \$dldir~
9945 $install_prog $dir/$dlname \$dldir/$dlname~
9946 chmod a+x \$dldir/$dlname~
9947 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9948 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9949 fi'
9950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9951 dlpath=$dir/\$dldll~
9952 $RM \$dlpath'
9953 shlibpath_overrides_runpath=yes
9954
9955 case $host_os in
9956 cygwin*)
9957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9959
9960 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9961 ;;
9962 mingw* | cegcc*)
9963 # MinGW DLLs use traditional 'lib' prefix
9964 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965 ;;
9966 pw32*)
9967 # pw32 DLLs use 'pw' prefix rather than 'lib'
9968 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9969 ;;
9970 esac
9971 ;;
9972
9973 *)
9974 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9975 ;;
9976 esac
9977 dynamic_linker='Win32 ld.exe'
9978 # FIXME: first we should search . and the directory the executable is in
9979 shlibpath_var=PATH
9980 ;;
9981
9982darwin* | rhapsody*)
9983 dynamic_linker="$host_os dyld"
9984 version_type=darwin
9985 need_lib_prefix=no
9986 need_version=no
9987 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9988 soname_spec='${libname}${release}${major}$shared_ext'
9989 shlibpath_overrides_runpath=yes
9990 shlibpath_var=DYLD_LIBRARY_PATH
9991 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9992
9993 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9995 ;;
9996
9997dgux*)
9998 version_type=linux
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 ;;
10005
10006freebsd1*)
10007 dynamic_linker=no
10008 ;;
10009
10010freebsd* | dragonfly*)
10011 # DragonFly does not have aout. When/if they implement a new
10012 # versioning mechanism, adjust this.
10013 if test -x /usr/bin/objformat; then
10014 objformat=`/usr/bin/objformat`
10015 else
10016 case $host_os in
10017 freebsd[123]*) objformat=aout ;;
10018 *) objformat=elf ;;
10019 esac
10020 fi
10021 version_type=freebsd-$objformat
10022 case $version_type in
10023 freebsd-elf*)
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10025 need_version=no
10026 need_lib_prefix=no
10027 ;;
10028 freebsd-*)
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10030 need_version=yes
10031 ;;
10032 esac
10033 shlibpath_var=LD_LIBRARY_PATH
10034 case $host_os in
10035 freebsd2*)
10036 shlibpath_overrides_runpath=yes
10037 ;;
10038 freebsd3.[01]* | freebsdelf3.[01]*)
10039 shlibpath_overrides_runpath=yes
10040 hardcode_into_libs=yes
10041 ;;
10042 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10043 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10044 shlibpath_overrides_runpath=no
10045 hardcode_into_libs=yes
10046 ;;
10047 *) # from 4.6 on, and DragonFly
10048 shlibpath_overrides_runpath=yes
10049 hardcode_into_libs=yes
10050 ;;
10051 esac
10052 ;;
10053
10054gnu*)
10055 version_type=linux
10056 need_lib_prefix=no
10057 need_version=no
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 hardcode_into_libs=yes
10062 ;;
10063
10064haiku*)
10065 version_type=linux
10066 need_lib_prefix=no
10067 need_version=no
10068 dynamic_linker="$host_os runtime_loader"
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 shlibpath_var=LIBRARY_PATH
10072 shlibpath_overrides_runpath=yes
10073 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10074 hardcode_into_libs=yes
10075 ;;
10076
10077hpux9* | hpux10* | hpux11*)
10078 # Give a soname corresponding to the major version so that dld.sl refuses to
10079 # link against other versions.
10080 version_type=sunos
10081 need_lib_prefix=no
10082 need_version=no
10083 case $host_cpu in
10084 ia64*)
10085 shrext_cmds='.so'
10086 hardcode_into_libs=yes
10087 dynamic_linker="$host_os dld.so"
10088 shlibpath_var=LD_LIBRARY_PATH
10089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 if test "X$HPUX_IA64_MODE" = X32; then
10093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10094 else
10095 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10096 fi
10097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10098 ;;
10099 hppa*64*)
10100 shrext_cmds='.sl'
10101 hardcode_into_libs=yes
10102 dynamic_linker="$host_os dld.sl"
10103 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109 ;;
10110 *)
10111 shrext_cmds='.sl'
10112 dynamic_linker="$host_os dld.sl"
10113 shlibpath_var=SHLIB_PATH
10114 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 ;;
10118 esac
10119 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10120 postinstall_cmds='chmod 555 $lib'
10121 # or fails outright, so override atomically:
10122 install_override_mode=555
10123 ;;
10124
10125interix[3-9]*)
10126 version_type=linux
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=no
10134 hardcode_into_libs=yes
10135 ;;
10136
10137irix5* | irix6* | nonstopux*)
10138 case $host_os in
10139 nonstopux*) version_type=nonstopux ;;
10140 *)
10141 if test "$lt_cv_prog_gnu_ld" = yes; then
10142 version_type=linux
10143 else
10144 version_type=irix
10145 fi ;;
10146 esac
10147 need_lib_prefix=no
10148 need_version=no
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10151 case $host_os in
10152 irix5* | nonstopux*)
10153 libsuff= shlibsuff=
10154 ;;
10155 *)
10156 case $LD in # libtool.m4 will add one of these switches to LD
10157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10158 libsuff= shlibsuff= libmagic=32-bit;;
10159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10160 libsuff=32 shlibsuff=N32 libmagic=N32;;
10161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10163 *) libsuff= shlibsuff= libmagic=never-match;;
10164 esac
10165 ;;
10166 esac
10167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10171 hardcode_into_libs=yes
10172 ;;
10173
10174# No shared lib support for Linux oldld, aout, or coff.
10175linux*oldld* | linux*aout* | linux*coff*)
10176 dynamic_linker=no
10177 ;;
10178
10179# This must be Linux ELF.
10180linux* | k*bsd*-gnu | kopensolaris*-gnu)
10181 version_type=linux
10182 need_lib_prefix=no
10183 need_version=no
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=no
10189
10190 # Some binutils ld are patched to set DT_RUNPATH
10191 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10192 $as_echo_n "(cached) " >&6
10193else
10194 lt_cv_shlibpath_overrides_runpath=no
10195 save_LDFLAGS=$LDFLAGS
10196 save_libdir=$libdir
10197 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10198 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200/* end confdefs.h. */
10201
10202int
10203main ()
10204{
10205
10206 ;
10207 return 0;
10208}
10209_ACEOF
10210if ac_fn_c_try_link "$LINENO"; then :
10211 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10212 lt_cv_shlibpath_overrides_runpath=yes
10213fi
10214fi
10215rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LDFLAGS=$save_LDFLAGS
10218 libdir=$save_libdir
10219
10220fi
10221
10222 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10223
10224 # This implies no fast_install, which is unacceptable.
10225 # Some rework will be needed to allow for fast_install
10226 # before this can be enabled.
10227 hardcode_into_libs=yes
10228
10229 # Append ld.so.conf contents to the search path
10230 if test -f /etc/ld.so.conf; then
10231 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' ' '`
10232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10233 fi
10234
10235 # We used to test for /lib/ld.so.1 and disable shared libraries on
10236 # powerpc, because MkLinux only supported shared libraries with the
10237 # GNU dynamic linker. Since this was broken with cross compilers,
10238 # most powerpc-linux boxes support dynamic linking these days and
10239 # people can always --disable-shared, the test was removed, and we
10240 # assume the GNU/Linux dynamic linker is in use.
10241 dynamic_linker='GNU/Linux ld.so'
10242 ;;
10243
10244netbsd*)
10245 version_type=sunos
10246 need_lib_prefix=no
10247 need_version=no
10248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10251 dynamic_linker='NetBSD (a.out) ld.so'
10252 else
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 dynamic_linker='NetBSD ld.elf_so'
10256 fi
10257 shlibpath_var=LD_LIBRARY_PATH
10258 shlibpath_overrides_runpath=yes
10259 hardcode_into_libs=yes
10260 ;;
10261
10262newsos6)
10263 version_type=linux
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 shlibpath_overrides_runpath=yes
10267 ;;
10268
10269*nto* | *qnx*)
10270 version_type=qnx
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=no
10277 hardcode_into_libs=yes
10278 dynamic_linker='ldqnx.so'
10279 ;;
10280
10281openbsd*)
10282 version_type=sunos
10283 sys_lib_dlsearch_path_spec="/usr/lib"
10284 need_lib_prefix=no
10285 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10286 case $host_os in
10287 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10288 *) need_version=no ;;
10289 esac
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10294 case $host_os in
10295 openbsd2.[89] | openbsd2.[89].*)
10296 shlibpath_overrides_runpath=no
10297 ;;
10298 *)
10299 shlibpath_overrides_runpath=yes
10300 ;;
10301 esac
10302 else
10303 shlibpath_overrides_runpath=yes
10304 fi
10305 ;;
10306
10307os2*)
10308 libname_spec='$name'
10309 shrext_cmds=".dll"
10310 need_lib_prefix=no
10311 library_names_spec='$libname${shared_ext} $libname.a'
10312 dynamic_linker='OS/2 ld.exe'
10313 shlibpath_var=LIBPATH
10314 ;;
10315
10316osf3* | osf4* | osf5*)
10317 version_type=osf
10318 need_lib_prefix=no
10319 need_version=no
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10324 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10325 ;;
10326
10327rdos*)
10328 dynamic_linker=no
10329 ;;
10330
10331solaris*)
10332 version_type=linux
10333 need_lib_prefix=no
10334 need_version=no
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 hardcode_into_libs=yes
10340 # ldd complains unless libraries are executable
10341 postinstall_cmds='chmod +x $lib'
10342 ;;
10343
10344sunos4*)
10345 version_type=sunos
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10347 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes
10350 if test "$with_gnu_ld" = yes; then
10351 need_lib_prefix=no
10352 fi
10353 need_version=yes
10354 ;;
10355
10356sysv4 | sysv4.3*)
10357 version_type=linux
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 case $host_vendor in
10362 sni)
10363 shlibpath_overrides_runpath=no
10364 need_lib_prefix=no
10365 runpath_var=LD_RUN_PATH
10366 ;;
10367 siemens)
10368 need_lib_prefix=no
10369 ;;
10370 motorola)
10371 need_lib_prefix=no
10372 need_version=no
10373 shlibpath_overrides_runpath=no
10374 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10375 ;;
10376 esac
10377 ;;
10378
10379sysv4*MP*)
10380 if test -d /usr/nec ;then
10381 version_type=linux
10382 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10383 soname_spec='$libname${shared_ext}.$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 fi
10386 ;;
10387
10388sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10389 version_type=freebsd-elf
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=yes
10396 hardcode_into_libs=yes
10397 if test "$with_gnu_ld" = yes; then
10398 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10399 else
10400 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10401 case $host_os in
10402 sco3.2v5*)
10403 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10404 ;;
10405 esac
10406 fi
10407 sys_lib_dlsearch_path_spec='/usr/lib'
10408 ;;
10409
10410tpf*)
10411 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10412 version_type=linux
10413 need_lib_prefix=no
10414 need_version=no
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=no
10418 hardcode_into_libs=yes
10419 ;;
10420
10421uts4*)
10422 version_type=linux
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 ;;
10427
10428*)
10429 dynamic_linker=no
10430 ;;
10431esac
10432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10433$as_echo "$dynamic_linker" >&6; }
10434test "$dynamic_linker" = no && can_build_shared=no
10435
10436variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10437if test "$GCC" = yes; then
10438 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10439fi
10440
10441if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10442 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10443fi
10444if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10445 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10446fi
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10540$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10541hardcode_action=
10542if test -n "$hardcode_libdir_flag_spec" ||
10543 test -n "$runpath_var" ||
10544 test "X$hardcode_automatic" = "Xyes" ; then
10545
10546 # We can hardcode non-existent directories.
10547 if test "$hardcode_direct" != no &&
10548 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10549 # have to relink, otherwise we might link with an installed library
10550 # when we should be linking with a yet-to-be-installed one
10551 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10552 test "$hardcode_minus_L" != no; then
10553 # Linking always hardcodes the temporary library directory.
10554 hardcode_action=relink
10555 else
10556 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10557 hardcode_action=immediate
10558 fi
10559else
10560 # We cannot hardcode anything, or else we can only hardcode existing
10561 # directories.
10562 hardcode_action=unsupported
10563fi
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10565$as_echo "$hardcode_action" >&6; }
10566
10567if test "$hardcode_action" = relink ||
10568 test "$inherit_rpath" = yes; then
10569 # Fast installation is not supported
10570 enable_fast_install=no
10571elif test "$shlibpath_overrides_runpath" = yes ||
10572 test "$enable_shared" = no; then
10573 # Fast installation is not necessary
10574 enable_fast_install=needless
10575fi
10576
10577
10578
10579
10580
10581
10582 if test "x$enable_dlopen" != xyes; then
10583 enable_dlopen=unknown
10584 enable_dlopen_self=unknown
10585 enable_dlopen_self_static=unknown
10586else
10587 lt_cv_dlopen=no
10588 lt_cv_dlopen_libs=
10589
10590 case $host_os in
10591 beos*)
10592 lt_cv_dlopen="load_add_on"
10593 lt_cv_dlopen_libs=
10594 lt_cv_dlopen_self=yes
10595 ;;
10596
10597 mingw* | pw32* | cegcc*)
10598 lt_cv_dlopen="LoadLibrary"
10599 lt_cv_dlopen_libs=
10600 ;;
10601
10602 cygwin*)
10603 lt_cv_dlopen="dlopen"
10604 lt_cv_dlopen_libs=
10605 ;;
10606
10607 darwin*)
10608 # if libdl is installed we need to link against it
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10610$as_echo_n "checking for dlopen in -ldl... " >&6; }
10611if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10612 $as_echo_n "(cached) " >&6
10613else
10614 ac_check_lib_save_LIBS=$LIBS
10615LIBS="-ldl $LIBS"
10616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617/* end confdefs.h. */
10618
10619/* Override any GCC internal prototype to avoid an error.
10620 Use char because int might match the return type of a GCC
10621 builtin and then its argument prototype would still apply. */
10622#ifdef __cplusplus
10623extern "C"
10624#endif
10625char dlopen ();
10626int
10627main ()
10628{
10629return dlopen ();
10630 ;
10631 return 0;
10632}
10633_ACEOF
10634if ac_fn_c_try_link "$LINENO"; then :
10635 ac_cv_lib_dl_dlopen=yes
10636else
10637 ac_cv_lib_dl_dlopen=no
10638fi
10639rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641LIBS=$ac_check_lib_save_LIBS
10642fi
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10644$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10645if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10647else
10648
10649 lt_cv_dlopen="dyld"
10650 lt_cv_dlopen_libs=
10651 lt_cv_dlopen_self=yes
10652
10653fi
10654
10655 ;;
10656
10657 *)
10658 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10659if test "x$ac_cv_func_shl_load" = x""yes; then :
10660 lt_cv_dlopen="shl_load"
10661else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10663$as_echo_n "checking for shl_load in -ldld... " >&6; }
10664if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10666else
10667 ac_check_lib_save_LIBS=$LIBS
10668LIBS="-ldld $LIBS"
10669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670/* end confdefs.h. */
10671
10672/* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675#ifdef __cplusplus
10676extern "C"
10677#endif
10678char shl_load ();
10679int
10680main ()
10681{
10682return shl_load ();
10683 ;
10684 return 0;
10685}
10686_ACEOF
10687if ac_fn_c_try_link "$LINENO"; then :
10688 ac_cv_lib_dld_shl_load=yes
10689else
10690 ac_cv_lib_dld_shl_load=no
10691fi
10692rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694LIBS=$ac_check_lib_save_LIBS
10695fi
10696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10697$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10698if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10699 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10700else
10701 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10702if test "x$ac_cv_func_dlopen" = x""yes; then :
10703 lt_cv_dlopen="dlopen"
10704else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10706$as_echo_n "checking for dlopen in -ldl... " >&6; }
10707if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10709else
10710 ac_check_lib_save_LIBS=$LIBS
10711LIBS="-ldl $LIBS"
10712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713/* end confdefs.h. */
10714
10715/* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718#ifdef __cplusplus
10719extern "C"
10720#endif
10721char dlopen ();
10722int
10723main ()
10724{
10725return dlopen ();
10726 ;
10727 return 0;
10728}
10729_ACEOF
10730if ac_fn_c_try_link "$LINENO"; then :
10731 ac_cv_lib_dl_dlopen=yes
10732else
10733 ac_cv_lib_dl_dlopen=no
10734fi
10735rm -f core conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737LIBS=$ac_check_lib_save_LIBS
10738fi
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10740$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10741if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10743else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10745$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10746if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10747 $as_echo_n "(cached) " >&6
10748else
10749 ac_check_lib_save_LIBS=$LIBS
10750LIBS="-lsvld $LIBS"
10751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752/* end confdefs.h. */
10753
10754/* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10757#ifdef __cplusplus
10758extern "C"
10759#endif
10760char dlopen ();
10761int
10762main ()
10763{
10764return dlopen ();
10765 ;
10766 return 0;
10767}
10768_ACEOF
10769if ac_fn_c_try_link "$LINENO"; then :
10770 ac_cv_lib_svld_dlopen=yes
10771else
10772 ac_cv_lib_svld_dlopen=no
10773fi
10774rm -f core conftest.err conftest.$ac_objext \
10775 conftest$ac_exeext conftest.$ac_ext
10776LIBS=$ac_check_lib_save_LIBS
10777fi
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10779$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10780if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10782else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10784$as_echo_n "checking for dld_link in -ldld... " >&6; }
10785if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10787else
10788 ac_check_lib_save_LIBS=$LIBS
10789LIBS="-ldld $LIBS"
10790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791/* end confdefs.h. */
10792
10793/* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
10796#ifdef __cplusplus
10797extern "C"
10798#endif
10799char dld_link ();
10800int
10801main ()
10802{
10803return dld_link ();
10804 ;
10805 return 0;
10806}
10807_ACEOF
10808if ac_fn_c_try_link "$LINENO"; then :
10809 ac_cv_lib_dld_dld_link=yes
10810else
10811 ac_cv_lib_dld_dld_link=no
10812fi
10813rm -f core conftest.err conftest.$ac_objext \
10814 conftest$ac_exeext conftest.$ac_ext
10815LIBS=$ac_check_lib_save_LIBS
10816fi
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10818$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10819if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10820 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10821fi
10822
10823
10824fi
10825
10826
10827fi
10828
10829
10830fi
10831
10832
10833fi
10834
10835
10836fi
10837
10838 ;;
10839 esac
10840
10841 if test "x$lt_cv_dlopen" != xno; then
10842 enable_dlopen=yes
10843 else
10844 enable_dlopen=no
10845 fi
10846
10847 case $lt_cv_dlopen in
10848 dlopen)
10849 save_CPPFLAGS="$CPPFLAGS"
10850 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10851
10852 save_LDFLAGS="$LDFLAGS"
10853 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10854
10855 save_LIBS="$LIBS"
10856 LIBS="$lt_cv_dlopen_libs $LIBS"
10857
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10859$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10860if test "${lt_cv_dlopen_self+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862else
10863 if test "$cross_compiling" = yes; then :
10864 lt_cv_dlopen_self=cross
10865else
10866 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10867 lt_status=$lt_dlunknown
10868 cat > conftest.$ac_ext <<_LT_EOF
10869#line 10869 "configure"
10870#include "confdefs.h"
10871
10872#if HAVE_DLFCN_H
10873#include <dlfcn.h>
10874#endif
10875
10876#include <stdio.h>
10877
10878#ifdef RTLD_GLOBAL
10879# define LT_DLGLOBAL RTLD_GLOBAL
10880#else
10881# ifdef DL_GLOBAL
10882# define LT_DLGLOBAL DL_GLOBAL
10883# else
10884# define LT_DLGLOBAL 0
10885# endif
10886#endif
10887
10888/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10889 find out it does not work in some platform. */
10890#ifndef LT_DLLAZY_OR_NOW
10891# ifdef RTLD_LAZY
10892# define LT_DLLAZY_OR_NOW RTLD_LAZY
10893# else
10894# ifdef DL_LAZY
10895# define LT_DLLAZY_OR_NOW DL_LAZY
10896# else
10897# ifdef RTLD_NOW
10898# define LT_DLLAZY_OR_NOW RTLD_NOW
10899# else
10900# ifdef DL_NOW
10901# define LT_DLLAZY_OR_NOW DL_NOW
10902# else
10903# define LT_DLLAZY_OR_NOW 0
10904# endif
10905# endif
10906# endif
10907# endif
10908#endif
10909
10910/* When -fvisbility=hidden is used, assume the code has been annotated
10911 correspondingly for the symbols needed. */
10912#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10913void fnord () __attribute__((visibility("default")));
10914#endif
10915
10916void fnord () { int i=42; }
10917int main ()
10918{
10919 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10920 int status = $lt_dlunknown;
10921
10922 if (self)
10923 {
10924 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10925 else
10926 {
10927 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10928 else puts (dlerror ());
10929 }
10930 /* dlclose (self); */
10931 }
10932 else
10933 puts (dlerror ());
10934
10935 return status;
10936}
10937_LT_EOF
10938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10939 (eval $ac_link) 2>&5
10940 ac_status=$?
10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10943 (./conftest; exit; ) >&5 2>/dev/null
10944 lt_status=$?
10945 case x$lt_status in
10946 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10947 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10948 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10949 esac
10950 else :
10951 # compilation failed
10952 lt_cv_dlopen_self=no
10953 fi
10954fi
10955rm -fr conftest*
10956
10957
10958fi
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10960$as_echo "$lt_cv_dlopen_self" >&6; }
10961
10962 if test "x$lt_cv_dlopen_self" = xyes; then
10963 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10965$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10966if test "${lt_cv_dlopen_self_static+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
10968else
10969 if test "$cross_compiling" = yes; then :
10970 lt_cv_dlopen_self_static=cross
10971else
10972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10973 lt_status=$lt_dlunknown
10974 cat > conftest.$ac_ext <<_LT_EOF
10975#line 10975 "configure"
10976#include "confdefs.h"
10977
10978#if HAVE_DLFCN_H
10979#include <dlfcn.h>
10980#endif
10981
10982#include <stdio.h>
10983
10984#ifdef RTLD_GLOBAL
10985# define LT_DLGLOBAL RTLD_GLOBAL
10986#else
10987# ifdef DL_GLOBAL
10988# define LT_DLGLOBAL DL_GLOBAL
10989# else
10990# define LT_DLGLOBAL 0
10991# endif
10992#endif
10993
10994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10995 find out it does not work in some platform. */
10996#ifndef LT_DLLAZY_OR_NOW
10997# ifdef RTLD_LAZY
10998# define LT_DLLAZY_OR_NOW RTLD_LAZY
10999# else
11000# ifdef DL_LAZY
11001# define LT_DLLAZY_OR_NOW DL_LAZY
11002# else
11003# ifdef RTLD_NOW
11004# define LT_DLLAZY_OR_NOW RTLD_NOW
11005# else
11006# ifdef DL_NOW
11007# define LT_DLLAZY_OR_NOW DL_NOW
11008# else
11009# define LT_DLLAZY_OR_NOW 0
11010# endif
11011# endif
11012# endif
11013# endif
11014#endif
11015
11016/* When -fvisbility=hidden is used, assume the code has been annotated
11017 correspondingly for the symbols needed. */
11018#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11019void fnord () __attribute__((visibility("default")));
11020#endif
11021
11022void fnord () { int i=42; }
11023int main ()
11024{
11025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11026 int status = $lt_dlunknown;
11027
11028 if (self)
11029 {
11030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11031 else
11032 {
11033 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11034 else puts (dlerror ());
11035 }
11036 /* dlclose (self); */
11037 }
11038 else
11039 puts (dlerror ());
11040
11041 return status;
11042}
11043_LT_EOF
11044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11045 (eval $ac_link) 2>&5
11046 ac_status=$?
11047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11048 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11049 (./conftest; exit; ) >&5 2>/dev/null
11050 lt_status=$?
11051 case x$lt_status in
11052 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11053 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11054 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11055 esac
11056 else :
11057 # compilation failed
11058 lt_cv_dlopen_self_static=no
11059 fi
11060fi
11061rm -fr conftest*
11062
11063
11064fi
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11066$as_echo "$lt_cv_dlopen_self_static" >&6; }
11067 fi
11068
11069 CPPFLAGS="$save_CPPFLAGS"
11070 LDFLAGS="$save_LDFLAGS"
11071 LIBS="$save_LIBS"
11072 ;;
11073 esac
11074
11075 case $lt_cv_dlopen_self in
11076 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11077 *) enable_dlopen_self=unknown ;;
11078 esac
11079
11080 case $lt_cv_dlopen_self_static in
11081 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11082 *) enable_dlopen_self_static=unknown ;;
11083 esac
11084fi
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102striplib=
11103old_striplib=
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11105$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11106if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11107 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11108 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11110$as_echo "yes" >&6; }
11111else
11112# FIXME - insert some real tests, host_os isn't really good enough
11113 case $host_os in
11114 darwin*)
11115 if test -n "$STRIP" ; then
11116 striplib="$STRIP -x"
11117 old_striplib="$STRIP -S"
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11119$as_echo "yes" >&6; }
11120 else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122$as_echo "no" >&6; }
11123 fi
11124 ;;
11125 *)
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127$as_echo "no" >&6; }
11128 ;;
11129 esac
11130fi
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143 # Report which library types will actually be built
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11145$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11147$as_echo "$can_build_shared" >&6; }
11148
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11150$as_echo_n "checking whether to build shared libraries... " >&6; }
11151 test "$can_build_shared" = "no" && enable_shared=no
11152
11153 # On AIX, shared libraries and static libraries use the same namespace, and
11154 # are all built from PIC.
11155 case $host_os in
11156 aix3*)
11157 test "$enable_shared" = yes && enable_static=no
11158 if test -n "$RANLIB"; then
11159 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11160 postinstall_cmds='$RANLIB $lib'
11161 fi
11162 ;;
11163
11164 aix[4-9]*)
11165 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11166 test "$enable_shared" = yes && enable_static=no
11167 fi
11168 ;;
11169 esac
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11171$as_echo "$enable_shared" >&6; }
11172
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11174$as_echo_n "checking whether to build static libraries... " >&6; }
11175 # Make sure either enable_shared or enable_static is yes.
11176 test "$enable_shared" = yes || enable_static=yes
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11178$as_echo "$enable_static" >&6; }
11179
11180
11181
11182
11183fi
11184ac_ext=c
11185ac_cpp='$CPP $CPPFLAGS'
11186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11188ac_compiler_gnu=$ac_cv_c_compiler_gnu
11189
11190CC="$lt_save_CC"
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204# Source file extension for Go test sources.
11205ac_ext=go
11206
11207# Object file extension for compiled Go test sources.
11208objext=o
11209objext_GO=$objext
11210
11211# Code to be used in simple compile tests
11212lt_simple_compile_test_code="package main; func main() { }"
11213
11214# Code to be used in simple link tests
11215lt_simple_link_test_code='package main; func main() { }'
11216
11217# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11218
11219
11220
11221
11222
11223
11224# If no C compiler was specified, use CC.
11225LTCC=${LTCC-"$CC"}
11226
11227# If no C compiler flags were specified, use CFLAGS.
11228LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11229
11230# Allow CC to be a program name with arguments.
11231compiler=$CC
11232
11233
11234# save warnings/boilerplate of simple test code
11235ac_outfile=conftest.$ac_objext
11236echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11237eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11238_lt_compiler_boilerplate=`cat conftest.err`
11239$RM conftest*
11240
11241ac_outfile=conftest.$ac_objext
11242echo "$lt_simple_link_test_code" >conftest.$ac_ext
11243eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11244_lt_linker_boilerplate=`cat conftest.err`
11245$RM -r conftest*
11246
11247
11248# Allow CC to be a program name with arguments.
11249lt_save_CC="$CC"
11250lt_save_GCC="$GCC"
11251GCC=yes
11252CC=${GOC-"gccgo"}
11253compiler=$CC
11254compiler_GO=$CC
11255LD_GO="$LD"
11256for cc_temp in $compiler""; do
11257 case $cc_temp in
11258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11260 \-*) ;;
11261 *) break;;
11262 esac
11263done
11264cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11265
11266
11267# Go did not exist at the time GCC didn't implicitly link libc in.
11268archive_cmds_need_lc_GO=no
11269
11270old_archive_cmds_GO=$old_archive_cmds
11271
11272## CAVEAT EMPTOR:
11273## There is no encapsulation within the following macros, do not change
11274## the running order or otherwise move them around unless you know exactly
11275## what you are doing...
11276if test -n "$compiler"; then
11277
11278lt_prog_compiler_no_builtin_flag_GO=
11279
11280if test "$GCC" = yes; then
11281 case $cc_basename in
11282 nvcc*)
11283 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11284 *)
11285 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11286 esac
11287
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11289$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11290if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11291 $as_echo_n "(cached) " >&6
11292else
11293 lt_cv_prog_compiler_rtti_exceptions=no
11294 ac_outfile=conftest.$ac_objext
11295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11296 lt_compiler_flag="-fno-rtti -fno-exceptions"
11297 # Insert the option either (1) after the last *FLAGS variable, or
11298 # (2) before a word containing "conftest.", or (3) at the end.
11299 # Note that $ac_compile itself does not contain backslashes and begins
11300 # with a dollar sign (not a hyphen), so the echo should work correctly.
11301 # The option is referenced via a variable to avoid confusing sed.
11302 lt_compile=`echo "$ac_compile" | $SED \
11303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11305 -e 's:$: $lt_compiler_flag:'`
11306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11307 (eval "$lt_compile" 2>conftest.err)
11308 ac_status=$?
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 if (exit $ac_status) && test -s "$ac_outfile"; then
11312 # The compiler can only warn and ignore the option if not recognized
11313 # So say no if there are warnings other than the usual output.
11314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11317 lt_cv_prog_compiler_rtti_exceptions=yes
11318 fi
11319 fi
11320 $RM conftest*
11321
11322fi
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11324$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11325
11326if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11327 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11328else
11329 :
11330fi
11331
11332fi
11333
11334
11335
11336 lt_prog_compiler_wl_GO=
11337lt_prog_compiler_pic_GO=
11338lt_prog_compiler_static_GO=
11339
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11341$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11342
11343 if test "$GCC" = yes; then
11344 lt_prog_compiler_wl_GO='-Wl,'
11345 lt_prog_compiler_static_GO='-static'
11346
11347 case $host_os in
11348 aix*)
11349 # All AIX code is PIC.
11350 if test "$host_cpu" = ia64; then
11351 # AIX 5 now supports IA64 processor
11352 lt_prog_compiler_static_GO='-Bstatic'
11353 fi
11354 ;;
11355
11356 amigaos*)
11357 case $host_cpu in
11358 powerpc)
11359 # see comment about AmigaOS4 .so support
11360 lt_prog_compiler_pic_GO='-fPIC'
11361 ;;
11362 m68k)
11363 # FIXME: we need at least 68020 code to build shared libraries, but
11364 # adding the `-m68020' flag to GCC prevents building anything better,
11365 # like `-m68040'.
11366 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11367 ;;
11368 esac
11369 ;;
11370
11371 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11372 # PIC is the default for these OSes.
11373 ;;
11374
11375 mingw* | cygwin* | pw32* | os2* | cegcc*)
11376 # This hack is so that the source file can tell whether it is being
11377 # built for inclusion in a dll (and should export symbols for example).
11378 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11379 # (--disable-auto-import) libraries
11380 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11381 ;;
11382
11383 darwin* | rhapsody*)
11384 # PIC is the default on this platform
11385 # Common symbols not allowed in MH_DYLIB files
11386 lt_prog_compiler_pic_GO='-fno-common'
11387 ;;
11388
11389 haiku*)
11390 # PIC is the default for Haiku.
11391 # The "-static" flag exists, but is broken.
11392 lt_prog_compiler_static_GO=
11393 ;;
11394
11395 hpux*)
11396 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11397 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11398 # sets the default TLS model and affects inlining.
11399 case $host_cpu in
11400 hppa*64*)
11401 # +Z the default
11402 ;;
11403 *)
11404 lt_prog_compiler_pic_GO='-fPIC'
11405 ;;
11406 esac
11407 ;;
11408
11409 interix[3-9]*)
11410 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11411 # Instead, we relocate shared libraries at runtime.
11412 ;;
11413
11414 msdosdjgpp*)
11415 # Just because we use GCC doesn't mean we suddenly get shared libraries
11416 # on systems that don't support them.
11417 lt_prog_compiler_can_build_shared_GO=no
11418 enable_shared=no
11419 ;;
11420
11421 *nto* | *qnx*)
11422 # QNX uses GNU C++, but need to define -shared option too, otherwise
11423 # it will coredump.
11424 lt_prog_compiler_pic_GO='-fPIC -shared'
11425 ;;
11426
11427 sysv4*MP*)
11428 if test -d /usr/nec; then
11429 lt_prog_compiler_pic_GO=-Kconform_pic
11430 fi
11431 ;;
11432
11433 *)
11434 lt_prog_compiler_pic_GO='-fPIC'
11435 ;;
11436 esac
11437
11438 case $cc_basename in
11439 nvcc*) # Cuda Compiler Driver 2.2
11440 lt_prog_compiler_wl_GO='-Xlinker '
11441 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11442 ;;
11443 esac
11444 else
11445 # PORTME Check for flag to pass linker flags through the system compiler.
11446 case $host_os in
11447 aix*)
11448 lt_prog_compiler_wl_GO='-Wl,'
11449 if test "$host_cpu" = ia64; then
11450 # AIX 5 now supports IA64 processor
11451 lt_prog_compiler_static_GO='-Bstatic'
11452 else
11453 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11454 fi
11455 ;;
11456
11457 mingw* | cygwin* | pw32* | os2* | cegcc*)
11458 # This hack is so that the source file can tell whether it is being
11459 # built for inclusion in a dll (and should export symbols for example).
11460 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11461 ;;
11462
11463 hpux9* | hpux10* | hpux11*)
11464 lt_prog_compiler_wl_GO='-Wl,'
11465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11466 # not for PA HP-UX.
11467 case $host_cpu in
11468 hppa*64*|ia64*)
11469 # +Z the default
11470 ;;
11471 *)
11472 lt_prog_compiler_pic_GO='+Z'
11473 ;;
11474 esac
11475 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11476 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11477 ;;
11478
11479 irix5* | irix6* | nonstopux*)
11480 lt_prog_compiler_wl_GO='-Wl,'
11481 # PIC (with -KPIC) is the default.
11482 lt_prog_compiler_static_GO='-non_shared'
11483 ;;
11484
11485 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11486 case $cc_basename in
11487 # old Intel for x86_64 which still supported -KPIC.
11488 ecc*)
11489 lt_prog_compiler_wl_GO='-Wl,'
11490 lt_prog_compiler_pic_GO='-KPIC'
11491 lt_prog_compiler_static_GO='-static'
11492 ;;
11493 # icc used to be incompatible with GCC.
11494 # ICC 10 doesn't accept -KPIC any more.
11495 icc* | ifort*)
11496 lt_prog_compiler_wl_GO='-Wl,'
11497 lt_prog_compiler_pic_GO='-fPIC'
11498 lt_prog_compiler_static_GO='-static'
11499 ;;
11500 # Lahey Fortran 8.1.
11501 lf95*)
11502 lt_prog_compiler_wl_GO='-Wl,'
11503 lt_prog_compiler_pic_GO='--shared'
11504 lt_prog_compiler_static_GO='--static'
11505 ;;
11506 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11507 # Portland Group compilers (*not* the Pentium gcc compiler,
11508 # which looks to be a dead project)
11509 lt_prog_compiler_wl_GO='-Wl,'
11510 lt_prog_compiler_pic_GO='-fpic'
11511 lt_prog_compiler_static_GO='-Bstatic'
11512 ;;
11513 ccc*)
11514 lt_prog_compiler_wl_GO='-Wl,'
11515 # All Alpha code is PIC.
11516 lt_prog_compiler_static_GO='-non_shared'
11517 ;;
11518 xl* | bgxl* | bgf* | mpixl*)
11519 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11520 lt_prog_compiler_wl_GO='-Wl,'
11521 lt_prog_compiler_pic_GO='-qpic'
11522 lt_prog_compiler_static_GO='-qstaticlink'
11523 ;;
11524 *)
11525 case `$CC -V 2>&1 | sed 5q` in
11526 *Sun\ F* | *Sun*Fortran*)
11527 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11528 lt_prog_compiler_pic_GO='-KPIC'
11529 lt_prog_compiler_static_GO='-Bstatic'
11530 lt_prog_compiler_wl_GO=''
11531 ;;
11532 *Sun\ C*)
11533 # Sun C 5.9
11534 lt_prog_compiler_pic_GO='-KPIC'
11535 lt_prog_compiler_static_GO='-Bstatic'
11536 lt_prog_compiler_wl_GO='-Wl,'
11537 ;;
11538 esac
11539 ;;
11540 esac
11541 ;;
11542
11543 newsos6)
11544 lt_prog_compiler_pic_GO='-KPIC'
11545 lt_prog_compiler_static_GO='-Bstatic'
11546 ;;
11547
11548 *nto* | *qnx*)
11549 # QNX uses GNU C++, but need to define -shared option too, otherwise
11550 # it will coredump.
11551 lt_prog_compiler_pic_GO='-fPIC -shared'
11552 ;;
11553
11554 osf3* | osf4* | osf5*)
11555 lt_prog_compiler_wl_GO='-Wl,'
11556 # All OSF/1 code is PIC.
11557 lt_prog_compiler_static_GO='-non_shared'
11558 ;;
11559
11560 rdos*)
11561 lt_prog_compiler_static_GO='-non_shared'
11562 ;;
11563
11564 solaris*)
11565 lt_prog_compiler_pic_GO='-KPIC'
11566 lt_prog_compiler_static_GO='-Bstatic'
11567 case $cc_basename in
11568 f77* | f90* | f95*)
11569 lt_prog_compiler_wl_GO='-Qoption ld ';;
11570 *)
11571 lt_prog_compiler_wl_GO='-Wl,';;
11572 esac
11573 ;;
11574
11575 sunos4*)
11576 lt_prog_compiler_wl_GO='-Qoption ld '
11577 lt_prog_compiler_pic_GO='-PIC'
11578 lt_prog_compiler_static_GO='-Bstatic'
11579 ;;
11580
11581 sysv4 | sysv4.2uw2* | sysv4.3*)
11582 lt_prog_compiler_wl_GO='-Wl,'
11583 lt_prog_compiler_pic_GO='-KPIC'
11584 lt_prog_compiler_static_GO='-Bstatic'
11585 ;;
11586
11587 sysv4*MP*)
11588 if test -d /usr/nec ;then
11589 lt_prog_compiler_pic_GO='-Kconform_pic'
11590 lt_prog_compiler_static_GO='-Bstatic'
11591 fi
11592 ;;
11593
11594 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11595 lt_prog_compiler_wl_GO='-Wl,'
11596 lt_prog_compiler_pic_GO='-KPIC'
11597 lt_prog_compiler_static_GO='-Bstatic'
11598 ;;
11599
11600 unicos*)
11601 lt_prog_compiler_wl_GO='-Wl,'
11602 lt_prog_compiler_can_build_shared_GO=no
11603 ;;
11604
11605 uts4*)
11606 lt_prog_compiler_pic_GO='-pic'
11607 lt_prog_compiler_static_GO='-Bstatic'
11608 ;;
11609
11610 *)
11611 lt_prog_compiler_can_build_shared_GO=no
11612 ;;
11613 esac
11614 fi
11615
11616case $host_os in
11617 # For platforms which do not support PIC, -DPIC is meaningless:
11618 *djgpp*)
11619 lt_prog_compiler_pic_GO=
11620 ;;
11621 *)
11622 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11623 ;;
11624esac
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11626$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11627
11628
11629
11630#
11631# Check to make sure the PIC flag actually works.
11632#
11633if test -n "$lt_prog_compiler_pic_GO"; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11635$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11636if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11638else
11639 lt_cv_prog_compiler_pic_works_GO=no
11640 ac_outfile=conftest.$ac_objext
11641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11642 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11643 # Insert the option either (1) after the last *FLAGS variable, or
11644 # (2) before a word containing "conftest.", or (3) at the end.
11645 # Note that $ac_compile itself does not contain backslashes and begins
11646 # with a dollar sign (not a hyphen), so the echo should work correctly.
11647 # The option is referenced via a variable to avoid confusing sed.
11648 lt_compile=`echo "$ac_compile" | $SED \
11649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11651 -e 's:$: $lt_compiler_flag:'`
11652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11653 (eval "$lt_compile" 2>conftest.err)
11654 ac_status=$?
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 if (exit $ac_status) && test -s "$ac_outfile"; then
11658 # The compiler can only warn and ignore the option if not recognized
11659 # So say no if there are warnings other than the usual output.
11660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11663 lt_cv_prog_compiler_pic_works_GO=yes
11664 fi
11665 fi
11666 $RM conftest*
11667
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11670$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11671
11672if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11673 case $lt_prog_compiler_pic_GO in
11674 "" | " "*) ;;
11675 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11676 esac
11677else
11678 lt_prog_compiler_pic_GO=
11679 lt_prog_compiler_can_build_shared_GO=no
11680fi
11681
11682fi
11683
11684
11685
11686#
11687# Check to make sure the static flag actually works.
11688#
11689wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11691$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11692if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11693 $as_echo_n "(cached) " >&6
11694else
11695 lt_cv_prog_compiler_static_works_GO=no
11696 save_LDFLAGS="$LDFLAGS"
11697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11698 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11700 # The linker can only warn and ignore the option if not recognized
11701 # So say no if there are warnings
11702 if test -s conftest.err; then
11703 # Append any errors to the config.log.
11704 cat conftest.err 1>&5
11705 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11707 if diff conftest.exp conftest.er2 >/dev/null; then
11708 lt_cv_prog_compiler_static_works_GO=yes
11709 fi
11710 else
11711 lt_cv_prog_compiler_static_works_GO=yes
11712 fi
11713 fi
11714 $RM -r conftest*
11715 LDFLAGS="$save_LDFLAGS"
11716
11717fi
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11719$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11720
11721if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11722 :
11723else
11724 lt_prog_compiler_static_GO=
11725fi
11726
11727
11728
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11731$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11732if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
11734else
11735 lt_cv_prog_compiler_c_o_GO=no
11736 $RM -r conftest 2>/dev/null
11737 mkdir conftest
11738 cd conftest
11739 mkdir out
11740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11741
11742 lt_compiler_flag="-o out/conftest2.$ac_objext"
11743 # Insert the option either (1) after the last *FLAGS variable, or
11744 # (2) before a word containing "conftest.", or (3) at the end.
11745 # Note that $ac_compile itself does not contain backslashes and begins
11746 # with a dollar sign (not a hyphen), so the echo should work correctly.
11747 lt_compile=`echo "$ac_compile" | $SED \
11748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11750 -e 's:$: $lt_compiler_flag:'`
11751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11752 (eval "$lt_compile" 2>out/conftest.err)
11753 ac_status=$?
11754 cat out/conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11757 then
11758 # The compiler can only warn and ignore the option if not recognized
11759 # So say no if there are warnings
11760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11763 lt_cv_prog_compiler_c_o_GO=yes
11764 fi
11765 fi
11766 chmod u+w . 2>&5
11767 $RM conftest*
11768 # SGI C++ compiler will create directory out/ii_files/ for
11769 # template instantiation
11770 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11771 $RM out/* && rmdir out
11772 cd ..
11773 $RM -r conftest
11774 $RM conftest*
11775
11776fi
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11778$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11779
11780
11781
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11783$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11784if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786else
11787 lt_cv_prog_compiler_c_o_GO=no
11788 $RM -r conftest 2>/dev/null
11789 mkdir conftest
11790 cd conftest
11791 mkdir out
11792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11793
11794 lt_compiler_flag="-o out/conftest2.$ac_objext"
11795 # Insert the option either (1) after the last *FLAGS variable, or
11796 # (2) before a word containing "conftest.", or (3) at the end.
11797 # Note that $ac_compile itself does not contain backslashes and begins
11798 # with a dollar sign (not a hyphen), so the echo should work correctly.
11799 lt_compile=`echo "$ac_compile" | $SED \
11800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11802 -e 's:$: $lt_compiler_flag:'`
11803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11804 (eval "$lt_compile" 2>out/conftest.err)
11805 ac_status=$?
11806 cat out/conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11809 then
11810 # The compiler can only warn and ignore the option if not recognized
11811 # So say no if there are warnings
11812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11815 lt_cv_prog_compiler_c_o_GO=yes
11816 fi
11817 fi
11818 chmod u+w . 2>&5
11819 $RM conftest*
11820 # SGI C++ compiler will create directory out/ii_files/ for
11821 # template instantiation
11822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11823 $RM out/* && rmdir out
11824 cd ..
11825 $RM -r conftest
11826 $RM conftest*
11827
11828fi
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11830$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11831
11832
11833
11834
11835hard_links="nottested"
11836if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11837 # do not overwrite the value of need_locks provided by the user
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11839$as_echo_n "checking if we can lock with hard links... " >&6; }
11840 hard_links=yes
11841 $RM conftest*
11842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11843 touch conftest.a
11844 ln conftest.a conftest.b 2>&5 || hard_links=no
11845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11847$as_echo "$hard_links" >&6; }
11848 if test "$hard_links" = no; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11850$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11851 need_locks=warn
11852 fi
11853else
11854 need_locks=no
11855fi
11856
11857
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11860$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11861
11862 runpath_var=
11863 allow_undefined_flag_GO=
11864 always_export_symbols_GO=no
11865 archive_cmds_GO=
11866 archive_expsym_cmds_GO=
11867 compiler_needs_object_GO=no
11868 enable_shared_with_static_runtimes_GO=no
11869 export_dynamic_flag_spec_GO=
11870 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11871 hardcode_automatic_GO=no
11872 hardcode_direct_GO=no
11873 hardcode_direct_absolute_GO=no
11874 hardcode_libdir_flag_spec_GO=
11875 hardcode_libdir_flag_spec_ld_GO=
11876 hardcode_libdir_separator_GO=
11877 hardcode_minus_L_GO=no
11878 hardcode_shlibpath_var_GO=unsupported
11879 inherit_rpath_GO=no
11880 link_all_deplibs_GO=unknown
11881 module_cmds_GO=
11882 module_expsym_cmds_GO=
11883 old_archive_from_new_cmds_GO=
11884 old_archive_from_expsyms_cmds_GO=
11885 thread_safe_flag_spec_GO=
11886 whole_archive_flag_spec_GO=
11887 # include_expsyms should be a list of space-separated symbols to be *always*
11888 # included in the symbol list
11889 include_expsyms_GO=
11890 # exclude_expsyms can be an extended regexp of symbols to exclude
11891 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11892 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11893 # as well as any symbol that contains `d'.
11894 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11896 # platforms (ab)use it in PIC code, but their linkers get confused if
11897 # the symbol is explicitly referenced. Since portable code cannot
11898 # rely on this symbol name, it's probably fine to never include it in
11899 # preloaded symbol tables.
11900 # Exclude shared library initialization/finalization symbols.
11901 extract_expsyms_cmds=
11902
11903 case $host_os in
11904 cygwin* | mingw* | pw32* | cegcc*)
11905 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11906 # When not using gcc, we currently assume that we are using
11907 # Microsoft Visual C++.
11908 if test "$GCC" != yes; then
11909 with_gnu_ld=no
11910 fi
11911 ;;
11912 interix*)
11913 # we just hope/assume this is gcc and not c89 (= MSVC++)
11914 with_gnu_ld=yes
11915 ;;
11916 openbsd*)
11917 with_gnu_ld=no
11918 ;;
11919 esac
11920
11921 ld_shlibs_GO=yes
11922
11923 # On some targets, GNU ld is compatible enough with the native linker
11924 # that we're better off using the native interface for both.
11925 lt_use_gnu_ld_interface=no
11926 if test "$with_gnu_ld" = yes; then
11927 case $host_os in
11928 aix*)
11929 # The AIX port of GNU ld has always aspired to compatibility
11930 # with the native linker. However, as the warning in the GNU ld
11931 # block says, versions before 2.19.5* couldn't really create working
11932 # shared libraries, regardless of the interface used.
11933 case `$LD -v 2>&1` in
11934 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11935 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11936 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11937 *)
11938 lt_use_gnu_ld_interface=yes
11939 ;;
11940 esac
11941 ;;
11942 *)
11943 lt_use_gnu_ld_interface=yes
11944 ;;
11945 esac
11946 fi
11947
11948 if test "$lt_use_gnu_ld_interface" = yes; then
11949 # If archive_cmds runs LD, not CC, wlarc should be empty
11950 wlarc='${wl}'
11951
11952 # Set some defaults for GNU ld with shared library support. These
11953 # are reset later if shared libraries are not supported. Putting them
11954 # here allows them to be overridden if necessary.
11955 runpath_var=LD_RUN_PATH
11956 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11957 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11958 # ancient GNU ld didn't support --whole-archive et. al.
11959 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11960 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11961 else
11962 whole_archive_flag_spec_GO=
11963 fi
11964 supports_anon_versioning=no
11965 case `$LD -v 2>&1` in
11966 *GNU\ gold*) supports_anon_versioning=yes ;;
11967 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11968 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11969 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11970 *\ 2.11.*) ;; # other 2.11 versions
11971 *) supports_anon_versioning=yes ;;
11972 esac
11973
11974 # See if GNU ld supports shared libraries.
11975 case $host_os in
11976 aix[3-9]*)
11977 # On AIX/PPC, the GNU linker is very broken
11978 if test "$host_cpu" != ia64; then
11979 ld_shlibs_GO=no
11980 cat <<_LT_EOF 1>&2
11981
11982*** Warning: the GNU linker, at least up to release 2.19, is reported
11983*** to be unable to reliably create shared libraries on AIX.
11984*** Therefore, libtool is disabling shared libraries support. If you
11985*** really care for shared libraries, you may want to install binutils
11986*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11987*** You will then need to restart the configuration process.
11988
11989_LT_EOF
11990 fi
11991 ;;
11992
11993 amigaos*)
11994 case $host_cpu in
11995 powerpc)
11996 # see comment about AmigaOS4 .so support
11997 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11998 archive_expsym_cmds_GO=''
11999 ;;
12000 m68k)
12001 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)'
12002 hardcode_libdir_flag_spec_GO='-L$libdir'
12003 hardcode_minus_L_GO=yes
12004 ;;
12005 esac
12006 ;;
12007
12008 beos*)
12009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12010 allow_undefined_flag_GO=unsupported
12011 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12012 # support --undefined. This deserves some investigation. FIXME
12013 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12014 else
12015 ld_shlibs_GO=no
12016 fi
12017 ;;
12018
12019 cygwin* | mingw* | pw32* | cegcc*)
12020 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12021 # as there is no search path for DLLs.
12022 hardcode_libdir_flag_spec_GO='-L$libdir'
12023 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12024 allow_undefined_flag_GO=unsupported
12025 always_export_symbols_GO=no
12026 enable_shared_with_static_runtimes_GO=yes
12027 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12028
12029 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12030 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12031 # If the export-symbols file already is a .def file (1st line
12032 # is EXPORTS), use it as is; otherwise, prepend...
12033 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12034 cp $export_symbols $output_objdir/$soname.def;
12035 else
12036 echo EXPORTS > $output_objdir/$soname.def;
12037 cat $export_symbols >> $output_objdir/$soname.def;
12038 fi~
12039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12040 else
12041 ld_shlibs_GO=no
12042 fi
12043 ;;
12044
12045 haiku*)
12046 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047 link_all_deplibs_GO=yes
12048 ;;
12049
12050 interix[3-9]*)
12051 hardcode_direct_GO=no
12052 hardcode_shlibpath_var_GO=no
12053 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12054 export_dynamic_flag_spec_GO='${wl}-E'
12055 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12056 # Instead, shared libraries are loaded at an image base (0x10000000 by
12057 # default) and relocated if they conflict, which is a slow very memory
12058 # consuming and fragmenting process. To avoid this, we pick a random,
12059 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12060 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12061 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'
12062 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'
12063 ;;
12064
12065 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12066 tmp_diet=no
12067 if test "$host_os" = linux-dietlibc; then
12068 case $cc_basename in
12069 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12070 esac
12071 fi
12072 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12073 && test "$tmp_diet" = no
12074 then
12075 tmp_addflag=
12076 tmp_sharedflag='-shared'
12077 case $cc_basename,$host_cpu in
12078 pgcc*) # Portland Group C compiler
12079 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'
12080 tmp_addflag=' $pic_flag'
12081 ;;
12082 pgf77* | pgf90* | pgf95* | pgfortran*)
12083 # Portland Group f77 and f90 compilers
12084 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'
12085 tmp_addflag=' $pic_flag -Mnomain' ;;
12086 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12087 tmp_addflag=' -i_dynamic' ;;
12088 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12089 tmp_addflag=' -i_dynamic -nofor_main' ;;
12090 ifc* | ifort*) # Intel Fortran compiler
12091 tmp_addflag=' -nofor_main' ;;
12092 lf95*) # Lahey Fortran 8.1
12093 whole_archive_flag_spec_GO=
12094 tmp_sharedflag='--shared' ;;
12095 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12096 tmp_sharedflag='-qmkshrobj'
12097 tmp_addflag= ;;
12098 nvcc*) # Cuda Compiler Driver 2.2
12099 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'
12100 compiler_needs_object_GO=yes
12101 ;;
12102 esac
12103 case `$CC -V 2>&1 | sed 5q` in
12104 *Sun\ C*) # Sun C 5.9
12105 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'
12106 compiler_needs_object_GO=yes
12107 tmp_sharedflag='-G' ;;
12108 *Sun\ F*) # Sun Fortran 8.3
12109 tmp_sharedflag='-G' ;;
12110 esac
12111 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12112
12113 if test "x$supports_anon_versioning" = xyes; then
12114 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12116 echo "local: *; };" >> $output_objdir/$libname.ver~
12117 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12118 fi
12119
12120 case $cc_basename in
12121 xlf* | bgf* | bgxlf* | mpixlf*)
12122 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12123 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12124 hardcode_libdir_flag_spec_GO=
12125 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12126 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12127 if test "x$supports_anon_versioning" = xyes; then
12128 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12130 echo "local: *; };" >> $output_objdir/$libname.ver~
12131 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12132 fi
12133 ;;
12134 esac
12135 else
12136 ld_shlibs_GO=no
12137 fi
12138 ;;
12139
12140 netbsd*)
12141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12142 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12143 wlarc=
12144 else
12145 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12146 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12147 fi
12148 ;;
12149
12150 solaris*)
12151 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12152 ld_shlibs_GO=no
12153 cat <<_LT_EOF 1>&2
12154
12155*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12156*** create shared libraries on Solaris systems. Therefore, libtool
12157*** is disabling shared libraries support. We urge you to upgrade GNU
12158*** binutils to release 2.9.1 or newer. Another option is to modify
12159*** your PATH or compiler configuration so that the native linker is
12160*** used, and then restart.
12161
12162_LT_EOF
12163 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12164 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12165 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12166 else
12167 ld_shlibs_GO=no
12168 fi
12169 ;;
12170
12171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12172 case `$LD -v 2>&1` in
12173 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12174 ld_shlibs_GO=no
12175 cat <<_LT_EOF 1>&2
12176
12177*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12178*** reliably create shared libraries on SCO systems. Therefore, libtool
12179*** is disabling shared libraries support. We urge you to upgrade GNU
12180*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12181*** your PATH or compiler configuration so that the native linker is
12182*** used, and then restart.
12183
12184_LT_EOF
12185 ;;
12186 *)
12187 # For security reasons, it is highly recommended that you always
12188 # use absolute paths for naming shared libraries, and exclude the
12189 # DT_RUNPATH tag from executables and libraries. But doing so
12190 # requires that you compile everything twice, which is a pain.
12191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12192 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12193 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12194 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12195 else
12196 ld_shlibs_GO=no
12197 fi
12198 ;;
12199 esac
12200 ;;
12201
12202 sunos4*)
12203 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12204 wlarc=
12205 hardcode_direct_GO=yes
12206 hardcode_shlibpath_var_GO=no
12207 ;;
12208
12209 *)
12210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12211 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12212 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12213 else
12214 ld_shlibs_GO=no
12215 fi
12216 ;;
12217 esac
12218
12219 if test "$ld_shlibs_GO" = no; then
12220 runpath_var=
12221 hardcode_libdir_flag_spec_GO=
12222 export_dynamic_flag_spec_GO=
12223 whole_archive_flag_spec_GO=
12224 fi
12225 else
12226 # PORTME fill in a description of your system's linker (not GNU ld)
12227 case $host_os in
12228 aix3*)
12229 allow_undefined_flag_GO=unsupported
12230 always_export_symbols_GO=yes
12231 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'
12232 # Note: this linker hardcodes the directories in LIBPATH if there
12233 # are no directories specified by -L.
12234 hardcode_minus_L_GO=yes
12235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12236 # Neither direct hardcoding nor static linking is supported with a
12237 # broken collect2.
12238 hardcode_direct_GO=unsupported
12239 fi
12240 ;;
12241
12242 aix[4-9]*)
12243 if test "$host_cpu" = ia64; then
12244 # On IA64, the linker does run time linking by default, so we don't
12245 # have to do anything special.
12246 aix_use_runtimelinking=no
12247 exp_sym_flag='-Bexport'
12248 no_entry_flag=""
12249 else
12250 # If we're using GNU nm, then we don't want the "-C" option.
12251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12252 # Also, AIX nm treats weak defined symbols like other global
12253 # defined symbols, whereas GNU nm marks them as "W".
12254 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12255 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'
12256 else
12257 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'
12258 fi
12259 aix_use_runtimelinking=no
12260
12261 # Test if we are trying to use run time linking or normal
12262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12263 # need to do runtime linking.
12264 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12265 for ld_flag in $LDFLAGS; do
12266 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12267 aix_use_runtimelinking=yes
12268 break
12269 fi
12270 done
12271 ;;
12272 esac
12273
12274 exp_sym_flag='-bexport'
12275 no_entry_flag='-bnoentry'
12276 fi
12277
12278 # When large executables or shared objects are built, AIX ld can
12279 # have problems creating the table of contents. If linking a library
12280 # or program results in "error TOC overflow" add -mminimal-toc to
12281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12283
12284 archive_cmds_GO=''
12285 hardcode_direct_GO=yes
12286 hardcode_direct_absolute_GO=yes
12287 hardcode_libdir_separator_GO=':'
12288 link_all_deplibs_GO=yes
12289 file_list_spec_GO='${wl}-f,'
12290
12291 if test "$GCC" = yes; then
12292 case $host_os in aix4.[012]|aix4.[012].*)
12293 # We only want to do this on AIX 4.2 and lower, the check
12294 # below for broken collect2 doesn't work under 4.3+
12295 collect2name=`${CC} -print-prog-name=collect2`
12296 if test -f "$collect2name" &&
12297 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12298 then
12299 # We have reworked collect2
12300 :
12301 else
12302 # We have old collect2
12303 hardcode_direct_GO=unsupported
12304 # It fails to find uninstalled libraries when the uninstalled
12305 # path is not listed in the libpath. Setting hardcode_minus_L
12306 # to unsupported forces relinking
12307 hardcode_minus_L_GO=yes
12308 hardcode_libdir_flag_spec_GO='-L$libdir'
12309 hardcode_libdir_separator_GO=
12310 fi
12311 ;;
12312 esac
12313 shared_flag='-shared'
12314 if test "$aix_use_runtimelinking" = yes; then
12315 shared_flag="$shared_flag "'${wl}-G'
12316 fi
12317 else
12318 # not using gcc
12319 if test "$host_cpu" = ia64; then
12320 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12321 # chokes on -Wl,-G. The following line is correct:
12322 shared_flag='-G'
12323 else
12324 if test "$aix_use_runtimelinking" = yes; then
12325 shared_flag='${wl}-G'
12326 else
12327 shared_flag='${wl}-bM:SRE'
12328 fi
12329 fi
12330 fi
12331
12332 export_dynamic_flag_spec_GO='${wl}-bexpall'
12333 # It seems that -bexpall does not export symbols beginning with
12334 # underscore (_), so it is better to generate a list of symbols to export.
12335 always_export_symbols_GO=yes
12336 if test "$aix_use_runtimelinking" = yes; then
12337 # Warning - without using the other runtime loading flags (-brtl),
12338 # -berok will link without error, but may produce a broken library.
12339 allow_undefined_flag_GO='-berok'
12340 # Determine the default libpath from the value encoded in an
12341 # empty executable.
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h. */
12344
12345int
12346main ()
12347{
12348
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353if ac_fn_c_try_link "$LINENO"; then :
12354
12355lt_aix_libpath_sed='
12356 /Import File Strings/,/^$/ {
12357 /^0/ {
12358 s/^0 *\(.*\)$/\1/
12359 p
12360 }
12361 }'
12362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12363# Check for a 64-bit object if we didn't find anything.
12364if test -z "$aix_libpath"; then
12365 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12366fi
12367fi
12368rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
12370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12371
12372 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12373 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"
12374 else
12375 if test "$host_cpu" = ia64; then
12376 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12377 allow_undefined_flag_GO="-z nodefs"
12378 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"
12379 else
12380 # Determine the default libpath from the value encoded in an
12381 # empty executable.
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383/* end confdefs.h. */
12384
12385int
12386main ()
12387{
12388
12389 ;
12390 return 0;
12391}
12392_ACEOF
12393if ac_fn_c_try_link "$LINENO"; then :
12394
12395lt_aix_libpath_sed='
12396 /Import File Strings/,/^$/ {
12397 /^0/ {
12398 s/^0 *\(.*\)$/\1/
12399 p
12400 }
12401 }'
12402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12403# Check for a 64-bit object if we didn't find anything.
12404if test -z "$aix_libpath"; then
12405 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12406fi
12407fi
12408rm -f core conftest.err conftest.$ac_objext \
12409 conftest$ac_exeext conftest.$ac_ext
12410if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12411
12412 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12413 # Warning - without using the other run time loading flags,
12414 # -berok will link without error, but may produce a broken library.
12415 no_undefined_flag_GO=' ${wl}-bernotok'
12416 allow_undefined_flag_GO=' ${wl}-berok'
12417 if test "$with_gnu_ld" = yes; then
12418 # We only use this code for GNU lds that support --whole-archive.
12419 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12420 else
12421 # Exported symbols can be pulled into shared objects from archives
12422 whole_archive_flag_spec_GO='$convenience'
12423 fi
12424 archive_cmds_need_lc_GO=yes
12425 # This is similar to how AIX traditionally builds its shared libraries.
12426 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'
12427 fi
12428 fi
12429 ;;
12430
12431 amigaos*)
12432 case $host_cpu in
12433 powerpc)
12434 # see comment about AmigaOS4 .so support
12435 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12436 archive_expsym_cmds_GO=''
12437 ;;
12438 m68k)
12439 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)'
12440 hardcode_libdir_flag_spec_GO='-L$libdir'
12441 hardcode_minus_L_GO=yes
12442 ;;
12443 esac
12444 ;;
12445
12446 bsdi[45]*)
12447 export_dynamic_flag_spec_GO=-rdynamic
12448 ;;
12449
12450 cygwin* | mingw* | pw32* | cegcc*)
12451 # When not using gcc, we currently assume that we are using
12452 # Microsoft Visual C++.
12453 # hardcode_libdir_flag_spec is actually meaningless, as there is
12454 # no search path for DLLs.
12455 hardcode_libdir_flag_spec_GO=' '
12456 allow_undefined_flag_GO=unsupported
12457 # Tell ltmain to make .lib files, not .a files.
12458 libext=lib
12459 # Tell ltmain to make .dll files, not .so files.
12460 shrext_cmds=".dll"
12461 # FIXME: Setting linknames here is a bad hack.
12462 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12463 # The linker will automatically build a .lib file if we build a DLL.
12464 old_archive_from_new_cmds_GO='true'
12465 # FIXME: Should let the user specify the lib program.
12466 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12467 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12468 enable_shared_with_static_runtimes_GO=yes
12469 ;;
12470
12471 darwin* | rhapsody*)
12472
12473
12474 archive_cmds_need_lc_GO=no
12475 hardcode_direct_GO=no
12476 hardcode_automatic_GO=yes
12477 hardcode_shlibpath_var_GO=unsupported
12478 if test "$lt_cv_ld_force_load" = "yes"; then
12479 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\"`'
12480 else
12481 whole_archive_flag_spec_GO=''
12482 fi
12483 link_all_deplibs_GO=yes
12484 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12485 case $cc_basename in
12486 ifort*) _lt_dar_can_shared=yes ;;
12487 *) _lt_dar_can_shared=$GCC ;;
12488 esac
12489 if test "$_lt_dar_can_shared" = "yes"; then
12490 output_verbose_link_cmd=func_echo_all
12491 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}"
12492 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12493 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}"
12494 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}"
12495
12496 else
12497 ld_shlibs_GO=no
12498 fi
12499
12500 ;;
12501
12502 dgux*)
12503 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12504 hardcode_libdir_flag_spec_GO='-L$libdir'
12505 hardcode_shlibpath_var_GO=no
12506 ;;
12507
12508 freebsd1*)
12509 ld_shlibs_GO=no
12510 ;;
12511
12512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12513 # support. Future versions do this automatically, but an explicit c++rt0.o
12514 # does not break anything, and helps significantly (at the cost of a little
12515 # extra space).
12516 freebsd2.2*)
12517 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12518 hardcode_libdir_flag_spec_GO='-R$libdir'
12519 hardcode_direct_GO=yes
12520 hardcode_shlibpath_var_GO=no
12521 ;;
12522
12523 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12524 freebsd2*)
12525 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12526 hardcode_direct_GO=yes
12527 hardcode_minus_L_GO=yes
12528 hardcode_shlibpath_var_GO=no
12529 ;;
12530
12531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12532 freebsd* | dragonfly*)
12533 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12534 hardcode_libdir_flag_spec_GO='-R$libdir'
12535 hardcode_direct_GO=yes
12536 hardcode_shlibpath_var_GO=no
12537 ;;
12538
12539 hpux9*)
12540 if test "$GCC" = yes; then
12541 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'
12542 else
12543 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'
12544 fi
12545 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12546 hardcode_libdir_separator_GO=:
12547 hardcode_direct_GO=yes
12548
12549 # hardcode_minus_L: Not really in the search PATH,
12550 # but as the default location of the library.
12551 hardcode_minus_L_GO=yes
12552 export_dynamic_flag_spec_GO='${wl}-E'
12553 ;;
12554
12555 hpux10*)
12556 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12557 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12558 else
12559 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12560 fi
12561 if test "$with_gnu_ld" = no; then
12562 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12563 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12564 hardcode_libdir_separator_GO=:
12565 hardcode_direct_GO=yes
12566 hardcode_direct_absolute_GO=yes
12567 export_dynamic_flag_spec_GO='${wl}-E'
12568 # hardcode_minus_L: Not really in the search PATH,
12569 # but as the default location of the library.
12570 hardcode_minus_L_GO=yes
12571 fi
12572 ;;
12573
12574 hpux11*)
12575 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12576 case $host_cpu in
12577 hppa*64*)
12578 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12579 ;;
12580 ia64*)
12581 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12582 ;;
12583 *)
12584 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12585 ;;
12586 esac
12587 else
12588 case $host_cpu in
12589 hppa*64*)
12590 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12591 ;;
12592 ia64*)
12593 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12594 ;;
12595 *)
12596 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12597 ;;
12598 esac
12599 fi
12600 if test "$with_gnu_ld" = no; then
12601 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12602 hardcode_libdir_separator_GO=:
12603
12604 case $host_cpu in
12605 hppa*64*|ia64*)
12606 hardcode_direct_GO=no
12607 hardcode_shlibpath_var_GO=no
12608 ;;
12609 *)
12610 hardcode_direct_GO=yes
12611 hardcode_direct_absolute_GO=yes
12612 export_dynamic_flag_spec_GO='${wl}-E'
12613
12614 # hardcode_minus_L: Not really in the search PATH,
12615 # but as the default location of the library.
12616 hardcode_minus_L_GO=yes
12617 ;;
12618 esac
12619 fi
12620 ;;
12621
12622 irix5* | irix6* | nonstopux*)
12623 if test "$GCC" = yes; then
12624 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'
12625 # Try to use the -exported_symbol ld option, if it does not
12626 # work, assume that -exports_file does not work either and
12627 # implicitly export all symbols.
12628 save_LDFLAGS="$LDFLAGS"
12629 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631/* end confdefs.h. */
12632int foo(void) {}
12633_ACEOF
12634if ac_fn_c_try_link "$LINENO"; then :
12635 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'
12636
12637fi
12638rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LDFLAGS="$save_LDFLAGS"
12641 else
12642 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'
12643 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'
12644 fi
12645 archive_cmds_need_lc_GO='no'
12646 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12647 hardcode_libdir_separator_GO=:
12648 inherit_rpath_GO=yes
12649 link_all_deplibs_GO=yes
12650 ;;
12651
12652 netbsd*)
12653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12654 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12655 else
12656 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12657 fi
12658 hardcode_libdir_flag_spec_GO='-R$libdir'
12659 hardcode_direct_GO=yes
12660 hardcode_shlibpath_var_GO=no
12661 ;;
12662
12663 newsos6)
12664 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12665 hardcode_direct_GO=yes
12666 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12667 hardcode_libdir_separator_GO=:
12668 hardcode_shlibpath_var_GO=no
12669 ;;
12670
12671 *nto* | *qnx*)
12672 ;;
12673
12674 openbsd*)
12675 if test -f /usr/libexec/ld.so; then
12676 hardcode_direct_GO=yes
12677 hardcode_shlibpath_var_GO=no
12678 hardcode_direct_absolute_GO=yes
12679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12680 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12681 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12682 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12683 export_dynamic_flag_spec_GO='${wl}-E'
12684 else
12685 case $host_os in
12686 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12687 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12688 hardcode_libdir_flag_spec_GO='-R$libdir'
12689 ;;
12690 *)
12691 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12692 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12693 ;;
12694 esac
12695 fi
12696 else
12697 ld_shlibs_GO=no
12698 fi
12699 ;;
12700
12701 os2*)
12702 hardcode_libdir_flag_spec_GO='-L$libdir'
12703 hardcode_minus_L_GO=yes
12704 allow_undefined_flag_GO=unsupported
12705 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'
12706 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12707 ;;
12708
12709 osf3*)
12710 if test "$GCC" = yes; then
12711 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12712 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'
12713 else
12714 allow_undefined_flag_GO=' -expect_unresolved \*'
12715 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'
12716 fi
12717 archive_cmds_need_lc_GO='no'
12718 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12719 hardcode_libdir_separator_GO=:
12720 ;;
12721
12722 osf4* | osf5*) # as osf3* with the addition of -msym flag
12723 if test "$GCC" = yes; then
12724 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12725 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'
12726 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12727 else
12728 allow_undefined_flag_GO=' -expect_unresolved \*'
12729 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'
12730 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~
12731 $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'
12732
12733 # Both c and cxx compiler support -rpath directly
12734 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12735 fi
12736 archive_cmds_need_lc_GO='no'
12737 hardcode_libdir_separator_GO=:
12738 ;;
12739
12740 solaris*)
12741 no_undefined_flag_GO=' -z defs'
12742 if test "$GCC" = yes; then
12743 wlarc='${wl}'
12744 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12745 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12746 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12747 else
12748 case `$CC -V 2>&1` in
12749 *"Compilers 5.0"*)
12750 wlarc=''
12751 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12752 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12753 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12754 ;;
12755 *)
12756 wlarc='${wl}'
12757 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12758 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12759 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12760 ;;
12761 esac
12762 fi
12763 hardcode_libdir_flag_spec_GO='-R$libdir'
12764 hardcode_shlibpath_var_GO=no
12765 case $host_os in
12766 solaris2.[0-5] | solaris2.[0-5].*) ;;
12767 *)
12768 # The compiler driver will combine and reorder linker options,
12769 # but understands `-z linker_flag'. GCC discards it without `$wl',
12770 # but is careful enough not to reorder.
12771 # Supported since Solaris 2.6 (maybe 2.5.1?)
12772 if test "$GCC" = yes; then
12773 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12774 else
12775 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12776 fi
12777 ;;
12778 esac
12779 link_all_deplibs_GO=yes
12780 ;;
12781
12782 sunos4*)
12783 if test "x$host_vendor" = xsequent; then
12784 # Use $CC to link under sequent, because it throws in some extra .o
12785 # files that make .init and .fini sections work.
12786 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12787 else
12788 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12789 fi
12790 hardcode_libdir_flag_spec_GO='-L$libdir'
12791 hardcode_direct_GO=yes
12792 hardcode_minus_L_GO=yes
12793 hardcode_shlibpath_var_GO=no
12794 ;;
12795
12796 sysv4)
12797 case $host_vendor in
12798 sni)
12799 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12800 hardcode_direct_GO=yes # is this really true???
12801 ;;
12802 siemens)
12803 ## LD is ld it makes a PLAMLIB
12804 ## CC just makes a GrossModule.
12805 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12806 reload_cmds_GO='$CC -r -o $output$reload_objs'
12807 hardcode_direct_GO=no
12808 ;;
12809 motorola)
12810 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12811 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12812 ;;
12813 esac
12814 runpath_var='LD_RUN_PATH'
12815 hardcode_shlibpath_var_GO=no
12816 ;;
12817
12818 sysv4.3*)
12819 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12820 hardcode_shlibpath_var_GO=no
12821 export_dynamic_flag_spec_GO='-Bexport'
12822 ;;
12823
12824 sysv4*MP*)
12825 if test -d /usr/nec; then
12826 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12827 hardcode_shlibpath_var_GO=no
12828 runpath_var=LD_RUN_PATH
12829 hardcode_runpath_var=yes
12830 ld_shlibs_GO=yes
12831 fi
12832 ;;
12833
12834 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12835 no_undefined_flag_GO='${wl}-z,text'
12836 archive_cmds_need_lc_GO=no
12837 hardcode_shlibpath_var_GO=no
12838 runpath_var='LD_RUN_PATH'
12839
12840 if test "$GCC" = yes; then
12841 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12842 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12843 else
12844 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12846 fi
12847 ;;
12848
12849 sysv5* | sco3.2v5* | sco5v6*)
12850 # Note: We can NOT use -z defs as we might desire, because we do not
12851 # link with -lc, and that would cause any symbols used from libc to
12852 # always be unresolved, which means just about no library would
12853 # ever link correctly. If we're not using GNU ld we use -z text
12854 # though, which does catch some bad symbols but isn't as heavy-handed
12855 # as -z defs.
12856 no_undefined_flag_GO='${wl}-z,text'
12857 allow_undefined_flag_GO='${wl}-z,nodefs'
12858 archive_cmds_need_lc_GO=no
12859 hardcode_shlibpath_var_GO=no
12860 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12861 hardcode_libdir_separator_GO=':'
12862 link_all_deplibs_GO=yes
12863 export_dynamic_flag_spec_GO='${wl}-Bexport'
12864 runpath_var='LD_RUN_PATH'
12865
12866 if test "$GCC" = yes; then
12867 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12868 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12869 else
12870 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12871 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12872 fi
12873 ;;
12874
12875 uts4*)
12876 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12877 hardcode_libdir_flag_spec_GO='-L$libdir'
12878 hardcode_shlibpath_var_GO=no
12879 ;;
12880
12881 *)
12882 ld_shlibs_GO=no
12883 ;;
12884 esac
12885
12886 if test x$host_vendor = xsni; then
12887 case $host in
12888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12889 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12890 ;;
12891 esac
12892 fi
12893 fi
12894
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12896$as_echo "$ld_shlibs_GO" >&6; }
12897test "$ld_shlibs_GO" = no && can_build_shared=no
12898
12899with_gnu_ld_GO=$with_gnu_ld
12900
12901
12902
12903
12904
12905
12906#
12907# Do we need to explicitly link libc?
12908#
12909case "x$archive_cmds_need_lc_GO" in
12910x|xyes)
12911 # Assume -lc should be added
12912 archive_cmds_need_lc_GO=yes
12913
12914 if test "$enable_shared" = yes && test "$GCC" = yes; then
12915 case $archive_cmds_GO in
12916 *'~'*)
12917 # FIXME: we may have to deal with multi-command sequences.
12918 ;;
12919 '$CC '*)
12920 # Test whether the compiler implicitly links with -lc since on some
12921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12922 # to ld, don't add -lc before -lgcc.
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12924$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12925if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
12927else
12928 $RM conftest*
12929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12930
12931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12932 (eval $ac_compile) 2>&5
12933 ac_status=$?
12934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12935 test $ac_status = 0; } 2>conftest.err; then
12936 soname=conftest
12937 lib=conftest
12938 libobjs=conftest.$ac_objext
12939 deplibs=
12940 wl=$lt_prog_compiler_wl_GO
12941 pic_flag=$lt_prog_compiler_pic_GO
12942 compiler_flags=-v
12943 linker_flags=-v
12944 verstring=
12945 output_objdir=.
12946 libname=conftest
12947 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12948 allow_undefined_flag_GO=
12949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12950 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12951 ac_status=$?
12952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12953 test $ac_status = 0; }
12954 then
12955 lt_cv_archive_cmds_need_lc_GO=no
12956 else
12957 lt_cv_archive_cmds_need_lc_GO=yes
12958 fi
12959 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12960 else
12961 cat conftest.err 1>&5
12962 fi
12963 $RM conftest*
12964
12965fi
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12967$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12968 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
12969 ;;
12970 esac
12971 fi
12972 ;;
12973esac
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13039$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13040hardcode_action_GO=
13041if test -n "$hardcode_libdir_flag_spec_GO" ||
13042 test -n "$runpath_var_GO" ||
13043 test "X$hardcode_automatic_GO" = "Xyes" ; then
13044
13045 # We can hardcode non-existent directories.
13046 if test "$hardcode_direct_GO" != no &&
13047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13048 # have to relink, otherwise we might link with an installed library
13049 # when we should be linking with a yet-to-be-installed one
13050 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13051 test "$hardcode_minus_L_GO" != no; then
13052 # Linking always hardcodes the temporary library directory.
13053 hardcode_action_GO=relink
13054 else
13055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13056 hardcode_action_GO=immediate
13057 fi
13058else
13059 # We cannot hardcode anything, or else we can only hardcode existing
13060 # directories.
13061 hardcode_action_GO=unsupported
13062fi
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13064$as_echo "$hardcode_action_GO" >&6; }
13065
13066if test "$hardcode_action_GO" = relink ||
13067 test "$inherit_rpath_GO" = yes; then
13068 # Fast installation is not supported
13069 enable_fast_install=no
13070elif test "$shlibpath_overrides_runpath" = yes ||
13071 test "$enable_shared" = no; then
13072 # Fast installation is not necessary
13073 enable_fast_install=needless
13074fi
13075
13076
13077
13078
13079
13080
13081
13082fi
13083
13084ac_ext=c
13085ac_cpp='$CPP $CPPFLAGS'
13086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13088ac_compiler_gnu=$ac_cv_c_compiler_gnu
13089
13090
13091GCC=$lt_save_GCC
13092CC="$lt_save_CC"
13093
13094
13095
13096
13097 ac_config_commands="$ac_config_commands libtool"
13098
13099
13100
13101
13102# Only expand once:
13103
13104
13105
13106
13107
13108WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13109
13110
13111WERROR="-Werror"
13112
13113
13114glibgo_toolexecdir=no
13115glibgo_toolexeclibdir=no
13116glibgo_prefixdir=$prefix
13117
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13119$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13120# Check whether --enable-version-specific-runtime-libs was given.
13121if test "${enable_version_specific_runtime_libs+set}" = set; then :
13122 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13123 yes) version_specific_libs=yes ;;
13124 no) version_specific_libs=no ;;
13125 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13126 esac
13127else
13128 version_specific_libs=no
13129fi
13130
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13132$as_echo "$version_specific_libs" >&6; }
13133
13134# Version-specific runtime libs processing.
13135if test $version_specific_libs = yes; then
13136 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13137 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13138fi
13139
13140# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13141# Install a library built with a cross compiler in tooldir, not libdir.
13142if test x"$glibgo_toolexecdir" = x"no"; then
13143 if test -n "$with_cross_host" &&
13144 test x"$with_cross_host" != x"no"; then
13145 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13146 glibgo_toolexeclibdir='${toolexecdir}/lib'
13147 else
13148 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13149 glibgo_toolexeclibdir='${libdir}'
13150 fi
13151 multi_os_directory=`$CC -print-multi-os-directory`
13152 case $multi_os_directory in
13153 .) ;; # Avoid trailing /.
13154 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13155 esac
13156fi
13157
13158
13159
13160
13161
13162# See if the user wants to configure without libffi. Some
13163# architectures don't support it. FIXME: We should set a default
13164# based on the host.
13165
13166# Check whether --with-libffi was given.
13167if test "${with_libffi+set}" = set; then :
13168 withval=$with_libffi; :
13169else
13170 with_libffi=${with_libffi_default-yes}
13171fi
13172
13173
13174LIBFFI=
13175LIBFFIINCS=
13176if test "$with_libffi" != no; then
13177
13178$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13179
13180 LIBFFI=../libffi/libffi_convenience.la
13181 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13182fi
13183
13184
13185
13186is_darwin=no
13187is_freebsd=no
13188is_linux=no
13189is_rtems=no
13190case ${host} in
13191 *-*-darwin*) is_darwin=yes ;;
13192 *-*-freebsd*) is_freebsd=yes ;;
13193 *-*-linux*) is_linux=yes ;;
13194 *-*-rtems*) is_rtems=yes ;;
13195esac
13196 if test $is_darwin = yes; then
13197 LIBGO_IS_DARWIN_TRUE=
13198 LIBGO_IS_DARWIN_FALSE='#'
13199else
13200 LIBGO_IS_DARWIN_TRUE='#'
13201 LIBGO_IS_DARWIN_FALSE=
13202fi
13203
13204 if test $is_freebsd = yes; then
13205 LIBGO_IS_FREEBSD_TRUE=
13206 LIBGO_IS_FREEBSD_FALSE='#'
13207else
13208 LIBGO_IS_FREEBSD_TRUE='#'
13209 LIBGO_IS_FREEBSD_FALSE=
13210fi
13211
13212 if test $is_linux = yes; then
13213 LIBGO_IS_LINUX_TRUE=
13214 LIBGO_IS_LINUX_FALSE='#'
13215else
13216 LIBGO_IS_LINUX_TRUE='#'
13217 LIBGO_IS_LINUX_FALSE=
13218fi
13219
13220 if test $is_rtems = yes; then
13221 LIBGO_IS_RTEMS_TRUE=
13222 LIBGO_IS_RTEMS_FALSE='#'
13223else
13224 LIBGO_IS_RTEMS_TRUE='#'
13225 LIBGO_IS_RTEMS_FALSE=
13226fi
13227
13228
13229is_386=no
13230is_x86_64=no
13231is_arm=no
13232case ${host} in
13233 i[34567]86-*-*)
13234 is_386=yes
13235 ;;
13236 x86_64-*-*)
13237 if test "$with_multisubdir" = "32"; then
13238 is_386=yes
13239 else
13240 is_x86_64=yes
13241 fi
13242 ;;
13243 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13244 is_arm=yes
13245 ;;
13246esac
13247 if test $is_386 = yes; then
13248 LIBGO_IS_386_TRUE=
13249 LIBGO_IS_386_FALSE='#'
13250else
13251 LIBGO_IS_386_TRUE='#'
13252 LIBGO_IS_386_FALSE=
13253fi
13254
13255 if test $is_x86_64 = yes; then
13256 LIBGO_IS_X86_64_TRUE=
13257 LIBGO_IS_X86_64_FALSE='#'
13258else
13259 LIBGO_IS_X86_64_TRUE='#'
13260 LIBGO_IS_X86_64_FALSE=
13261fi
13262
13263 if test $is_arm = yes; then
13264 LIBGO_IS_ARM_TRUE=
13265 LIBGO_IS_ARM_FALSE='#'
13266else
13267 LIBGO_IS_ARM_TRUE='#'
13268 LIBGO_IS_ARM_FALSE=
13269fi
13270
13271
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13273$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13274if test "${ac_cv_libgo_split_stack_supported+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276else
13277 CFLAGS_hold=$CFLAGS
13278CFLAGS="$CFLAGS -fsplit-stack"
13279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280/* end confdefs.h. */
13281int i;
13282_ACEOF
13283if ac_fn_c_try_compile "$LINENO"; then :
13284 ac_cv_libgo_split_stack_supported=yes
13285else
13286 ac_cv_libgo_split_stack_supported=no
13287fi
13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289CFLAGS=$CFLAGS_hold
13290fi
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_split_stack_supported" >&5
13292$as_echo "$ac_cv_libgo_split_stack_supported" >&6; }
13293if test "$ac_cv_libgo_split_stack_supported" = yes; then
13294 SPLIT_STACK=-fsplit-stack
13295
13296$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13297
13298else
13299 SPLIT_STACK=
13300fi
13301
13302 if test "$ac_cv_libgo_split_stack_supported" = yes; then
13303 USING_SPLIT_STACK_TRUE=
13304 USING_SPLIT_STACK_FALSE='#'
13305else
13306 USING_SPLIT_STACK_TRUE='#'
13307 USING_SPLIT_STACK_FALSE=
13308fi
13309
13310
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13312$as_echo_n "checking whether linker supports split stack... " >&6; }
13313if test "${ac_cv_libgo_linker_supports_split_stack+set}" = set; then :
13314 $as_echo_n "(cached) " >&6
13315else
13316 ac_cv_libgo_linker_supports_split_stack=no
13317if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13318 ac_cv_libgo_linker_supports_split_stack=yes
13319fi
13320fi
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_linker_supports_split_stack" >&5
13322$as_echo "$ac_cv_libgo_linker_supports_split_stack" >&6; }
13323if test "$ac_cv_libgo_linker_supports_split_stack" = yes; then
13324
13325$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13326
13327fi
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13330$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13331if test "${ac_cv_c_bigendian+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13333else
13334 ac_cv_c_bigendian=unknown
13335 # See if we're dealing with a universal compiler.
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337/* end confdefs.h. */
13338#ifndef __APPLE_CC__
13339 not a universal capable compiler
13340 #endif
13341 typedef int dummy;
13342
13343_ACEOF
13344if ac_fn_c_try_compile "$LINENO"; then :
13345
13346 # Check for potential -arch flags. It is not universal unless
13347 # there are at least two -arch flags with different values.
13348 ac_arch=
13349 ac_prev=
13350 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13351 if test -n "$ac_prev"; then
13352 case $ac_word in
13353 i?86 | x86_64 | ppc | ppc64)
13354 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13355 ac_arch=$ac_word
13356 else
13357 ac_cv_c_bigendian=universal
13358 break
13359 fi
13360 ;;
13361 esac
13362 ac_prev=
13363 elif test "x$ac_word" = "x-arch"; then
13364 ac_prev=arch
13365 fi
13366 done
13367fi
13368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 if test $ac_cv_c_bigendian = unknown; then
13370 # See if sys/param.h defines the BYTE_ORDER macro.
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372/* end confdefs.h. */
13373#include <sys/types.h>
13374 #include <sys/param.h>
13375
13376int
13377main ()
13378{
13379#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13380 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13381 && LITTLE_ENDIAN)
13382 bogus endian macros
13383 #endif
13384
13385 ;
13386 return 0;
13387}
13388_ACEOF
13389if ac_fn_c_try_compile "$LINENO"; then :
13390 # It does; now see whether it defined to BIG_ENDIAN or not.
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392/* end confdefs.h. */
13393#include <sys/types.h>
13394 #include <sys/param.h>
13395
13396int
13397main ()
13398{
13399#if BYTE_ORDER != BIG_ENDIAN
13400 not big endian
13401 #endif
13402
13403 ;
13404 return 0;
13405}
13406_ACEOF
13407if ac_fn_c_try_compile "$LINENO"; then :
13408 ac_cv_c_bigendian=yes
13409else
13410 ac_cv_c_bigendian=no
13411fi
13412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413fi
13414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13415 fi
13416 if test $ac_cv_c_bigendian = unknown; then
13417 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419/* end confdefs.h. */
13420#include <limits.h>
13421
13422int
13423main ()
13424{
13425#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13426 bogus endian macros
13427 #endif
13428
13429 ;
13430 return 0;
13431}
13432_ACEOF
13433if ac_fn_c_try_compile "$LINENO"; then :
13434 # It does; now see whether it defined to _BIG_ENDIAN or not.
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436/* end confdefs.h. */
13437#include <limits.h>
13438
13439int
13440main ()
13441{
13442#ifndef _BIG_ENDIAN
13443 not big endian
13444 #endif
13445
13446 ;
13447 return 0;
13448}
13449_ACEOF
13450if ac_fn_c_try_compile "$LINENO"; then :
13451 ac_cv_c_bigendian=yes
13452else
13453 ac_cv_c_bigendian=no
13454fi
13455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456fi
13457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458 fi
13459 if test $ac_cv_c_bigendian = unknown; then
13460 # Compile a test program.
13461 if test "$cross_compiling" = yes; then :
13462 # Try to guess by grepping values from an object file.
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464/* end confdefs.h. */
13465short int ascii_mm[] =
13466 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13467 short int ascii_ii[] =
13468 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13469 int use_ascii (int i) {
13470 return ascii_mm[i] + ascii_ii[i];
13471 }
13472 short int ebcdic_ii[] =
13473 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13474 short int ebcdic_mm[] =
13475 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13476 int use_ebcdic (int i) {
13477 return ebcdic_mm[i] + ebcdic_ii[i];
13478 }
13479 extern int foo;
13480
13481int
13482main ()
13483{
13484return use_ascii (foo) == use_ebcdic (foo);
13485 ;
13486 return 0;
13487}
13488_ACEOF
13489if ac_fn_c_try_compile "$LINENO"; then :
13490 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13491 ac_cv_c_bigendian=yes
13492 fi
13493 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13494 if test "$ac_cv_c_bigendian" = unknown; then
13495 ac_cv_c_bigendian=no
13496 else
13497 # finding both strings is unlikely to happen, but who knows?
13498 ac_cv_c_bigendian=unknown
13499 fi
13500 fi
13501fi
13502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503else
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505/* end confdefs.h. */
13506$ac_includes_default
13507int
13508main ()
13509{
13510
13511 /* Are we little or big endian? From Harbison&Steele. */
13512 union
13513 {
13514 long int l;
13515 char c[sizeof (long int)];
13516 } u;
13517 u.l = 1;
13518 return u.c[sizeof (long int) - 1] == 1;
13519
13520 ;
13521 return 0;
13522}
13523_ACEOF
13524if ac_fn_c_try_run "$LINENO"; then :
13525 ac_cv_c_bigendian=no
13526else
13527 ac_cv_c_bigendian=yes
13528fi
13529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13530 conftest.$ac_objext conftest.beam conftest.$ac_ext
13531fi
13532
13533 fi
13534fi
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13536$as_echo "$ac_cv_c_bigendian" >&6; }
13537 case $ac_cv_c_bigendian in #(
13538 yes)
13539 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13540;; #(
13541 no)
13542 ;; #(
13543 universal)
13544
13545$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13546
13547 ;; #(
13548 *)
13549 as_fn_error "unknown endianness
13550 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13551 esac
13552
13553
13554
13555
13556# Check whether --with-system-libunwind was given.
13557if test "${with_system_libunwind+set}" = set; then :
13558 withval=$with_system_libunwind;
13559fi
13560
13561 # If system-libunwind was not specifically set, pick a default setting.
13562 if test x$with_system_libunwind = x; then
13563 case ${target} in
13564 ia64-*-hpux*) with_system_libunwind=yes ;;
13565 *) with_system_libunwind=no ;;
13566 esac
13567 fi
13568 # Based on system-libunwind and target, do we have ipinfo?
13569 if test x$with_system_libunwind = xyes; then
13570 case ${target} in
13571 ia64-*-*) have_unwind_getipinfo=no ;;
13572 *) have_unwind_getipinfo=yes ;;
13573 esac
13574 else
13575 # Darwin before version 9 does not have _Unwind_GetIPInfo.
13576
13577 case ${target} in
13578 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13579 *) have_unwind_getipinfo=yes ;;
13580 esac
13581
13582 fi
13583
13584 if test x$have_unwind_getipinfo = xyes; then
13585
13586$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
13587
13588 fi
13589
13590
13591for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
13592do :
13593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13594ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13595eval as_val=\$$as_ac_Header
13596 if test "x$as_val" = x""yes; then :
13597 cat >>confdefs.h <<_ACEOF
13598#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13599_ACEOF
13600
13601fi
13602
13603done
13604
13605 if test "$ac_cv_header_sys_mman_h" = yes; then
13606 HAVE_SYS_MMAN_H_TRUE=
13607 HAVE_SYS_MMAN_H_FALSE='#'
13608else
13609 HAVE_SYS_MMAN_H_TRUE='#'
13610 HAVE_SYS_MMAN_H_FALSE=
13611fi
13612
13613for ac_func in srandom random strsignal
13614do :
13615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13616ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13617eval as_val=\$$as_ac_var
13618 if test "x$as_val" = x""yes; then :
13619 cat >>confdefs.h <<_ACEOF
13620#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13621_ACEOF
13622
13623fi
13624done
13625
13626
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
13628$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
13629if test "${ac_cv_libgo_compiler_supports_inline_all_stringops+set}" = set; then :
13630 $as_echo_n "(cached) " >&6
13631else
13632 CFLAGS_hold=$CFLAGS
13633CFLAGS="$CFLAGS -minline-all-stringops"
13634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635/* end confdefs.h. */
13636int i;
13637_ACEOF
13638if ac_fn_c_try_compile "$LINENO"; then :
13639 ac_cv_libgo_compiler_supports_inline_all_stringops=yes
13640else
13641 ac_cv_libgo_compiler_supports_inline_all_stringops=no
13642fi
13643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644CFLAGS=$CFLAGS_hold
13645fi
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_compiler_supports_inline_all_stringops" >&5
13647$as_echo "$ac_cv_libgo_compiler_supports_inline_all_stringops" >&6; }
13648STRINGOPS_FLAG=
13649if test "$ac_cv_libgo_compiler_supports_inline_all_stringops" = yes; then
13650 STRINGOPS_FLAG=-minline-all-stringops
13651fi
13652
13653
13654CFLAGS_hold=$CFLAGS
13655CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
13656ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
13657if test "x$ac_cv_type_off64_t" = x""yes; then :
13658
13659cat >>confdefs.h <<_ACEOF
13660#define HAVE_OFF64_T 1
13661_ACEOF
13662
13663
13664fi
13665
13666CFLAGS=$CFLAGS_hold
13667
13668cat >confcache <<\_ACEOF
13669# This file is a shell script that caches the results of configure
13670# tests run on this system so they can be shared between configure
13671# scripts and configure runs, see configure's option --config-cache.
13672# It is not useful on other systems. If it contains results you don't
13673# want to keep, you may remove or edit it.
13674#
13675# config.status only pays attention to the cache file if you give it
13676# the --recheck option to rerun configure.
13677#
13678# `ac_cv_env_foo' variables (set or unset) will be overridden when
13679# loading this file, other *unset* `ac_cv_foo' will be assigned the
13680# following values.
13681
13682_ACEOF
13683
13684# The following way of writing the cache mishandles newlines in values,
13685# but we know of no workaround that is simple, portable, and efficient.
13686# So, we kill variables containing newlines.
13687# Ultrix sh set writes to stderr and can't be redirected directly,
13688# and sets the high bit in the cache file unless we assign to the vars.
13689(
13690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13691 eval ac_val=\$$ac_var
13692 case $ac_val in #(
13693 *${as_nl}*)
13694 case $ac_var in #(
13695 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13696$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13697 esac
13698 case $ac_var in #(
13699 _ | IFS | as_nl) ;; #(
13700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13701 *) { eval $ac_var=; unset $ac_var;} ;;
13702 esac ;;
13703 esac
13704 done
13705
13706 (set) 2>&1 |
13707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13708 *${as_nl}ac_space=\ *)
13709 # `set' does not quote correctly, so add quotes: double-quote
13710 # substitution turns \\\\ into \\, and sed turns \\ into \.
13711 sed -n \
13712 "s/'/'\\\\''/g;
13713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13714 ;; #(
13715 *)
13716 # `set' quotes correctly as required by POSIX, so do not add quotes.
13717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13718 ;;
13719 esac |
13720 sort
13721) |
13722 sed '
13723 /^ac_cv_env_/b end
13724 t clear
13725 :clear
13726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13727 t end
13728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13729 :end' >>confcache
13730if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13731 if test -w "$cache_file"; then
13732 test "x$cache_file" != "x/dev/null" &&
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13734$as_echo "$as_me: updating cache $cache_file" >&6;}
13735 cat confcache >$cache_file
13736 else
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13738$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13739 fi
13740fi
13741rm -f confcache
13742
13743if test ${multilib} = yes; then
13744 multilib_arg="--enable-multilib"
13745else
13746 multilib_arg=
13747fi
13748
13749ac_config_files="$ac_config_files Makefile testsuite/Makefile"
13750
13751
13752ac_config_commands="$ac_config_commands default"
13753
13754
13755cat >confcache <<\_ACEOF
13756# This file is a shell script that caches the results of configure
13757# tests run on this system so they can be shared between configure
13758# scripts and configure runs, see configure's option --config-cache.
13759# It is not useful on other systems. If it contains results you don't
13760# want to keep, you may remove or edit it.
13761#
13762# config.status only pays attention to the cache file if you give it
13763# the --recheck option to rerun configure.
13764#
13765# `ac_cv_env_foo' variables (set or unset) will be overridden when
13766# loading this file, other *unset* `ac_cv_foo' will be assigned the
13767# following values.
13768
13769_ACEOF
13770
13771# The following way of writing the cache mishandles newlines in values,
13772# but we know of no workaround that is simple, portable, and efficient.
13773# So, we kill variables containing newlines.
13774# Ultrix sh set writes to stderr and can't be redirected directly,
13775# and sets the high bit in the cache file unless we assign to the vars.
13776(
13777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13778 eval ac_val=\$$ac_var
13779 case $ac_val in #(
13780 *${as_nl}*)
13781 case $ac_var in #(
13782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13783$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13784 esac
13785 case $ac_var in #(
13786 _ | IFS | as_nl) ;; #(
13787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13788 *) { eval $ac_var=; unset $ac_var;} ;;
13789 esac ;;
13790 esac
13791 done
13792
13793 (set) 2>&1 |
13794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13795 *${as_nl}ac_space=\ *)
13796 # `set' does not quote correctly, so add quotes: double-quote
13797 # substitution turns \\\\ into \\, and sed turns \\ into \.
13798 sed -n \
13799 "s/'/'\\\\''/g;
13800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13801 ;; #(
13802 *)
13803 # `set' quotes correctly as required by POSIX, so do not add quotes.
13804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13805 ;;
13806 esac |
13807 sort
13808) |
13809 sed '
13810 /^ac_cv_env_/b end
13811 t clear
13812 :clear
13813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13814 t end
13815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13816 :end' >>confcache
13817if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13818 if test -w "$cache_file"; then
13819 test "x$cache_file" != "x/dev/null" &&
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13821$as_echo "$as_me: updating cache $cache_file" >&6;}
13822 cat confcache >$cache_file
13823 else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13825$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13826 fi
13827fi
13828rm -f confcache
13829
13830test "x$prefix" = xNONE && prefix=$ac_default_prefix
13831# Let make expand exec_prefix.
13832test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13833
13834DEFS=-DHAVE_CONFIG_H
13835
13836ac_libobjs=
13837ac_ltlibobjs=
13838for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13839 # 1. Remove the extension, and $U if already installed.
13840 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13841 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13842 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13843 # will be set to the directory where LIBOBJS objects are built.
13844 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13845 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13846done
13847LIBOBJS=$ac_libobjs
13848
13849LTLIBOBJS=$ac_ltlibobjs
13850
13851
13852 if test -n "$EXEEXT"; then
13853 am__EXEEXT_TRUE=
13854 am__EXEEXT_FALSE='#'
13855else
13856 am__EXEEXT_TRUE='#'
13857 am__EXEEXT_FALSE=
13858fi
13859
13860if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13861 as_fn_error "conditional \"AMDEP\" was never defined.
13862Usually this means the macro was only invoked conditionally." "$LINENO" 5
13863fi
13864if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13865 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13866Usually this means the macro was only invoked conditionally." "$LINENO" 5
13867fi
13868if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13869 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13870Usually this means the macro was only invoked conditionally." "$LINENO" 5
13871fi
13872if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
13873 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
13874Usually this means the macro was only invoked conditionally." "$LINENO" 5
13875fi
13876if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
13877 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
13878Usually this means the macro was only invoked conditionally." "$LINENO" 5
13879fi
13880if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
13881 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
13882Usually this means the macro was only invoked conditionally." "$LINENO" 5
13883fi
13884if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
13885 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
13886Usually this means the macro was only invoked conditionally." "$LINENO" 5
13887fi
13888if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
13889 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
13890Usually this means the macro was only invoked conditionally." "$LINENO" 5
13891fi
13892if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
13893 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
13894Usually this means the macro was only invoked conditionally." "$LINENO" 5
13895fi
13896if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
13897 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
13898Usually this means the macro was only invoked conditionally." "$LINENO" 5
13899fi
13900if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
13901 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
13902Usually this means the macro was only invoked conditionally." "$LINENO" 5
13903fi
13904
13905if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
13906 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
13907Usually this means the macro was only invoked conditionally." "$LINENO" 5
13908fi
13909
13910: ${CONFIG_STATUS=./config.status}
13911ac_write_fail=0
13912ac_clean_files_save=$ac_clean_files
13913ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13915$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13916as_write_fail=0
13917cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13918#! $SHELL
13919# Generated by $as_me.
13920# Run this file to recreate the current configuration.
13921# Compiler output produced by configure, useful for debugging
13922# configure, is in config.log if it exists.
13923
13924debug=false
13925ac_cs_recheck=false
13926ac_cs_silent=false
13927
13928SHELL=\${CONFIG_SHELL-$SHELL}
13929export SHELL
13930_ASEOF
13931cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13932## -------------------- ##
13933## M4sh Initialization. ##
13934## -------------------- ##
13935
13936# Be more Bourne compatible
13937DUALCASE=1; export DUALCASE # for MKS sh
13938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13939 emulate sh
13940 NULLCMD=:
13941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13942 # is contrary to our usage. Disable this feature.
13943 alias -g '${1+"$@"}'='"$@"'
13944 setopt NO_GLOB_SUBST
13945else
13946 case `(set -o) 2>/dev/null` in #(
13947 *posix*) :
13948 set -o posix ;; #(
13949 *) :
13950 ;;
13951esac
13952fi
13953
13954
13955as_nl='
13956'
13957export as_nl
13958# Printing a long string crashes Solaris 7 /usr/bin/printf.
13959as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13960as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13961as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13962# Prefer a ksh shell builtin over an external printf program on Solaris,
13963# but without wasting forks for bash or zsh.
13964if test -z "$BASH_VERSION$ZSH_VERSION" \
13965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13966 as_echo='print -r --'
13967 as_echo_n='print -rn --'
13968elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13969 as_echo='printf %s\n'
13970 as_echo_n='printf %s'
13971else
13972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13973 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13974 as_echo_n='/usr/ucb/echo -n'
13975 else
13976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13977 as_echo_n_body='eval
13978 arg=$1;
13979 case $arg in #(
13980 *"$as_nl"*)
13981 expr "X$arg" : "X\\(.*\\)$as_nl";
13982 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13983 esac;
13984 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13985 '
13986 export as_echo_n_body
13987 as_echo_n='sh -c $as_echo_n_body as_echo'
13988 fi
13989 export as_echo_body
13990 as_echo='sh -c $as_echo_body as_echo'
13991fi
13992
13993# The user is always right.
13994if test "${PATH_SEPARATOR+set}" != set; then
13995 PATH_SEPARATOR=:
13996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13998 PATH_SEPARATOR=';'
13999 }
14000fi
14001
14002
14003# IFS
14004# We need space, tab and new line, in precisely that order. Quoting is
14005# there to prevent editors from complaining about space-tab.
14006# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14007# splitting by setting IFS to empty value.)
14008IFS=" "" $as_nl"
14009
14010# Find who we are. Look in the path if we contain no directory separator.
14011case $0 in #((
14012 *[\\/]* ) as_myself=$0 ;;
14013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014for as_dir in $PATH
14015do
14016 IFS=$as_save_IFS
14017 test -z "$as_dir" && as_dir=.
14018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14019 done
14020IFS=$as_save_IFS
14021
14022 ;;
14023esac
14024# We did not find ourselves, most probably we were run as `sh COMMAND'
14025# in which case we are not to be found in the path.
14026if test "x$as_myself" = x; then
14027 as_myself=$0
14028fi
14029if test ! -f "$as_myself"; then
14030 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14031 exit 1
14032fi
14033
14034# Unset variables that we do not need and which cause bugs (e.g. in
14035# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14036# suppresses any "Segmentation fault" message there. '((' could
14037# trigger a bug in pdksh 5.2.14.
14038for as_var in BASH_ENV ENV MAIL MAILPATH
14039do eval test x\${$as_var+set} = xset \
14040 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14041done
14042PS1='$ '
14043PS2='> '
14044PS4='+ '
14045
14046# NLS nuisances.
14047LC_ALL=C
14048export LC_ALL
14049LANGUAGE=C
14050export LANGUAGE
14051
14052# CDPATH.
14053(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14054
14055
14056# as_fn_error ERROR [LINENO LOG_FD]
14057# ---------------------------------
14058# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14059# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14060# script with status $?, using 1 if that was 0.
14061as_fn_error ()
14062{
14063 as_status=$?; test $as_status -eq 0 && as_status=1
14064 if test "$3"; then
14065 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14066 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14067 fi
14068 $as_echo "$as_me: error: $1" >&2
14069 as_fn_exit $as_status
14070} # as_fn_error
14071
14072
14073# as_fn_set_status STATUS
14074# -----------------------
14075# Set $? to STATUS, without forking.
14076as_fn_set_status ()
14077{
14078 return $1
14079} # as_fn_set_status
14080
14081# as_fn_exit STATUS
14082# -----------------
14083# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14084as_fn_exit ()
14085{
14086 set +e
14087 as_fn_set_status $1
14088 exit $1
14089} # as_fn_exit
14090
14091# as_fn_unset VAR
14092# ---------------
14093# Portably unset VAR.
14094as_fn_unset ()
14095{
14096 { eval $1=; unset $1;}
14097}
14098as_unset=as_fn_unset
14099# as_fn_append VAR VALUE
14100# ----------------------
14101# Append the text in VALUE to the end of the definition contained in VAR. Take
14102# advantage of any shell optimizations that allow amortized linear growth over
14103# repeated appends, instead of the typical quadratic growth present in naive
14104# implementations.
14105if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14106 eval 'as_fn_append ()
14107 {
14108 eval $1+=\$2
14109 }'
14110else
14111 as_fn_append ()
14112 {
14113 eval $1=\$$1\$2
14114 }
14115fi # as_fn_append
14116
14117# as_fn_arith ARG...
14118# ------------------
14119# Perform arithmetic evaluation on the ARGs, and store the result in the
14120# global $as_val. Take advantage of shells that can avoid forks. The arguments
14121# must be portable across $(()) and expr.
14122if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14123 eval 'as_fn_arith ()
14124 {
14125 as_val=$(( $* ))
14126 }'
14127else
14128 as_fn_arith ()
14129 {
14130 as_val=`expr "$@" || test $? -eq 1`
14131 }
14132fi # as_fn_arith
14133
14134
14135if expr a : '\(a\)' >/dev/null 2>&1 &&
14136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14137 as_expr=expr
14138else
14139 as_expr=false
14140fi
14141
14142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14143 as_basename=basename
14144else
14145 as_basename=false
14146fi
14147
14148if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14149 as_dirname=dirname
14150else
14151 as_dirname=false
14152fi
14153
14154as_me=`$as_basename -- "$0" ||
14155$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14156 X"$0" : 'X\(//\)$' \| \
14157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14158$as_echo X/"$0" |
14159 sed '/^.*\/\([^/][^/]*\)\/*$/{
14160 s//\1/
14161 q
14162 }
14163 /^X\/\(\/\/\)$/{
14164 s//\1/
14165 q
14166 }
14167 /^X\/\(\/\).*/{
14168 s//\1/
14169 q
14170 }
14171 s/.*/./; q'`
14172
14173# Avoid depending upon Character Ranges.
14174as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14175as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14176as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14177as_cr_digits='0123456789'
14178as_cr_alnum=$as_cr_Letters$as_cr_digits
14179
14180ECHO_C= ECHO_N= ECHO_T=
14181case `echo -n x` in #(((((
14182-n*)
14183 case `echo 'xy\c'` in
14184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14185 xy) ECHO_C='\c';;
14186 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14187 ECHO_T=' ';;
14188 esac;;
14189*)
14190 ECHO_N='-n';;
14191esac
14192
14193rm -f conf$$ conf$$.exe conf$$.file
14194if test -d conf$$.dir; then
14195 rm -f conf$$.dir/conf$$.file
14196else
14197 rm -f conf$$.dir
14198 mkdir conf$$.dir 2>/dev/null
14199fi
14200if (echo >conf$$.file) 2>/dev/null; then
14201 if ln -s conf$$.file conf$$ 2>/dev/null; then
14202 as_ln_s='ln -s'
14203 # ... but there are two gotchas:
14204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14206 # In both cases, we have to default to `cp -p'.
14207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14208 as_ln_s='cp -p'
14209 elif ln conf$$.file conf$$ 2>/dev/null; then
14210 as_ln_s=ln
14211 else
14212 as_ln_s='cp -p'
14213 fi
14214else
14215 as_ln_s='cp -p'
14216fi
14217rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14218rmdir conf$$.dir 2>/dev/null
14219
14220
14221# as_fn_mkdir_p
14222# -------------
14223# Create "$as_dir" as a directory, including parents if necessary.
14224as_fn_mkdir_p ()
14225{
14226
14227 case $as_dir in #(
14228 -*) as_dir=./$as_dir;;
14229 esac
14230 test -d "$as_dir" || eval $as_mkdir_p || {
14231 as_dirs=
14232 while :; do
14233 case $as_dir in #(
14234 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14235 *) as_qdir=$as_dir;;
14236 esac
14237 as_dirs="'$as_qdir' $as_dirs"
14238 as_dir=`$as_dirname -- "$as_dir" ||
14239$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14240 X"$as_dir" : 'X\(//\)[^/]' \| \
14241 X"$as_dir" : 'X\(//\)$' \| \
14242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14243$as_echo X"$as_dir" |
14244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14245 s//\1/
14246 q
14247 }
14248 /^X\(\/\/\)[^/].*/{
14249 s//\1/
14250 q
14251 }
14252 /^X\(\/\/\)$/{
14253 s//\1/
14254 q
14255 }
14256 /^X\(\/\).*/{
14257 s//\1/
14258 q
14259 }
14260 s/.*/./; q'`
14261 test -d "$as_dir" && break
14262 done
14263 test -z "$as_dirs" || eval "mkdir $as_dirs"
14264 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14265
14266
14267} # as_fn_mkdir_p
14268if mkdir -p . 2>/dev/null; then
14269 as_mkdir_p='mkdir -p "$as_dir"'
14270else
14271 test -d ./-p && rmdir ./-p
14272 as_mkdir_p=false
14273fi
14274
14275if test -x / >/dev/null 2>&1; then
14276 as_test_x='test -x'
14277else
14278 if ls -dL / >/dev/null 2>&1; then
14279 as_ls_L_option=L
14280 else
14281 as_ls_L_option=
14282 fi
14283 as_test_x='
14284 eval sh -c '\''
14285 if test -d "$1"; then
14286 test -d "$1/.";
14287 else
14288 case $1 in #(
14289 -*)set "./$1";;
14290 esac;
14291 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14292 ???[sx]*):;;*)false;;esac;fi
14293 '\'' sh
14294 '
14295fi
14296as_executable_p=$as_test_x
14297
14298# Sed expression to map a string onto a valid CPP name.
14299as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14300
14301# Sed expression to map a string onto a valid variable name.
14302as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14303
14304
14305exec 6>&1
14306## ----------------------------------- ##
14307## Main body of $CONFIG_STATUS script. ##
14308## ----------------------------------- ##
14309_ASEOF
14310test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14311
14312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14313# Save the log message, to keep $0 and so on meaningful, and to
14314# report actual input values of CONFIG_FILES etc. instead of their
14315# values after options handling.
14316ac_log="
14317This file was extended by package-unused $as_me version-unused, which was
14318generated by GNU Autoconf 2.64. Invocation command line was
14319
14320 CONFIG_FILES = $CONFIG_FILES
14321 CONFIG_HEADERS = $CONFIG_HEADERS
14322 CONFIG_LINKS = $CONFIG_LINKS
14323 CONFIG_COMMANDS = $CONFIG_COMMANDS
14324 $ $0 $@
14325
14326on `(hostname || uname -n) 2>/dev/null | sed 1q`
14327"
14328
14329_ACEOF
14330
14331case $ac_config_files in *"
14332"*) set x $ac_config_files; shift; ac_config_files=$*;;
14333esac
14334
14335case $ac_config_headers in *"
14336"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14337esac
14338
14339
14340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14341# Files that config.status was made for.
14342config_files="$ac_config_files"
14343config_headers="$ac_config_headers"
14344config_commands="$ac_config_commands"
14345
14346_ACEOF
14347
14348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14349ac_cs_usage="\
14350\`$as_me' instantiates files and other configuration actions
14351from templates according to the current configuration. Unless the files
14352and actions are specified as TAGs, all are instantiated by default.
14353
14354Usage: $0 [OPTION]... [TAG]...
14355
14356 -h, --help print this help, then exit
14357 -V, --version print version number and configuration settings, then exit
14358 -q, --quiet, --silent
14359 do not print progress messages
14360 -d, --debug don't remove temporary files
14361 --recheck update $as_me by reconfiguring in the same conditions
14362 --file=FILE[:TEMPLATE]
14363 instantiate the configuration file FILE
14364 --header=FILE[:TEMPLATE]
14365 instantiate the configuration header FILE
14366
14367Configuration files:
14368$config_files
14369
14370Configuration headers:
14371$config_headers
14372
14373Configuration commands:
14374$config_commands
14375
14376Report bugs to the package provider."
14377
14378_ACEOF
14379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14380ac_cs_version="\\
14381package-unused config.status version-unused
14382configured by $0, generated by GNU Autoconf 2.64,
14383 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14384
14385Copyright (C) 2009 Free Software Foundation, Inc.
14386This config.status script is free software; the Free Software Foundation
14387gives unlimited permission to copy, distribute and modify it."
14388
14389ac_pwd='$ac_pwd'
14390srcdir='$srcdir'
14391INSTALL='$INSTALL'
14392MKDIR_P='$MKDIR_P'
14393AWK='$AWK'
14394test -n "\$AWK" || AWK=awk
14395_ACEOF
14396
14397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14398# The default lists apply if the user does not specify any file.
14399ac_need_defaults=:
14400while test $# != 0
14401do
14402 case $1 in
14403 --*=*)
14404 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14405 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14406 ac_shift=:
14407 ;;
14408 *)
14409 ac_option=$1
14410 ac_optarg=$2
14411 ac_shift=shift
14412 ;;
14413 esac
14414
14415 case $ac_option in
14416 # Handling of the options.
14417 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14418 ac_cs_recheck=: ;;
14419 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14420 $as_echo "$ac_cs_version"; exit ;;
14421 --debug | --debu | --deb | --de | --d | -d )
14422 debug=: ;;
14423 --file | --fil | --fi | --f )
14424 $ac_shift
14425 case $ac_optarg in
14426 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14427 esac
14428 as_fn_append CONFIG_FILES " '$ac_optarg'"
14429 ac_need_defaults=false;;
14430 --header | --heade | --head | --hea )
14431 $ac_shift
14432 case $ac_optarg in
14433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14434 esac
14435 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14436 ac_need_defaults=false;;
14437 --he | --h)
14438 # Conflict between --help and --header
14439 as_fn_error "ambiguous option: \`$1'
14440Try \`$0 --help' for more information.";;
14441 --help | --hel | -h )
14442 $as_echo "$ac_cs_usage"; exit ;;
14443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14445 ac_cs_silent=: ;;
14446
14447 # This is an error.
14448 -*) as_fn_error "unrecognized option: \`$1'
14449Try \`$0 --help' for more information." ;;
14450
14451 *) as_fn_append ac_config_targets " $1"
14452 ac_need_defaults=false ;;
14453
14454 esac
14455 shift
14456done
14457
14458ac_configure_extra_args=
14459
14460if $ac_cs_silent; then
14461 exec 6>/dev/null
14462 ac_configure_extra_args="$ac_configure_extra_args --silent"
14463fi
14464
14465_ACEOF
14466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14467if \$ac_cs_recheck; then
14468 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14469 shift
14470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14471 CONFIG_SHELL='$SHELL'
14472 export CONFIG_SHELL
14473 exec "\$@"
14474fi
14475
14476_ACEOF
14477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14478exec 5>>config.log
14479{
14480 echo
14481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14482## Running $as_me. ##
14483_ASBOX
14484 $as_echo "$ac_log"
14485} >&5
14486
14487_ACEOF
14488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14489#
14490# INIT-COMMANDS
14491#
14492
14493srcdir="$srcdir"
14494host="$host"
14495target="$target"
14496with_multisubdir="$with_multisubdir"
14497with_multisrctop="$with_multisrctop"
14498with_target_subdir="$with_target_subdir"
14499ac_configure_args="${multilib_arg} ${ac_configure_args}"
14500multi_basedir="$multi_basedir"
14501CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14502CC="$CC"
14503CXX="$CXX"
14504GFORTRAN="$GFORTRAN"
14505GCJ="$GCJ"
14506AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14507
14508
14509# The HP-UX ksh and POSIX shell print the target directory to stdout
14510# if CDPATH is set.
14511(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14512
14513sed_quote_subst='$sed_quote_subst'
14514double_quote_subst='$double_quote_subst'
14515delay_variable_subst='$delay_variable_subst'
14516SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14517Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14518GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14519EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14520FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14521SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14522ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14523LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14524macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14525macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14526enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14527enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14528pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14529enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14530host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14531host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14532host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14533build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14534build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14535build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14536NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14537LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14538max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14539ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14540exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14541lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14542lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14543lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14544reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14545reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14546OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14547deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14548file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14549AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14550AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14551STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14552RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14553old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14554old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14555old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14556lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14557CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14558CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14559compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14560GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14561lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14562lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14563lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14564lt_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"`'
14565objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14566MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14567lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14568lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14569lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14570lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14571lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14572need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14573DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14574NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14575LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14576OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14577OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14578libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14579shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14580extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14581archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14582enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14583export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14584whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14585compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14586old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14587old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14588archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14589archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14590module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14591module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14592with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14593allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14594no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14595hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14596hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14597hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14598hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14599hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14600hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14601hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14602hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14603inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14604link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14605fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14606always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14607export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14608exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14609include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14610prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14611file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14612variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14613need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14614need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14615version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14616runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14617shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14618shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14619libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14620library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14621soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14622install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14623postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14624postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14625finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14626finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14627hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14628sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14629sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14630hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14631enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14632enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14633enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14634old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14635striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14636LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
14637reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
14638reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
14639old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14640compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
14641GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
14642lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
14643lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
14644lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
14645lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
14646lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
14647archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
14648enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
14649export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14650whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14651compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
14652old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
14653old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
14654archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14655archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14656module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
14657module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14658with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
14659allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14660no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14661hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14662hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
14663hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
14664hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
14665hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
14666hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
14667hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
14668hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
14669inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
14670link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
14671fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
14672always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
14673export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
14674exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14675include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14676prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
14677file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
14678hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
14679
14680LTCC='$LTCC'
14681LTCFLAGS='$LTCFLAGS'
14682compiler='$compiler_DEFAULT'
14683
14684# A function that is used when there is no print builtin or printf.
14685func_fallback_echo ()
14686{
14687 eval 'cat <<_LTECHO_EOF
14688\$1
14689_LTECHO_EOF'
14690}
14691
14692# Quote evaled strings.
14693for var in SED \
14694GREP \
14695EGREP \
14696FGREP \
14697SHELL \
14698ECHO \
14699LD \
14700NM \
14701LN_S \
14702lt_SP2NL \
14703lt_NL2SP \
14704reload_flag \
14705OBJDUMP \
14706deplibs_check_method \
14707file_magic_cmd \
14708AR \
14709AR_FLAGS \
14710STRIP \
14711RANLIB \
14712CC \
14713CFLAGS \
14714compiler \
14715lt_cv_sys_global_symbol_pipe \
14716lt_cv_sys_global_symbol_to_cdecl \
14717lt_cv_sys_global_symbol_to_c_name_address \
14718lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14719lt_prog_compiler_no_builtin_flag \
14720lt_prog_compiler_wl \
14721lt_prog_compiler_pic \
14722lt_prog_compiler_static \
14723lt_cv_prog_compiler_c_o \
14724need_locks \
14725DSYMUTIL \
14726NMEDIT \
14727LIPO \
14728OTOOL \
14729OTOOL64 \
14730shrext_cmds \
14731export_dynamic_flag_spec \
14732whole_archive_flag_spec \
14733compiler_needs_object \
14734with_gnu_ld \
14735allow_undefined_flag \
14736no_undefined_flag \
14737hardcode_libdir_flag_spec \
14738hardcode_libdir_flag_spec_ld \
14739hardcode_libdir_separator \
14740fix_srcfile_path \
14741exclude_expsyms \
14742include_expsyms \
14743file_list_spec \
14744variables_saved_for_relink \
14745libname_spec \
14746library_names_spec \
14747soname_spec \
14748install_override_mode \
14749finish_eval \
14750old_striplib \
14751striplib \
14752LD_GO \
14753reload_flag_GO \
14754compiler_GO \
14755lt_prog_compiler_no_builtin_flag_GO \
14756lt_prog_compiler_wl_GO \
14757lt_prog_compiler_pic_GO \
14758lt_prog_compiler_static_GO \
14759lt_cv_prog_compiler_c_o_GO \
14760export_dynamic_flag_spec_GO \
14761whole_archive_flag_spec_GO \
14762compiler_needs_object_GO \
14763with_gnu_ld_GO \
14764allow_undefined_flag_GO \
14765no_undefined_flag_GO \
14766hardcode_libdir_flag_spec_GO \
14767hardcode_libdir_flag_spec_ld_GO \
14768hardcode_libdir_separator_GO \
14769fix_srcfile_path_GO \
14770exclude_expsyms_GO \
14771include_expsyms_GO \
14772file_list_spec_GO; do
14773 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14774 *[\\\\\\\`\\"\\\$]*)
14775 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14776 ;;
14777 *)
14778 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14779 ;;
14780 esac
14781done
14782
14783# Double-quote double-evaled strings.
14784for var in reload_cmds \
14785old_postinstall_cmds \
14786old_postuninstall_cmds \
14787old_archive_cmds \
14788extract_expsyms_cmds \
14789old_archive_from_new_cmds \
14790old_archive_from_expsyms_cmds \
14791archive_cmds \
14792archive_expsym_cmds \
14793module_cmds \
14794module_expsym_cmds \
14795export_symbols_cmds \
14796prelink_cmds \
14797postinstall_cmds \
14798postuninstall_cmds \
14799finish_cmds \
14800sys_lib_search_path_spec \
14801sys_lib_dlsearch_path_spec \
14802reload_cmds_GO \
14803old_archive_cmds_GO \
14804old_archive_from_new_cmds_GO \
14805old_archive_from_expsyms_cmds_GO \
14806archive_cmds_GO \
14807archive_expsym_cmds_GO \
14808module_cmds_GO \
14809module_expsym_cmds_GO \
14810export_symbols_cmds_GO \
14811prelink_cmds_GO; do
14812 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14813 *[\\\\\\\`\\"\\\$]*)
14814 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14815 ;;
14816 *)
14817 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14818 ;;
14819 esac
14820done
14821
14822ac_aux_dir='$ac_aux_dir'
14823xsi_shell='$xsi_shell'
14824lt_shell_append='$lt_shell_append'
14825
14826# See if we are running on zsh, and set the options which allow our
14827# commands through without removal of \ escapes INIT.
14828if test -n "\${ZSH_VERSION+set}" ; then
14829 setopt NO_GLOB_SUBST
14830fi
14831
14832
14833 PACKAGE='$PACKAGE'
14834 VERSION='$VERSION'
14835 TIMESTAMP='$TIMESTAMP'
14836 RM='$RM'
14837 ofile='$ofile'
14838
14839
14840
14841
14842
14843
14844# Variables needed in config.status (file generation) which aren't already
14845# passed by autoconf.
14846SUBDIRS="$SUBDIRS"
14847
14848
14849_ACEOF
14850
14851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14852
14853# Handling of arguments.
14854for ac_config_target in $ac_config_targets
14855do
14856 case $ac_config_target in
14857 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14858 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14859 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14860 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14861 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14862 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14863 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14864
14865 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14866 esac
14867done
14868
14869
14870# If the user did not use the arguments to specify the items to instantiate,
14871# then the envvar interface is used. Set only those that are not.
14872# We use the long form for the default assignment because of an extremely
14873# bizarre bug on SunOS 4.1.3.
14874if $ac_need_defaults; then
14875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14878fi
14879
14880# Have a temporary directory for convenience. Make it in the build tree
14881# simply because there is no reason against having it here, and in addition,
14882# creating and moving files from /tmp can sometimes cause problems.
14883# Hook for its removal unless debugging.
14884# Note that there is a small window in which the directory will not be cleaned:
14885# after its creation but before its name has been assigned to `$tmp'.
14886$debug ||
14887{
14888 tmp=
14889 trap 'exit_status=$?
14890 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14891' 0
14892 trap 'as_fn_exit 1' 1 2 13 15
14893}
14894# Create a (secure) tmp directory for tmp files.
14895
14896{
14897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14898 test -n "$tmp" && test -d "$tmp"
14899} ||
14900{
14901 tmp=./conf$$-$RANDOM
14902 (umask 077 && mkdir "$tmp")
14903} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14904
14905# Set up the scripts for CONFIG_FILES section.
14906# No need to generate them if there are no CONFIG_FILES.
14907# This happens for instance with `./config.status config.h'.
14908if test -n "$CONFIG_FILES"; then
14909
14910
14911ac_cr=`echo X | tr X '\015'`
14912# On cygwin, bash can eat \r inside `` if the user requested igncr.
14913# But we know of no other shell where ac_cr would be empty at this
14914# point, so we can use a bashism as a fallback.
14915if test "x$ac_cr" = x; then
14916 eval ac_cr=\$\'\\r\'
14917fi
14918ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14919if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14920 ac_cs_awk_cr='\r'
14921else
14922 ac_cs_awk_cr=$ac_cr
14923fi
14924
14925echo 'BEGIN {' >"$tmp/subs1.awk" &&
14926_ACEOF
14927
14928
14929{
14930 echo "cat >conf$$subs.awk <<_ACEOF" &&
14931 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14932 echo "_ACEOF"
14933} >conf$$subs.sh ||
14934 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14935ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14936ac_delim='%!_!# '
14937for ac_last_try in false false false false false :; do
14938 . ./conf$$subs.sh ||
14939 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14940
14941 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14942 if test $ac_delim_n = $ac_delim_num; then
14943 break
14944 elif $ac_last_try; then
14945 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14946 else
14947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14948 fi
14949done
14950rm -f conf$$subs.sh
14951
14952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14953cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14954_ACEOF
14955sed -n '
14956h
14957s/^/S["/; s/!.*/"]=/
14958p
14959g
14960s/^[^!]*!//
14961:repl
14962t repl
14963s/'"$ac_delim"'$//
14964t delim
14965:nl
14966h
14967s/\(.\{148\}\).*/\1/
14968t more1
14969s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14970p
14971n
14972b repl
14973:more1
14974s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14975p
14976g
14977s/.\{148\}//
14978t nl
14979:delim
14980h
14981s/\(.\{148\}\).*/\1/
14982t more2
14983s/["\\]/\\&/g; s/^/"/; s/$/"/
14984p
14985b
14986:more2
14987s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14988p
14989g
14990s/.\{148\}//
14991t delim
14992' <conf$$subs.awk | sed '
14993/^[^""]/{
14994 N
14995 s/\n//
14996}
14997' >>$CONFIG_STATUS || ac_write_fail=1
14998rm -f conf$$subs.awk
14999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15000_ACAWK
15001cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15002 for (key in S) S_is_set[key] = 1
15003 FS = "\a"
15004
15005}
15006{
15007 line = $ 0
15008 nfields = split(line, field, "@")
15009 substed = 0
15010 len = length(field[1])
15011 for (i = 2; i < nfields; i++) {
15012 key = field[i]
15013 keylen = length(key)
15014 if (S_is_set[key]) {
15015 value = S[key]
15016 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15017 len += length(value) + length(field[++i])
15018 substed = 1
15019 } else
15020 len += 1 + keylen
15021 }
15022
15023 print line
15024}
15025
15026_ACAWK
15027_ACEOF
15028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15029if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15030 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15031else
15032 cat
15033fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15034 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15035_ACEOF
15036
15037# VPATH may cause trouble with some makes, so we remove $(srcdir),
15038# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15039# trailing colons and then remove the whole line if VPATH becomes empty
15040# (actually we leave an empty line to preserve line numbers).
15041if test "x$srcdir" = x.; then
15042 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15043s/:*\$(srcdir):*/:/
15044s/:*\${srcdir}:*/:/
15045s/:*@srcdir@:*/:/
15046s/^\([^=]*=[ ]*\):*/\1/
15047s/:*$//
15048s/^[^=]*=[ ]*$//
15049}'
15050fi
15051
15052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15053fi # test -n "$CONFIG_FILES"
15054
15055# Set up the scripts for CONFIG_HEADERS section.
15056# No need to generate them if there are no CONFIG_HEADERS.
15057# This happens for instance with `./config.status Makefile'.
15058if test -n "$CONFIG_HEADERS"; then
15059cat >"$tmp/defines.awk" <<\_ACAWK ||
15060BEGIN {
15061_ACEOF
15062
15063# Transform confdefs.h into an awk script `defines.awk', embedded as
15064# here-document in config.status, that substitutes the proper values into
15065# config.h.in to produce config.h.
15066
15067# Create a delimiter string that does not exist in confdefs.h, to ease
15068# handling of long lines.
15069ac_delim='%!_!# '
15070for ac_last_try in false false :; do
15071 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15072 if test -z "$ac_t"; then
15073 break
15074 elif $ac_last_try; then
15075 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15076 else
15077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15078 fi
15079done
15080
15081# For the awk script, D is an array of macro values keyed by name,
15082# likewise P contains macro parameters if any. Preserve backslash
15083# newline sequences.
15084
15085ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15086sed -n '
15087s/.\{148\}/&'"$ac_delim"'/g
15088t rset
15089:rset
15090s/^[ ]*#[ ]*define[ ][ ]*/ /
15091t def
15092d
15093:def
15094s/\\$//
15095t bsnl
15096s/["\\]/\\&/g
15097s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15098D["\1"]=" \3"/p
15099s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15100d
15101:bsnl
15102s/["\\]/\\&/g
15103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15104D["\1"]=" \3\\\\\\n"\\/p
15105t cont
15106s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15107t cont
15108d
15109:cont
15110n
15111s/.\{148\}/&'"$ac_delim"'/g
15112t clear
15113:clear
15114s/\\$//
15115t bsnlc
15116s/["\\]/\\&/g; s/^/"/; s/$/"/p
15117d
15118:bsnlc
15119s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15120b cont
15121' <confdefs.h | sed '
15122s/'"$ac_delim"'/"\\\
15123"/g' >>$CONFIG_STATUS || ac_write_fail=1
15124
15125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15126 for (key in D) D_is_set[key] = 1
15127 FS = "\a"
15128}
15129/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15130 line = \$ 0
15131 split(line, arg, " ")
15132 if (arg[1] == "#") {
15133 defundef = arg[2]
15134 mac1 = arg[3]
15135 } else {
15136 defundef = substr(arg[1], 2)
15137 mac1 = arg[2]
15138 }
15139 split(mac1, mac2, "(") #)
15140 macro = mac2[1]
15141 prefix = substr(line, 1, index(line, defundef) - 1)
15142 if (D_is_set[macro]) {
15143 # Preserve the white space surrounding the "#".
15144 print prefix "define", macro P[macro] D[macro]
15145 next
15146 } else {
15147 # Replace #undef with comments. This is necessary, for example,
15148 # in the case of _POSIX_SOURCE, which is predefined and required
15149 # on some systems where configure will not decide to define it.
15150 if (defundef == "undef") {
15151 print "/*", prefix defundef, macro, "*/"
15152 next
15153 }
15154 }
15155}
15156{ print }
15157_ACAWK
15158_ACEOF
15159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15161fi # test -n "$CONFIG_HEADERS"
15162
15163
15164eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15165shift
15166for ac_tag
15167do
15168 case $ac_tag in
15169 :[FHLC]) ac_mode=$ac_tag; continue;;
15170 esac
15171 case $ac_mode$ac_tag in
15172 :[FHL]*:*);;
15173 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15174 :[FH]-) ac_tag=-:-;;
15175 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15176 esac
15177 ac_save_IFS=$IFS
15178 IFS=:
15179 set x $ac_tag
15180 IFS=$ac_save_IFS
15181 shift
15182 ac_file=$1
15183 shift
15184
15185 case $ac_mode in
15186 :L) ac_source=$1;;
15187 :[FH])
15188 ac_file_inputs=
15189 for ac_f
15190 do
15191 case $ac_f in
15192 -) ac_f="$tmp/stdin";;
15193 *) # Look for the file first in the build tree, then in the source tree
15194 # (if the path is not absolute). The absolute path cannot be DOS-style,
15195 # because $ac_f cannot contain `:'.
15196 test -f "$ac_f" ||
15197 case $ac_f in
15198 [\\/$]*) false;;
15199 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15200 esac ||
15201 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15202 esac
15203 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15204 as_fn_append ac_file_inputs " '$ac_f'"
15205 done
15206
15207 # Let's still pretend it is `configure' which instantiates (i.e., don't
15208 # use $as_me), people would be surprised to read:
15209 # /* config.h. Generated by config.status. */
15210 configure_input='Generated from '`
15211 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15212 `' by configure.'
15213 if test x"$ac_file" != x-; then
15214 configure_input="$ac_file. $configure_input"
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15216$as_echo "$as_me: creating $ac_file" >&6;}
15217 fi
15218 # Neutralize special characters interpreted by sed in replacement strings.
15219 case $configure_input in #(
15220 *\&* | *\|* | *\\* )
15221 ac_sed_conf_input=`$as_echo "$configure_input" |
15222 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15223 *) ac_sed_conf_input=$configure_input;;
15224 esac
15225
15226 case $ac_tag in
15227 *:-:* | *:-) cat >"$tmp/stdin" \
15228 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15229 esac
15230 ;;
15231 esac
15232
15233 ac_dir=`$as_dirname -- "$ac_file" ||
15234$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15235 X"$ac_file" : 'X\(//\)[^/]' \| \
15236 X"$ac_file" : 'X\(//\)$' \| \
15237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15238$as_echo X"$ac_file" |
15239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15240 s//\1/
15241 q
15242 }
15243 /^X\(\/\/\)[^/].*/{
15244 s//\1/
15245 q
15246 }
15247 /^X\(\/\/\)$/{
15248 s//\1/
15249 q
15250 }
15251 /^X\(\/\).*/{
15252 s//\1/
15253 q
15254 }
15255 s/.*/./; q'`
15256 as_dir="$ac_dir"; as_fn_mkdir_p
15257 ac_builddir=.
15258
15259case "$ac_dir" in
15260.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15261*)
15262 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15263 # A ".." for each directory in $ac_dir_suffix.
15264 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15265 case $ac_top_builddir_sub in
15266 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15267 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15268 esac ;;
15269esac
15270ac_abs_top_builddir=$ac_pwd
15271ac_abs_builddir=$ac_pwd$ac_dir_suffix
15272# for backward compatibility:
15273ac_top_builddir=$ac_top_build_prefix
15274
15275case $srcdir in
15276 .) # We are building in place.
15277 ac_srcdir=.
15278 ac_top_srcdir=$ac_top_builddir_sub
15279 ac_abs_top_srcdir=$ac_pwd ;;
15280 [\\/]* | ?:[\\/]* ) # Absolute name.
15281 ac_srcdir=$srcdir$ac_dir_suffix;
15282 ac_top_srcdir=$srcdir
15283 ac_abs_top_srcdir=$srcdir ;;
15284 *) # Relative name.
15285 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15286 ac_top_srcdir=$ac_top_build_prefix$srcdir
15287 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15288esac
15289ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15290
15291
15292 case $ac_mode in
15293 :F)
15294 #
15295 # CONFIG_FILE
15296 #
15297
15298 case $INSTALL in
15299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15300 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15301 esac
15302 ac_MKDIR_P=$MKDIR_P
15303 case $MKDIR_P in
15304 [\\/$]* | ?:[\\/]* ) ;;
15305 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15306 esac
15307_ACEOF
15308
15309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15310# If the template does not know about datarootdir, expand it.
15311# FIXME: This hack should be removed a few years after 2.60.
15312ac_datarootdir_hack=; ac_datarootdir_seen=
15313ac_sed_dataroot='
15314/datarootdir/ {
15315 p
15316 q
15317}
15318/@datadir@/p
15319/@docdir@/p
15320/@infodir@/p
15321/@localedir@/p
15322/@mandir@/p'
15323case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15324*datarootdir*) ac_datarootdir_seen=yes;;
15325*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15327$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15328_ACEOF
15329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15330 ac_datarootdir_hack='
15331 s&@datadir@&$datadir&g
15332 s&@docdir@&$docdir&g
15333 s&@infodir@&$infodir&g
15334 s&@localedir@&$localedir&g
15335 s&@mandir@&$mandir&g
15336 s&\\\${datarootdir}&$datarootdir&g' ;;
15337esac
15338_ACEOF
15339
15340# Neutralize VPATH when `$srcdir' = `.'.
15341# Shell code in configure.ac might set extrasub.
15342# FIXME: do we really want to maintain this feature?
15343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15344ac_sed_extra="$ac_vpsub
15345$extrasub
15346_ACEOF
15347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15348:t
15349/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15350s|@configure_input@|$ac_sed_conf_input|;t t
15351s&@top_builddir@&$ac_top_builddir_sub&;t t
15352s&@top_build_prefix@&$ac_top_build_prefix&;t t
15353s&@srcdir@&$ac_srcdir&;t t
15354s&@abs_srcdir@&$ac_abs_srcdir&;t t
15355s&@top_srcdir@&$ac_top_srcdir&;t t
15356s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15357s&@builddir@&$ac_builddir&;t t
15358s&@abs_builddir@&$ac_abs_builddir&;t t
15359s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15360s&@INSTALL@&$ac_INSTALL&;t t
15361s&@MKDIR_P@&$ac_MKDIR_P&;t t
15362$ac_datarootdir_hack
15363"
15364eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15365 || as_fn_error "could not create $ac_file" "$LINENO" 5
15366
15367test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15368 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15369 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15371which seems to be undefined. Please make sure it is defined." >&5
15372$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15373which seems to be undefined. Please make sure it is defined." >&2;}
15374
15375 rm -f "$tmp/stdin"
15376 case $ac_file in
15377 -) cat "$tmp/out" && rm -f "$tmp/out";;
15378 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15379 esac \
15380 || as_fn_error "could not create $ac_file" "$LINENO" 5
15381 ;;
15382 :H)
15383 #
15384 # CONFIG_HEADER
15385 #
15386 if test x"$ac_file" != x-; then
15387 {
15388 $as_echo "/* $configure_input */" \
15389 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15390 } >"$tmp/config.h" \
15391 || as_fn_error "could not create $ac_file" "$LINENO" 5
15392 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15394$as_echo "$as_me: $ac_file is unchanged" >&6;}
15395 else
15396 rm -f "$ac_file"
15397 mv "$tmp/config.h" "$ac_file" \
15398 || as_fn_error "could not create $ac_file" "$LINENO" 5
15399 fi
15400 else
15401 $as_echo "/* $configure_input */" \
15402 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15403 || as_fn_error "could not create -" "$LINENO" 5
15404 fi
15405# Compute "$ac_file"'s index in $config_headers.
15406_am_arg="$ac_file"
15407_am_stamp_count=1
15408for _am_header in $config_headers :; do
15409 case $_am_header in
15410 $_am_arg | $_am_arg:* )
15411 break ;;
15412 * )
15413 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15414 esac
15415done
15416echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15417$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15418 X"$_am_arg" : 'X\(//\)[^/]' \| \
15419 X"$_am_arg" : 'X\(//\)$' \| \
15420 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15421$as_echo X"$_am_arg" |
15422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15423 s//\1/
15424 q
15425 }
15426 /^X\(\/\/\)[^/].*/{
15427 s//\1/
15428 q
15429 }
15430 /^X\(\/\/\)$/{
15431 s//\1/
15432 q
15433 }
15434 /^X\(\/\).*/{
15435 s//\1/
15436 q
15437 }
15438 s/.*/./; q'`/stamp-h$_am_stamp_count
15439 ;;
15440
15441 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15442$as_echo "$as_me: executing $ac_file commands" >&6;}
15443 ;;
15444 esac
15445
15446
15447 case $ac_file$ac_mode in
15448 "default-1":C)
15449# Only add multilib support code if we just rebuilt the top-level
15450# Makefile.
15451case " $CONFIG_FILES " in
15452 *" Makefile "*)
15453 ac_file=Makefile . ${multi_basedir}/config-ml.in
15454 ;;
15455esac ;;
15456 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15457 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15458 # are listed without --file. Let's play safe and only enable the eval
15459 # if we detect the quoting.
15460 case $CONFIG_FILES in
15461 *\'*) eval set x "$CONFIG_FILES" ;;
15462 *) set x $CONFIG_FILES ;;
15463 esac
15464 shift
15465 for mf
15466 do
15467 # Strip MF so we end up with the name of the file.
15468 mf=`echo "$mf" | sed -e 's/:.*$//'`
15469 # Check whether this is an Automake generated Makefile or not.
15470 # We used to match only the files named `Makefile.in', but
15471 # some people rename them; so instead we look at the file content.
15472 # Grep'ing the first line is not enough: some people post-process
15473 # each Makefile.in and add a new line on top of each file to say so.
15474 # Grep'ing the whole file is not good either: AIX grep has a line
15475 # limit of 2048, but all sed's we know have understand at least 4000.
15476 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15477 dirpart=`$as_dirname -- "$mf" ||
15478$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15479 X"$mf" : 'X\(//\)[^/]' \| \
15480 X"$mf" : 'X\(//\)$' \| \
15481 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15482$as_echo X"$mf" |
15483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15484 s//\1/
15485 q
15486 }
15487 /^X\(\/\/\)[^/].*/{
15488 s//\1/
15489 q
15490 }
15491 /^X\(\/\/\)$/{
15492 s//\1/
15493 q
15494 }
15495 /^X\(\/\).*/{
15496 s//\1/
15497 q
15498 }
15499 s/.*/./; q'`
15500 else
15501 continue
15502 fi
15503 # Extract the definition of DEPDIR, am__include, and am__quote
15504 # from the Makefile without running `make'.
15505 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15506 test -z "$DEPDIR" && continue
15507 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15508 test -z "am__include" && continue
15509 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15510 # When using ansi2knr, U may be empty or an underscore; expand it
15511 U=`sed -n 's/^U = //p' < "$mf"`
15512 # Find all dependency output files, they are included files with
15513 # $(DEPDIR) in their names. We invoke sed twice because it is the
15514 # simplest approach to changing $(DEPDIR) to its actual value in the
15515 # expansion.
15516 for file in `sed -n "
15517 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15518 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15519 # Make sure the directory exists.
15520 test -f "$dirpart/$file" && continue
15521 fdir=`$as_dirname -- "$file" ||
15522$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15523 X"$file" : 'X\(//\)[^/]' \| \
15524 X"$file" : 'X\(//\)$' \| \
15525 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15526$as_echo X"$file" |
15527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15528 s//\1/
15529 q
15530 }
15531 /^X\(\/\/\)[^/].*/{
15532 s//\1/
15533 q
15534 }
15535 /^X\(\/\/\)$/{
15536 s//\1/
15537 q
15538 }
15539 /^X\(\/\).*/{
15540 s//\1/
15541 q
15542 }
15543 s/.*/./; q'`
15544 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15545 # echo "creating $dirpart/$file"
15546 echo '# dummy' > "$dirpart/$file"
15547 done
15548 done
15549}
15550 ;;
15551 "libtool":C)
15552
15553 # See if we are running on zsh, and set the options which allow our
15554 # commands through without removal of \ escapes.
15555 if test -n "${ZSH_VERSION+set}" ; then
15556 setopt NO_GLOB_SUBST
15557 fi
15558
15559 cfgfile="${ofile}T"
15560 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15561 $RM "$cfgfile"
15562
15563 cat <<_LT_EOF >> "$cfgfile"
15564#! $SHELL
15565
15566# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15567# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15568# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15569# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15570#
15571# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15572# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15573# Written by Gordon Matzigkeit, 1996
15574#
15575# This file is part of GNU Libtool.
15576#
15577# GNU Libtool is free software; you can redistribute it and/or
15578# modify it under the terms of the GNU General Public License as
15579# published by the Free Software Foundation; either version 2 of
15580# the License, or (at your option) any later version.
15581#
15582# As a special exception to the GNU General Public License,
15583# if you distribute this file as part of a program or library that
15584# is built using GNU Libtool, you may include this file under the
15585# same distribution terms that you use for the rest of that program.
15586#
15587# GNU Libtool is distributed in the hope that it will be useful,
15588# but WITHOUT ANY WARRANTY; without even the implied warranty of
15589# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15590# GNU General Public License for more details.
15591#
15592# You should have received a copy of the GNU General Public License
15593# along with GNU Libtool; see the file COPYING. If not, a copy
15594# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15595# obtained by writing to the Free Software Foundation, Inc.,
15596# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15597
15598
15599# The names of the tagged configurations supported by this script.
15600available_tags="GO "
15601
15602# ### BEGIN LIBTOOL CONFIG
15603
15604# A sed program that does not truncate output.
15605SED=$lt_SED
15606
15607# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15608Xsed="\$SED -e 1s/^X//"
15609
15610# A grep program that handles long lines.
15611GREP=$lt_GREP
15612
15613# An ERE matcher.
15614EGREP=$lt_EGREP
15615
15616# A literal string matcher.
15617FGREP=$lt_FGREP
15618
15619# Shell to use when invoking shell scripts.
15620SHELL=$lt_SHELL
15621
15622# An echo program that protects backslashes.
15623ECHO=$lt_ECHO
15624
15625# Which release of libtool.m4 was used?
15626macro_version=$macro_version
15627macro_revision=$macro_revision
15628
15629# Whether or not to build shared libraries.
15630build_libtool_libs=$enable_shared
15631
15632# Whether or not to build static libraries.
15633build_old_libs=$enable_static
15634
15635# What type of objects to build.
15636pic_mode=$pic_mode
15637
15638# Whether or not to optimize for fast installation.
15639fast_install=$enable_fast_install
15640
15641# The host system.
15642host_alias=$host_alias
15643host=$host
15644host_os=$host_os
15645
15646# The build system.
15647build_alias=$build_alias
15648build=$build
15649build_os=$build_os
15650
15651# A BSD- or MS-compatible name lister.
15652NM=$lt_NM
15653
15654# Whether we need soft or hard links.
15655LN_S=$lt_LN_S
15656
15657# What is the maximum length of a command?
15658max_cmd_len=$max_cmd_len
15659
15660# Object file suffix (normally "o").
15661objext=$ac_objext
15662
15663# Executable file suffix (normally "").
15664exeext=$exeext
15665
15666# whether the shell understands "unset".
15667lt_unset=$lt_unset
15668
15669# turn spaces into newlines.
15670SP2NL=$lt_lt_SP2NL
15671
15672# turn newlines into spaces.
15673NL2SP=$lt_lt_NL2SP
15674
15675# An object symbol dumper.
15676OBJDUMP=$lt_OBJDUMP
15677
15678# Method to check whether dependent libraries are shared objects.
15679deplibs_check_method=$lt_deplibs_check_method
15680
15681# Command to use when deplibs_check_method == "file_magic".
15682file_magic_cmd=$lt_file_magic_cmd
15683
15684# The archiver.
15685AR=$lt_AR
15686AR_FLAGS=$lt_AR_FLAGS
15687
15688# A symbol stripping program.
15689STRIP=$lt_STRIP
15690
15691# Commands used to install an old-style archive.
15692RANLIB=$lt_RANLIB
15693old_postinstall_cmds=$lt_old_postinstall_cmds
15694old_postuninstall_cmds=$lt_old_postuninstall_cmds
15695
15696# Whether to use a lock for old archive extraction.
15697lock_old_archive_extraction=$lock_old_archive_extraction
15698
15699# A C compiler.
15700LTCC=$lt_CC
15701
15702# LTCC compiler flags.
15703LTCFLAGS=$lt_CFLAGS
15704
15705# Take the output of nm and produce a listing of raw symbols and C names.
15706global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15707
15708# Transform the output of nm in a proper C declaration.
15709global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15710
15711# Transform the output of nm in a C name address pair.
15712global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15713
15714# Transform the output of nm in a C name address pair when lib prefix is needed.
15715global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15716
15717# The name of the directory that contains temporary libtool files.
15718objdir=$objdir
15719
15720# Used to examine libraries when file_magic_cmd begins with "file".
15721MAGIC_CMD=$MAGIC_CMD
15722
15723# Must we lock files when doing compilation?
15724need_locks=$lt_need_locks
15725
15726# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15727DSYMUTIL=$lt_DSYMUTIL
15728
15729# Tool to change global to local symbols on Mac OS X.
15730NMEDIT=$lt_NMEDIT
15731
15732# Tool to manipulate fat objects and archives on Mac OS X.
15733LIPO=$lt_LIPO
15734
15735# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15736OTOOL=$lt_OTOOL
15737
15738# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15739OTOOL64=$lt_OTOOL64
15740
15741# Old archive suffix (normally "a").
15742libext=$libext
15743
15744# Shared library suffix (normally ".so").
15745shrext_cmds=$lt_shrext_cmds
15746
15747# The commands to extract the exported symbol list from a shared archive.
15748extract_expsyms_cmds=$lt_extract_expsyms_cmds
15749
15750# Variables whose values should be saved in libtool wrapper scripts and
15751# restored at link time.
15752variables_saved_for_relink=$lt_variables_saved_for_relink
15753
15754# Do we need the "lib" prefix for modules?
15755need_lib_prefix=$need_lib_prefix
15756
15757# Do we need a version for libraries?
15758need_version=$need_version
15759
15760# Library versioning type.
15761version_type=$version_type
15762
15763# Shared library runtime path variable.
15764runpath_var=$runpath_var
15765
15766# Shared library path variable.
15767shlibpath_var=$shlibpath_var
15768
15769# Is shlibpath searched before the hard-coded library search path?
15770shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15771
15772# Format of library name prefix.
15773libname_spec=$lt_libname_spec
15774
15775# List of archive names. First name is the real one, the rest are links.
15776# The last name is the one that the linker finds with -lNAME
15777library_names_spec=$lt_library_names_spec
15778
15779# The coded name of the library, if different from the real name.
15780soname_spec=$lt_soname_spec
15781
15782# Permission mode override for installation of shared libraries.
15783install_override_mode=$lt_install_override_mode
15784
15785# Command to use after installation of a shared archive.
15786postinstall_cmds=$lt_postinstall_cmds
15787
15788# Command to use after uninstallation of a shared archive.
15789postuninstall_cmds=$lt_postuninstall_cmds
15790
15791# Commands used to finish a libtool library installation in a directory.
15792finish_cmds=$lt_finish_cmds
15793
15794# As "finish_cmds", except a single script fragment to be evaled but
15795# not shown.
15796finish_eval=$lt_finish_eval
15797
15798# Whether we should hardcode library paths into libraries.
15799hardcode_into_libs=$hardcode_into_libs
15800
15801# Compile-time system search path for libraries.
15802sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15803
15804# Run-time system search path for libraries.
15805sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15806
15807# Whether dlopen is supported.
15808dlopen_support=$enable_dlopen
15809
15810# Whether dlopen of programs is supported.
15811dlopen_self=$enable_dlopen_self
15812
15813# Whether dlopen of statically linked programs is supported.
15814dlopen_self_static=$enable_dlopen_self_static
15815
15816# Commands to strip libraries.
15817old_striplib=$lt_old_striplib
15818striplib=$lt_striplib
15819
15820
15821# The linker used to build libraries.
15822LD=$lt_LD
15823
15824# How to create reloadable object files.
15825reload_flag=$lt_reload_flag
15826reload_cmds=$lt_reload_cmds
15827
15828# Commands used to build an old-style archive.
15829old_archive_cmds=$lt_old_archive_cmds
15830
15831# A language specific compiler.
15832CC=$lt_compiler
15833
15834# Is the compiler the GNU compiler?
15835with_gcc=$GCC
15836
15837# Compiler flag to turn off builtin functions.
15838no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15839
15840# How to pass a linker flag through the compiler.
15841wl=$lt_lt_prog_compiler_wl
15842
15843# Additional compiler flags for building library objects.
15844pic_flag=$lt_lt_prog_compiler_pic
15845
15846# Compiler flag to prevent dynamic linking.
15847link_static_flag=$lt_lt_prog_compiler_static
15848
15849# Does compiler simultaneously support -c and -o options?
15850compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15851
15852# Whether or not to add -lc for building shared libraries.
15853build_libtool_need_lc=$archive_cmds_need_lc
15854
15855# Whether or not to disallow shared libs when runtime libs are static.
15856allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15857
15858# Compiler flag to allow reflexive dlopens.
15859export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15860
15861# Compiler flag to generate shared objects directly from archives.
15862whole_archive_flag_spec=$lt_whole_archive_flag_spec
15863
15864# Whether the compiler copes with passing no objects directly.
15865compiler_needs_object=$lt_compiler_needs_object
15866
15867# Create an old-style archive from a shared archive.
15868old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15869
15870# Create a temporary old-style archive to link instead of a shared archive.
15871old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15872
15873# Commands used to build a shared archive.
15874archive_cmds=$lt_archive_cmds
15875archive_expsym_cmds=$lt_archive_expsym_cmds
15876
15877# Commands used to build a loadable module if different from building
15878# a shared archive.
15879module_cmds=$lt_module_cmds
15880module_expsym_cmds=$lt_module_expsym_cmds
15881
15882# Whether we are building with GNU ld or not.
15883with_gnu_ld=$lt_with_gnu_ld
15884
15885# Flag that allows shared libraries with undefined symbols to be built.
15886allow_undefined_flag=$lt_allow_undefined_flag
15887
15888# Flag that enforces no undefined symbols.
15889no_undefined_flag=$lt_no_undefined_flag
15890
15891# Flag to hardcode \$libdir into a binary during linking.
15892# This must work even if \$libdir does not exist
15893hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15894
15895# If ld is used when linking, flag to hardcode \$libdir into a binary
15896# during linking. This must work even if \$libdir does not exist.
15897hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15898
15899# Whether we need a single "-rpath" flag with a separated argument.
15900hardcode_libdir_separator=$lt_hardcode_libdir_separator
15901
15902# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15903# DIR into the resulting binary.
15904hardcode_direct=$hardcode_direct
15905
15906# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15907# DIR into the resulting binary and the resulting library dependency is
15908# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15909# library is relocated.
15910hardcode_direct_absolute=$hardcode_direct_absolute
15911
15912# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15913# into the resulting binary.
15914hardcode_minus_L=$hardcode_minus_L
15915
15916# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15917# into the resulting binary.
15918hardcode_shlibpath_var=$hardcode_shlibpath_var
15919
15920# Set to "yes" if building a shared library automatically hardcodes DIR
15921# into the library and all subsequent libraries and executables linked
15922# against it.
15923hardcode_automatic=$hardcode_automatic
15924
15925# Set to yes if linker adds runtime paths of dependent libraries
15926# to runtime path list.
15927inherit_rpath=$inherit_rpath
15928
15929# Whether libtool must link a program against all its dependency libraries.
15930link_all_deplibs=$link_all_deplibs
15931
15932# Fix the shell variable \$srcfile for the compiler.
15933fix_srcfile_path=$lt_fix_srcfile_path
15934
15935# Set to "yes" if exported symbols are required.
15936always_export_symbols=$always_export_symbols
15937
15938# The commands to list exported symbols.
15939export_symbols_cmds=$lt_export_symbols_cmds
15940
15941# Symbols that should not be listed in the preloaded symbols.
15942exclude_expsyms=$lt_exclude_expsyms
15943
15944# Symbols that must always be exported.
15945include_expsyms=$lt_include_expsyms
15946
15947# Commands necessary for linking programs (against libraries) with templates.
15948prelink_cmds=$lt_prelink_cmds
15949
15950# Specify filename containing input files.
15951file_list_spec=$lt_file_list_spec
15952
15953# How to hardcode a shared library path into an executable.
15954hardcode_action=$hardcode_action
15955
15956# ### END LIBTOOL CONFIG
15957
15958_LT_EOF
15959
15960 case $host_os in
15961 aix3*)
15962 cat <<\_LT_EOF >> "$cfgfile"
15963# AIX sometimes has problems with the GCC collect2 program. For some
15964# reason, if we set the COLLECT_NAMES environment variable, the problems
15965# vanish in a puff of smoke.
15966if test "X${COLLECT_NAMES+set}" != Xset; then
15967 COLLECT_NAMES=
15968 export COLLECT_NAMES
15969fi
15970_LT_EOF
15971 ;;
15972 esac
15973
15974
15975ltmain="$ac_aux_dir/ltmain.sh"
15976
15977
15978 # We use sed instead of cat because bash on DJGPP gets confused if
15979 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15980 # text mode, it properly converts lines to CR/LF. This bash problem
15981 # is reportedly fixed, but why not run on old versions too?
15982 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15983 || (rm -f "$cfgfile"; exit 1)
15984
15985 case $xsi_shell in
15986 yes)
15987 cat << \_LT_EOF >> "$cfgfile"
15988
15989# func_dirname file append nondir_replacement
15990# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15991# otherwise set result to NONDIR_REPLACEMENT.
15992func_dirname ()
15993{
15994 case ${1} in
15995 */*) func_dirname_result="${1%/*}${2}" ;;
15996 * ) func_dirname_result="${3}" ;;
15997 esac
15998}
15999
16000# func_basename file
16001func_basename ()
16002{
16003 func_basename_result="${1##*/}"
16004}
16005
16006# func_dirname_and_basename file append nondir_replacement
16007# perform func_basename and func_dirname in a single function
16008# call:
16009# dirname: Compute the dirname of FILE. If nonempty,
16010# add APPEND to the result, otherwise set result
16011# to NONDIR_REPLACEMENT.
16012# value returned in "$func_dirname_result"
16013# basename: Compute filename of FILE.
16014# value retuned in "$func_basename_result"
16015# Implementation must be kept synchronized with func_dirname
16016# and func_basename. For efficiency, we do not delegate to
16017# those functions but instead duplicate the functionality here.
16018func_dirname_and_basename ()
16019{
16020 case ${1} in
16021 */*) func_dirname_result="${1%/*}${2}" ;;
16022 * ) func_dirname_result="${3}" ;;
16023 esac
16024 func_basename_result="${1##*/}"
16025}
16026
16027# func_stripname prefix suffix name
16028# strip PREFIX and SUFFIX off of NAME.
16029# PREFIX and SUFFIX must not contain globbing or regex special
16030# characters, hashes, percent signs, but SUFFIX may contain a leading
16031# dot (in which case that matches only a dot).
16032func_stripname ()
16033{
16034 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16035 # positional parameters, so assign one to ordinary parameter first.
16036 func_stripname_result=${3}
16037 func_stripname_result=${func_stripname_result#"${1}"}
16038 func_stripname_result=${func_stripname_result%"${2}"}
16039}
16040
16041# func_opt_split
16042func_opt_split ()
16043{
16044 func_opt_split_opt=${1%%=*}
16045 func_opt_split_arg=${1#*=}
16046}
16047
16048# func_lo2o object
16049func_lo2o ()
16050{
16051 case ${1} in
16052 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16053 *) func_lo2o_result=${1} ;;
16054 esac
16055}
16056
16057# func_xform libobj-or-source
16058func_xform ()
16059{
16060 func_xform_result=${1%.*}.lo
16061}
16062
16063# func_arith arithmetic-term...
16064func_arith ()
16065{
16066 func_arith_result=$(( $* ))
16067}
16068
16069# func_len string
16070# STRING may not start with a hyphen.
16071func_len ()
16072{
16073 func_len_result=${#1}
16074}
16075
16076_LT_EOF
16077 ;;
16078 *) # Bourne compatible functions.
16079 cat << \_LT_EOF >> "$cfgfile"
16080
16081# func_dirname file append nondir_replacement
16082# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16083# otherwise set result to NONDIR_REPLACEMENT.
16084func_dirname ()
16085{
16086 # Extract subdirectory from the argument.
16087 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16088 if test "X$func_dirname_result" = "X${1}"; then
16089 func_dirname_result="${3}"
16090 else
16091 func_dirname_result="$func_dirname_result${2}"
16092 fi
16093}
16094
16095# func_basename file
16096func_basename ()
16097{
16098 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16099}
16100
16101
16102# func_stripname prefix suffix name
16103# strip PREFIX and SUFFIX off of NAME.
16104# PREFIX and SUFFIX must not contain globbing or regex special
16105# characters, hashes, percent signs, but SUFFIX may contain a leading
16106# dot (in which case that matches only a dot).
16107# func_strip_suffix prefix name
16108func_stripname ()
16109{
16110 case ${2} in
16111 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16112 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16113 esac
16114}
16115
16116# sed scripts:
16117my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16118my_sed_long_arg='1s/^-[^=]*=//'
16119
16120# func_opt_split
16121func_opt_split ()
16122{
16123 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16124 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16125}
16126
16127# func_lo2o object
16128func_lo2o ()
16129{
16130 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16131}
16132
16133# func_xform libobj-or-source
16134func_xform ()
16135{
16136 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16137}
16138
16139# func_arith arithmetic-term...
16140func_arith ()
16141{
16142 func_arith_result=`expr "$@"`
16143}
16144
16145# func_len string
16146# STRING may not start with a hyphen.
16147func_len ()
16148{
16149 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16150}
16151
16152_LT_EOF
16153esac
16154
16155case $lt_shell_append in
16156 yes)
16157 cat << \_LT_EOF >> "$cfgfile"
16158
16159# func_append var value
16160# Append VALUE to the end of shell variable VAR.
16161func_append ()
16162{
16163 eval "$1+=\$2"
16164}
16165_LT_EOF
16166 ;;
16167 *)
16168 cat << \_LT_EOF >> "$cfgfile"
16169
16170# func_append var value
16171# Append VALUE to the end of shell variable VAR.
16172func_append ()
16173{
16174 eval "$1=\$$1\$2"
16175}
16176
16177_LT_EOF
16178 ;;
16179 esac
16180
16181
16182 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16183 || (rm -f "$cfgfile"; exit 1)
16184
16185 mv -f "$cfgfile" "$ofile" ||
16186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16187 chmod +x "$ofile"
16188
16189
16190 cat <<_LT_EOF >> "$ofile"
16191
16192# ### BEGIN LIBTOOL TAG CONFIG: GO
16193
16194# The linker used to build libraries.
16195LD=$lt_LD_GO
16196
16197# How to create reloadable object files.
16198reload_flag=$lt_reload_flag_GO
16199reload_cmds=$lt_reload_cmds_GO
16200
16201# Commands used to build an old-style archive.
16202old_archive_cmds=$lt_old_archive_cmds_GO
16203
16204# A language specific compiler.
16205CC=$lt_compiler_GO
16206
16207# Is the compiler the GNU compiler?
16208with_gcc=$GCC_GO
16209
16210# Compiler flag to turn off builtin functions.
16211no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16212
16213# How to pass a linker flag through the compiler.
16214wl=$lt_lt_prog_compiler_wl_GO
16215
16216# Additional compiler flags for building library objects.
16217pic_flag=$lt_lt_prog_compiler_pic_GO
16218
16219# Compiler flag to prevent dynamic linking.
16220link_static_flag=$lt_lt_prog_compiler_static_GO
16221
16222# Does compiler simultaneously support -c and -o options?
16223compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16224
16225# Whether or not to add -lc for building shared libraries.
16226build_libtool_need_lc=$archive_cmds_need_lc_GO
16227
16228# Whether or not to disallow shared libs when runtime libs are static.
16229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16230
16231# Compiler flag to allow reflexive dlopens.
16232export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16233
16234# Compiler flag to generate shared objects directly from archives.
16235whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16236
16237# Whether the compiler copes with passing no objects directly.
16238compiler_needs_object=$lt_compiler_needs_object_GO
16239
16240# Create an old-style archive from a shared archive.
16241old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16242
16243# Create a temporary old-style archive to link instead of a shared archive.
16244old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16245
16246# Commands used to build a shared archive.
16247archive_cmds=$lt_archive_cmds_GO
16248archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16249
16250# Commands used to build a loadable module if different from building
16251# a shared archive.
16252module_cmds=$lt_module_cmds_GO
16253module_expsym_cmds=$lt_module_expsym_cmds_GO
16254
16255# Whether we are building with GNU ld or not.
16256with_gnu_ld=$lt_with_gnu_ld_GO
16257
16258# Flag that allows shared libraries with undefined symbols to be built.
16259allow_undefined_flag=$lt_allow_undefined_flag_GO
16260
16261# Flag that enforces no undefined symbols.
16262no_undefined_flag=$lt_no_undefined_flag_GO
16263
16264# Flag to hardcode \$libdir into a binary during linking.
16265# This must work even if \$libdir does not exist
16266hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16267
16268# If ld is used when linking, flag to hardcode \$libdir into a binary
16269# during linking. This must work even if \$libdir does not exist.
16270hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16271
16272# Whether we need a single "-rpath" flag with a separated argument.
16273hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16274
16275# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16276# DIR into the resulting binary.
16277hardcode_direct=$hardcode_direct_GO
16278
16279# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16280# DIR into the resulting binary and the resulting library dependency is
16281# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16282# library is relocated.
16283hardcode_direct_absolute=$hardcode_direct_absolute_GO
16284
16285# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16286# into the resulting binary.
16287hardcode_minus_L=$hardcode_minus_L_GO
16288
16289# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16290# into the resulting binary.
16291hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16292
16293# Set to "yes" if building a shared library automatically hardcodes DIR
16294# into the library and all subsequent libraries and executables linked
16295# against it.
16296hardcode_automatic=$hardcode_automatic_GO
16297
16298# Set to yes if linker adds runtime paths of dependent libraries
16299# to runtime path list.
16300inherit_rpath=$inherit_rpath_GO
16301
16302# Whether libtool must link a program against all its dependency libraries.
16303link_all_deplibs=$link_all_deplibs_GO
16304
16305# Fix the shell variable \$srcfile for the compiler.
16306fix_srcfile_path=$lt_fix_srcfile_path_GO
16307
16308# Set to "yes" if exported symbols are required.
16309always_export_symbols=$always_export_symbols_GO
16310
16311# The commands to list exported symbols.
16312export_symbols_cmds=$lt_export_symbols_cmds_GO
16313
16314# Symbols that should not be listed in the preloaded symbols.
16315exclude_expsyms=$lt_exclude_expsyms_GO
16316
16317# Symbols that must always be exported.
16318include_expsyms=$lt_include_expsyms_GO
16319
16320# Commands necessary for linking programs (against libraries) with templates.
16321prelink_cmds=$lt_prelink_cmds_GO
16322
16323# Specify filename containing input files.
16324file_list_spec=$lt_file_list_spec_GO
16325
16326# How to hardcode a shared library path into an executable.
16327hardcode_action=$hardcode_action_GO
16328
16329# ### END LIBTOOL TAG CONFIG: GO
16330_LT_EOF
16331
16332 ;;
16333 "default":C) if test -n "$CONFIG_FILES"; then
16334 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16335 # that multilib installs will end up installed in the correct place.
16336 # The testsuite needs it for multilib-aware ABI baseline files.
16337 # To work around this not being passed down from config-ml.in ->
16338 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16339 # append it here. Only modify Makefiles that have just been created.
16340 #
16341 # Also, get rid of this simulated-VPATH thing that automake does.
16342 cat > vpsed << \_EOF
16343s!`test -f '$<' || echo '$(srcdir)/'`!!
16344_EOF
16345 for i in $SUBDIRS; do
16346 case $CONFIG_FILES in
16347 *${i}/Makefile*)
16348 #echo "Adding MULTISUBDIR to $i/Makefile"
16349 sed -f vpsed $i/Makefile > tmp
16350 grep '^MULTISUBDIR =' Makefile >> tmp
16351 mv tmp $i/Makefile
16352 ;;
16353 esac
16354 done
16355 rm vpsed
16356 fi
16357 ;;
16358
16359 esac
16360done # for ac_tag
16361
16362
16363as_fn_exit 0
16364_ACEOF
16365ac_clean_files=$ac_clean_files_save
16366
16367test $ac_write_fail = 0 ||
16368 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16369
16370
16371# configure is writing to config.log, and then calls config.status.
16372# config.status does its own redirection, appending to config.log.
16373# Unfortunately, on DOS this fails, as config.log is still kept open
16374# by configure, so config.status won't be able to write to it; its
16375# output is simply discarded. So we exec the FD to /dev/null,
16376# effectively closing config.log, so it can be properly (re)opened and
16377# appended to by config.status. When coming back to configure, we
16378# need to make the FD available again.
16379if test "$no_create" != yes; then
16380 ac_cs_success=:
16381 ac_config_status_args=
16382 test "$silent" = yes &&
16383 ac_config_status_args="$ac_config_status_args --quiet"
16384 exec 5>/dev/null
16385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16386 exec 5>>config.log
16387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16388 # would make configure fail if this is the last instruction.
16389 $ac_cs_success || as_fn_exit $?
16390fi
16391if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16393$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16394fi
16395